Created
March 27, 2013 17:19
-
-
Save leopic/5256202 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..cd5547f 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=POOSRecommendationData") | |
| + 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..ac01a2e 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=POOSRecommendationData") | |
| + 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/backcountry/POOSRecommendationData.csv b/qa-automation-tests/testdata/retail/csv/PdpTest/backcountry/POOSRecommendationData.csv | |
| new file mode 100644 | |
| index 0000000..f14733e | |
| --- /dev/null | |
| +++ b/qa-automation-tests/testdata/retail/csv/PdpTest/backcountry/POOSRecommendationData.csv | |
| @@ -0,0 +1,2 @@ | |
| +seedUrl1,seedUrl2,seedUrl3,finalUrl | |
| +/capo-nico-bib-short-mens,/capo-nico-jersey-short-sleeve-mens,/capo-sc-12-jersey-short-sleeve-mens,/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 | |
| diff --git a/qa-automation-tests/testdata/retail/csv/PdpTest/competitivecyclist/POOSRecommendationData.csv b/qa-automation-tests/testdata/retail/csv/PdpTest/competitivecyclist/POOSRecommendationData.csv | |
| new file mode 100644 | |
| index 0000000..45cac44 | |
| --- /dev/null | |
| +++ b/qa-automation-tests/testdata/retail/csv/PdpTest/competitivecyclist/POOSRecommendationData.csv | |
| @@ -0,0 +1,2 @@ | |
| +seedUrl1,seedUrl2,seedUrl3,finalUrl | |
| +/capo-nico-bib-short-mens,/capo-nico-jersey-short-sleeve-mens,/capo-sc-12-jersey-short-sleeve-mens,/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