DataMapperSteps.java 文件源码

java
阅读 23 收藏 0 点赞 0 评论 0

项目:syndesis-qe 作者:
@Then("^she separates \"([^\"]*)\" into \"(\\w+)\" as \"(\\w+)\" and \"(\\w+)\" as \"(\\w+)\" using \"(\\w+)\" separator$")
public void separatePresentFielsIntoTwo(String input, String output1, String first_pos, String output2, String second_pos, String separator) {
    SelenideElement inputElement;
    SelenideElement selectElement;

    //inputElement = mapper.getElementByAlias("FirstSource").shouldBe(visible);
    //mapper.fillInput(inputElement, input);

    selectElement = mapper.getElementByAlias("ActionSelect").shouldBe(visible);
    mapper.selectOption(selectElement, "Separate");

    selectElement = mapper.getElementByAlias("SeparatorSelect").shouldBe(visible);
    mapper.selectOption(selectElement, separator);

    // NOTE: THIS STEP SHOULD HAVE BEEN DONE AUTOMATICALLY BY SELECTING "Separate" action
    mapper.clickButton("Add Target");

    inputElement = mapper.getElementByAlias("FirstTarget").shouldBe(visible);
    mapper.fillInputAndConfirm(inputElement, output1);

    inputElement = mapper.getElementByAlias("FirstTargetPosition").shouldBe(visible);
    mapper.fillInput(inputElement, first_pos);

    inputElement = mapper.getElementByAlias("SecondTarget").shouldBe(visible);
    mapper.fillInputAndConfirm(inputElement, output2);

    inputElement = mapper.getElementByAlias("SecondTargetPosition").shouldBe(visible);
    mapper.fillInput(inputElement, second_pos);

}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号