@component:ui @version:Release-2 @issue:ETSY-102
Feature: Search by keyword
In order for buyers to find what they are looking for more efficiently
As a seller
I want buyers to be able to search for articles by keywords
42 [main] INFO net.thucydides.core.util.PropertiesFileLocalPreferences - LOADING LOCAL PROPERTIES FROM /Users/vikram-anna/Documents/workspace/Web/serenity-demos/cucumber-webtests/serenity.properties
42 [main] INFO net.thucydides.core.util.PropertiesFileLocalPreferences - LOADING LOCAL PROPERTIES FROM /Users/vikram-anna/Documents/workspace/Web/serenity-demos/cucumber-webtests/serenity.properties
43 [main] INFO net.thucydides.core.util.PropertiesFileLocalPreferences - LOADING LOCAL PROPERTIES FROM /Users/vikram-anna/Documents/workspace/Web/serenity-demos/cucumber-webtests/serenity.properties
43 [main] INFO net.thucydides.core.util.PropertiesFileLocalPreferences - webdriver.driver=chrome
43 [main] INFO net.thucydides.core.util.PropertiesFileLocalPreferences - serenity.browser,height=1200
43 [main] INFO net.thucydides.core.util.PropertiesFileLocalPreferences - serenity.dry.run=false
43 [main] INFO net.thucydides.core.util.PropertiesFileLocalPreferences - serenity.test.root=net.thucydides.showcase.cucumber.junit
43 [main] INFO net.thucydides.core.util.PropertiesFileLocalPreferences - serenity.project.name=Demo Project using Serenity and Cucumber
43 [main] INFO net.thucydides.core.util.PropertiesFileLocalPreferences - serenity.browser,width=1200
43 [main] INFO net.thucydides.core.util.PropertiesFileLocalPreferences - serenity.use.unique.browser=false
43 [main] INFO net.thucydides.core.util.PropertiesFileLocalPreferences - webdriver.timeouts.implicitlywait=5000
43 [main] INFO net.thucydides.core.util.PropertiesFileLocalPreferences - serenity.take.screenshots=AFTER_EACH_STEP
Scenario: Search for articles by keyword # /Users/vikram-anna/Documents/workspace/Web/serenity-demos/cucumber-webtests/src/test/resources/features/search/search_by_keyword.feature:9
Given I want to buy a wool scarf
When I search for 'wool'
Then I should see only articles related to 'wool'
Scenario Outline: Search by shop name # /Users/vikram-anna/Documents/workspace/Web/serenity-demos/cucumber-webtests/src/test/resources/features/search/search_by_keyword.feature:14
Given I want to see articles from a particular shop
When I search by shop for ''
Then I should find 1 shop called ''
Examples:
@component:ui @version:Release-2 @issue:ETSY-102
Scenario Outline: Search by shop name # /Users/vikram-anna/Documents/workspace/Web/serenity-demos/cucumber-webtests/src/test/resources/features/search/search_by_keyword.feature:20
Given I want to see articles from a particular shop
When I search by shop for 'agdesignworks'
Then I should find 1 shop called 'agdesignworks'
@component:ui @version:Release-2 @issue:ETSY-102
Scenario Outline: Search by shop name # /Users/vikram-anna/Documents/workspace/Web/serenity-demos/cucumber-webtests/src/test/resources/features/search/search_by_keyword.feature:21
Given I want to see articles from a particular shop
When I search by shop for 'docksmith'
Then I should find 1 shop called 'docksmith'
Scenario Outline: Search for many articles by keyword # /Users/vikram-anna/Documents/workspace/Web/serenity-demos/cucumber-webtests/src/test/resources/features/search/search_by_keyword.feature:23
Given I would like to buy a
When I search for ''
Then I should see only articles related to ''
Examples:
@component:ui @version:Release-2 @issue:ETSY-102
Scenario Outline: Search for many articles by keyword # /Users/vikram-anna/Documents/workspace/Web/serenity-demos/cucumber-webtests/src/test/resources/features/search/search_by_keyword.feature:29
Given I would like to buy a wool scarf
When I search for 'wool scarf'
Then I should see only articles related to 'wool'
@component:ui @version:Release-2 @issue:ETSY-102
Scenario Outline: Search for many articles by keyword # /Users/vikram-anna/Documents/workspace/Web/serenity-demos/cucumber-webtests/src/test/resources/features/search/search_by_keyword.feature:30
Given I would like to buy a cotton shirt
When I search for 'cotton shirt'
Then I should see only articles related to 'cotton'
You can implement missing steps with the snippets below:
@Given("^I want to buy a wool scarf$")
public void i_want_to_buy_a_wool_scarf() throws Throwable {
// Write code here that turns the phrase above into concrete actions
throw new PendingException();
}
@When("^I search for 'wool'$")
public void i_search_for_wool() throws Throwable {
// Write code here that turns the phrase above into concrete actions
throw new PendingException();
}
@Then("^I should see only articles related to 'wool'$")
public void i_should_see_only_articles_related_to_wool() throws Throwable {
// Write code here that turns the phrase above into concrete actions
throw new PendingException();
}
@Given("^I want to see articles from a particular shop$")
public void i_want_to_see_articles_from_a_particular_shop() throws Throwable {
// Write code here that turns the phrase above into concrete actions
throw new PendingException();
}
@When("^I search by shop for 'agdesignworks'$")
public void i_search_by_shop_for_agdesignworks() throws Throwable {
// Write code here that turns the phrase above into concrete actions
throw new PendingException();
}
@Then("^I should find (\d+) shop called 'agdesignworks'$")
public void i_should_find_shop_called_agdesignworks(int arg1) throws Throwable {
// Write code here that turns the phrase above into concrete actions
throw new PendingException();
}
@When("^I search by shop for 'docksmith'$")
public void i_search_by_shop_for_docksmith() throws Throwable {
// Write code here that turns the phrase above into concrete actions
throw new PendingException();
}
@Then("^I should find (\d+) shop called 'docksmith'$")
public void i_should_find_shop_called_docksmith(int arg1) throws Throwable {
// Write code here that turns the phrase above into concrete actions
throw new PendingException();
}
@Given("^I would like to buy a wool scarf$")
public void i_would_like_to_buy_a_wool_scarf() throws Throwable {
// Write code here that turns the phrase above into concrete actions
throw new PendingException();
}
@When("^I search for 'wool scarf'$")
public void i_search_for_wool_scarf() throws Throwable {
// Write code here that turns the phrase above into concrete actions
throw new PendingException();
}
@Given("^I would like to buy a cotton shirt$")
public void i_would_like_to_buy_a_cotton_shirt() throws Throwable {
// Write code here that turns the phrase above into concrete actions
throw new PendingException();
}
@When("^I search for 'cotton shirt'$")
public void i_search_for_cotton_shirt() throws Throwable {
// Write code here that turns the phrase above into concrete actions
throw new PendingException();
}
@Then("^I should see only articles related to 'cotton'$")
public void i_should_see_only_articles_related_to_cotton() throws Throwable {
// Write code here that turns the phrase above into concrete actions
throw new PendingException();
}
I tried steps mentioned in https://github.com/cucumber/cucumber-jvm/wiki/IDE-support but couldn't get test case running with Eclipse.
below is the output
@component:ui @version:Release-2 @issue:ETSY-102 Feature: Search by keyword In order for buyers to find what they are looking for more efficiently As a seller I want buyers to be able to search for articles by keywords 42 [main] INFO net.thucydides.core.util.PropertiesFileLocalPreferences - LOADING LOCAL PROPERTIES FROM /Users/vikram-anna/Documents/workspace/Web/serenity-demos/cucumber-webtests/serenity.properties 42 [main] INFO net.thucydides.core.util.PropertiesFileLocalPreferences - LOADING LOCAL PROPERTIES FROM /Users/vikram-anna/Documents/workspace/Web/serenity-demos/cucumber-webtests/serenity.properties 43 [main] INFO net.thucydides.core.util.PropertiesFileLocalPreferences - LOADING LOCAL PROPERTIES FROM /Users/vikram-anna/Documents/workspace/Web/serenity-demos/cucumber-webtests/serenity.properties 43 [main] INFO net.thucydides.core.util.PropertiesFileLocalPreferences - webdriver.driver=chrome 43 [main] INFO net.thucydides.core.util.PropertiesFileLocalPreferences - serenity.browser,height=1200 43 [main] INFO net.thucydides.core.util.PropertiesFileLocalPreferences - serenity.dry.run=false 43 [main] INFO net.thucydides.core.util.PropertiesFileLocalPreferences - serenity.test.root=net.thucydides.showcase.cucumber.junit 43 [main] INFO net.thucydides.core.util.PropertiesFileLocalPreferences - serenity.project.name=Demo Project using Serenity and Cucumber 43 [main] INFO net.thucydides.core.util.PropertiesFileLocalPreferences - serenity.browser,width=1200 43 [main] INFO net.thucydides.core.util.PropertiesFileLocalPreferences - serenity.use.unique.browser=false 43 [main] INFO net.thucydides.core.util.PropertiesFileLocalPreferences - webdriver.timeouts.implicitlywait=5000 43 [main] INFO net.thucydides.core.util.PropertiesFileLocalPreferences - serenity.take.screenshots=AFTER_EACH_STEP
Scenario: Search for articles by keyword # /Users/vikram-anna/Documents/workspace/Web/serenity-demos/cucumber-webtests/src/test/resources/features/search/search_by_keyword.feature:9 Given I want to buy a wool scarf When I search for 'wool' Then I should see only articles related to 'wool'
Scenario Outline: Search by shop name # /Users/vikram-anna/Documents/workspace/Web/serenity-demos/cucumber-webtests/src/test/resources/features/search/search_by_keyword.feature:14 Given I want to see articles from a particular shop When I search by shop for ''
Then I should find 1 shop called ''
@component:ui @version:Release-2 @issue:ETSY-102 Scenario Outline: Search by shop name # /Users/vikram-anna/Documents/workspace/Web/serenity-demos/cucumber-webtests/src/test/resources/features/search/search_by_keyword.feature:20 Given I want to see articles from a particular shop When I search by shop for 'agdesignworks' Then I should find 1 shop called 'agdesignworks'
@component:ui @version:Release-2 @issue:ETSY-102 Scenario Outline: Search by shop name # /Users/vikram-anna/Documents/workspace/Web/serenity-demos/cucumber-webtests/src/test/resources/features/search/search_by_keyword.feature:21 Given I want to see articles from a particular shop When I search by shop for 'docksmith' Then I should find 1 shop called 'docksmith'
Scenario Outline: Search for many articles by keyword # /Users/vikram-anna/Documents/workspace/Web/serenity-demos/cucumber-webtests/src/test/resources/features/search/search_by_keyword.feature:23 Given I would like to buy a
When I search for ''
Then I should see only articles related to ''
@component:ui @version:Release-2 @issue:ETSY-102 Scenario Outline: Search for many articles by keyword # /Users/vikram-anna/Documents/workspace/Web/serenity-demos/cucumber-webtests/src/test/resources/features/search/search_by_keyword.feature:29 Given I would like to buy a wool scarf When I search for 'wool scarf' Then I should see only articles related to 'wool'
@component:ui @version:Release-2 @issue:ETSY-102 Scenario Outline: Search for many articles by keyword # /Users/vikram-anna/Documents/workspace/Web/serenity-demos/cucumber-webtests/src/test/resources/features/search/search_by_keyword.feature:30 Given I would like to buy a cotton shirt When I search for 'cotton shirt' Then I should see only articles related to 'cotton'
5 Scenarios (5 undefined) 15 Steps (15 undefined) 0m0.000s
You can implement missing steps with the snippets below:
@Given("^I want to buy a wool scarf$") public void i_want_to_buy_a_wool_scarf() throws Throwable { // Write code here that turns the phrase above into concrete actions throw new PendingException(); }
@When("^I search for 'wool'$") public void i_search_for_wool() throws Throwable { // Write code here that turns the phrase above into concrete actions throw new PendingException(); }
@Then("^I should see only articles related to 'wool'$") public void i_should_see_only_articles_related_to_wool() throws Throwable { // Write code here that turns the phrase above into concrete actions throw new PendingException(); }
@Given("^I want to see articles from a particular shop$") public void i_want_to_see_articles_from_a_particular_shop() throws Throwable { // Write code here that turns the phrase above into concrete actions throw new PendingException(); }
@When("^I search by shop for 'agdesignworks'$") public void i_search_by_shop_for_agdesignworks() throws Throwable { // Write code here that turns the phrase above into concrete actions throw new PendingException(); }
@Then("^I should find (\d+) shop called 'agdesignworks'$") public void i_should_find_shop_called_agdesignworks(int arg1) throws Throwable { // Write code here that turns the phrase above into concrete actions throw new PendingException(); }
@When("^I search by shop for 'docksmith'$") public void i_search_by_shop_for_docksmith() throws Throwable { // Write code here that turns the phrase above into concrete actions throw new PendingException(); }
@Then("^I should find (\d+) shop called 'docksmith'$") public void i_should_find_shop_called_docksmith(int arg1) throws Throwable { // Write code here that turns the phrase above into concrete actions throw new PendingException(); }
@Given("^I would like to buy a wool scarf$") public void i_would_like_to_buy_a_wool_scarf() throws Throwable { // Write code here that turns the phrase above into concrete actions throw new PendingException(); }
@When("^I search for 'wool scarf'$") public void i_search_for_wool_scarf() throws Throwable { // Write code here that turns the phrase above into concrete actions throw new PendingException(); }
@Given("^I would like to buy a cotton shirt$") public void i_would_like_to_buy_a_cotton_shirt() throws Throwable { // Write code here that turns the phrase above into concrete actions throw new PendingException(); }
@When("^I search for 'cotton shirt'$") public void i_search_for_cotton_shirt() throws Throwable { // Write code here that turns the phrase above into concrete actions throw new PendingException(); }
@Then("^I should see only articles related to 'cotton'$") public void i_should_see_only_articles_related_to_cotton() throws Throwable { // Write code here that turns the phrase above into concrete actions throw new PendingException(); }