I'm trying to write a unit test that will exercise the UI for my plugin and
to do that I need to configure the plugins global properties.
I can get to the global configuration page but when I look in the config
form for my plugin settings it's not there. The wiki only touches this
area very lightly so it's not been much help.
@Rule
public JenkinsRule j = new JenkinsRule()
@Test
public void perform() {
HtmlPage globalConfigPage =
j.createWebClient().webClient.goTo("configure");
HtmlForm form = globalConfigPage.getFormByName("config");
// My plugins global properties are not found
HtmlInput password = form.getInputByName("_.password");
https://issues.jenkins-ci.org/browse/JENKINS-29181 suggests I should be
able to use @WithPlugin("DownloadPackageBuilder.hpi") once I've added the
hpi file to the plugins folder but there is no explanation on how to do
that...
The offending bit of code is in:
https://github.com/andrew-sumner/inedo-proget-plugin/blob/master/src/test/java/com/inedo/proget/jenkins/DownloadPluginTests.java
Any idea on what I might be missing?
--
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-dev/1c6c7084-30dc-4550-b0b5-4536474e0182%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.