diff --git a/pom.xml b/pom.xml index f2550486..c0f9e033 100644 --- a/pom.xml +++ b/pom.xml @@ -28,7 +28,7 @@ --glue / --glue com/crowdar/bdd/cukes/hooks - @Smoke + @Busqueda --plugin pretty --plugin lippia.web.reporters.CucumberReporter: --plugin lippia.web.reporters.TestManagerReporter: diff --git a/src/main/java/lippia/web/steps/GoogleSearchSteps.java b/src/main/java/lippia/web/steps/GoogleSearchSteps.java index 81c2c89d..379c3f77 100644 --- a/src/main/java/lippia/web/steps/GoogleSearchSteps.java +++ b/src/main/java/lippia/web/steps/GoogleSearchSteps.java @@ -7,24 +7,19 @@ public class GoogleSearchSteps extends PageSteps { - @Given("^The client is on google page$") + @Given("^El cliente se encuentra en el buscador$") public void home() { GoogleHomeService.navegarWeb(); } - @Given("^The client isn't on google page$") - public void isNotHome() { - GoogleHomeService.navegarWeb(); - throw new RuntimeException("the client is not on google page"); - } - @When("^The client search for word (.*)$") + @When("^El cliente hace la (.*)$") public void search(String criteria) { GoogleHomeService.enterSearchCriteria(criteria); GoogleHomeService.clickSearchButton(); } - @Then("The client verify that results are shown properly") + @Then("El cliente puede ver su busqueda") public void statVerification() { GoogleSearchResultService.verifyResults(); } diff --git a/src/main/resources/webdrivermanager.properties b/src/main/resources/webdrivermanager.properties index b978fa2d..e358371a 100644 --- a/src/main/resources/webdrivermanager.properties +++ b/src/main/resources/webdrivermanager.properties @@ -1,5 +1,5 @@ wdm.targetPath=~/.m2/repository/webdriver -#wdm.chromeDriverVersion=117.0.5938.88 // unncomment this line to set specific version of chrome Driver +wdm.chromeDriverVersion=117.0.5938.92 wdm.forceCache=true wdm.override=false wdm.useMirror=false diff --git a/src/test/resources/web/features/googleSearch.feature b/src/test/resources/web/features/googleSearch.feature index eece217a..29213369 100644 --- a/src/test/resources/web/features/googleSearch.feature +++ b/src/test/resources/web/features/googleSearch.feature @@ -1,25 +1,16 @@ -Feature: As a potential client i need to search in google to find a web site +@Busqueda +Feature: El cliente quiere hacer uns busqueda en el buscador de google - @Smoke - Scenario: The client search by "crowdar" - Given The client is on google page - When The client search for word crowdar - Then The client verify that results are shown properly + Scenario Outline: El cliente necesita hacer una busqueda + Given El cliente se encuentra en el buscador + When El cliente hace la + Then El cliente puede ver su busqueda - @Smoke - Scenario: The client search by "Automation" - Given The client is on google page - When The client search for word Automation - Then The client verify that results are shown properly + Examples: + | Busqueda | + | Crowdar Academy | + | Calidad | + | Software | + | Testing | - @Smoke - Scenario: The client search by "Docker" - Given The client is on google page - When The client search for word Docker - Then The client verify that results are shown properly - @Smoke - Scenario: The client search by "Lippia" - Given The client isn't on google page - When The client search for word Lippia - Then The client verify that results are shown properly \ No newline at end of file