use of io.cucumber.java.en.When in project syndesis-qe by syndesisio.
the class IntegrationSteps method exportIntegration.
@When("^export the integrat?ion$")
public void exportIntegration() throws InterruptedException {
File exportedIntegrationFile = detailPage.exportIntegration();
assertThat(exportedIntegrationFile).exists().isFile().has(new Condition<>(f -> f.length() > 0, "File size should be greater than 0"));
ExportedIntegrationJSONUtil.testExportedFile(exportedIntegrationFile);
}
use of io.cucumber.java.en.When in project syndesis-qe by syndesisio.
the class IntegrationSteps method startIntegration.
@When("^start integration \"([^\"]*)\"$")
public void startIntegration(String integrationName) {
detailPage.clickOnKebabMenuAction("Start");
ModalDialogPage modal = new ModalDialogPage();
modal.getButton("Start").shouldBe(visible).click();
}
use of io.cucumber.java.en.When in project syndesis-qe by syndesisio.
the class ConfigureStepSteps method fillStepConfiguration.
@When("^fill in the configuration page for \"([^\"]*)\" step with \"([^\"]*)\" parameter$")
public void fillStepConfiguration(String stepType, String parameter) {
AbstractStep stepComponent = StepFactory.getStep(stepType, parameter);
stepComponent.fillConfiguration();
}
use of io.cucumber.java.en.When in project syndesis-qe by syndesisio.
the class ConfigureStepSteps method addBasicFilterRule.
@When("^add new basic filter rule with \"([^\"]*)\" parameters$")
public void addBasicFilterRule(String rule) {
BasicFilter basicFilterStepPage = (BasicFilter) StepFactory.getStep("BASIC FILTER", "");
basicFilterStepPage.initialize();
basicFilterStepPage.addRule(rule);
}
use of io.cucumber.java.en.When in project syndesis-qe by syndesisio.
the class ConfigureStepSteps method setJmsPublishData.
@When("^sets jms publish inputs source data$")
public void setJmsPublishData(DataTable sourceMappingData) {
List<Map<String, String>> maps = sourceMappingData.asMaps(String.class, String.class);
for (Map<String, String> source : maps) {
for (String field : source.keySet()) {
SelenideElement element = jmsPublish.checkAndGetFieldTypeById(field);
assertThat(element).isNotNull();
jmsPublish.setElementValue(source.get(field), element);
}
}
}
Aggregations