use of io.cucumber.java.en.When in project syndesis-qe by syndesisio.
the class CreateIntegrationSteps method fillNameConnectionForm.
@When("^fills? Name Integration form$")
public void fillNameConnectionForm(DataTable data) {
new Form(createIntegration.getRootElement()).fillByTestId(data.asMap(String.class, String.class));
TestUtils.sleepForJenkinsDelayIfHigher(1);
}
use of io.cucumber.java.en.When in project syndesis-qe by syndesisio.
the class ConfigureStepSteps method setFtpUploadData.
@When("^fill in ftp upload form with values$")
public void setFtpUploadData(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 = ftpUpload.checkAndGetFieldTypeByName(field);
assertThat(element).isNotNull();
ftpUpload.setElementValue(source.get(field), element);
}
}
}
use of io.cucumber.java.en.When in project syndesis-qe by syndesisio.
the class ConfigureStepSteps method setOutputDataTypeData.
@When("^fill in specify output data type form with values$")
public void setOutputDataTypeData(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 = ftpDataType.checkAndGetFieldTypeByName(field);
assertThat(element).isNotNull();
ftpDataType.setElementValue(source.get(field), element);
}
}
}
use of io.cucumber.java.en.When in project syndesis-qe by syndesisio.
the class ConfigureStepSteps method setJmsSubscribeData.
@When("^sets jms subscribe inputs source data$")
public void setJmsSubscribeData(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 = jmsSubscribe.checkAndGetFieldTypeById(field);
assertThat(element).isNotNull();
jmsSubscribe.setElementValue(source.get(field), element);
}
}
}
use of io.cucumber.java.en.When in project syndesis-qe by syndesisio.
the class ConfigureStepSteps method deleteFilterRuleOnPosition.
@When("^delete basic filter rule on position \"(\\d+)\"$")
public void deleteFilterRuleOnPosition(Integer position) {
ElementsCollection trashes = integrationFlowView.getAllTrashes();
trashes.get(position - 1).click();
}
Aggregations