├── .classpath
├── .project
├── .settings
├── org.eclipse.core.resources.prefs
├── org.eclipse.jdt.core.prefs
└── org.eclipse.m2e.core.prefs
├── Configuration
└── config.properties
├── Reports
├── MyStoreTestReport-2022.11.28.06.11.16.html
├── MyStoreTestReport-2022.13.30.05.13.00.html
├── MyStoreTestReport-2022.18.30.12.18.02.html
├── MyStoreTestReport-2022.33.01.05.33.11.html
├── MyStoreTestReport-2022.36.01.05.36.51.html
├── MyStoreTestReport-2022.49.30.05.49.44.html
├── MyStoreTestReport-2022.52.01.05.52.37.html
└── MyStoreTestReport-2022.54.01.05.54.54.html
├── Screenshots
├── VerifyLogin.png
└── verifyAddToWishlistWithoutLogin.png
├── TestCases
└── MyStoreTestCases_V01.xlsx
├── TestData
└── MyStoreTestData.xlsx
├── logs
└── mylog.log
├── pom.xml
├── src
├── main
│ └── resource
│ │ └── log4j2.properties
└── test
│ └── java
│ └── com
│ └── mystore
│ ├── pageobject
│ ├── OrderAddressPage.java
│ ├── OrderConfirmationPage.java
│ ├── OrderPaymentPage.java
│ ├── OrderShippingPage.java
│ ├── OrderSummaryPage.java
│ ├── ProductPage.java
│ ├── SearchResultPage.java
│ ├── accountCreationDetails.java
│ ├── indexPage.java
│ ├── myAccountPage.java
│ └── registeredUserAccount.java
│ ├── testcases
│ ├── BaseClass.java
│ ├── TC_MyAccountPageTest.java
│ ├── TC_MyAccountPageTestDataDrivenTesting.java
│ └── TC_ProductPageTest.java
│ └── utilities
│ ├── ExtentListenerClass.java
│ ├── ReadConfig.java
│ └── ReadExcelFile.java
├── target
├── classes
│ ├── META-INF
│ │ ├── MANIFEST.MF
│ │ └── maven
│ │ │ └── MyStoreV1
│ │ │ └── MyStoreV1
│ │ │ ├── pom.properties
│ │ │ └── pom.xml
│ └── log4j2.properties
├── maven-status
│ └── maven-compiler-plugin
│ │ ├── compile
│ │ └── default-compile
│ │ │ └── inputFiles.lst
│ │ └── testCompile
│ │ └── default-testCompile
│ │ ├── createdFiles.lst
│ │ └── inputFiles.lst
├── surefire-reports
│ ├── Suite
│ │ ├── Test.html
│ │ └── Test.xml
│ ├── TEST-TestSuite.xml
│ ├── TestSuite.txt
│ ├── bullet_point.png
│ ├── collapseall.gif
│ ├── emailable-report.html
│ ├── failed.png
│ ├── index.html
│ ├── jquery.min.js
│ ├── junitreports
│ │ ├── TEST-com.mystore.testcases.TC_MyAccountPageTest.xml
│ │ └── TEST-com.mystore.testcases.TC_ProductPageTest.xml
│ ├── navigator-bullet.png
│ ├── old
│ │ ├── Suite
│ │ │ ├── Test.properties
│ │ │ ├── classes.html
│ │ │ ├── groups.html
│ │ │ ├── index.html
│ │ │ ├── main.html
│ │ │ ├── methods-alphabetical.html
│ │ │ ├── methods-not-run.html
│ │ │ ├── methods.html
│ │ │ ├── reporter-output.html
│ │ │ ├── testng.xml.html
│ │ │ └── toc.html
│ │ └── index.html
│ ├── passed.png
│ ├── skipped.png
│ ├── testng-reports.css
│ ├── testng-reports.js
│ ├── testng-reports1.css
│ ├── testng-reports2.js
│ ├── testng-results.xml
│ └── testng.css
└── test-classes
│ └── com
│ └── mystore
│ ├── pageobject
│ ├── OrderAddressPage.class
│ ├── OrderConfirmationPage.class
│ ├── OrderPaymentPage.class
│ ├── OrderShippingPage.class
│ ├── OrderSummaryPage.class
│ ├── ProductPage.class
│ ├── SearchResultPage.class
│ ├── accountCreationDetails.class
│ ├── indexPage.class
│ ├── myAccountPage.class
│ └── registeredUserAccount.class
│ ├── testcases
│ ├── BaseClass.class
│ ├── TC_MyAccountPageTest.class
│ ├── TC_MyAccountPageTestDataDrivenTesting.class
│ └── TC_ProductPageTest.class
│ └── utilities
│ ├── ExtentListenerClass.class
│ ├── ReadConfig.class
│ └── ReadExcelFile.class
├── test-output
├── Default suite
│ ├── Default test.html
│ ├── Default test.xml
│ └── testng-failed.xml
├── Suite
│ ├── Test.html
│ ├── Test.xml
│ └── testng-failed.xml
├── bullet_point.png
├── collapseall.gif
├── emailable-report.html
├── failed.png
├── index.html
├── jquery.min.js
├── junitreports
│ ├── TEST-com.mystore.testcases.TC_LoginPageTest.xml
│ ├── TEST-com.mystore.testcases.TC_MyAccountPageTest.xml
│ ├── TEST-com.mystore.testcases.TC_MyAccountPageTestDataDrivenTesting.xml
│ └── TEST-com.mystore.testcases.TC_ProductPageTest.xml
├── navigator-bullet.png
├── old
│ ├── Default suite
│ │ ├── Default test.properties
│ │ ├── classes.html
│ │ ├── groups.html
│ │ ├── index.html
│ │ ├── main.html
│ │ ├── methods-alphabetical.html
│ │ ├── methods-not-run.html
│ │ ├── methods.html
│ │ ├── reporter-output.html
│ │ ├── testng.xml.html
│ │ └── toc.html
│ ├── Suite
│ │ ├── Test.properties
│ │ ├── classes.html
│ │ ├── groups.html
│ │ ├── index.html
│ │ ├── main.html
│ │ ├── methods-alphabetical.html
│ │ ├── methods-not-run.html
│ │ ├── methods.html
│ │ ├── reporter-output.html
│ │ ├── testng.xml.html
│ │ └── toc.html
│ └── index.html
├── passed.png
├── skipped.png
├── testng-failed.xml
├── testng-reports.css
├── testng-reports.js
├── testng-reports1.css
├── testng-reports2.js
├── testng-results.xml
└── testng.css
├── testPullCommand.txt
└── testng.xml
/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
--------------------------------------------------------------------------------
/.project:
--------------------------------------------------------------------------------
1 |
2 |
3 | MyStoreV1
4 |
5 |
6 |
7 |
8 |
9 | org.eclipse.jdt.core.javabuilder
10 |
11 |
12 |
13 |
14 | org.eclipse.m2e.core.maven2Builder
15 |
16 |
17 |
18 |
19 |
20 | org.eclipse.jdt.core.javanature
21 | org.eclipse.m2e.core.maven2Nature
22 |
23 |
24 |
--------------------------------------------------------------------------------
/.settings/org.eclipse.core.resources.prefs:
--------------------------------------------------------------------------------
1 | eclipse.preferences.version=1
2 | encoding//src/main/java=UTF-8
3 | encoding//src/test/java=UTF-8
4 | encoding/=UTF-8
5 |
--------------------------------------------------------------------------------
/.settings/org.eclipse.jdt.core.prefs:
--------------------------------------------------------------------------------
1 | eclipse.preferences.version=1
2 | org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
3 | org.eclipse.jdt.core.compiler.codegen.methodParameters=do not generate
4 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7
5 | org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
6 | org.eclipse.jdt.core.compiler.compliance=1.7
7 | org.eclipse.jdt.core.compiler.debug.lineNumber=generate
8 | org.eclipse.jdt.core.compiler.debug.localVariable=generate
9 | org.eclipse.jdt.core.compiler.debug.sourceFile=generate
10 | org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
11 | org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled
12 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
13 | org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
14 | org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=warning
15 | org.eclipse.jdt.core.compiler.release=disabled
16 | org.eclipse.jdt.core.compiler.source=1.7
17 |
--------------------------------------------------------------------------------
/.settings/org.eclipse.m2e.core.prefs:
--------------------------------------------------------------------------------
1 | activeProfiles=
2 | eclipse.preferences.version=1
3 | resolveWorkspaceProjects=true
4 | version=1
5 |
--------------------------------------------------------------------------------
/Configuration/config.properties:
--------------------------------------------------------------------------------
1 | baseUrl=http://automationpractice.com/index.php
2 | browser=chrome
3 | email = cs923@gmail.com
4 | password = cs923
5 | #email = prachi_456@gmail.com
6 | #password = prachi_456
--------------------------------------------------------------------------------
/Reports/MyStoreTestReport-2022.11.28.06.11.16.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 | Extent Listener Report Demo
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
58 |
59 |
206 |
207 |
208 |
209 |
210 |
Started
211 |
May 28, 2022 06:11:16 AM
212 |
213 |
214 |
215 |
216 |
Ended
217 |
May 28, 2022 06:12:18 AM
218 |
219 |
220 |
221 |
222 |
Tests Passed
223 |
3
224 |
225 |
226 |
227 |
228 |
Tests Failed
229 |
0
230 |
231 |
232 |
233 |
278 |
285 |
290 |
291 |
292 |
293 |
294 |
295 | Name Value
296 |
297 |
298 | Machine:
299 | testpc1
300 |
301 |
302 | OS
303 | windows 11
304 |
305 |
306 | browser:
307 | chrome
308 |
309 |
310 | user name:
311 | Prachi
312 |
313 |
314 |
315 |
316 |
317 |
318 |
319 |
346 |
347 |
348 |
349 |
350 |
351 |
--------------------------------------------------------------------------------
/Screenshots/VerifyLogin.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/prachicodestudio/CS_FrameworkSeleniumJava/30b57a35890264dbf2bd8020a5c6697d416d2930/Screenshots/VerifyLogin.png
--------------------------------------------------------------------------------
/Screenshots/verifyAddToWishlistWithoutLogin.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/prachicodestudio/CS_FrameworkSeleniumJava/30b57a35890264dbf2bd8020a5c6697d416d2930/Screenshots/verifyAddToWishlistWithoutLogin.png
--------------------------------------------------------------------------------
/TestCases/MyStoreTestCases_V01.xlsx:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/prachicodestudio/CS_FrameworkSeleniumJava/30b57a35890264dbf2bd8020a5c6697d416d2930/TestCases/MyStoreTestCases_V01.xlsx
--------------------------------------------------------------------------------
/TestData/MyStoreTestData.xlsx:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/prachicodestudio/CS_FrameworkSeleniumJava/30b57a35890264dbf2bd8020a5c6697d416d2930/TestData/MyStoreTestData.xlsx
--------------------------------------------------------------------------------
/pom.xml:
--------------------------------------------------------------------------------
1 |
4 | 4.0.0
5 |
6 | MyStoreV1
7 | MyStoreV1
8 | 0.0.1-SNAPSHOT
9 | jar
10 |
11 | MyStoreV1
12 | http://maven.apache.org
13 |
14 |
15 | UTF-8
16 |
17 |
18 |
19 |
20 |
21 |
22 | org.apache.maven.plugins
23 | maven-compiler-plugin
24 | 3.10.1
25 |
26 |
27 |
28 |
29 |
30 |
31 | org.apache.maven.plugins
32 | maven-surefire-plugin
33 | 3.0.0-M6
34 |
35 |
36 | testng.xml
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 | junit
47 | junit
48 | 3.8.1
49 | test
50 |
51 |
52 |
53 |
54 | io.github.bonigarcia
55 | webdrivermanager
56 | 5.0.3
57 |
58 |
59 |
60 |
61 | org.seleniumhq.selenium
62 | selenium-java
63 | 4.1.1
64 |
65 |
66 |
67 |
68 | org.testng
69 | testng
70 | 7.4.0
71 | test
72 |
73 |
74 |
75 |
76 | com.aventstack
77 | extentreports
78 | 5.0.9
79 |
80 |
81 |
82 |
83 | org.apache.poi
84 | poi
85 | 5.2.2
86 |
87 |
88 |
89 |
90 |
91 | org.apache.poi
92 | poi-ooxml
93 | 5.2.2
94 |
95 |
96 |
97 |
98 | org.apache.logging.log4j
99 | log4j-core
100 | 2.17.2
101 |
102 |
103 |
104 |
105 | org.apache.logging.log4j
106 | log4j-api
107 | 2.17.2
108 |
109 |
110 |
111 |
112 |
--------------------------------------------------------------------------------
/src/main/resource/log4j2.properties:
--------------------------------------------------------------------------------
1 | //name=PropertiesConfig
2 |
3 | property.filename = logs
4 | appenders = console, file
5 |
6 |
7 | appender.console.type = Console
8 | appender.console.name = STDOUT
9 | appender.console.layout.type = PatternLayout
10 | appender.console.layout.pattern = [%-5level] %d{yyyy-MM-dd HH:mm:ss.SSS} [%t] %c{1} - %msg%n
11 |
12 |
13 | appender.file.type = File
14 | appender.file.name = LOGFILE
15 | appender.file.fileName=${filename}/mylog.log
16 | appender.file.layout.type=PatternLayout
17 | appender.file.layout.pattern=[%-5level] %d{yyyy-MM-dd HH:mm:ss.SSS} [%t] %c{1} - %msg%n
18 |
19 |
20 | loggers=file
21 | logger.file.name=MyStoreV1
22 | logger.file.level = debug
23 | logger.file.appenderRefs = file
24 | logger.file.appenderRef.file.ref = LOGFILE
25 |
26 | rootLogger.level = debug
27 | rootLogger.appenderRefs = stdout
28 | rootLogger.appenderRef.stdout.ref = STDOUT
--------------------------------------------------------------------------------
/src/test/java/com/mystore/pageobject/OrderAddressPage.java:
--------------------------------------------------------------------------------
1 | package com.mystore.pageobject;
2 |
3 | import org.openqa.selenium.WebDriver;
4 | import org.openqa.selenium.WebElement;
5 | import org.openqa.selenium.support.FindBy;
6 | import org.openqa.selenium.support.PageFactory;
7 |
8 | public class OrderAddressPage {
9 |
10 | WebDriver ldriver;
11 |
12 | //2. Create constructor
13 | public OrderAddressPage(WebDriver rdriver)
14 | {
15 | ldriver = rdriver;
16 | PageFactory.initElements(rdriver, this);//driver that will be used to lookup the web element
17 |
18 | }
19 |
20 |
21 | //@FindBy(linkText = "Proceed to checkout")
22 | @FindBy(name="processAddress")
23 | WebElement proceedfromAddressPage;
24 |
25 | public void cickOnProceedToCheckout()
26 | {
27 | proceedfromAddressPage.click();
28 | }
29 | }
30 |
--------------------------------------------------------------------------------
/src/test/java/com/mystore/pageobject/OrderConfirmationPage.java:
--------------------------------------------------------------------------------
1 | package com.mystore.pageobject;
2 |
3 | import org.openqa.selenium.WebDriver;
4 | import org.openqa.selenium.WebElement;
5 | import org.openqa.selenium.support.FindBy;
6 | import org.openqa.selenium.support.PageFactory;
7 |
8 | public class OrderConfirmationPage {
9 | WebDriver ldriver;
10 |
11 | //2. Create constructor
12 | public OrderConfirmationPage(WebDriver rdriver)
13 | {
14 | ldriver = rdriver;
15 | PageFactory.initElements(rdriver, this);//driver that will be used to lookup the web element
16 |
17 | }
18 |
19 | @FindBy(xpath = "/html/body/div[1]/div[2]/div/div[3]/div/form/p/button/span")
20 | WebElement confirmOrder;
21 |
22 |
23 | @FindBy(xpath="//div[@id='center_column']/p[@class='alert alert-success']")
24 | WebElement sucessAlert;
25 |
26 | @FindBy(linkText = "Sign out")
27 | WebElement signOut;
28 |
29 | public void clickOnSignOut()
30 | {
31 | signOut.click();
32 | }
33 |
34 | public void cickOnConfirmOrder()
35 | {
36 | confirmOrder.click();
37 | }
38 |
39 | public String getOrderSucessMessage()
40 | {
41 | return(sucessAlert.getText());
42 | }
43 |
44 |
45 | }
46 |
--------------------------------------------------------------------------------
/src/test/java/com/mystore/pageobject/OrderPaymentPage.java:
--------------------------------------------------------------------------------
1 | package com.mystore.pageobject;
2 |
3 | import org.openqa.selenium.WebDriver;
4 | import org.openqa.selenium.WebElement;
5 | import org.openqa.selenium.support.FindBy;
6 | import org.openqa.selenium.support.PageFactory;
7 |
8 | public class OrderPaymentPage {
9 | WebDriver ldriver;
10 |
11 | //2. Create constructor
12 | public OrderPaymentPage(WebDriver rdriver)
13 | {
14 | ldriver = rdriver;
15 | PageFactory.initElements(rdriver, this);//driver that will be used to lookup the web element
16 |
17 | }
18 |
19 |
20 | @FindBy(xpath = "/html/body/div[1]/div[2]/div/div[3]/div/div/div[3]/div[2]/div/p/a")
21 | WebElement payByCheque;
22 |
23 |
24 | @FindBy(className ="bankwire")
25 | WebElement payByBankWire;
26 |
27 | public String getPageTitle()
28 | {
29 | return (ldriver.getCurrentUrl());
30 | }
31 |
32 | public void clickOnPayByCheque()
33 | {
34 | payByCheque.click();
35 | }
36 |
37 | public void clickOnPayByBankwire()
38 | {
39 | payByBankWire.click();
40 | }
41 |
42 |
43 | }
44 |
--------------------------------------------------------------------------------
/src/test/java/com/mystore/pageobject/OrderShippingPage.java:
--------------------------------------------------------------------------------
1 | package com.mystore.pageobject;
2 |
3 | import org.openqa.selenium.WebDriver;
4 | import org.openqa.selenium.WebElement;
5 | import org.openqa.selenium.support.FindBy;
6 | import org.openqa.selenium.support.PageFactory;
7 |
8 | public class OrderShippingPage {
9 |
10 | WebDriver ldriver;
11 |
12 | //2. Create constructor
13 | public OrderShippingPage(WebDriver rdriver)
14 | {
15 | ldriver = rdriver;
16 | PageFactory.initElements(rdriver, this);//driver that will be used to lookup the web element
17 |
18 | }
19 |
20 | @FindBy(id="cgv")
21 | WebElement termOfServices;
22 |
23 |
24 | @FindBy(name = "processCarrier")
25 | WebElement proceedShipping;
26 |
27 |
28 |
29 | public void selectTermsOfServices()
30 | {
31 | termOfServices.click();
32 | }
33 |
34 |
35 | public void cickOnProceedToCheckout()
36 | {
37 | proceedShipping.click();
38 | }
39 | }
40 |
--------------------------------------------------------------------------------
/src/test/java/com/mystore/pageobject/OrderSummaryPage.java:
--------------------------------------------------------------------------------
1 | package com.mystore.pageobject;
2 |
3 | import org.openqa.selenium.WebDriver;
4 | import org.openqa.selenium.WebElement;
5 | import org.openqa.selenium.support.FindBy;
6 | import org.openqa.selenium.support.PageFactory;
7 |
8 | public class OrderSummaryPage {
9 | WebDriver ldriver;
10 |
11 | //2. Create constructor
12 | public OrderSummaryPage(WebDriver rdriver)
13 | {
14 | ldriver = rdriver;
15 | PageFactory.initElements(rdriver, this);//driver that will be used to lookup the web element
16 |
17 | }
18 |
19 |
20 | @FindBy(linkText = "Proceed to checkout")
21 | WebElement proceed;
22 |
23 |
24 |
25 |
26 | public void cickOnProceedToCheckout()
27 | {
28 | proceed.click();
29 | }
30 |
31 |
32 |
33 | }
34 |
--------------------------------------------------------------------------------
/src/test/java/com/mystore/pageobject/ProductPage.java:
--------------------------------------------------------------------------------
1 | package com.mystore.pageobject;
2 |
3 | import org.openqa.selenium.WebDriver;
4 | import org.openqa.selenium.WebElement;
5 | import org.openqa.selenium.interactions.Actions;
6 | import org.openqa.selenium.support.FindBy;
7 | import org.openqa.selenium.support.PageFactory;
8 | import org.openqa.selenium.support.ui.Select;
9 |
10 | public class ProductPage {
11 |
12 | WebDriver ldriver;
13 |
14 | //2. Create constructor
15 | public ProductPage(WebDriver rdriver)
16 | {
17 | ldriver = rdriver;
18 | PageFactory.initElements(rdriver, this);//driver that will be used to lookup the web element
19 |
20 | }
21 |
22 | //Identify the elements present in the login page
23 |
24 | //For new user
25 |
26 | @FindBy(id="quantity_wanted")
27 | WebElement quantityWanted ;
28 |
29 | @FindBy(id="group_1")
30 | WebElement size;
31 |
32 | //button[@name='Submit']
33 | @FindBy(name="Submit")
34 | WebElement addToCart;
35 |
36 | @FindBy(linkText = "Proceed to checkout")
37 | WebElement proceed;
38 |
39 | @FindBy(xpath="//a[contains(.,'Faded Short Sleeve T-shirts')]")
40 | WebElement tshirtProduct;
41 |
42 | @FindBy(xpath="//a[@class='addToWishlist wishlistProd_1']")
43 | WebElement addToWishList;
44 |
45 | @FindBy(xpath="//p[@class='fancybox-error']")
46 | WebElement alertForAddToWishList;
47 | //create actions methods for web elements
48 | public void setQuantity(String qty)
49 | {
50 | quantityWanted.clear();
51 | quantityWanted.sendKeys(qty);
52 | }
53 |
54 | //create actions methods for web elements
55 | public void setSize(String sizeType)
56 | {
57 | Select oSelect=new Select(size);
58 | oSelect.selectByVisibleText(sizeType);
59 | }
60 |
61 | public void clickOnAddToCart()
62 | {
63 | addToCart.click();
64 | }
65 |
66 | public void clickOnProceedToCheckOut()
67 | {
68 | proceed.click();
69 | }
70 |
71 | public void mouseOverOnTshirtProduct()
72 | {
73 | Actions actionobj = new Actions(ldriver);
74 | actionobj.moveToElement(tshirtProduct).build().perform();
75 | }
76 |
77 | public void clickOnAddToWishList()
78 | {
79 | addToWishList.click();
80 | }
81 |
82 | public String getTextOfAlertForWishList()
83 | {
84 | return(alertForAddToWishList.getText());
85 | }
86 | }
87 |
--------------------------------------------------------------------------------
/src/test/java/com/mystore/pageobject/SearchResultPage.java:
--------------------------------------------------------------------------------
1 | package com.mystore.pageobject;
2 |
3 | import org.openqa.selenium.WebDriver;
4 | import org.openqa.selenium.WebElement;
5 | import org.openqa.selenium.support.FindBy;
6 | import org.openqa.selenium.support.PageFactory;
7 |
8 | public class SearchResultPage {
9 |
10 | WebDriver ldriver;
11 |
12 | //2. Create constructor
13 | public SearchResultPage(WebDriver rdriver)
14 | {
15 | ldriver = rdriver;
16 | PageFactory.initElements(rdriver, this);//driver that will be used to lookup the web element
17 |
18 | }
19 |
20 | //Identify the elements present in search result page
21 |
22 |
23 |
24 | @FindBy(xpath="/html[1]/body[1]/div[1]/div[2]/div[1]/div[3]/div[2]/ul[1]/li[1]/div[1]/div[2]/h5[1]/a[1]")
25 | WebElement searchResultProduct ;
26 |
27 | @FindBy(linkText="More")
28 | WebElement more;
29 |
30 | //action methods on web elements of search result page
31 |
32 | public String getSearchResultProductName()
33 | {
34 | return(searchResultProduct.getText());
35 | }
36 |
37 | public void ClickOnMoreLink()
38 | {
39 | more.click();
40 |
41 | }
42 | }
43 |
--------------------------------------------------------------------------------
/src/test/java/com/mystore/pageobject/accountCreationDetails.java:
--------------------------------------------------------------------------------
1 | package com.mystore.pageobject;
2 |
3 | import org.openqa.selenium.WebDriver;
4 | import org.openqa.selenium.WebElement;
5 | import org.openqa.selenium.support.FindBy;
6 | import org.openqa.selenium.support.PageFactory;
7 | import org.openqa.selenium.support.ui.Select;
8 |
9 | public class accountCreationDetails {
10 |
11 | //1. create object of webdriver
12 | WebDriver ldriver;
13 |
14 | //constructor
15 | public accountCreationDetails(WebDriver rdriver)
16 | {
17 | ldriver = rdriver;
18 |
19 |
20 | PageFactory.initElements(rdriver, this);
21 | }
22 |
23 |
24 | //identify webelements
25 | @FindBy(id = "id_gender2") //Title-Mrs
26 | WebElement titleMrs;
27 |
28 | @FindBy(id = "id_gender1") //Title-Mrs
29 | WebElement titleMr;
30 |
31 | @FindBy(id="customer_firstname")
32 | WebElement custfirstName;
33 |
34 | @FindBy(id="customer_lastname")
35 | WebElement custlastName;
36 |
37 | @FindBy(id="passwd")
38 | WebElement password;
39 |
40 | @FindBy(id="firstname")
41 | WebElement addFirstname;
42 |
43 | @FindBy(id="lastname")
44 | WebElement addLastname;
45 |
46 | //address1
47 | @FindBy(id="address1")
48 | WebElement address1;
49 |
50 | @FindBy(id="city")
51 | WebElement city;
52 |
53 | //id_state
54 | @FindBy(id="id_state")
55 | WebElement state;
56 |
57 | @FindBy(id="postcode")
58 | WebElement postcode;
59 |
60 |
61 | @FindBy(id="id_country")
62 | WebElement country;
63 |
64 | //phone_mobile
65 | @FindBy(id="phone_mobile")
66 | WebElement phone_mobile;
67 |
68 | //alias
69 | @FindBy(id="alias")
70 | WebElement alias;
71 |
72 |
73 | @FindBy(id="submitAccount")
74 | WebElement register;
75 | //identify actions to be performed on web elements
76 |
77 | public void selectTitleMrs()
78 | {
79 | titleMrs.click();
80 | }
81 |
82 | public void selectTitleMr()
83 | {
84 | titleMr.click();
85 | }
86 | public void enterCustomerFirstName(String fname)
87 | {
88 | custfirstName.sendKeys(fname);
89 | }
90 |
91 | public void enterCustomerLastName(String lname)
92 | {
93 | custlastName.sendKeys(lname);
94 | }
95 |
96 | public void enterPassword(String pwd)
97 | {
98 | password.sendKeys(pwd);
99 | }
100 |
101 | public void enterAddressFirstName(String fname)
102 | {
103 | addFirstname.clear();
104 |
105 | addFirstname.sendKeys(fname);
106 | }
107 |
108 | public void enterAddressLastName(String lname)
109 | {
110 | addLastname.clear();
111 |
112 | addLastname.sendKeys(lname);
113 | }
114 |
115 | public void enterAddress(String address)
116 | {
117 | address1.sendKeys(address);
118 | }
119 |
120 | public void enterCity(String cityName)
121 | {
122 | city.sendKeys(cityName);
123 | }
124 |
125 | public void selectState(String text)
126 | {
127 | Select obj = new Select(state);
128 | obj.selectByVisibleText(text);
129 | }
130 |
131 | public void enterPostcode(String postcodeData)
132 | {
133 | postcode.sendKeys(postcodeData);
134 | }
135 |
136 | public void selectCountry(String text)
137 | {
138 | Select obj = new Select(country);
139 | obj.selectByVisibleText(text);
140 | }
141 |
142 | public void enterMobilePhone(String mobile)
143 | {
144 | phone_mobile.sendKeys(mobile);
145 | }
146 |
147 | public void enterAlias(String text)
148 | {
149 | alias.clear();
150 | alias.sendKeys(text);
151 | }
152 |
153 | public void clickOnRegister()
154 | {
155 | register.click();
156 | }
157 | }
158 |
--------------------------------------------------------------------------------
/src/test/java/com/mystore/pageobject/indexPage.java:
--------------------------------------------------------------------------------
1 | package com.mystore.pageobject;
2 |
3 | import org.openqa.selenium.WebDriver;
4 | import org.openqa.selenium.WebElement;
5 | import org.openqa.selenium.interactions.Actions;
6 | import org.openqa.selenium.support.FindBy;
7 | import org.openqa.selenium.support.PageFactory;
8 |
9 | public class indexPage {
10 | //1. create object of webdriver
11 | WebDriver ldriver;
12 |
13 | //constructor
14 | public indexPage(WebDriver rdriver)
15 | {
16 | ldriver = rdriver;
17 |
18 |
19 | PageFactory.initElements(rdriver, this);
20 | }
21 |
22 |
23 | //identify webelements
24 | @FindBy(linkText = "Sign in")
25 | WebElement signIn;
26 |
27 | @FindBy(xpath="(//a[text()='T-shirts'])[2]")
28 | WebElement tshirtMenu;
29 |
30 |
31 | //identify action on webelement
32 | public void clickOnSignIn() {
33 | signIn.click();
34 | }
35 |
36 | public String getPageTitle()
37 | {
38 | return(ldriver.getTitle());
39 | }
40 |
41 | public void clickOnTShirtMenu()
42 | {
43 | tshirtMenu.click();
44 | }
45 |
46 | }
47 |
--------------------------------------------------------------------------------
/src/test/java/com/mystore/pageobject/myAccountPage.java:
--------------------------------------------------------------------------------
1 | package com.mystore.pageobject;
2 |
3 | import org.openqa.selenium.WebDriver;
4 | import org.openqa.selenium.WebElement;
5 | import org.openqa.selenium.support.FindBy;
6 | import org.openqa.selenium.support.PageFactory;
7 |
8 | public class myAccountPage {
9 |
10 | //1. create object of webdriver
11 | WebDriver ldriver;
12 |
13 | //constructor
14 | public myAccountPage(WebDriver rdriver)
15 | {
16 | ldriver = rdriver;
17 |
18 |
19 | PageFactory.initElements(rdriver, this);
20 | }
21 |
22 |
23 | //identify webelements
24 |
25 | //create new account
26 | @FindBy(id = "email_create")
27 | WebElement createEmailId;
28 |
29 | @FindBy(id="SubmitCreate")
30 | WebElement SubmitCreate;
31 |
32 |
33 | //Already registered users
34 | @FindBy(id = "email")
35 | WebElement registeredUsersEmail;
36 |
37 | @FindBy(id = "passwd")
38 | WebElement registeredUsersPwd;
39 |
40 | @FindBy(id = "SubmitLogin")
41 | WebElement submitLogin;
42 |
43 |
44 | //identify action on webelement
45 |
46 |
47 |
48 | public void enterCreateEmailAddress(String emailAdd)
49 | {
50 | createEmailId.sendKeys(emailAdd);
51 | }
52 |
53 |
54 | public void clickSubmitCreate()
55 | {
56 | SubmitCreate.click();
57 | }
58 |
59 | //ACTIONS METHODS FOR ALREADY REGISTERED USERS
60 |
61 | public void enterEmailAddress(String emailAdd)
62 | {
63 | registeredUsersEmail.sendKeys(emailAdd);
64 | }
65 |
66 | public void enterPassword(String pwd)
67 | {
68 | registeredUsersPwd.sendKeys(pwd);
69 | }
70 |
71 |
72 | public void clickSignIn()
73 | {
74 | submitLogin.click();
75 | }
76 |
77 | }
78 |
--------------------------------------------------------------------------------
/src/test/java/com/mystore/pageobject/registeredUserAccount.java:
--------------------------------------------------------------------------------
1 | package com.mystore.pageobject;
2 |
3 | import org.openqa.selenium.WebDriver;
4 | import org.openqa.selenium.WebElement;
5 | import org.openqa.selenium.interactions.Actions;
6 | import org.openqa.selenium.support.FindBy;
7 | import org.openqa.selenium.support.PageFactory;
8 |
9 | public class registeredUserAccount {
10 |
11 | //1. create object of webdriver
12 | WebDriver ldriver;
13 |
14 | //constructor
15 | public registeredUserAccount(WebDriver rdriver)
16 | {
17 | ldriver = rdriver;
18 |
19 |
20 | PageFactory.initElements(rdriver, this);
21 | }
22 |
23 |
24 | //identify webelements
25 | @FindBy(xpath = "//a[@title='View my customer account']")
26 | WebElement userName;
27 |
28 | @FindBy(linkText = "Sign out")
29 | WebElement signOut;
30 |
31 | @FindBy(name ="search_query")
32 | WebElement searchBox;
33 |
34 | @FindBy(name ="submit_search")
35 | WebElement submit_search;
36 |
37 | @FindBy(linkText = "Women")
38 | WebElement WomenMenu;
39 |
40 | @FindBy(linkText="T-shirts")
41 | WebElement TShirtMenu;
42 |
43 |
44 |
45 | public void clickOnSignOut()
46 | {
47 | signOut.click();
48 | }
49 |
50 |
51 | public String getUserName()
52 | {
53 | String text = userName.getText();
54 |
55 | return text;
56 | }
57 |
58 |
59 |
60 | public void EnterDataInSearchBox(String searchKey)
61 | {
62 | searchBox.sendKeys(searchKey);
63 | }
64 |
65 | public void ClickOnSearchButton()
66 | {
67 | submit_search.click();
68 |
69 | }
70 |
71 |
72 | public void MouseOverTShirtMenu()
73 | {
74 | Actions actions=new Actions(ldriver);
75 | actions.moveToElement(WomenMenu).moveToElement(TShirtMenu).click().perform();
76 | }
77 |
78 |
79 |
80 |
81 | }
82 |
--------------------------------------------------------------------------------
/src/test/java/com/mystore/testcases/BaseClass.java:
--------------------------------------------------------------------------------
1 | package com.mystore.testcases;
2 |
3 | import java.io.File;
4 | import java.io.IOException;
5 | import java.time.Duration;
6 |
7 | import org.apache.logging.log4j.Logger;
8 | import org.apache.commons.io.FileUtils;
9 | import org.apache.logging.log4j.LogManager;
10 | import org.openqa.selenium.OutputType;
11 | import org.openqa.selenium.TakesScreenshot;
12 | import org.openqa.selenium.WebDriver;
13 | import org.openqa.selenium.chrome.ChromeDriver;
14 | import org.openqa.selenium.edge.EdgeDriver;
15 | import org.openqa.selenium.firefox.FirefoxDriver;
16 | import org.testng.annotations.*;
17 |
18 | import com.mystore.utilities.ReadConfig;
19 | import io.github.bonigarcia.wdm.WebDriverManager;
20 |
21 | public class BaseClass {
22 |
23 | ReadConfig readConfig = new ReadConfig();
24 |
25 | String url = readConfig.getBaseUrl();
26 | String browser = readConfig.getBrowser();
27 |
28 | public String emailAddress = readConfig.getEmail() ;
29 | String password = readConfig.getPassword();
30 |
31 |
32 | public static WebDriver driver;
33 | public static Logger logger;
34 |
35 | @BeforeClass
36 | public void setup()
37 | {
38 |
39 | //launch browser
40 | switch(browser.toLowerCase())
41 | {
42 | case "chrome":
43 | WebDriverManager.chromedriver().setup();
44 | driver = new ChromeDriver();
45 | break;
46 |
47 | case "msedge":
48 | WebDriverManager.edgedriver().setup();
49 | driver = new EdgeDriver();
50 | break;
51 |
52 | case "firefox":
53 | WebDriverManager.firefoxdriver().setup();
54 | driver = new FirefoxDriver();
55 | break;
56 | default:
57 | driver = null;
58 | break;
59 |
60 | }
61 |
62 | //implicit wait of 10 secs
63 | driver.manage().timeouts().implicitlyWait(Duration.ofSeconds(10));
64 |
65 | //for logging
66 | logger = LogManager.getLogger("MyStoreV1");
67 |
68 | //open url
69 | driver.get(url);
70 | logger.info("url opened");
71 |
72 | }
73 |
74 |
75 |
76 | @AfterClass
77 | public void tearDown()
78 | {
79 | driver.close();
80 | driver.quit();
81 | }
82 |
83 |
84 | //user method to capture screen shot
85 | public void captureScreenShot(WebDriver driver,String testName) throws IOException
86 | {
87 | //step1: convert webdriver object to TakesScreenshot interface
88 | TakesScreenshot screenshot = ((TakesScreenshot)driver);
89 |
90 | //step2: call getScreenshotAs method to create image file
91 |
92 | File src = screenshot.getScreenshotAs(OutputType.FILE);
93 |
94 | File dest = new File(System.getProperty("user.dir") + "//Screenshots//" + testName + ".png");
95 |
96 | //step3: copy image file to destination
97 | FileUtils.copyFile(src, dest);
98 | }
99 |
100 |
101 | }
102 |
--------------------------------------------------------------------------------
/src/test/java/com/mystore/testcases/TC_MyAccountPageTest.java:
--------------------------------------------------------------------------------
1 | package com.mystore.testcases;
2 |
3 | import java.io.IOException;
4 |
5 | import org.testng.Assert;
6 | import org.testng.annotations.Test;
7 |
8 | import com.mystore.pageobject.accountCreationDetails;
9 | import com.mystore.pageobject.indexPage;
10 | import com.mystore.pageobject.myAccountPage;
11 | import com.mystore.pageobject.registeredUserAccount;
12 |
13 |
14 | public class TC_MyAccountPageTest extends BaseClass {
15 |
16 |
17 | @Test(enabled=false)
18 | public void verifyRegistrationAndLogin()
19 | {
20 |
21 | logger.info("***************TestCase Verify Registration and Login starts*****************");
22 |
23 |
24 | indexPage pg = new indexPage(driver);
25 |
26 | pg.clickOnSignIn();
27 | logger.info("Clicked on sign in link");
28 |
29 | myAccountPage myAcpg = new myAccountPage(driver);
30 | myAcpg.enterCreateEmailAddress("cs923@gmail.com");
31 | logger.info("Email address entered in create account section.");
32 |
33 | myAcpg.clickSubmitCreate();
34 |
35 | logger.info("clicked on create an account button");
36 |
37 | accountCreationDetails accCreationPg = new accountCreationDetails(driver);
38 |
39 | accCreationPg.selectTitleMrs();
40 | accCreationPg.enterCustomerFirstName("Prachi");
41 | accCreationPg.enterCustomerLastName("Gupta");
42 | accCreationPg.enterPassword("cs923");
43 | accCreationPg.enterAddressFirstName("Prachi");
44 | accCreationPg.enterAddressLastName("Gupta");
45 | accCreationPg.enterAddress("18/8 worli road");
46 |
47 | accCreationPg.enterCity("Mumbai");
48 | accCreationPg.selectState("Alabama");
49 |
50 | accCreationPg.enterPostcode("00000");
51 | accCreationPg.selectCountry("United States");
52 | accCreationPg.enterMobilePhone("9891778192");
53 | accCreationPg.enterAlias("Home");
54 |
55 | logger.info("entered user details on account creation page.");
56 |
57 | accCreationPg.clickOnRegister();
58 | logger.info("clicked on Register button");
59 |
60 | registeredUserAccount regUser = new registeredUserAccount(driver);
61 | String userName = regUser.getUserName();
62 |
63 | Assert.assertEquals("Prachi Gupta", userName);
64 |
65 | logger.info("***************TestCase Verify Registration and Login ends*****************");
66 |
67 | }
68 |
69 | @Test
70 | public void VerifyLogin() throws IOException
71 | {
72 |
73 | logger.info("***************TestCase Verify Login starts*****************");
74 |
75 | indexPage pg = new indexPage(driver);
76 |
77 | pg.clickOnSignIn();
78 | logger.info("Clicked on sign in link");
79 |
80 | myAccountPage myAcpg = new myAccountPage(driver);
81 |
82 | myAcpg.enterEmailAddress("cs923@gmail.com");
83 | logger.info("Entered email address");
84 |
85 | myAcpg.enterPassword("cs923");
86 | logger.info("Entered password");
87 |
88 | myAcpg.clickSignIn();
89 | logger.info("Clicked on sign in link..");
90 |
91 |
92 | registeredUserAccount regUser = new registeredUserAccount(driver);
93 | String userName = regUser.getUserName();
94 |
95 |
96 | if(userName.equals("Prachi Gupta"))
97 | {
98 | logger.info("VerifyLogin - Passed");
99 | regUser.clickOnSignOut();
100 | Assert.assertTrue(true);
101 | }
102 | else
103 | {
104 | logger.info("VerifyLogin - Failed");
105 | captureScreenShot(driver,"VerifyLogin");
106 | Assert.assertTrue(false);
107 |
108 | }
109 |
110 | logger.info("***************TestCase Verify Login ends*****************");
111 |
112 |
113 | }
114 |
115 |
116 | @Test
117 | public void VerifySignOut() throws IOException
118 | {
119 |
120 | logger.info("***************TestCase Verify Sign out starts*****************");
121 |
122 | indexPage pg = new indexPage(driver);
123 |
124 | pg.clickOnSignIn();
125 | logger.info("Clicked on sign in link");
126 |
127 | myAccountPage myAcpg = new myAccountPage(driver);
128 |
129 | myAcpg.enterEmailAddress("cs923@gmail.com");
130 | logger.info("Entered email address");
131 |
132 | myAcpg.enterPassword("cs923");
133 | logger.info("Entered password");
134 |
135 | myAcpg.clickSignIn();
136 | logger.info("Clicked on sign in link..");
137 |
138 |
139 | registeredUserAccount regUser = new registeredUserAccount(driver);
140 | regUser.clickOnSignOut();
141 |
142 | if(pg.getPageTitle().equals("Login - My Store"))
143 | {
144 | logger.info("VerifySignOut - Passed");
145 | Assert.assertTrue(true);
146 | }
147 |
148 | else
149 | {
150 | logger.info("VerifySignOut - Failed");
151 | captureScreenShot(driver,"VerifySignOut");
152 | Assert.assertTrue(false);
153 | }
154 |
155 |
156 | logger.info("***************TestCase Verify Sign out ends*****************");
157 |
158 | }
159 |
160 |
161 | }
162 |
--------------------------------------------------------------------------------
/src/test/java/com/mystore/testcases/TC_MyAccountPageTestDataDrivenTesting.java:
--------------------------------------------------------------------------------
1 | package com.mystore.testcases;
2 |
3 | import java.io.IOException;
4 |
5 | import org.testng.Assert;
6 | import org.testng.annotations.DataProvider;
7 | import org.testng.annotations.Test;
8 |
9 | import com.mystore.pageobject.accountCreationDetails;
10 | import com.mystore.pageobject.indexPage;
11 | import com.mystore.pageobject.myAccountPage;
12 | import com.mystore.pageobject.registeredUserAccount;
13 | import com.mystore.utilities.ReadExcelFile;
14 |
15 |
16 | public class TC_MyAccountPageTestDataDrivenTesting extends BaseClass {
17 |
18 |
19 | @Test(enabled=false)
20 | public void verifyRegistrationAndLogin()
21 | {
22 |
23 | logger.info("***************TestCase Verify Registration and Login starts*****************");
24 |
25 |
26 | indexPage pg = new indexPage(driver);
27 |
28 | pg.clickOnSignIn();
29 | logger.info("Clicked on sign in link");
30 |
31 | myAccountPage myAcpg = new myAccountPage(driver);
32 | myAcpg.enterCreateEmailAddress("cs923@gmail.com");
33 | logger.info("Email address entered in create account section.");
34 |
35 | myAcpg.clickSubmitCreate();
36 |
37 | logger.info("clicked on create an account button");
38 |
39 | accountCreationDetails accCreationPg = new accountCreationDetails(driver);
40 |
41 | accCreationPg.selectTitleMrs();
42 | accCreationPg.enterCustomerFirstName("Prachi");
43 | accCreationPg.enterCustomerLastName("Gupta");
44 | accCreationPg.enterPassword("cs923");
45 | accCreationPg.enterAddressFirstName("Prachi");
46 | accCreationPg.enterAddressLastName("Gupta");
47 | accCreationPg.enterAddress("18/8 worli road");
48 |
49 | accCreationPg.enterCity("Mumbai");
50 | accCreationPg.selectState("Alabama");
51 |
52 | accCreationPg.enterPostcode("00000");
53 | accCreationPg.selectCountry("United States");
54 | accCreationPg.enterMobilePhone("9891778192");
55 | accCreationPg.enterAlias("Home");
56 |
57 | logger.info("entered user details on account creation page.");
58 |
59 | accCreationPg.clickOnRegister();
60 | logger.info("clicked on Register button");
61 |
62 | registeredUserAccount regUser = new registeredUserAccount(driver);
63 | String userName = regUser.getUserName();
64 |
65 | Assert.assertEquals("Prachi Gupta", userName);
66 |
67 | logger.info("***************TestCase Verify Registration and Login ends*****************");
68 |
69 | }
70 |
71 | @Test(dataProvider = "LoginDataProvider")
72 |
73 | public void VerifyLogin(String userEmail, String userPwd, String expectedUsername) throws IOException
74 | {
75 |
76 | logger.info("***************TestCase VerifyLogin starts*****************");
77 |
78 |
79 | indexPage pg = new indexPage(driver);
80 |
81 | pg.clickOnSignIn();
82 | logger.info("Clicked on sign in link");
83 |
84 | myAccountPage myAcpg = new myAccountPage(driver);
85 |
86 | myAcpg.enterEmailAddress(userEmail);
87 | logger.info("Entered email address");
88 |
89 | myAcpg.enterPassword(userPwd);
90 | logger.info("Entered password");
91 |
92 | myAcpg.clickSignIn();
93 | logger.info("Clicked on sign in link..");
94 |
95 | registeredUserAccount regUser = new registeredUserAccount(driver);
96 | String userName = regUser.getUserName();
97 |
98 |
99 | if(userName.equals(expectedUsername))
100 | {
101 | logger.info("VerifyLogin - Passed");
102 | Assert.assertTrue(true);
103 |
104 | regUser.clickOnSignOut();
105 |
106 | }
107 | else
108 | {
109 | logger.info("VerifyLogin - Failed");
110 | captureScreenShot(driver,"VerifyLogin");
111 | Assert.assertTrue(false);
112 |
113 | }
114 |
115 |
116 | logger.info("***************TestCase Verify login ends*****************");
117 |
118 |
119 | }
120 |
121 | @DataProvider(name = "LoginDataProvider")
122 | public String[][] LoginDataProvider()
123 | {
124 | //System.out.println(System.getProperty("user.dir"));
125 | String fileName = System.getProperty("user.dir") + "\\TestData\\MyStoreTestData.xlsx";
126 |
127 |
128 | int ttlRows = ReadExcelFile.getRowCount(fileName, "LoginTestData");
129 | int ttlColumns = ReadExcelFile.getColCount(fileName, "LoginTestData");
130 |
131 |
132 | String data[][]=new String[ttlRows-1][ttlColumns];
133 |
134 | for(int i=1;i
4 | 4.0.0
5 |
6 | MyStoreV1
7 | MyStoreV1
8 | 0.0.1-SNAPSHOT
9 | jar
10 |
11 | MyStoreV1
12 | http://maven.apache.org
13 |
14 |
15 | UTF-8
16 |
17 |
18 |
19 |
20 |
21 |
22 | org.apache.maven.plugins
23 | maven-compiler-plugin
24 | 3.10.1
25 |
26 |
27 |
28 |
29 |
30 |
31 | org.apache.maven.plugins
32 | maven-surefire-plugin
33 | 3.0.0-M6
34 |
35 |
36 | testng.xml
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 | junit
47 | junit
48 | 3.8.1
49 | test
50 |
51 |
52 |
53 |
54 | io.github.bonigarcia
55 | webdrivermanager
56 | 5.0.3
57 |
58 |
59 |
60 |
61 | org.seleniumhq.selenium
62 | selenium-java
63 | 4.1.1
64 |
65 |
66 |
67 |
68 | org.testng
69 | testng
70 | 7.4.0
71 | test
72 |
73 |
74 |
75 |
76 | com.aventstack
77 | extentreports
78 | 5.0.9
79 |
80 |
81 |
82 |
83 | org.apache.poi
84 | poi
85 | 5.2.2
86 |
87 |
88 |
89 |
90 |
91 | org.apache.poi
92 | poi-ooxml
93 | 5.2.2
94 |
95 |
96 |
97 |
98 | org.apache.logging.log4j
99 | log4j-core
100 | 2.17.2
101 |
102 |
103 |
104 |
105 | org.apache.logging.log4j
106 | log4j-api
107 | 2.17.2
108 |
109 |
110 |
111 |
112 |
--------------------------------------------------------------------------------
/target/classes/log4j2.properties:
--------------------------------------------------------------------------------
1 | //name=PropertiesConfig
2 |
3 | property.filename = logs
4 | appenders = console, file
5 |
6 |
7 | appender.console.type = Console
8 | appender.console.name = STDOUT
9 | appender.console.layout.type = PatternLayout
10 | appender.console.layout.pattern = [%-5level] %d{yyyy-MM-dd HH:mm:ss.SSS} [%t] %c{1} - %msg%n
11 |
12 |
13 | appender.file.type = File
14 | appender.file.name = LOGFILE
15 | appender.file.fileName=${filename}/mylog.log
16 | appender.file.layout.type=PatternLayout
17 | appender.file.layout.pattern=[%-5level] %d{yyyy-MM-dd HH:mm:ss.SSS} [%t] %c{1} - %msg%n
18 |
19 |
20 | loggers=file
21 | logger.file.name=MyStoreV1
22 | logger.file.level = debug
23 | logger.file.appenderRefs = file
24 | logger.file.appenderRef.file.ref = LOGFILE
25 |
26 | rootLogger.level = debug
27 | rootLogger.appenderRefs = stdout
28 | rootLogger.appenderRef.stdout.ref = STDOUT
--------------------------------------------------------------------------------
/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/prachicodestudio/CS_FrameworkSeleniumJava/30b57a35890264dbf2bd8020a5c6697d416d2930/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst
--------------------------------------------------------------------------------
/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/createdFiles.lst:
--------------------------------------------------------------------------------
1 | com\mystore\pageobject\OrderPaymentPage.class
2 | com\mystore\utilities\ReadConfig.class
3 | com\mystore\testcases\TC_ProductPageTest.class
4 | com\mystore\pageobject\OrderConfirmationPage.class
5 | com\mystore\testcases\BaseClass.class
6 | com\mystore\pageobject\indexPage.class
7 | com\mystore\pageobject\SearchResultPage.class
8 | com\mystore\pageobject\accountCreationDetails.class
9 | com\mystore\pageobject\OrderAddressPage.class
10 | com\mystore\utilities\ExtentListenerClass.class
11 | com\mystore\utilities\ReadExcelFile.class
12 | com\mystore\pageobject\registeredUserAccount.class
13 | com\mystore\pageobject\OrderSummaryPage.class
14 | com\mystore\testcases\TC_MyAccountPageTestDataDrivenTesting.class
15 | com\mystore\testcases\TC_MyAccountPageTest.class
16 | com\mystore\pageobject\ProductPage.class
17 | com\mystore\pageobject\myAccountPage.class
18 | com\mystore\pageobject\OrderShippingPage.class
19 |
--------------------------------------------------------------------------------
/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst:
--------------------------------------------------------------------------------
1 | C:\Users\prach\Desktop\CS_AutomationFramework\MyStoreV1\src\test\java\com\mystore\pageobject\OrderAddressPage.java
2 | C:\Users\prach\Desktop\CS_AutomationFramework\MyStoreV1\src\test\java\com\mystore\pageobject\registeredUserAccount.java
3 | C:\Users\prach\Desktop\CS_AutomationFramework\MyStoreV1\src\test\java\com\mystore\pageobject\SearchResultPage.java
4 | C:\Users\prach\Desktop\CS_AutomationFramework\MyStoreV1\src\test\java\com\mystore\testcases\BaseClass.java
5 | C:\Users\prach\Desktop\CS_AutomationFramework\MyStoreV1\src\test\java\com\mystore\utilities\ReadConfig.java
6 | C:\Users\prach\Desktop\CS_AutomationFramework\MyStoreV1\src\test\java\com\mystore\pageobject\OrderPaymentPage.java
7 | C:\Users\prach\Desktop\CS_AutomationFramework\MyStoreV1\src\test\java\com\mystore\testcases\TC_MyAccountPageTest.java
8 | C:\Users\prach\Desktop\CS_AutomationFramework\MyStoreV1\src\test\java\com\mystore\pageobject\indexPage.java
9 | C:\Users\prach\Desktop\CS_AutomationFramework\MyStoreV1\src\test\java\com\mystore\pageobject\OrderShippingPage.java
10 | C:\Users\prach\Desktop\CS_AutomationFramework\MyStoreV1\src\test\java\com\mystore\pageobject\myAccountPage.java
11 | C:\Users\prach\Desktop\CS_AutomationFramework\MyStoreV1\src\test\java\com\mystore\pageobject\OrderSummaryPage.java
12 | C:\Users\prach\Desktop\CS_AutomationFramework\MyStoreV1\src\test\java\com\mystore\testcases\TC_MyAccountPageTestDataDrivenTesting.java
13 | C:\Users\prach\Desktop\CS_AutomationFramework\MyStoreV1\src\test\java\com\mystore\pageobject\accountCreationDetails.java
14 | C:\Users\prach\Desktop\CS_AutomationFramework\MyStoreV1\src\test\java\com\mystore\pageobject\ProductPage.java
15 | C:\Users\prach\Desktop\CS_AutomationFramework\MyStoreV1\src\test\java\com\mystore\testcases\TC_ProductPageTest.java
16 | C:\Users\prach\Desktop\CS_AutomationFramework\MyStoreV1\src\test\java\com\mystore\pageobject\OrderConfirmationPage.java
17 | C:\Users\prach\Desktop\CS_AutomationFramework\MyStoreV1\src\test\java\com\mystore\utilities\ReadExcelFile.java
18 | C:\Users\prach\Desktop\CS_AutomationFramework\MyStoreV1\src\test\java\com\mystore\utilities\ExtentListenerClass.java
19 |
--------------------------------------------------------------------------------
/target/surefire-reports/Suite/Test.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | TestNG: Test
4 |
5 |
6 |
7 |
11 |
53 |
54 |
55 |
56 | Test
57 |
58 | Tests passed/Failed/Skipped: 5/0/0
59 |
60 | Started on: Wed Jun 01 17:54:54 IST 2022
61 |
62 | Total time: 189 seconds (189116 ms)
63 |
64 | Included groups:
65 |
66 | Excluded groups:
67 |
68 |
69 | (Hover the method name to see the test class name)
70 |
71 | PASSED TESTS
72 | Test method
73 | Exception
74 | Time (seconds)
75 | Instance
76 |
77 |
78 | VerifySearchProduct Test class: com.mystore.testcases.TC_ProductPageTest
79 |
80 | 19
81 | com.mystore.testcases.TC_ProductPageTest@41e36e46
82 |
83 | VerifyLogin Test class: com.mystore.testcases.TC_MyAccountPageTest
84 |
85 | 6
86 | com.mystore.testcases.TC_MyAccountPageTest@1817d444
87 |
88 | VerifyBuyProduct Test class: com.mystore.testcases.TC_ProductPageTest
89 |
90 | 35
91 | com.mystore.testcases.TC_ProductPageTest@41e36e46
92 |
93 | verifyAddToWishlistWithoutLogin Test class: com.mystore.testcases.TC_ProductPageTest
94 |
95 | 5
96 | com.mystore.testcases.TC_ProductPageTest@41e36e46
97 |
98 | VerifySignOut Test class: com.mystore.testcases.TC_MyAccountPageTest
99 |
100 | 7
101 | com.mystore.testcases.TC_MyAccountPageTest@1817d444
102 |
103 |
104 |
--------------------------------------------------------------------------------
/target/surefire-reports/Suite/Test.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/target/surefire-reports/TestSuite.txt:
--------------------------------------------------------------------------------
1 | -------------------------------------------------------------------------------
2 | Test set: TestSuite
3 | -------------------------------------------------------------------------------
4 | Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 189.713 s - in TestSuite
5 |
--------------------------------------------------------------------------------
/target/surefire-reports/bullet_point.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/prachicodestudio/CS_FrameworkSeleniumJava/30b57a35890264dbf2bd8020a5c6697d416d2930/target/surefire-reports/bullet_point.png
--------------------------------------------------------------------------------
/target/surefire-reports/collapseall.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/prachicodestudio/CS_FrameworkSeleniumJava/30b57a35890264dbf2bd8020a5c6697d416d2930/target/surefire-reports/collapseall.gif
--------------------------------------------------------------------------------
/target/surefire-reports/emailable-report.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | TestNG Report
6 |
7 |
8 |
9 |
10 | Test # Passed # Skipped # Retried # Failed Time (ms) Included Groups Excluded Groups
11 | Suite
12 | Test 5 0 0 0 189,116
13 |
14 |
16 | Test com.mystore.testcases.TC_MyAccountPageTest#VerifyLogin back to summary
17 | com.mystore.testcases.TC_MyAccountPageTest#VerifySignOut back to summary
18 | com.mystore.testcases.TC_ProductPageTest#VerifyBuyProduct back to summary
19 | com.mystore.testcases.TC_ProductPageTest#VerifySearchProduct back to summary
20 | com.mystore.testcases.TC_ProductPageTest#verifyAddToWishlistWithoutLogin back to summary
21 |
22 |
23 |
--------------------------------------------------------------------------------
/target/surefire-reports/failed.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/prachicodestudio/CS_FrameworkSeleniumJava/30b57a35890264dbf2bd8020a5c6697d416d2930/target/surefire-reports/failed.png
--------------------------------------------------------------------------------
/target/surefire-reports/junitreports/TEST-com.mystore.testcases.TC_MyAccountPageTest.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/target/surefire-reports/junitreports/TEST-com.mystore.testcases.TC_ProductPageTest.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/target/surefire-reports/navigator-bullet.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/prachicodestudio/CS_FrameworkSeleniumJava/30b57a35890264dbf2bd8020a5c6697d416d2930/target/surefire-reports/navigator-bullet.png
--------------------------------------------------------------------------------
/target/surefire-reports/old/Suite/Test.properties:
--------------------------------------------------------------------------------
1 | [SuiteResult context=Test]
--------------------------------------------------------------------------------
/target/surefire-reports/old/Suite/classes.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | Class name
4 | Method name
5 | Groups
6 |
7 | com.mystore.testcases.TC_ProductPageTest
8 |
9 |
10 | @Test
11 |
12 |
13 |
14 | verifyAddToWishlistWithoutLogin
15 |
16 |
17 |
18 | VerifySearchProduct
19 |
20 |
21 |
22 | VerifyBuyProduct
23 |
24 |
25 | @BeforeClass
26 |
27 |
28 |
29 | setup
30 |
31 |
32 | @BeforeMethod
33 |
34 |
35 | @AfterMethod
36 |
37 |
38 | @AfterClass
39 |
40 |
41 |
42 | tearDown
43 |
44 |
45 | com.mystore.testcases.TC_MyAccountPageTest
46 |
47 |
48 | @Test
49 |
50 |
51 |
52 | verifyRegistrationAndLogin
53 |
54 |
55 |
56 | VerifyLogin
57 |
58 |
59 |
60 | VerifySignOut
61 |
62 |
63 | @BeforeClass
64 |
65 |
66 |
67 | setup
68 |
69 |
70 | @BeforeMethod
71 |
72 |
73 | @AfterMethod
74 |
75 |
76 | @AfterClass
77 |
78 |
79 |
80 | tearDown
81 |
82 |
83 |
--------------------------------------------------------------------------------
/target/surefire-reports/old/Suite/groups.html:
--------------------------------------------------------------------------------
1 | Groups used for this test run
--------------------------------------------------------------------------------
/target/surefire-reports/old/Suite/index.html:
--------------------------------------------------------------------------------
1 | Results for Suite
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/target/surefire-reports/old/Suite/main.html:
--------------------------------------------------------------------------------
1 | Results for Suite
2 | Select a result on the left-hand pane.
3 |
--------------------------------------------------------------------------------
/target/surefire-reports/old/Suite/methods-alphabetical.html:
--------------------------------------------------------------------------------
1 | Methods run, sorted chronologically >> means before, << means after
Suite
(Hover the method name to see the test class name)
2 |
3 | Time Delta (ms) Suite configuration Test configuration Class configuration Groups configuration Method configuration Test method Thread Instances
4 | 22/06/01 17:57:03 0 VerifyBuyProduct
5 | main@1732238286
6 | 22/06/01 17:55:02 -120832 VerifyLogin
7 | main@1732238286
8 | 22/06/01 17:57:38 35517 VerifySearchProduct
9 | main@1732238286
10 | 22/06/01 17:55:09 -114018 VerifySignOut
11 | main@1732238286
12 | 22/06/01 17:54:54 -128582 >>setup
13 | main@1732238286
14 | 22/06/01 17:55:16 -106575 >>setup
15 | main@1732238286
16 | 22/06/01 17:58:03 60137 <<tearDown
17 | main@1732238286
18 | 22/06/01 17:55:16 -106692 <<tearDown
19 | main@1732238286
20 | 22/06/01 17:57:58 54697 verifyAddToWishlistWithoutLogin
21 | main@1732238286
22 |
23 |
--------------------------------------------------------------------------------
/target/surefire-reports/old/Suite/methods-not-run.html:
--------------------------------------------------------------------------------
1 | Methods that were not run
2 | com.mystore.testcases.TC_MyAccountPageTest.verifyRegistrationAndLogin
3 |
--------------------------------------------------------------------------------
/target/surefire-reports/old/Suite/methods.html:
--------------------------------------------------------------------------------
1 | Methods run, sorted chronologically >> means before, << means after
Suite
(Hover the method name to see the test class name)
2 |
3 | Time Delta (ms) Suite configuration Test configuration Class configuration Groups configuration Method configuration Test method Thread Instances
4 | 22/06/01 17:54:54 0 >>setup
5 | main@1732238286
6 | 22/06/01 17:57:38 164099 VerifySearchProduct
7 | main@1732238286
8 | 22/06/01 17:55:02 7750 VerifyLogin
9 | main@1732238286
10 | 22/06/01 17:58:03 188719 <<tearDown
11 | main@1732238286
12 | 22/06/01 17:57:03 128582 VerifyBuyProduct
13 | main@1732238286
14 | 22/06/01 17:57:58 183279 verifyAddToWishlistWithoutLogin
15 | main@1732238286
16 | 22/06/01 17:55:09 14564 VerifySignOut
17 | main@1732238286
18 | 22/06/01 17:55:16 21890 <<tearDown
19 | main@1732238286
20 | 22/06/01 17:55:16 22007 >>setup
21 | main@1732238286
22 |
23 |
--------------------------------------------------------------------------------
/target/surefire-reports/old/Suite/reporter-output.html:
--------------------------------------------------------------------------------
1 | Reporter output
--------------------------------------------------------------------------------
/target/surefire-reports/old/Suite/testng.xml.html:
--------------------------------------------------------------------------------
1 | testng.xml for Suite <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE suite SYSTEM "https://testng.org/testng-1.0.dtd">
<suite name="Suite" guice-stage="DEVELOPMENT" verbose="0">
<listeners>
<listener class-name="com.mystore.utilities.ExtentListenerClass"/>
</listeners>
<test thread-count="5" name="Test" verbose="0">
<classes>
<class name="com.mystore.testcases.TC_MyAccountPageTest"/>
<class name="com.mystore.testcases.TC_ProductPageTest"/>
</classes>
</test> <!-- Test -->
</suite> <!-- Suite -->
--------------------------------------------------------------------------------
/target/surefire-reports/old/Suite/toc.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | Results for Suite
4 |
5 |
6 |
7 |
8 | Results forSuite
9 |
23 |
30 |
--------------------------------------------------------------------------------
/target/surefire-reports/old/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Test results
6 | Suite Passed Failed Skipped testng.xml
7 | Total 5 0 0
8 | Suite
9 | 5 0 0 Link
10 |
--------------------------------------------------------------------------------
/target/surefire-reports/passed.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/prachicodestudio/CS_FrameworkSeleniumJava/30b57a35890264dbf2bd8020a5c6697d416d2930/target/surefire-reports/passed.png
--------------------------------------------------------------------------------
/target/surefire-reports/skipped.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/prachicodestudio/CS_FrameworkSeleniumJava/30b57a35890264dbf2bd8020a5c6697d416d2930/target/surefire-reports/skipped.png
--------------------------------------------------------------------------------
/target/surefire-reports/testng-reports.css:
--------------------------------------------------------------------------------
1 | body {
2 | margin: 0 0 5px 5px;
3 | }
4 |
5 | ul {
6 | margin: 0;
7 | }
8 |
9 | li {
10 | list-style-type: none;
11 | }
12 |
13 | a {
14 | text-decoration: none;
15 | }
16 |
17 | a:hover {
18 | text-decoration: underline;
19 | }
20 |
21 | .navigator-selected {
22 | background: #ffa500;
23 | }
24 |
25 | .wrapper {
26 | position: absolute;
27 | top: 60px;
28 | bottom: 0;
29 | left: 400px;
30 | right: 0;
31 | overflow: auto;
32 | }
33 |
34 | .navigator-root {
35 | position: absolute;
36 | top: 60px;
37 | bottom: 0;
38 | left: 0;
39 | width: 400px;
40 | overflow-y: auto;
41 | }
42 |
43 | .suite {
44 | margin: 0 10px 10px 0;
45 | background-color: #fff8dc;
46 | }
47 |
48 | .suite-name {
49 | padding-left: 10px;
50 | font-size: 25px;
51 | font-family: Times, sans-serif;
52 | }
53 |
54 | .main-panel-header {
55 | padding: 5px;
56 | background-color: #9FB4D9; /*afeeee*/;
57 | font-family: monospace;
58 | font-size: 18px;
59 | }
60 |
61 | .main-panel-content {
62 | padding: 5px;
63 | margin-bottom: 10px;
64 | background-color: #DEE8FC; /*d0ffff*/;
65 | }
66 |
67 | .rounded-window {
68 | border-radius: 10px;
69 | border-style: solid;
70 | border-width: 1px;
71 | }
72 |
73 | .rounded-window-top {
74 | border-top-right-radius: 10px 10px;
75 | border-top-left-radius: 10px 10px;
76 | border-style: solid;
77 | border-width: 1px;
78 | overflow: auto;
79 | }
80 |
81 | .light-rounded-window-top {
82 | border-top-right-radius: 10px 10px;
83 | border-top-left-radius: 10px 10px;
84 | }
85 |
86 | .rounded-window-bottom {
87 | border-style: solid;
88 | border-width: 0 1px 1px 1px;
89 | border-bottom-right-radius: 10px 10px;
90 | border-bottom-left-radius: 10px 10px;
91 | overflow: auto;
92 | }
93 |
94 | .method-name {
95 | font-size: 12px;
96 | font-family: monospace;
97 | }
98 |
99 | .method-content {
100 | border-style: solid;
101 | border-width: 0 0 1px 0;
102 | margin-bottom: 10px;
103 | padding-bottom: 5px;
104 | width: 80%;
105 | }
106 |
107 | .parameters {
108 | font-size: 14px;
109 | font-family: monospace;
110 | }
111 |
112 | .stack-trace {
113 | white-space: pre;
114 | font-family: monospace;
115 | font-size: 12px;
116 | font-weight: bold;
117 | margin-top: 0;
118 | margin-left: 20px;
119 | }
120 |
121 | .testng-xml {
122 | font-family: monospace;
123 | }
124 |
125 | .method-list-content {
126 | margin-left: 10px;
127 | }
128 |
129 | .navigator-suite-content {
130 | margin-left: 10px;
131 | font: 12px 'Lucida Grande';
132 | }
133 |
134 | .suite-section-title {
135 | margin-top: 10px;
136 | width: 80%;
137 | border-style: solid;
138 | border-width: 1px 0 0 0;
139 | font-family: Times, sans-serif;
140 | font-size: 18px;
141 | font-weight: bold;
142 | }
143 |
144 | .suite-section-content {
145 | list-style-image: url(bullet_point.png);
146 | }
147 |
148 | .top-banner-root {
149 | position: absolute;
150 | top: 0;
151 | height: 45px;
152 | left: 0;
153 | right: 0;
154 | padding: 5px;
155 | margin: 0 0 5px 0;
156 | background-color: #0066ff;
157 | font-family: Times, sans-serif;
158 | color: #fff;
159 | text-align: center;
160 | }
161 | .button{
162 | position: absolute;
163 | margin-left:500px;
164 | margin-top:8px;
165 | background-color: white;
166 | color:#0066ff;
167 | font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
168 | font-weight:bold;
169 | border-color:#0066ff ;
170 | border-radius:25px;
171 | cursor: pointer;
172 | height:30px;
173 | width:150px;
174 | outline:none;
175 |
176 | }
177 |
178 | .top-banner-title-font {
179 | font-size: 25px;
180 | }
181 |
182 | .test-name {
183 | font-family: 'Lucida Grande', sans-serif;
184 | font-size: 16px;
185 | }
186 |
187 | .suite-icon {
188 | padding: 5px;
189 | float: right;
190 | height: 20px;
191 | }
192 |
193 | .test-group {
194 | font: 20px 'Lucida Grande';
195 | margin: 5px 5px 10px 5px;
196 | border-width: 0 0 1px 0;
197 | border-style: solid;
198 | padding: 5px;
199 | }
200 |
201 | .test-group-name {
202 | font-weight: bold;
203 | }
204 |
205 | .method-in-group {
206 | font-size: 16px;
207 | margin-left: 80px;
208 | }
209 |
210 | table.google-visualization-table-table {
211 | width: 100%;
212 | }
213 |
214 | .reporter-method-name {
215 | font-size: 14px;
216 | font-family: monospace;
217 | }
218 |
219 | .reporter-method-output-div {
220 | padding: 5px;
221 | margin: 0 0 5px 20px;
222 | font-size: 12px;
223 | font-family: monospace;
224 | border-width: 0 0 0 1px;
225 | border-style: solid;
226 | }
227 |
228 | .ignored-class-div {
229 | font-size: 14px;
230 | font-family: monospace;
231 | }
232 |
233 | .ignored-methods-div {
234 | padding: 5px;
235 | margin: 0 0 5px 20px;
236 | font-size: 12px;
237 | font-family: monospace;
238 | border-width: 0 0 0 1px;
239 | border-style: solid;
240 | }
241 |
242 | .border-failed {
243 | border-top-left-radius: 10px 10px;
244 | border-bottom-left-radius: 10px 10px;
245 | border-style: solid;
246 | border-width: 0 0 0 10px;
247 | border-color: #f00;
248 | }
249 |
250 | .border-skipped {
251 | border-top-left-radius: 10px 10px;
252 | border-bottom-left-radius: 10px 10px;
253 | border-style: solid;
254 | border-width: 0 0 0 10px;
255 | border-color: #edc600;
256 | }
257 |
258 | .border-passed {
259 | border-top-left-radius: 10px 10px;
260 | border-bottom-left-radius: 10px 10px;
261 | border-style: solid;
262 | border-width: 0 0 0 10px;
263 | border-color: #19f52d;
264 | }
265 |
266 | .times-div {
267 | text-align: center;
268 | padding: 5px;
269 | }
270 |
271 | .suite-total-time {
272 | font: 16px 'Lucida Grande';
273 | }
274 |
275 | .configuration-suite {
276 | margin-left: 20px;
277 | }
278 |
279 | .configuration-test {
280 | margin-left: 40px;
281 | }
282 |
283 | .configuration-class {
284 | margin-left: 60px;
285 | }
286 |
287 | .configuration-method {
288 | margin-left: 80px;
289 | }
290 |
291 | .test-method {
292 | margin-left: 100px;
293 | }
294 |
295 | .chronological-class {
296 | background-color: skyblue;
297 | border-style: solid;
298 | border-width: 0 0 1px 1px;
299 | }
300 |
301 | .method-start {
302 | float: right;
303 | }
304 |
305 | .chronological-class-name {
306 | padding: 0 0 0 5px;
307 | color: #008;
308 | }
309 |
310 | .after, .before, .test-method {
311 | font-family: monospace;
312 | font-size: 14px;
313 | }
314 |
315 | .navigator-suite-header {
316 | font-size: 22px;
317 | margin: 0 10px 5px 0;
318 | background-color: #deb887;
319 | text-align: center;
320 | }
321 |
322 | .collapse-all-icon {
323 | padding: 5px;
324 | float: right;
325 | }
326 | /*retro Theme*/
327 |
--------------------------------------------------------------------------------
/target/surefire-reports/testng-reports.js:
--------------------------------------------------------------------------------
1 | $(document).ready(function() {
2 | $('a.navigator-link').on("click", function() {
3 | // Extract the panel for this link
4 | var panel = getPanelName($(this));
5 |
6 | // Mark this link as currently selected
7 | $('.navigator-link').parent().removeClass('navigator-selected');
8 | $(this).parent().addClass('navigator-selected');
9 |
10 | showPanel(panel);
11 | });
12 |
13 | installMethodHandlers('failed');
14 | installMethodHandlers('skipped');
15 | installMethodHandlers('passed', true); // hide passed methods by default
16 |
17 | $('a.method').on("click", function() {
18 | showMethod($(this));
19 | return false;
20 | });
21 |
22 | // Hide all the panels and display the first one (do this last
23 | // to make sure the click() will invoke the listeners)
24 | $('.panel').hide();
25 | $('.navigator-link').first().trigger("click");
26 |
27 | // Collapse/expand the suites
28 | $('a.collapse-all-link').on("click", function() {
29 | var contents = $('.navigator-suite-content');
30 | if (contents.css('display') == 'none') {
31 | contents.show();
32 | } else {
33 | contents.hide();
34 | }
35 | });
36 | });
37 |
38 | // The handlers that take care of showing/hiding the methods
39 | function installMethodHandlers(name, hide) {
40 | function getContent(t) {
41 | return $('.method-list-content.' + name + "." + t.attr('panel-name'));
42 | }
43 |
44 | function getHideLink(t, name) {
45 | var s = 'a.hide-methods.' + name + "." + t.attr('panel-name');
46 | return $(s);
47 | }
48 |
49 | function getShowLink(t, name) {
50 | return $('a.show-methods.' + name + "." + t.attr('panel-name'));
51 | }
52 |
53 | function getMethodPanelClassSel(element, name) {
54 | var panelName = getPanelName(element);
55 | var sel = '.' + panelName + "-class-" + name;
56 | return $(sel);
57 | }
58 |
59 | $('a.hide-methods.' + name).on("click", function() {
60 | var w = getContent($(this));
61 | w.hide();
62 | getHideLink($(this), name).hide();
63 | getShowLink($(this), name).show();
64 | getMethodPanelClassSel($(this), name).hide();
65 | });
66 |
67 | $('a.show-methods.' + name).on("click", function() {
68 | var w = getContent($(this));
69 | w.show();
70 | getHideLink($(this), name).show();
71 | getShowLink($(this), name).hide();
72 | showPanel(getPanelName($(this)));
73 | getMethodPanelClassSel($(this), name).show();
74 | });
75 |
76 | if (hide) {
77 | $('a.hide-methods.' + name).trigger("click");
78 | } else {
79 | $('a.show-methods.' + name).trigger("click");
80 | }
81 | }
82 |
83 | function getHashForMethod(element) {
84 | return element.attr('hash-for-method');
85 | }
86 |
87 | function getPanelName(element) {
88 | return element.attr('panel-name');
89 | }
90 |
91 | function showPanel(panelName) {
92 | $('.panel').hide();
93 | var panel = $('.panel[panel-name="' + panelName + '"]');
94 | panel.show();
95 | }
96 |
97 | function showMethod(element) {
98 | var hashTag = getHashForMethod(element);
99 | var panelName = getPanelName(element);
100 | showPanel(panelName);
101 | var current = document.location.href;
102 | var base = current.substring(0, current.indexOf('#'))
103 | document.location.href = base + '#' + hashTag;
104 | var newPosition = $(document).scrollTop() - 65;
105 | $(document).scrollTop(newPosition);
106 | }
107 |
108 | function drawTable() {
109 | for (var i = 0; i < suiteTableInitFunctions.length; i++) {
110 | window[suiteTableInitFunctions[i]]();
111 | }
112 |
113 | for (var k in window.suiteTableData) {
114 | var v = window.suiteTableData[k];
115 | var div = v.tableDiv;
116 | var data = v.tableData
117 | var table = new google.visualization.Table(document.getElementById(div));
118 | table.draw(data, {
119 | showRowNumber : false
120 | });
121 | }
122 | }
123 |
--------------------------------------------------------------------------------
/target/surefire-reports/testng-reports1.css:
--------------------------------------------------------------------------------
1 | body {
2 | background-color: whitesmoke;
3 | margin: 0 0 5px 5px;
4 | }
5 | ul {
6 | margin-top: 10px;
7 | margin-left:-10px;
8 | }
9 | li {
10 | font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
11 | padding:5px 5px;
12 | }
13 | a {
14 | text-decoration: none;
15 | color: black;
16 | font-size: 14px;
17 | }
18 |
19 | a:hover {
20 | color:black ;
21 | text-decoration: underline;
22 | }
23 |
24 | .navigator-selected {
25 | /* #ffa500; Mouse hover color after click Orange.*/
26 | background:#027368
27 | }
28 |
29 | .wrapper {
30 | position: absolute;
31 | top: 60px;
32 | bottom: 0;
33 | left: 400px;
34 | right: 0;
35 | margin-right:9px;
36 | overflow: auto;/*imortant*/
37 | }
38 |
39 | .navigator-root {
40 | position: absolute;
41 | top: 60px;
42 | bottom: 0;
43 | left: 0;
44 | width: 400px;
45 | overflow-y: auto;/*important*/
46 | }
47 |
48 | .suite {
49 | margin: -5px 10px 10px 5px;
50 | background-color: whitesmoke ;/*Colour of the left bside box*/
51 | }
52 |
53 | .suite-name {
54 | font-size: 24px;
55 | font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;/*All TEST SUITE*/
56 | color: white;
57 | }
58 |
59 | .main-panel-header {
60 | padding: 5px;
61 | background-color: #027368; /*afeeee*/;
62 | font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
63 | color:white;
64 | font-size: 18px;
65 | }
66 |
67 | .main-panel-content {
68 | padding: 5px;
69 | margin-bottom: 10px;
70 | background-color: #CCD0D1; /*d0ffff*/; /*Belongs to backGround of rightSide boxes*/
71 | }
72 |
73 | .rounded-window {
74 | border-style: dotted;
75 | border-width: 1px;/*Border of left Side box*/
76 | background-color: whitesmoke;
77 | border-radius: 10px;
78 | }
79 |
80 | .rounded-window-top {
81 | border-top-right-radius: 10px 10px;
82 | border-top-left-radius: 10px 10px;
83 | border-style: solid;
84 | border-width: 1px;
85 | overflow: auto;/*Top of RightSide box*/
86 | }
87 |
88 | .light-rounded-window-top {
89 | background-color: #027368;
90 | padding-left:120px;
91 | border-radius: 10px;
92 |
93 | }
94 |
95 | .rounded-window-bottom {
96 | border-bottom-right-radius: 10px 10px;
97 | border-bottom-left-radius: 10px 10px;
98 | overflow: auto;/*Bottom of rightSide box*/
99 | }
100 |
101 | .method-name {
102 | font-size: 14px;
103 | font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
104 | font-weight: bold;
105 | }
106 |
107 | .method-content {
108 | border-style: solid;
109 | border-width: 0 0 1px 0;
110 | margin-bottom: 10px;
111 | padding-bottom: 5px;
112 | width: 100%;
113 | }
114 |
115 | .parameters {
116 | font-size: 14px;
117 | font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
118 | }
119 |
120 | .stack-trace {
121 | white-space: pre;
122 | font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
123 | font-size: 12px;
124 | font-weight: bold;
125 | margin-top: 0;
126 | margin-left: 20px; /*Error Stack Trace Message*/
127 | }
128 |
129 | .testng-xml {
130 | font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
131 | }
132 |
133 | .method-list-content {
134 | margin-left: 10px;
135 | }
136 |
137 | .navigator-suite-content {
138 | margin-left: 10px;
139 | font: 12px 'Lucida Grande';
140 | }
141 |
142 | .suite-section-title {
143 | font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
144 | font-size: 14px;
145 | font-weight:bold;
146 | background-color: #8C8887;
147 | margin-left: -10px;
148 | margin-top:10px;
149 | padding:6px;
150 | }
151 |
152 | .suite-section-content {
153 | list-style-image: url(bullet_point.png);
154 | background-color: whitesmoke;
155 | font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
156 | overflow: hidden;
157 | }
158 |
159 | .top-banner-root {
160 | position: absolute;
161 | top: 0;
162 | height: 45px;
163 | left: 0;
164 | right: 0;
165 | padding: 5px;
166 | margin: 0 0 5px 0;
167 | background-color: #027368;
168 | font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
169 | font-size: 18px;
170 | color: #fff;
171 | text-align: center;/*Belongs to the Top of Report*//*Status: - Completed*/
172 | }
173 |
174 | .top-banner-title-font {
175 | font-size: 25px;
176 | font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
177 | padding: 3px;
178 | float: right;
179 | }
180 |
181 | .test-name {
182 | font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
183 | font-size: 16px;
184 | }
185 |
186 | .suite-icon {
187 | padding: 5px;
188 | float: right;
189 | height: 20px;
190 | }
191 |
192 | .test-group {
193 | font: 20px 'Lucida Grande';
194 | margin: 5px 5px 10px 5px;
195 | border-width: 0 0 1px 0;
196 | border-style: solid;
197 | padding: 5px;
198 | }
199 |
200 | .test-group-name {
201 | font-weight: bold;
202 | }
203 |
204 | .method-in-group {
205 | font-size: 16px;
206 | margin-left: 80px;
207 | }
208 |
209 | table.google-visualization-table-table {
210 | width: 100%;
211 | }
212 |
213 | .reporter-method-name {
214 | font-size: 14px;
215 | font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
216 | }
217 |
218 | .reporter-method-output-div {
219 | padding: 5px;
220 | margin: 0 0 5px 20px;
221 | font-size: 12px;
222 | font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
223 | border-width: 0 0 0 1px;
224 | border-style: solid;
225 | }
226 |
227 | .ignored-class-div {
228 | font-size: 14px;
229 | font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
230 | }
231 |
232 | .ignored-methods-div {
233 | padding: 5px;
234 | margin: 0 0 5px 20px;
235 | font-size: 12px;
236 | font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
237 | border-width: 0 0 0 1px;
238 | border-style: solid;
239 | }
240 |
241 | .border-failed {
242 | border-radius:2px;
243 | border-style: solid;
244 | border-width: 0 0 0 10px;
245 | border-color: #F20505;
246 | }
247 |
248 | .border-skipped {
249 | border-radius:2px;
250 | border-style: solid;
251 | border-width: 0 0 0 10px;
252 | border-color: #F2BE22;
253 | }
254 |
255 | .border-passed {
256 | border-radius:2px;
257 | border-style: solid;
258 | border-width: 0 0 0 10px;
259 | border-color: #038C73;
260 | }
261 |
262 | .times-div {
263 | text-align: center;
264 | padding: 5px;
265 | }
266 |
267 | .suite-total-time {
268 | font: 16px 'Lucida Grande';
269 | }
270 |
271 | .configuration-suite {
272 | margin-left: 20px;
273 | }
274 |
275 | .configuration-test {
276 | margin-left: 40px;
277 | }
278 |
279 | .configuration-class {
280 | margin-left: 60px;
281 | }
282 |
283 | .configuration-method {
284 | margin-left: 80px;
285 | }
286 |
287 | .test-method {
288 | margin-left: 100px;
289 | }
290 |
291 | .chronological-class {
292 | background-color: #CCD0D1;
293 | border-width: 0 0 1px 1px;/*Chronological*/
294 | }
295 |
296 | .method-start {
297 | float: right;
298 | }
299 |
300 | .chronological-class-name {
301 | padding: 0 0 0 5px;
302 | margin-top:5px;
303 | font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
304 | color: #008;
305 | }
306 |
307 | .after, .before, .test-method {
308 | font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
309 | font-size: 14px;
310 | margin-top:5px;
311 | }
312 |
313 | .navigator-suite-header {
314 | font-size: 18px;
315 | margin: 0px 10px 10px 5px;
316 | padding: 5px;
317 | border-radius: 10px;
318 | background-color: #027368;
319 | color: white;
320 | font-weight:bold;
321 | font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
322 | text-align: center; /*All Suites on top of left box*//*Status: -Completed*/
323 | }
324 |
325 | .collapse-all-icon {
326 | padding: 3px;
327 | float: right;
328 | }
329 | .button{
330 | position: absolute;
331 | margin-left:500px;
332 | margin-top:8px;
333 | background-color: white;
334 | color:#027368;
335 | font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
336 | font-weight:bold;
337 | border-color:#027368;
338 | border-radius:25px;
339 | cursor: pointer;
340 | height:30px;
341 | width:150px;
342 | outline: none;
343 | }
344 | /*Author: - Akhil Gullapalli*/
--------------------------------------------------------------------------------
/target/surefire-reports/testng-reports2.js:
--------------------------------------------------------------------------------
1 | window.onload = function () {
2 | let cookies = document.cookie;
3 | let cookieValue = cookies.split('=');
4 | if (cookieValue[1] === 'null' || localStorage.getItem('Theme') === 'null') {
5 | document.getElementById('retro').setAttribute('disabled', 'false');
6 | } else if (cookieValue[1] === 'Switch Ultra Theme' ||
7 | localStorage.getItem('Theme') === 'Switch Ultra Theme') {
8 | document.getElementById('button').innerText = "Switch Retro Theme";
9 | document.getElementById('retro').setAttribute('disabled', 'false');
10 |
11 | } else if (cookieValue[1] === 'Switch Retro Theme' ||
12 | localStorage.getItem('Theme') === 'Switch Retro Theme') {
13 | if (cookieValue[1] === 'Switch Ultra Theme' ||
14 | localStorage.getItem('Theme') === 'Switch Ultra Theme') {
15 | document.getElementById('button').innerText = "Switch Retro Theme";
16 | document.getElementById('retro').setAttribute('disabled', 'false');
17 |
18 | document.getElementById('button').innerText = "Switch Ultra Theme";
19 | document.getElementById('retro').removeAttribute('disabled');
20 | document.getElementById('ultra').setAttribute('disabled', 'false');
21 | localStorage.setItem('Theme', select);
22 |
23 | } else if (select === 'Switch Ultra Theme') {
24 | document.getElementById('button').innerText = "Switch Retro Theme";
25 | document.getElementById('ultra').removeAttribute('disabled');
26 | document.getElementById('retro').setAttribute('disabled', 'false');
27 | localStorage.setItem('Theme', select);
28 | }
29 | } else if (cookieValue[1] === 'Switch Retro Theme' ||
30 | localStorage.getItem('Theme') === 'Switch Retro Theme') {
31 | document.getElementById('button').innerText = "Switch Ultra Theme";
32 | document.getElementById('ultra').setAttribute('disabled', 'false');
33 | }
34 | }
35 | document.getElementById('button').onclick = function () {
36 | let select = document.getElementById('button').innerText;
37 | if (select === 'Switch Retro Theme') {
38 | let d = new Date();
39 | days = 365;
40 | d.setTime(+d + (days * 86400000)); //24 * 60 * 60 * 1000
41 | document.cookie = "Theme =" + select + "; expires=" + d.toGMTString() + ";";
42 | document.getElementById('button').innerText = "Switch Ultra Theme";
43 | document.getElementById('retro').removeAttribute('disabled');
44 | document.getElementById('ultra').setAttribute('disabled', 'false');
45 | localStorage.setItem('Theme', select);
46 |
47 | } else if (select === 'Switch Ultra Theme') {
48 | let d = new Date();
49 | days = 365;
50 | d.setTime(+d + (days * 86400000)); //24 * 60 * 60 * 1000
51 | document.cookie = "Theme =" + select + "; expires=" + d.toGMTString() + ";";
52 | document.getElementById('button').innerText = "Switch Retro Theme";
53 | document.getElementById('ultra').removeAttribute('disabled');
54 | document.getElementById('retro').setAttribute('disabled', 'false');
55 | localStorage.setItem('Theme', select);
56 | }
57 | }
58 | //Function to mouse hovering affect.
59 | document.getElementById('button').onmouseover = function () {
60 | document.getElementById('button').style.borderRadius = "25px";
61 | document.getElementById('button').style.width = "180px";
62 | document.getElementById('button').style.height = "45px";
63 | document.getElementById('button').style.marginTop = "1px";
64 |
65 | }
66 | //Function to mouse out affect
67 | document.getElementById('button').onmouseout = function () {
68 | document.getElementById('button').style.borderRadius = "25px";
69 | document.getElementById('button').style.width = "150px";
70 | document.getElementById('button').style.height = "30px";
71 | document.getElementById('button').style.marginTop = "8px";
72 |
73 | }
74 |
75 | //This is the file where we handle the switching of the Themes.
76 | /*Author:- Akhil Gullapalli*/
77 |
--------------------------------------------------------------------------------
/target/surefire-reports/testng-results.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
--------------------------------------------------------------------------------
/target/surefire-reports/testng.css:
--------------------------------------------------------------------------------
1 | .invocation-failed, .test-failed { background-color: #DD0000; }
2 | .invocation-percent, .test-percent { background-color: #006600; }
3 | .invocation-passed, .test-passed { background-color: #00AA00; }
4 | .invocation-skipped, .test-skipped { background-color: #CCCC00; }
5 |
6 | .main-page {
7 | font-size: x-large;
8 | }
9 |
10 |
--------------------------------------------------------------------------------
/target/test-classes/com/mystore/pageobject/OrderAddressPage.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/prachicodestudio/CS_FrameworkSeleniumJava/30b57a35890264dbf2bd8020a5c6697d416d2930/target/test-classes/com/mystore/pageobject/OrderAddressPage.class
--------------------------------------------------------------------------------
/target/test-classes/com/mystore/pageobject/OrderConfirmationPage.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/prachicodestudio/CS_FrameworkSeleniumJava/30b57a35890264dbf2bd8020a5c6697d416d2930/target/test-classes/com/mystore/pageobject/OrderConfirmationPage.class
--------------------------------------------------------------------------------
/target/test-classes/com/mystore/pageobject/OrderPaymentPage.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/prachicodestudio/CS_FrameworkSeleniumJava/30b57a35890264dbf2bd8020a5c6697d416d2930/target/test-classes/com/mystore/pageobject/OrderPaymentPage.class
--------------------------------------------------------------------------------
/target/test-classes/com/mystore/pageobject/OrderShippingPage.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/prachicodestudio/CS_FrameworkSeleniumJava/30b57a35890264dbf2bd8020a5c6697d416d2930/target/test-classes/com/mystore/pageobject/OrderShippingPage.class
--------------------------------------------------------------------------------
/target/test-classes/com/mystore/pageobject/OrderSummaryPage.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/prachicodestudio/CS_FrameworkSeleniumJava/30b57a35890264dbf2bd8020a5c6697d416d2930/target/test-classes/com/mystore/pageobject/OrderSummaryPage.class
--------------------------------------------------------------------------------
/target/test-classes/com/mystore/pageobject/ProductPage.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/prachicodestudio/CS_FrameworkSeleniumJava/30b57a35890264dbf2bd8020a5c6697d416d2930/target/test-classes/com/mystore/pageobject/ProductPage.class
--------------------------------------------------------------------------------
/target/test-classes/com/mystore/pageobject/SearchResultPage.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/prachicodestudio/CS_FrameworkSeleniumJava/30b57a35890264dbf2bd8020a5c6697d416d2930/target/test-classes/com/mystore/pageobject/SearchResultPage.class
--------------------------------------------------------------------------------
/target/test-classes/com/mystore/pageobject/accountCreationDetails.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/prachicodestudio/CS_FrameworkSeleniumJava/30b57a35890264dbf2bd8020a5c6697d416d2930/target/test-classes/com/mystore/pageobject/accountCreationDetails.class
--------------------------------------------------------------------------------
/target/test-classes/com/mystore/pageobject/indexPage.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/prachicodestudio/CS_FrameworkSeleniumJava/30b57a35890264dbf2bd8020a5c6697d416d2930/target/test-classes/com/mystore/pageobject/indexPage.class
--------------------------------------------------------------------------------
/target/test-classes/com/mystore/pageobject/myAccountPage.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/prachicodestudio/CS_FrameworkSeleniumJava/30b57a35890264dbf2bd8020a5c6697d416d2930/target/test-classes/com/mystore/pageobject/myAccountPage.class
--------------------------------------------------------------------------------
/target/test-classes/com/mystore/pageobject/registeredUserAccount.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/prachicodestudio/CS_FrameworkSeleniumJava/30b57a35890264dbf2bd8020a5c6697d416d2930/target/test-classes/com/mystore/pageobject/registeredUserAccount.class
--------------------------------------------------------------------------------
/target/test-classes/com/mystore/testcases/BaseClass.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/prachicodestudio/CS_FrameworkSeleniumJava/30b57a35890264dbf2bd8020a5c6697d416d2930/target/test-classes/com/mystore/testcases/BaseClass.class
--------------------------------------------------------------------------------
/target/test-classes/com/mystore/testcases/TC_MyAccountPageTest.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/prachicodestudio/CS_FrameworkSeleniumJava/30b57a35890264dbf2bd8020a5c6697d416d2930/target/test-classes/com/mystore/testcases/TC_MyAccountPageTest.class
--------------------------------------------------------------------------------
/target/test-classes/com/mystore/testcases/TC_MyAccountPageTestDataDrivenTesting.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/prachicodestudio/CS_FrameworkSeleniumJava/30b57a35890264dbf2bd8020a5c6697d416d2930/target/test-classes/com/mystore/testcases/TC_MyAccountPageTestDataDrivenTesting.class
--------------------------------------------------------------------------------
/target/test-classes/com/mystore/testcases/TC_ProductPageTest.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/prachicodestudio/CS_FrameworkSeleniumJava/30b57a35890264dbf2bd8020a5c6697d416d2930/target/test-classes/com/mystore/testcases/TC_ProductPageTest.class
--------------------------------------------------------------------------------
/target/test-classes/com/mystore/utilities/ExtentListenerClass.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/prachicodestudio/CS_FrameworkSeleniumJava/30b57a35890264dbf2bd8020a5c6697d416d2930/target/test-classes/com/mystore/utilities/ExtentListenerClass.class
--------------------------------------------------------------------------------
/target/test-classes/com/mystore/utilities/ReadConfig.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/prachicodestudio/CS_FrameworkSeleniumJava/30b57a35890264dbf2bd8020a5c6697d416d2930/target/test-classes/com/mystore/utilities/ReadConfig.class
--------------------------------------------------------------------------------
/target/test-classes/com/mystore/utilities/ReadExcelFile.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/prachicodestudio/CS_FrameworkSeleniumJava/30b57a35890264dbf2bd8020a5c6697d416d2930/target/test-classes/com/mystore/utilities/ReadExcelFile.class
--------------------------------------------------------------------------------
/test-output/Default suite/Default test.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | TestNG: Default test
4 |
5 |
6 |
7 |
11 |
53 |
54 |
55 |
56 | Default test
57 |
58 | Tests passed/Failed/Skipped: 0/1/0
59 |
60 | Started on: Thu May 26 14:35:16 IST 2022
61 |
62 | Total time: 14 seconds (14389 ms)
63 |
64 | Included groups:
65 |
66 | Excluded groups:
67 |
68 |
69 | (Hover the method name to see the test class name)
70 |
71 | FAILED TESTS
72 | Test method
73 | Exception
74 | Time (seconds)
75 | Instance
76 |
77 |
78 | verifyAddToWishlistWithOutLogin Test class: com.mystore.testcases.TC_ProductPageTest
79 | java.lang.AssertionError: expected [true] but found [false]
80 | at org.testng.Assert.fail(Assert.java:99)
81 | at org.testng.Assert.failNotEquals(Assert.java:1037)
82 | at org.testng.Assert.assertTrue(Assert.java:45)
83 | at org.testng.Assert.assertTrue(Assert.java:55)
84 | at com.mystore.testcases.TC_ProductPageTest.verifyAddToWishlistWithOutLogin(TC_ProductPageTest.java:209)
85 | at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
86 | at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
87 | at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
88 | at java.base/java.lang.reflect.Method.invoke(Method.java:568)
89 | at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:133)
90 | at org.testng.internal.TestInvoker.invokeMethod(TestInvoker.java:598)
91 | at org.testng.internal.TestInvoker.invokeTestMethod(TestInvoker.java:173)
92 | at org.testng.internal.MethodRunner.runInSequence(MethodRunner.java:46)
93 | at org.testng.internal.TestInvoker$MethodInvocationAgent.invoke(TestInvoker.java:824)
94 | at org.testng.internal.TestInvoker.invokeTestMethods(TestInvoker.java:146)
95 | at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:146)
96 | at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:128)
97 | at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
98 | at org.testng.TestRunner.privateRun(TestRunner.java:794)
99 | at org.testng.TestRunner.run(TestRunner.java:596)
100 | at org.testng.SuiteRunner.runTest(SuiteRunner.java:377)
101 | at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:371)
102 | at org.testng.SuiteRunner.privateRun(SuiteRunner.java:332)
103 | at org.testng.SuiteRunner.run(SuiteRunner.java:276)
104 | at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:53)
105 | at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:96)
106 | at org.testng.TestNG.runSuitesSequentially(TestNG.java:1212)
107 | at org.testng.TestNG.runSuitesLocally(TestNG.java:1134)
108 | at org.testng.TestNG.runSuites(TestNG.java:1063)
109 | at org.testng.TestNG.run(TestNG.java:1031)
110 | at org.testng.remote.AbstractRemoteTestNG.run(AbstractRemoteTestNG.java:115)
111 | at org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:251)
112 | at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:77)
113 | Click to show all stack frames
114 | java.lang.AssertionError: expected [true] but found [false]
115 | at org.testng.Assert.fail(Assert.java:99)
116 | at org.testng.Assert.failNotEquals(Assert.java:1037)
117 | at org.testng.Assert.assertTrue(Assert.java:45)
118 | at org.testng.Assert.assertTrue(Assert.java:55)
119 | at com.mystore.testcases.TC_ProductPageTest.verifyAddToWishlistWithOutLogin(TC_ProductPageTest.java:209)
120 | at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
121 | at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
122 | at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
123 | at java.base/java.lang.reflect.Method.invoke(Method.java:568)
124 | at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:133)
125 | at org.testng.internal.TestInvoker.invokeMethod(TestInvoker.java:598)
126 | at org.testng.internal.TestInvoker.invokeTestMethod(TestInvoker.java:173)
127 | at org.testng.internal.MethodRunner.runInSequence(MethodRunner.java:46)
128 | at org.testng.internal.TestInvoker$MethodInvocationAgent.invoke(TestInvoker.java:824)
129 | at org.testng.internal.TestInvoker.invokeTestMethods(TestInvoker.java:146)
130 | at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:146)
131 | at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:128)
132 | at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
133 | at org.testng.TestRunner.privateRun(TestRunner.java:794)
134 | at org.testng.TestRunner.run(TestRunner.java:596)
135 | at org.testng.SuiteRunner.runTest(SuiteRunner.java:377)
136 | at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:371)
137 | at org.testng.SuiteRunner.privateRun(SuiteRunner.java:332)
138 | at org.testng.SuiteRunner.run(SuiteRunner.java:276)
139 | at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:53)
140 | at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:96)
141 | at org.testng.TestNG.runSuitesSequentially(TestNG.java:1212)
142 | at org.testng.TestNG.runSuitesLocally(TestNG.java:1134)
143 | at org.testng.TestNG.runSuites(TestNG.java:1063)
144 | at org.testng.TestNG.run(TestNG.java:1031)
145 | at org.testng.remote.AbstractRemoteTestNG.run(AbstractRemoteTestNG.java:115)
146 | at org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:251)
147 | at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:77)
148 |
149 | 3
150 | com.mystore.testcases.TC_ProductPageTest@52bf72b5
151 |
152 |
153 |
--------------------------------------------------------------------------------
/test-output/Default suite/Default test.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
--------------------------------------------------------------------------------
/test-output/Default suite/testng-failed.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/test-output/Suite/Test.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | TestNG: Test
4 |
5 |
6 |
7 |
11 |
53 |
54 |
55 |
56 | Test
57 |
58 | Tests passed/Failed/Skipped: 5/0/0
59 |
60 | Started on: Wed Jun 01 17:52:37 IST 2022
61 |
62 | Total time: 104 seconds (104851 ms)
63 |
64 | Included groups:
65 |
66 | Excluded groups:
67 |
68 |
69 | (Hover the method name to see the test class name)
70 |
71 | PASSED TESTS
72 | Test method
73 | Exception
74 | Time (seconds)
75 | Instance
76 |
77 |
78 | verifyAddToWishlistWithoutLogin Test class: com.mystore.testcases.TC_ProductPageTest
79 |
80 | 4
81 | com.mystore.testcases.TC_ProductPageTest@35cabb2a
82 |
83 | VerifyLogin Test class: com.mystore.testcases.TC_MyAccountPageTest
84 |
85 | 10
86 | com.mystore.testcases.TC_MyAccountPageTest@5158b42f
87 |
88 | VerifySignOut Test class: com.mystore.testcases.TC_MyAccountPageTest
89 |
90 | 12
91 | com.mystore.testcases.TC_MyAccountPageTest@5158b42f
92 |
93 | VerifyBuyProduct Test class: com.mystore.testcases.TC_ProductPageTest
94 |
95 | 37
96 | com.mystore.testcases.TC_ProductPageTest@35cabb2a
97 |
98 | VerifySearchProduct Test class: com.mystore.testcases.TC_ProductPageTest
99 |
100 | 24
101 | com.mystore.testcases.TC_ProductPageTest@35cabb2a
102 |
103 |
104 |
--------------------------------------------------------------------------------
/test-output/Suite/Test.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/test-output/Suite/testng-failed.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
--------------------------------------------------------------------------------
/test-output/bullet_point.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/prachicodestudio/CS_FrameworkSeleniumJava/30b57a35890264dbf2bd8020a5c6697d416d2930/test-output/bullet_point.png
--------------------------------------------------------------------------------
/test-output/collapseall.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/prachicodestudio/CS_FrameworkSeleniumJava/30b57a35890264dbf2bd8020a5c6697d416d2930/test-output/collapseall.gif
--------------------------------------------------------------------------------
/test-output/emailable-report.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | TestNG Report
6 |
7 |
8 |
9 |
10 | Test # Passed # Skipped # Retried # Failed Time (ms) Included Groups Excluded Groups
11 | Suite
12 | Test 5 0 0 0 104,851
13 |
14 |
16 | Test com.mystore.testcases.TC_MyAccountPageTest#VerifyLogin back to summary
17 | com.mystore.testcases.TC_MyAccountPageTest#VerifySignOut back to summary
18 | com.mystore.testcases.TC_ProductPageTest#VerifyBuyProduct back to summary
19 | com.mystore.testcases.TC_ProductPageTest#VerifySearchProduct back to summary
20 | com.mystore.testcases.TC_ProductPageTest#verifyAddToWishlistWithoutLogin back to summary
21 |
22 |
23 |
--------------------------------------------------------------------------------
/test-output/failed.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/prachicodestudio/CS_FrameworkSeleniumJava/30b57a35890264dbf2bd8020a5c6697d416d2930/test-output/failed.png
--------------------------------------------------------------------------------
/test-output/junitreports/TEST-com.mystore.testcases.TC_LoginPageTest.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/test-output/junitreports/TEST-com.mystore.testcases.TC_MyAccountPageTest.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/test-output/junitreports/TEST-com.mystore.testcases.TC_MyAccountPageTestDataDrivenTesting.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
--------------------------------------------------------------------------------
/test-output/junitreports/TEST-com.mystore.testcases.TC_ProductPageTest.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/test-output/navigator-bullet.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/prachicodestudio/CS_FrameworkSeleniumJava/30b57a35890264dbf2bd8020a5c6697d416d2930/test-output/navigator-bullet.png
--------------------------------------------------------------------------------
/test-output/old/Default suite/Default test.properties:
--------------------------------------------------------------------------------
1 | [SuiteResult context=Default test]
--------------------------------------------------------------------------------
/test-output/old/Default suite/classes.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | Class name
4 | Method name
5 | Groups
6 |
7 | com.mystore.testcases.TC_ProductPageTest
8 |
9 |
10 | @Test
11 |
12 |
13 |
14 | VerifySearchProduct
15 |
16 |
17 |
18 | verifyAddToWishlistWithOutLogin
19 |
20 |
21 |
22 | VerifyBuyProduct
23 |
24 |
25 | @BeforeClass
26 |
27 |
28 |
29 | setup
30 |
31 |
32 | @BeforeMethod
33 |
34 |
35 | @AfterMethod
36 |
37 |
38 | @AfterClass
39 |
40 |
41 |
42 | tearDown
43 |
44 |
45 |
--------------------------------------------------------------------------------
/test-output/old/Default suite/groups.html:
--------------------------------------------------------------------------------
1 | Groups used for this test run
--------------------------------------------------------------------------------
/test-output/old/Default suite/index.html:
--------------------------------------------------------------------------------
1 | Results for Default suite
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/test-output/old/Default suite/main.html:
--------------------------------------------------------------------------------
1 | Results for Default suite
2 | Select a result on the left-hand pane.
3 |
--------------------------------------------------------------------------------
/test-output/old/Default suite/methods-alphabetical.html:
--------------------------------------------------------------------------------
1 | Methods run, sorted chronologically >> means before, << means after
Default suite
(Hover the method name to see the test class name)
2 |
3 | Time Delta (ms) Suite configuration Test configuration Class configuration Groups configuration Method configuration Test method Thread Instances
4 | 22/05/26 14:35:16 0 >>setup
5 | main@1770642014
6 | 22/05/26 14:35:30 14242 <<tearDown
7 | main@1770642014
8 | 22/05/26 14:35:27 10300 verifyAddToWishlistWithOutLogin
9 | main@1770642014
10 |
11 |
--------------------------------------------------------------------------------
/test-output/old/Default suite/methods-not-run.html:
--------------------------------------------------------------------------------
1 | Methods that were not run
2 | com.mystore.testcases.TC_ProductPageTest.VerifySearchProduct
3 | com.mystore.testcases.TC_ProductPageTest.VerifyBuyProduct
4 |
--------------------------------------------------------------------------------
/test-output/old/Default suite/methods.html:
--------------------------------------------------------------------------------
1 | Methods run, sorted chronologically >> means before, << means after
Default suite
(Hover the method name to see the test class name)
2 |
3 | Time Delta (ms) Suite configuration Test configuration Class configuration Groups configuration Method configuration Test method Thread Instances
4 | 22/05/26 14:35:27 0 verifyAddToWishlistWithOutLogin
5 | main@1770642014
6 | 22/05/26 14:35:16 -10300 >>setup
7 | main@1770642014
8 | 22/05/26 14:35:30 3942 <<tearDown
9 | main@1770642014
10 |
11 |
--------------------------------------------------------------------------------
/test-output/old/Default suite/reporter-output.html:
--------------------------------------------------------------------------------
1 | Reporter output
--------------------------------------------------------------------------------
/test-output/old/Default suite/testng.xml.html:
--------------------------------------------------------------------------------
1 | testng.xml for Default suite <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE suite SYSTEM "https://testng.org/testng-1.0.dtd">
<suite name="Default suite" guice-stage="DEVELOPMENT">
<test thread-count="5" name="Default test" verbose="2">
<classes>
<class name="com.mystore.testcases.TC_ProductPageTest"/>
</classes>
</test> <!-- Default test -->
</suite> <!-- Default suite -->
--------------------------------------------------------------------------------
/test-output/old/Default suite/toc.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | Results for Default suite
4 |
5 |
6 |
7 |
8 | Results forDefault suite
9 |
23 |
24 |
25 | Default test (0/1/0)
26 | Results
27 |
28 |
29 |
30 |
--------------------------------------------------------------------------------
/test-output/old/Suite/Test.properties:
--------------------------------------------------------------------------------
1 | [SuiteResult context=Test]
--------------------------------------------------------------------------------
/test-output/old/Suite/classes.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | Class name
4 | Method name
5 | Groups
6 |
7 | com.mystore.testcases.TC_ProductPageTest
8 |
9 |
10 | @Test
11 |
12 |
13 |
14 | verifyAddToWishlistWithoutLogin
15 |
16 |
17 |
18 | VerifySearchProduct
19 |
20 |
21 |
22 | VerifyBuyProduct
23 |
24 |
25 | @BeforeClass
26 |
27 |
28 |
29 | setup
30 |
31 |
32 | @BeforeMethod
33 |
34 |
35 | @AfterMethod
36 |
37 |
38 | @AfterClass
39 |
40 |
41 |
42 | tearDown
43 |
44 |
45 | com.mystore.testcases.TC_MyAccountPageTest
46 |
47 |
48 | @Test
49 |
50 |
51 |
52 | verifyRegistrationAndLogin
53 |
54 |
55 |
56 | VerifyLogin
57 |
58 |
59 |
60 | VerifySignOut
61 |
62 |
63 | @BeforeClass
64 |
65 |
66 |
67 | setup
68 |
69 |
70 | @BeforeMethod
71 |
72 |
73 | @AfterMethod
74 |
75 |
76 | @AfterClass
77 |
78 |
79 |
80 | tearDown
81 |
82 |
83 |
--------------------------------------------------------------------------------
/test-output/old/Suite/groups.html:
--------------------------------------------------------------------------------
1 | Groups used for this test run
--------------------------------------------------------------------------------
/test-output/old/Suite/index.html:
--------------------------------------------------------------------------------
1 | Results for Suite
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/test-output/old/Suite/main.html:
--------------------------------------------------------------------------------
1 | Results for Suite
2 | Select a result on the left-hand pane.
3 |
--------------------------------------------------------------------------------
/test-output/old/Suite/methods-alphabetical.html:
--------------------------------------------------------------------------------
1 | Methods run, sorted chronologically >> means before, << means after
Suite
(Hover the method name to see the test class name)
2 |
3 | Time Delta (ms) Suite configuration Test configuration Class configuration Groups configuration Method configuration Test method Thread Instances
4 | 22/06/01 17:53:15 0 VerifyBuyProduct
5 | main@1323434987
6 | 22/06/01 17:52:45 -30209 VerifyLogin
7 | main@1323434987
8 | 22/06/01 17:53:53 37204 VerifySearchProduct
9 | main@1323434987
10 | 22/06/01 17:52:55 -19865 VerifySignOut
11 | main@1323434987
12 | 22/06/01 17:53:08 -7525 >>setup
13 | main@1323434987
14 | 22/06/01 17:52:37 -38393 >>setup
15 | main@1323434987
16 | 22/06/01 17:53:08 -7651 <<tearDown
17 | main@1323434987
18 | 22/06/01 17:54:21 66055 <<tearDown
19 | main@1323434987
20 | 22/06/01 17:54:17 61252 verifyAddToWishlistWithoutLogin
21 | main@1323434987
22 |
23 |
--------------------------------------------------------------------------------
/test-output/old/Suite/methods-not-run.html:
--------------------------------------------------------------------------------
1 | Methods that were not run
2 | com.mystore.testcases.TC_MyAccountPageTest.verifyRegistrationAndLogin
3 |
--------------------------------------------------------------------------------
/test-output/old/Suite/methods.html:
--------------------------------------------------------------------------------
1 | Methods run, sorted chronologically >> means before, << means after
Suite
(Hover the method name to see the test class name)
2 |
3 | Time Delta (ms) Suite configuration Test configuration Class configuration Groups configuration Method configuration Test method Thread Instances
4 | 22/06/01 17:53:08 0 <<tearDown
5 | main@1323434987
6 | 22/06/01 17:54:17 68903 verifyAddToWishlistWithoutLogin
7 | main@1323434987
8 | 22/06/01 17:52:45 -22558 VerifyLogin
9 | main@1323434987
10 | 22/06/01 17:52:55 -12214 VerifySignOut
11 | main@1323434987
12 | 22/06/01 17:53:08 126 >>setup
13 | main@1323434987
14 | 22/06/01 17:54:21 73706 <<tearDown
15 | main@1323434987
16 | 22/06/01 17:53:15 7651 VerifyBuyProduct
17 | main@1323434987
18 | 22/06/01 17:53:53 44855 VerifySearchProduct
19 | main@1323434987
20 | 22/06/01 17:52:37 -30742 >>setup
21 | main@1323434987
22 |
23 |
--------------------------------------------------------------------------------
/test-output/old/Suite/reporter-output.html:
--------------------------------------------------------------------------------
1 | Reporter output
--------------------------------------------------------------------------------
/test-output/old/Suite/testng.xml.html:
--------------------------------------------------------------------------------
1 | testng.xml for Suite <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE suite SYSTEM "https://testng.org/testng-1.0.dtd">
<suite name="Suite" guice-stage="DEVELOPMENT">
<listeners>
<listener class-name="com.mystore.utilities.ExtentListenerClass"/>
</listeners>
<test thread-count="5" name="Test">
<classes>
<class name="com.mystore.testcases.TC_MyAccountPageTest"/>
<class name="com.mystore.testcases.TC_ProductPageTest"/>
</classes>
</test> <!-- Test -->
</suite> <!-- Suite -->
--------------------------------------------------------------------------------
/test-output/old/Suite/toc.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | Results for Suite
4 |
5 |
6 |
7 |
8 | Results forSuite
9 |
23 |
30 |
--------------------------------------------------------------------------------
/test-output/old/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Test results
6 | Suite Passed Failed Skipped testng.xml
7 | Total 5 0 0
8 | Suite
9 | 5 0 0 Link
10 |
--------------------------------------------------------------------------------
/test-output/passed.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/prachicodestudio/CS_FrameworkSeleniumJava/30b57a35890264dbf2bd8020a5c6697d416d2930/test-output/passed.png
--------------------------------------------------------------------------------
/test-output/skipped.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/prachicodestudio/CS_FrameworkSeleniumJava/30b57a35890264dbf2bd8020a5c6697d416d2930/test-output/skipped.png
--------------------------------------------------------------------------------
/test-output/testng-failed.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
--------------------------------------------------------------------------------
/test-output/testng-reports.css:
--------------------------------------------------------------------------------
1 | body {
2 | margin: 0 0 5px 5px;
3 | }
4 |
5 | ul {
6 | margin: 0;
7 | }
8 |
9 | li {
10 | list-style-type: none;
11 | }
12 |
13 | a {
14 | text-decoration: none;
15 | }
16 |
17 | a:hover {
18 | text-decoration: underline;
19 | }
20 |
21 | .navigator-selected {
22 | background: #ffa500;
23 | }
24 |
25 | .wrapper {
26 | position: absolute;
27 | top: 60px;
28 | bottom: 0;
29 | left: 400px;
30 | right: 0;
31 | overflow: auto;
32 | }
33 |
34 | .navigator-root {
35 | position: absolute;
36 | top: 60px;
37 | bottom: 0;
38 | left: 0;
39 | width: 400px;
40 | overflow-y: auto;
41 | }
42 |
43 | .suite {
44 | margin: 0 10px 10px 0;
45 | background-color: #fff8dc;
46 | }
47 |
48 | .suite-name {
49 | padding-left: 10px;
50 | font-size: 25px;
51 | font-family: Times, sans-serif;
52 | }
53 |
54 | .main-panel-header {
55 | padding: 5px;
56 | background-color: #9FB4D9; /*afeeee*/;
57 | font-family: monospace;
58 | font-size: 18px;
59 | }
60 |
61 | .main-panel-content {
62 | padding: 5px;
63 | margin-bottom: 10px;
64 | background-color: #DEE8FC; /*d0ffff*/;
65 | }
66 |
67 | .rounded-window {
68 | border-radius: 10px;
69 | border-style: solid;
70 | border-width: 1px;
71 | }
72 |
73 | .rounded-window-top {
74 | border-top-right-radius: 10px 10px;
75 | border-top-left-radius: 10px 10px;
76 | border-style: solid;
77 | border-width: 1px;
78 | overflow: auto;
79 | }
80 |
81 | .light-rounded-window-top {
82 | border-top-right-radius: 10px 10px;
83 | border-top-left-radius: 10px 10px;
84 | }
85 |
86 | .rounded-window-bottom {
87 | border-style: solid;
88 | border-width: 0 1px 1px 1px;
89 | border-bottom-right-radius: 10px 10px;
90 | border-bottom-left-radius: 10px 10px;
91 | overflow: auto;
92 | }
93 |
94 | .method-name {
95 | font-size: 12px;
96 | font-family: monospace;
97 | }
98 |
99 | .method-content {
100 | border-style: solid;
101 | border-width: 0 0 1px 0;
102 | margin-bottom: 10px;
103 | padding-bottom: 5px;
104 | width: 80%;
105 | }
106 |
107 | .parameters {
108 | font-size: 14px;
109 | font-family: monospace;
110 | }
111 |
112 | .stack-trace {
113 | white-space: pre;
114 | font-family: monospace;
115 | font-size: 12px;
116 | font-weight: bold;
117 | margin-top: 0;
118 | margin-left: 20px;
119 | }
120 |
121 | .testng-xml {
122 | font-family: monospace;
123 | }
124 |
125 | .method-list-content {
126 | margin-left: 10px;
127 | }
128 |
129 | .navigator-suite-content {
130 | margin-left: 10px;
131 | font: 12px 'Lucida Grande';
132 | }
133 |
134 | .suite-section-title {
135 | margin-top: 10px;
136 | width: 80%;
137 | border-style: solid;
138 | border-width: 1px 0 0 0;
139 | font-family: Times, sans-serif;
140 | font-size: 18px;
141 | font-weight: bold;
142 | }
143 |
144 | .suite-section-content {
145 | list-style-image: url(bullet_point.png);
146 | }
147 |
148 | .top-banner-root {
149 | position: absolute;
150 | top: 0;
151 | height: 45px;
152 | left: 0;
153 | right: 0;
154 | padding: 5px;
155 | margin: 0 0 5px 0;
156 | background-color: #0066ff;
157 | font-family: Times, sans-serif;
158 | color: #fff;
159 | text-align: center;
160 | }
161 | .button{
162 | position: absolute;
163 | margin-left:500px;
164 | margin-top:8px;
165 | background-color: white;
166 | color:#0066ff;
167 | font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
168 | font-weight:bold;
169 | border-color:#0066ff ;
170 | border-radius:25px;
171 | cursor: pointer;
172 | height:30px;
173 | width:150px;
174 | outline:none;
175 |
176 | }
177 |
178 | .top-banner-title-font {
179 | font-size: 25px;
180 | }
181 |
182 | .test-name {
183 | font-family: 'Lucida Grande', sans-serif;
184 | font-size: 16px;
185 | }
186 |
187 | .suite-icon {
188 | padding: 5px;
189 | float: right;
190 | height: 20px;
191 | }
192 |
193 | .test-group {
194 | font: 20px 'Lucida Grande';
195 | margin: 5px 5px 10px 5px;
196 | border-width: 0 0 1px 0;
197 | border-style: solid;
198 | padding: 5px;
199 | }
200 |
201 | .test-group-name {
202 | font-weight: bold;
203 | }
204 |
205 | .method-in-group {
206 | font-size: 16px;
207 | margin-left: 80px;
208 | }
209 |
210 | table.google-visualization-table-table {
211 | width: 100%;
212 | }
213 |
214 | .reporter-method-name {
215 | font-size: 14px;
216 | font-family: monospace;
217 | }
218 |
219 | .reporter-method-output-div {
220 | padding: 5px;
221 | margin: 0 0 5px 20px;
222 | font-size: 12px;
223 | font-family: monospace;
224 | border-width: 0 0 0 1px;
225 | border-style: solid;
226 | }
227 |
228 | .ignored-class-div {
229 | font-size: 14px;
230 | font-family: monospace;
231 | }
232 |
233 | .ignored-methods-div {
234 | padding: 5px;
235 | margin: 0 0 5px 20px;
236 | font-size: 12px;
237 | font-family: monospace;
238 | border-width: 0 0 0 1px;
239 | border-style: solid;
240 | }
241 |
242 | .border-failed {
243 | border-top-left-radius: 10px 10px;
244 | border-bottom-left-radius: 10px 10px;
245 | border-style: solid;
246 | border-width: 0 0 0 10px;
247 | border-color: #f00;
248 | }
249 |
250 | .border-skipped {
251 | border-top-left-radius: 10px 10px;
252 | border-bottom-left-radius: 10px 10px;
253 | border-style: solid;
254 | border-width: 0 0 0 10px;
255 | border-color: #edc600;
256 | }
257 |
258 | .border-passed {
259 | border-top-left-radius: 10px 10px;
260 | border-bottom-left-radius: 10px 10px;
261 | border-style: solid;
262 | border-width: 0 0 0 10px;
263 | border-color: #19f52d;
264 | }
265 |
266 | .times-div {
267 | text-align: center;
268 | padding: 5px;
269 | }
270 |
271 | .suite-total-time {
272 | font: 16px 'Lucida Grande';
273 | }
274 |
275 | .configuration-suite {
276 | margin-left: 20px;
277 | }
278 |
279 | .configuration-test {
280 | margin-left: 40px;
281 | }
282 |
283 | .configuration-class {
284 | margin-left: 60px;
285 | }
286 |
287 | .configuration-method {
288 | margin-left: 80px;
289 | }
290 |
291 | .test-method {
292 | margin-left: 100px;
293 | }
294 |
295 | .chronological-class {
296 | background-color: skyblue;
297 | border-style: solid;
298 | border-width: 0 0 1px 1px;
299 | }
300 |
301 | .method-start {
302 | float: right;
303 | }
304 |
305 | .chronological-class-name {
306 | padding: 0 0 0 5px;
307 | color: #008;
308 | }
309 |
310 | .after, .before, .test-method {
311 | font-family: monospace;
312 | font-size: 14px;
313 | }
314 |
315 | .navigator-suite-header {
316 | font-size: 22px;
317 | margin: 0 10px 5px 0;
318 | background-color: #deb887;
319 | text-align: center;
320 | }
321 |
322 | .collapse-all-icon {
323 | padding: 5px;
324 | float: right;
325 | }
326 | /*retro Theme*/
327 |
--------------------------------------------------------------------------------
/test-output/testng-reports.js:
--------------------------------------------------------------------------------
1 | $(document).ready(function() {
2 | $('a.navigator-link').on("click", function() {
3 | // Extract the panel for this link
4 | var panel = getPanelName($(this));
5 |
6 | // Mark this link as currently selected
7 | $('.navigator-link').parent().removeClass('navigator-selected');
8 | $(this).parent().addClass('navigator-selected');
9 |
10 | showPanel(panel);
11 | });
12 |
13 | installMethodHandlers('failed');
14 | installMethodHandlers('skipped');
15 | installMethodHandlers('passed', true); // hide passed methods by default
16 |
17 | $('a.method').on("click", function() {
18 | showMethod($(this));
19 | return false;
20 | });
21 |
22 | // Hide all the panels and display the first one (do this last
23 | // to make sure the click() will invoke the listeners)
24 | $('.panel').hide();
25 | $('.navigator-link').first().trigger("click");
26 |
27 | // Collapse/expand the suites
28 | $('a.collapse-all-link').on("click", function() {
29 | var contents = $('.navigator-suite-content');
30 | if (contents.css('display') == 'none') {
31 | contents.show();
32 | } else {
33 | contents.hide();
34 | }
35 | });
36 | });
37 |
38 | // The handlers that take care of showing/hiding the methods
39 | function installMethodHandlers(name, hide) {
40 | function getContent(t) {
41 | return $('.method-list-content.' + name + "." + t.attr('panel-name'));
42 | }
43 |
44 | function getHideLink(t, name) {
45 | var s = 'a.hide-methods.' + name + "." + t.attr('panel-name');
46 | return $(s);
47 | }
48 |
49 | function getShowLink(t, name) {
50 | return $('a.show-methods.' + name + "." + t.attr('panel-name'));
51 | }
52 |
53 | function getMethodPanelClassSel(element, name) {
54 | var panelName = getPanelName(element);
55 | var sel = '.' + panelName + "-class-" + name;
56 | return $(sel);
57 | }
58 |
59 | $('a.hide-methods.' + name).on("click", function() {
60 | var w = getContent($(this));
61 | w.hide();
62 | getHideLink($(this), name).hide();
63 | getShowLink($(this), name).show();
64 | getMethodPanelClassSel($(this), name).hide();
65 | });
66 |
67 | $('a.show-methods.' + name).on("click", function() {
68 | var w = getContent($(this));
69 | w.show();
70 | getHideLink($(this), name).show();
71 | getShowLink($(this), name).hide();
72 | showPanel(getPanelName($(this)));
73 | getMethodPanelClassSel($(this), name).show();
74 | });
75 |
76 | if (hide) {
77 | $('a.hide-methods.' + name).trigger("click");
78 | } else {
79 | $('a.show-methods.' + name).trigger("click");
80 | }
81 | }
82 |
83 | function getHashForMethod(element) {
84 | return element.attr('hash-for-method');
85 | }
86 |
87 | function getPanelName(element) {
88 | return element.attr('panel-name');
89 | }
90 |
91 | function showPanel(panelName) {
92 | $('.panel').hide();
93 | var panel = $('.panel[panel-name="' + panelName + '"]');
94 | panel.show();
95 | }
96 |
97 | function showMethod(element) {
98 | var hashTag = getHashForMethod(element);
99 | var panelName = getPanelName(element);
100 | showPanel(panelName);
101 | var current = document.location.href;
102 | var base = current.substring(0, current.indexOf('#'))
103 | document.location.href = base + '#' + hashTag;
104 | var newPosition = $(document).scrollTop() - 65;
105 | $(document).scrollTop(newPosition);
106 | }
107 |
108 | function drawTable() {
109 | for (var i = 0; i < suiteTableInitFunctions.length; i++) {
110 | window[suiteTableInitFunctions[i]]();
111 | }
112 |
113 | for (var k in window.suiteTableData) {
114 | var v = window.suiteTableData[k];
115 | var div = v.tableDiv;
116 | var data = v.tableData
117 | var table = new google.visualization.Table(document.getElementById(div));
118 | table.draw(data, {
119 | showRowNumber : false
120 | });
121 | }
122 | }
123 |
--------------------------------------------------------------------------------
/test-output/testng-reports1.css:
--------------------------------------------------------------------------------
1 | body {
2 | background-color: whitesmoke;
3 | margin: 0 0 5px 5px;
4 | }
5 | ul {
6 | margin-top: 10px;
7 | margin-left:-10px;
8 | }
9 | li {
10 | font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
11 | padding:5px 5px;
12 | }
13 | a {
14 | text-decoration: none;
15 | color: black;
16 | font-size: 14px;
17 | }
18 |
19 | a:hover {
20 | color:black ;
21 | text-decoration: underline;
22 | }
23 |
24 | .navigator-selected {
25 | /* #ffa500; Mouse hover color after click Orange.*/
26 | background:#027368
27 | }
28 |
29 | .wrapper {
30 | position: absolute;
31 | top: 60px;
32 | bottom: 0;
33 | left: 400px;
34 | right: 0;
35 | margin-right:9px;
36 | overflow: auto;/*imortant*/
37 | }
38 |
39 | .navigator-root {
40 | position: absolute;
41 | top: 60px;
42 | bottom: 0;
43 | left: 0;
44 | width: 400px;
45 | overflow-y: auto;/*important*/
46 | }
47 |
48 | .suite {
49 | margin: -5px 10px 10px 5px;
50 | background-color: whitesmoke ;/*Colour of the left bside box*/
51 | }
52 |
53 | .suite-name {
54 | font-size: 24px;
55 | font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;/*All TEST SUITE*/
56 | color: white;
57 | }
58 |
59 | .main-panel-header {
60 | padding: 5px;
61 | background-color: #027368; /*afeeee*/;
62 | font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
63 | color:white;
64 | font-size: 18px;
65 | }
66 |
67 | .main-panel-content {
68 | padding: 5px;
69 | margin-bottom: 10px;
70 | background-color: #CCD0D1; /*d0ffff*/; /*Belongs to backGround of rightSide boxes*/
71 | }
72 |
73 | .rounded-window {
74 | border-style: dotted;
75 | border-width: 1px;/*Border of left Side box*/
76 | background-color: whitesmoke;
77 | border-radius: 10px;
78 | }
79 |
80 | .rounded-window-top {
81 | border-top-right-radius: 10px 10px;
82 | border-top-left-radius: 10px 10px;
83 | border-style: solid;
84 | border-width: 1px;
85 | overflow: auto;/*Top of RightSide box*/
86 | }
87 |
88 | .light-rounded-window-top {
89 | background-color: #027368;
90 | padding-left:120px;
91 | border-radius: 10px;
92 |
93 | }
94 |
95 | .rounded-window-bottom {
96 | border-bottom-right-radius: 10px 10px;
97 | border-bottom-left-radius: 10px 10px;
98 | overflow: auto;/*Bottom of rightSide box*/
99 | }
100 |
101 | .method-name {
102 | font-size: 14px;
103 | font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
104 | font-weight: bold;
105 | }
106 |
107 | .method-content {
108 | border-style: solid;
109 | border-width: 0 0 1px 0;
110 | margin-bottom: 10px;
111 | padding-bottom: 5px;
112 | width: 100%;
113 | }
114 |
115 | .parameters {
116 | font-size: 14px;
117 | font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
118 | }
119 |
120 | .stack-trace {
121 | white-space: pre;
122 | font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
123 | font-size: 12px;
124 | font-weight: bold;
125 | margin-top: 0;
126 | margin-left: 20px; /*Error Stack Trace Message*/
127 | }
128 |
129 | .testng-xml {
130 | font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
131 | }
132 |
133 | .method-list-content {
134 | margin-left: 10px;
135 | }
136 |
137 | .navigator-suite-content {
138 | margin-left: 10px;
139 | font: 12px 'Lucida Grande';
140 | }
141 |
142 | .suite-section-title {
143 | font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
144 | font-size: 14px;
145 | font-weight:bold;
146 | background-color: #8C8887;
147 | margin-left: -10px;
148 | margin-top:10px;
149 | padding:6px;
150 | }
151 |
152 | .suite-section-content {
153 | list-style-image: url(bullet_point.png);
154 | background-color: whitesmoke;
155 | font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
156 | overflow: hidden;
157 | }
158 |
159 | .top-banner-root {
160 | position: absolute;
161 | top: 0;
162 | height: 45px;
163 | left: 0;
164 | right: 0;
165 | padding: 5px;
166 | margin: 0 0 5px 0;
167 | background-color: #027368;
168 | font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
169 | font-size: 18px;
170 | color: #fff;
171 | text-align: center;/*Belongs to the Top of Report*//*Status: - Completed*/
172 | }
173 |
174 | .top-banner-title-font {
175 | font-size: 25px;
176 | font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
177 | padding: 3px;
178 | float: right;
179 | }
180 |
181 | .test-name {
182 | font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
183 | font-size: 16px;
184 | }
185 |
186 | .suite-icon {
187 | padding: 5px;
188 | float: right;
189 | height: 20px;
190 | }
191 |
192 | .test-group {
193 | font: 20px 'Lucida Grande';
194 | margin: 5px 5px 10px 5px;
195 | border-width: 0 0 1px 0;
196 | border-style: solid;
197 | padding: 5px;
198 | }
199 |
200 | .test-group-name {
201 | font-weight: bold;
202 | }
203 |
204 | .method-in-group {
205 | font-size: 16px;
206 | margin-left: 80px;
207 | }
208 |
209 | table.google-visualization-table-table {
210 | width: 100%;
211 | }
212 |
213 | .reporter-method-name {
214 | font-size: 14px;
215 | font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
216 | }
217 |
218 | .reporter-method-output-div {
219 | padding: 5px;
220 | margin: 0 0 5px 20px;
221 | font-size: 12px;
222 | font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
223 | border-width: 0 0 0 1px;
224 | border-style: solid;
225 | }
226 |
227 | .ignored-class-div {
228 | font-size: 14px;
229 | font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
230 | }
231 |
232 | .ignored-methods-div {
233 | padding: 5px;
234 | margin: 0 0 5px 20px;
235 | font-size: 12px;
236 | font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
237 | border-width: 0 0 0 1px;
238 | border-style: solid;
239 | }
240 |
241 | .border-failed {
242 | border-radius:2px;
243 | border-style: solid;
244 | border-width: 0 0 0 10px;
245 | border-color: #F20505;
246 | }
247 |
248 | .border-skipped {
249 | border-radius:2px;
250 | border-style: solid;
251 | border-width: 0 0 0 10px;
252 | border-color: #F2BE22;
253 | }
254 |
255 | .border-passed {
256 | border-radius:2px;
257 | border-style: solid;
258 | border-width: 0 0 0 10px;
259 | border-color: #038C73;
260 | }
261 |
262 | .times-div {
263 | text-align: center;
264 | padding: 5px;
265 | }
266 |
267 | .suite-total-time {
268 | font: 16px 'Lucida Grande';
269 | }
270 |
271 | .configuration-suite {
272 | margin-left: 20px;
273 | }
274 |
275 | .configuration-test {
276 | margin-left: 40px;
277 | }
278 |
279 | .configuration-class {
280 | margin-left: 60px;
281 | }
282 |
283 | .configuration-method {
284 | margin-left: 80px;
285 | }
286 |
287 | .test-method {
288 | margin-left: 100px;
289 | }
290 |
291 | .chronological-class {
292 | background-color: #CCD0D1;
293 | border-width: 0 0 1px 1px;/*Chronological*/
294 | }
295 |
296 | .method-start {
297 | float: right;
298 | }
299 |
300 | .chronological-class-name {
301 | padding: 0 0 0 5px;
302 | margin-top:5px;
303 | font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
304 | color: #008;
305 | }
306 |
307 | .after, .before, .test-method {
308 | font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
309 | font-size: 14px;
310 | margin-top:5px;
311 | }
312 |
313 | .navigator-suite-header {
314 | font-size: 18px;
315 | margin: 0px 10px 10px 5px;
316 | padding: 5px;
317 | border-radius: 10px;
318 | background-color: #027368;
319 | color: white;
320 | font-weight:bold;
321 | font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
322 | text-align: center; /*All Suites on top of left box*//*Status: -Completed*/
323 | }
324 |
325 | .collapse-all-icon {
326 | padding: 3px;
327 | float: right;
328 | }
329 | .button{
330 | position: absolute;
331 | margin-left:500px;
332 | margin-top:8px;
333 | background-color: white;
334 | color:#027368;
335 | font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
336 | font-weight:bold;
337 | border-color:#027368;
338 | border-radius:25px;
339 | cursor: pointer;
340 | height:30px;
341 | width:150px;
342 | outline: none;
343 | }
344 | /*Author: - Akhil Gullapalli*/
--------------------------------------------------------------------------------
/test-output/testng-reports2.js:
--------------------------------------------------------------------------------
1 | window.onload = function () {
2 | let cookies = document.cookie;
3 | let cookieValue = cookies.split('=');
4 | if (cookieValue[1] === 'null' || localStorage.getItem('Theme') === 'null') {
5 | document.getElementById('retro').setAttribute('disabled', 'false');
6 | } else if (cookieValue[1] === 'Switch Ultra Theme' ||
7 | localStorage.getItem('Theme') === 'Switch Ultra Theme') {
8 | document.getElementById('button').innerText = "Switch Retro Theme";
9 | document.getElementById('retro').setAttribute('disabled', 'false');
10 |
11 | } else if (cookieValue[1] === 'Switch Retro Theme' ||
12 | localStorage.getItem('Theme') === 'Switch Retro Theme') {
13 | if (cookieValue[1] === 'Switch Ultra Theme' ||
14 | localStorage.getItem('Theme') === 'Switch Ultra Theme') {
15 | document.getElementById('button').innerText = "Switch Retro Theme";
16 | document.getElementById('retro').setAttribute('disabled', 'false');
17 |
18 | document.getElementById('button').innerText = "Switch Ultra Theme";
19 | document.getElementById('retro').removeAttribute('disabled');
20 | document.getElementById('ultra').setAttribute('disabled', 'false');
21 | localStorage.setItem('Theme', select);
22 |
23 | } else if (select === 'Switch Ultra Theme') {
24 | document.getElementById('button').innerText = "Switch Retro Theme";
25 | document.getElementById('ultra').removeAttribute('disabled');
26 | document.getElementById('retro').setAttribute('disabled', 'false');
27 | localStorage.setItem('Theme', select);
28 | }
29 | } else if (cookieValue[1] === 'Switch Retro Theme' ||
30 | localStorage.getItem('Theme') === 'Switch Retro Theme') {
31 | document.getElementById('button').innerText = "Switch Ultra Theme";
32 | document.getElementById('ultra').setAttribute('disabled', 'false');
33 | }
34 | }
35 | document.getElementById('button').onclick = function () {
36 | let select = document.getElementById('button').innerText;
37 | if (select === 'Switch Retro Theme') {
38 | let d = new Date();
39 | days = 365;
40 | d.setTime(+d + (days * 86400000)); //24 * 60 * 60 * 1000
41 | document.cookie = "Theme =" + select + "; expires=" + d.toGMTString() + ";";
42 | document.getElementById('button').innerText = "Switch Ultra Theme";
43 | document.getElementById('retro').removeAttribute('disabled');
44 | document.getElementById('ultra').setAttribute('disabled', 'false');
45 | localStorage.setItem('Theme', select);
46 |
47 | } else if (select === 'Switch Ultra Theme') {
48 | let d = new Date();
49 | days = 365;
50 | d.setTime(+d + (days * 86400000)); //24 * 60 * 60 * 1000
51 | document.cookie = "Theme =" + select + "; expires=" + d.toGMTString() + ";";
52 | document.getElementById('button').innerText = "Switch Retro Theme";
53 | document.getElementById('ultra').removeAttribute('disabled');
54 | document.getElementById('retro').setAttribute('disabled', 'false');
55 | localStorage.setItem('Theme', select);
56 | }
57 | }
58 | //Function to mouse hovering affect.
59 | document.getElementById('button').onmouseover = function () {
60 | document.getElementById('button').style.borderRadius = "25px";
61 | document.getElementById('button').style.width = "180px";
62 | document.getElementById('button').style.height = "45px";
63 | document.getElementById('button').style.marginTop = "1px";
64 |
65 | }
66 | //Function to mouse out affect
67 | document.getElementById('button').onmouseout = function () {
68 | document.getElementById('button').style.borderRadius = "25px";
69 | document.getElementById('button').style.width = "150px";
70 | document.getElementById('button').style.height = "30px";
71 | document.getElementById('button').style.marginTop = "8px";
72 |
73 | }
74 |
75 | //This is the file where we handle the switching of the Themes.
76 | /*Author:- Akhil Gullapalli*/
77 |
--------------------------------------------------------------------------------
/test-output/testng-results.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
--------------------------------------------------------------------------------
/test-output/testng.css:
--------------------------------------------------------------------------------
1 | .invocation-failed, .test-failed { background-color: #DD0000; }
2 | .invocation-percent, .test-percent { background-color: #006600; }
3 | .invocation-passed, .test-passed { background-color: #00AA00; }
4 | .invocation-skipped, .test-skipped { background-color: #CCCC00; }
5 |
6 | .main-page {
7 | font-size: x-large;
8 | }
9 |
10 |
--------------------------------------------------------------------------------
/testPullCommand.txt:
--------------------------------------------------------------------------------
1 | this is test message to check pull command
2 | 1
3 | 2
4 | 3
5 | 4
6 | 5
7 | 6
8 | 7
9 | 8
10 |
--------------------------------------------------------------------------------
/testng.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
--------------------------------------------------------------------------------