IntelliJ IDEA Cucumber Configuration -
i have created dummy project figure out how cucumber android works , followed "tutorial" here
https://www.jetbrains.com/idea/help/enabling-cucumber-support-in-project.html
i using intellij idea ide can see , feature looks this:
feature: testing scenario: testiranje given on 'new pet' page , press "registrer" should go "registrer" page given on new pet page
and java file:
public class proradistepdefs { @given("^i on 'new pet' page$") public void i_am_on_the_new_pet_page() throws throwable { } @and("^i press \\\"([^\\\"]*)\\\"$") public void i_press(string arg1) throws throwable { system.out.println(arg1); } @then("^i should go \\\"([^\\\"]*)\\\" page$") public void i_should_go_to_the_page(string arg1) throws throwable { system.out.println(arg1); throw new pendingexception(); } @given("i on new pet page") public void i_am_on_the_new_pet_page() throws throwable { } }
and when start cucumber java tests got in console:
1 scenarios (1 undefined) 4 steps (4 undefined) 0m0.000s can implement missing steps snippets below: given("^i on 'new pet' page$", () -> { // write code here turns phrase above concrete actions throw new pendingexception(); }); given("^i press \"([^\"]*)\"$", (string arg1) -> { // write code here turns phrase above concrete actions throw new pendingexception(); }); then("^i should go \"([^\"]*)\" page$", (string arg1) -> { // write code here turns phrase above concrete actions throw new pendingexception(); }); given("^i on new pet page$", () -> { // write code here turns phrase above concrete actions throw new pendingexception(); }); process finished exit code 0
try run tests option -r features
Comments
Post a Comment