Search in sources :

Example 86 with When

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);
}
Also used : Form(io.syndesis.qe.fragments.common.form.Form) When(io.cucumber.java.en.When)

Example 87 with When

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);
        }
    }
}
Also used : SelenideElement(com.codeborne.selenide.SelenideElement) Map(java.util.Map) When(io.cucumber.java.en.When)

Example 88 with When

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);
        }
    }
}
Also used : SelenideElement(com.codeborne.selenide.SelenideElement) Map(java.util.Map) When(io.cucumber.java.en.When)

Example 89 with When

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);
        }
    }
}
Also used : SelenideElement(com.codeborne.selenide.SelenideElement) Map(java.util.Map) When(io.cucumber.java.en.When)

Example 90 with When

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();
}
Also used : ElementsCollection(com.codeborne.selenide.ElementsCollection) When(io.cucumber.java.en.When)

Aggregations

When (io.cucumber.java.en.When)111 SelenideElement (com.codeborne.selenide.SelenideElement)23 Map (java.util.Map)10 File (java.io.File)8 AttributeType (com.vaticle.typedb.core.concept.type.AttributeType)7 ModalDialogPage (io.syndesis.qe.pages.ModalDialogPage)7 Attribute (com.vaticle.typedb.core.concept.thing.Attribute)6 Account (io.syndesis.qe.account.Account)6 Form (io.syndesis.qe.fragments.common.form.Form)6 Syndesis (io.syndesis.qe.resource.impl.Syndesis)6 TimeoutException (java.util.concurrent.TimeoutException)6 RoleType (com.vaticle.typedb.core.concept.type.RoleType)5 IOException (java.io.IOException)5 HashMap (java.util.HashMap)5 Slf4j (lombok.extern.slf4j.Slf4j)5 ElementsCollection (com.codeborne.selenide.ElementsCollection)4 DataTable (io.cucumber.datatable.DataTable)4 IntegrationsEndpoint (io.syndesis.qe.endpoint.IntegrationsEndpoint)4 SyndesisRootPage (io.syndesis.qe.pages.SyndesisRootPage)4 List (java.util.List)4