use of org.jenkinsci.test.acceptance.po.StringParameter in project acceptance-test-harness by jenkinsci.
the class FreestyleJobTest method scheduleFromView.
@Test
public void scheduleFromView() throws Exception {
FreeStyleJob j = jenkins.jobs.create(FreeStyleJob.class);
ListView view = jenkins.views.create(ListView.class, "AView");
view.configure();
view.addJob(j);
view.save();
view.scheduleJob(j.name);
j.build(1).waitUntilStarted().shouldSucceed();
j.configure();
StringParameter p = j.addParameter(StringParameter.class);
p.setName("foo");
j.save();
view.scheduleJob(j.name);
BuildWithParameters paramPage = new BuildWithParameters(j, new URL(driver.getCurrentUrl()));
paramPage.enter(Collections.singletonList(p), Collections.singletonMap("foo", "bar"));
paramPage.start();
j.build(2).waitUntilStarted().shouldSucceed();
}
Aggregations