Created
March 27, 2013 17:24
-
-
Save leopic/5256255 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/qa-automation-tests/src/test/java/com/backcountry/tests/retail/pdp/RecommendationsBoxTest.java b/qa-automation-tests/src/test/java/com/backcountry/tests/retail/pdp/RecommendationsBoxTest.java | |
| index 91c976e..ad74716 100644 | |
| --- a/qa-automation-tests/src/test/java/com/backcountry/tests/retail/pdp/RecommendationsBoxTest.java | |
| +++ b/qa-automation-tests/src/test/java/com/backcountry/tests/retail/pdp/RecommendationsBoxTest.java | |
| @@ -19,17 +19,17 @@ import com.backcountry.util.FileDataProvider; | |
| public class RecommendationsBoxTest extends RetailBaseTestCase { | |
| @Test(dataProvider = "getTestData", dataProviderClass = FileDataProvider.class) | |
| - @DataProviderArguments("dataFilePrefix=testdata/retail/%s/PdpTest tableName=POOSProductData") | |
| - public void verifyRecommendationsBox(String productUrl, String productUrl1, String productUrl2, String productUrl3) { | |
| + @DataProviderArguments("dataFilePrefix=testdata/retail/%s/PdpTest tableName=RecommendationData") | |
| + public void verifyRecommendationsBox(String seedUrl1, String seedUrl2, String seedUrl3, String finalUrl) { | |
| // The new RR implementation doesn't recommend products if you haven't | |
| // browsed the site before, so we need to seed the recommendation box | |
| - goToPage(productUrl1); | |
| - goToPage(productUrl2); | |
| - goToPage(productUrl3); | |
| + goToPage(seedUrl1); | |
| + goToPage(seedUrl2); | |
| + goToPage(seedUrl3); | |
| // for now go directly to PDP by url: | |
| - goToPage(productUrl); | |
| + goToPage(finalUrl); | |
| //Verify recommendations box is displayed | |
| RichRelevance richRelevance = withPage().richRelevance(); | |
| diff --git a/qa-automation-tests/src/test/java/com/backcountry/tests/retail/pdp/poos/RecommendationsBoxTest.java b/qa-automation-tests/src/test/java/com/backcountry/tests/retail/pdp/poos/RecommendationsBoxTest.java | |
| index 5e1e62c..eff09fe 100644 | |
| --- a/qa-automation-tests/src/test/java/com/backcountry/tests/retail/pdp/poos/RecommendationsBoxTest.java | |
| +++ b/qa-automation-tests/src/test/java/com/backcountry/tests/retail/pdp/poos/RecommendationsBoxTest.java | |
| @@ -20,17 +20,17 @@ import com.backcountry.util.FileDataProvider; | |
| public class RecommendationsBoxTest extends RetailBaseTestCase { | |
| @Test(dataProvider = "getTestData", dataProviderClass = FileDataProvider.class) | |
| - @DataProviderArguments("dataFilePrefix=testdata/retail/%s/PdpTest tableName=POOSProductData") | |
| - public void verifyRecommendationsBox(String productUrl, String productUrl1, String productUrl2, String productUrl3) { | |
| + @DataProviderArguments("dataFilePrefix=testdata/retail/%s/PdpTest tableName=RecommendationData") | |
| + public void verifyRecommendationsBox(String seedUrl1, String seedUrl2, String seedUrl3, String finalUrl) { | |
| // The new RR implementation doesn't recommend products if you haven't | |
| // browsed the site before, so we need to seed the recommendation box | |
| - goToPage(productUrl1); | |
| - goToPage(productUrl2); | |
| - goToPage(productUrl3); | |
| + goToPage(seedUrl1); | |
| + goToPage(seedUrl2); | |
| + goToPage(seedUrl3); | |
| - // for now go directly to POOS by url: | |
| - goToPage(productUrl); | |
| + // for now go directly to PDP by url: | |
| + goToPage(finalUrl); | |
| //Verify recommendations box is displayed | |
| RichRelevance richRelevance = withPage().richRelevance(); | |
| diff --git a/qa-automation-tests/testdata/retail/csv/PdpTest/backcountry/POOSProductData.csv b/qa-automation-tests/testdata/retail/csv/PdpTest/backcountry/POOSProductData.csv | |
| index debfe56..287c738 100644 | |
| --- a/qa-automation-tests/testdata/retail/csv/PdpTest/backcountry/POOSProductData.csv | |
| +++ b/qa-automation-tests/testdata/retail/csv/PdpTest/backcountry/POOSProductData.csv | |
| @@ -1,2 +1,2 @@ | |
| -productUrl,productUrl1,productUrl2,productUrl3 | |
| -/gore-bike-wear-xenon-so-bib-tight-w-cham-mens-gbw0235,/capo-nico-bib-short-mens,/capo-nico-jersey-short-sleeve-mens,/capo-sc-12-jersey-short-sleeve-mens | |
| +productUrl | |
| +/gore-bike-wear-xenon-so-bib-tight-w-cham-mens-gbw0235 | |
| diff --git a/qa-automation-tests/testdata/retail/csv/PdpTest/competitivecyclist/POOSProductData.csv b/qa-automation-tests/testdata/retail/csv/PdpTest/competitivecyclist/POOSProductData.csv | |
| index 6f42b3b..b24b1e8 100644 | |
| --- a/qa-automation-tests/testdata/retail/csv/PdpTest/competitivecyclist/POOSProductData.csv | |
| +++ b/qa-automation-tests/testdata/retail/csv/PdpTest/competitivecyclist/POOSProductData.csv | |
| @@ -1,2 +1,2 @@ | |
| -productUrl,productUrl1,productUrl2,productUrl3 | |
| -/craft-performance-tour-jersey-short-sleeve-womens,/capo-nico-bib-short-mens,/capo-nico-jersey-short-sleeve-mens,/capo-sc-12-jersey-short-sleeve-mens | |
| +productUrl | |
| +/craft-performance-tour-jersey-short-sleeve-womens |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment