Hi All, I'm trying to write unit tests for the following structure:
<f:entry title="${%SCM Engine}" field="scmEngine"> <select class="setting-input" name="${field}" help="help-scmEngine.html" > <j:forEach var="it" items="${descriptor.getPropertyType(instance,field).enumConstants}"> <f:option value="${it.name()}" selected="${instance != null ? it==instance[field] : it.name()==default}"> ${value} </f:option> </j:forEach> </select> </f:entry> which is backed by a private SupportedScmEngineTypes scmEngine field, with a data bound getter and setter for a drop-down list. It all works fine in the Jenkins UI. Are there any samples for accessing this field from a unit test structure? My issue seems to be finding the actual control from my HtmlForm object. I am currently successfully using RestartableJenkinsRule to test other fields on the form, Strings and Check Boxes, but the drop-down has me confounded. Thanks in advance, Randall -- You received this message because you are subscribed to the Google Groups "Jenkins Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-dev+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/f47919e6-df67-4fa0-b248-2ebecb7ecd03%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.