Skip to content

Commit a5fa786

Browse files
update
1 parent 3b33735 commit a5fa786

File tree

72 files changed

+998
-61
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

72 files changed

+998
-61
lines changed

Config/config.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[PROD]
2-
baseURL =http://127.0.0.1:5000/login
2+
baseURL =http://automationpractice.com/index.php
33
screenshot_path=temp\screenshots\
44
test_data=TestData\TestData.xlsx
55
ie_path=Drivers\IEDriverServer.exe

Locators/casual_dresses.json

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
[
2+
{
3+
"page_name":"Casual_Dress",
4+
"name":"dresses_menu",
5+
"locate":"xpath",
6+
"locator":"//*[@id='block_top_menu']/ul/li[2]/a[contains(text(),'Dresses')]"
7+
},
8+
{
9+
"page_name":"Casual_Dress",
10+
"name":"casual_dresses_menu",
11+
"locate":"xpath",
12+
"locator":"//*[@id='block_top_menu']/ul/li[2]/ul/li[1]/a[contains(text(),'Casual Dresses')]"
13+
},
14+
{
15+
"page_name":"Casual_Dress",
16+
"name":"cat_name",
17+
"locate":"xpath",
18+
"locator":"//*[@id='center_column']//span[@class='cat-name']"
19+
},
20+
21+
{
22+
"page_name":"Casual_Dress",
23+
"name":"printed_dress",
24+
"locate":"xpath",
25+
"locator":"//*[@id='center_column']//a[contains(text(),'Printed Dress')]"
26+
},
27+
28+
{
29+
"page_name":"Casual_Dress",
30+
"name":"stock_check",
31+
"locate":"xpath",
32+
"locator":"//*[@class='available-now']//following::link"
33+
},
34+
{
35+
"page_name": "Casual_Dress",
36+
"name": "add_to_cart",
37+
"locate": "xpath",
38+
"locator": "//*[@title='Add to cart']"
39+
},
40+
41+
{
42+
"page_name":"Casual_Dress",
43+
"name":"product_price",
44+
"locate":"xpath",
45+
"locator":"//*[@id='layer_cart_product_price']"
46+
},
47+
48+
{
49+
"page_name":"Casual_Dress",
50+
"name":"product_hover",
51+
"locate":"xpath",
52+
"locator":"//*[@id='center_column']/ul/li/div"
53+
}
54+
]

Locators/login_locator.json

Lines changed: 20 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,32 +2,45 @@
22
{
33
"page_name":"LoginPage",
44
"name":"username",
5-
"locate":"xpath",
6-
"locator":"//input[@name='username']"
5+
"locate":"id",
6+
"locator":"email"
77
},
88
{
99
"page_name":"LoginPage",
1010
"name":"password",
11-
"locate":"xpath",
12-
"locator":"//input[@name='password']"
11+
"locate":"id",
12+
"locator":"passwd"
1313
},
1414
{
1515
"page_name":"LoginPage",
1616
"name":"submit_btn",
1717
"locate":"id",
18-
"locator":"btnLogin"
18+
"locator":"SubmitLogin"
1919
},
2020
{
2121
"page_name":"LoginPage",
2222
"name":"verify_signin",
2323
"locate":"xpath",
24-
"locator":"//span[contains(text(),'admin')]"
24+
"locator":"//*[@id='header']//span[contains(text(),'username')]"
2525
},
2626
{
2727
"page_name":"LoginPage",
2828
"name":"error_signin",
2929
"locate":"xpath",
30-
"locator":"//span[contains(text(),'Invalid Username/Password')]"
30+
"locator":"//*[@id='center_column']//li[contains(text(),'Authentication failed.')]"
3131

32+
},
33+
{
34+
"page_name":"LoginPage",
35+
"name":"sign_out",
36+
"locate":"xpath",
37+
"locator":"//*[@id='header']//a[@title='Log me out']"
38+
39+
},
40+
{
41+
"page_name":"LoginPage",
42+
"name":"sign_in",
43+
"locate":"xpath",
44+
"locator":"//*[@id='header']//a[contains(text(),'Sign in')]"
3245
}
3346
]
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
2020-03-06 20:44:27,726 - INFO - Element found with locator: txtUsername and locatorType: id
2+
2020-03-06 20:44:27,898 - INFO - Sent data on element with locator: txtUsername locatorType: id
3+
2020-03-06 20:44:27,932 - INFO - Element found with locator: txtPassword and locatorType: id
4+
2020-03-06 20:44:28,055 - INFO - Sent data on element with locator: txtPassword locatorType: id
5+
2020-03-06 20:44:28,080 - INFO - Element found with locator: btnLogin and locatorType: id
6+
2020-03-06 20:44:33,954 - INFO - Clicked on element with locator: btnLogin locatorType: id
7+
2020-03-06 20:44:33,992 - INFO - Element found with locator: //*[@id='spanMessage'] and locatorType: xpath
8+
2020-03-06 20:44:33,992 - INFO - Element present with locator: //*[@id='spanMessage'] locatorType: xpath
9+
2020-03-06 20:44:33,993 - INFO - ### VERIFICATION SUCCESSFUL :: + In-valid SignIn
10+
2020-03-06 20:44:33,993 - INFO - test_invalid_SignIn ### TEST SUCCESSFUL
11+
2020-03-06 20:44:34,044 - INFO - Element found with locator: txtUsername and locatorType: id
12+
2020-03-06 20:44:34,153 - INFO - Sent data on element with locator: txtUsername locatorType: id
13+
2020-03-06 20:44:34,166 - INFO - Element found with locator: txtPassword and locatorType: id
14+
2020-03-06 20:44:34,252 - INFO - Sent data on element with locator: txtPassword locatorType: id
15+
2020-03-06 20:44:34,263 - INFO - Element found with locator: btnLogin and locatorType: id
16+
2020-03-06 20:44:43,511 - INFO - Clicked on element with locator: btnLogin locatorType: id
17+
2020-03-06 20:44:43,532 - INFO - Element found with locator: //*[@id='welcome'] and locatorType: xpath
18+
2020-03-06 20:44:43,532 - INFO - Element present with locator: //*[@id='welcome'] locatorType: xpath
19+
2020-03-06 20:44:43,532 - INFO - ### VERIFICATION SUCCESSFUL :: + Valid SignIn
20+
2020-03-06 20:44:43,532 - INFO - test_valid_SignIn ### TEST SUCCESSFUL
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
2020-03-06 23:32:39,220 - INFO - Element found with locator: //*[@id='header']//a[contains(text(),'Sign in')] and locatorType: xpath
2+
2020-03-06 23:32:41,856 - INFO - Clicked on element with locator: //*[@id='header']//a[contains(text(),'Sign in')] locatorType: xpath
3+
2020-03-06 23:32:41,864 - INFO - ### VERIFICATION CONTAINS !!!
4+
2020-03-06 23:32:41,881 - INFO - Element found with locator: email and locatorType: id
5+
2020-03-06 23:32:42,196 - INFO - Sent data on element with locator: email locatorType: id
6+
2020-03-06 23:32:42,218 - INFO - Element found with locator: passwd and locatorType: id
7+
2020-03-06 23:32:42,342 - INFO - Sent data on element with locator: passwd locatorType: id
8+
2020-03-06 23:32:42,361 - INFO - Element found with locator: SubmitLogin and locatorType: id
9+
2020-03-06 23:32:44,974 - INFO - Clicked on element with locator: SubmitLogin locatorType: id
10+
2020-03-06 23:32:45,016 - INFO - Element found with locator: //*[@id='header']//span[contains(text(),'Firstname lastname')] and locatorType: xpath
11+
2020-03-06 23:32:45,017 - INFO - Element present with locator: //*[@id='header']//span[contains(text(),'Firstname lastname')] locatorType: xpath
12+
2020-03-06 23:32:45,018 - INFO - ### VERIFICATION SUCCESSFUL :: + Valid SignIn
13+
2020-03-06 23:32:45,019 - INFO - test_valid_SignIn ### TEST SUCCESSFUL
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
2020-03-06 23:33:49,439 - INFO - Element found with locator: //*[@id='header']//a[contains(text(),'Sign in')] and locatorType: xpath
2+
2020-03-06 23:33:52,193 - INFO - Clicked on element with locator: //*[@id='header']//a[contains(text(),'Sign in')] locatorType: xpath
3+
2020-03-06 23:33:52,210 - INFO - ### VERIFICATION CONTAINS !!!
4+
2020-03-06 23:33:52,345 - INFO - Element found with locator: email and locatorType: id
5+
2020-03-06 23:33:53,082 - INFO - Sent data on element with locator: email locatorType: id
6+
2020-03-06 23:33:53,114 - INFO - Element found with locator: passwd and locatorType: id
7+
2020-03-06 23:33:53,279 - INFO - Sent data on element with locator: passwd locatorType: id
8+
2020-03-06 23:33:53,297 - INFO - Element found with locator: SubmitLogin and locatorType: id
9+
2020-03-06 23:33:55,674 - INFO - Clicked on element with locator: SubmitLogin locatorType: id
10+
2020-03-06 23:33:55,711 - INFO - Element found with locator: //*[@id='header']//span[contains(text(),'Firstname lastname')] and locatorType: xpath
11+
2020-03-06 23:33:55,712 - INFO - Element present with locator: //*[@id='header']//span[contains(text(),'Firstname lastname')] locatorType: xpath
12+
2020-03-06 23:33:55,712 - INFO - ### VERIFICATION SUCCESSFUL :: + Valid SignIn
13+
2020-03-06 23:33:55,712 - INFO - test_valid_SignIn ### TEST SUCCESSFUL

Logs/07-03-2020/log07032020-0943.log

Whitespace-only changes.
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
2020-03-07 09:46:03,235 - INFO - Element found with locator: //*[@id='header']//a[contains(text(),'Sign in')] and locatorType: xpath
2+
2020-03-07 09:46:06,126 - INFO - Clicked on element with locator: //*[@id='header']//a[contains(text(),'Sign in')] locatorType: xpath
3+
2020-03-07 09:46:06,137 - INFO - ### VERIFICATION CONTAINS !!!
4+
2020-03-07 09:46:06,163 - INFO - Element found with locator: email and locatorType: id
5+
2020-03-07 09:46:06,498 - INFO - Sent data on element with locator: email locatorType: id
6+
2020-03-07 09:46:06,522 - INFO - Element found with locator: passwd and locatorType: id
7+
2020-03-07 09:46:06,658 - INFO - Sent data on element with locator: passwd locatorType: id
8+
2020-03-07 09:46:06,679 - INFO - Element found with locator: SubmitLogin and locatorType: id
9+
2020-03-07 09:46:08,799 - INFO - Clicked on element with locator: SubmitLogin locatorType: id
10+
2020-03-07 09:46:08,869 - INFO - Element found with locator: //*[@id='header']//span[contains(text(),'Firstname lastname')] and locatorType: xpath
11+
2020-03-07 09:46:08,870 - INFO - Element present with locator: //*[@id='header']//span[contains(text(),'Firstname lastname')] locatorType: xpath
12+
2020-03-07 09:46:08,871 - INFO - ### VERIFICATION SUCCESSFUL :: + Valid SignIn
13+
2020-03-07 09:46:08,871 - INFO - test_valid_SignIn ### TEST SUCCESSFUL
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
2020-03-07 09:47:22,351 - INFO - Element found with locator: //*[@id='header']//a[contains(text(),'Sign in')] and locatorType: xpath
2+
2020-03-07 09:47:24,839 - INFO - Clicked on element with locator: //*[@id='header']//a[contains(text(),'Sign in')] locatorType: xpath
3+
2020-03-07 09:47:24,848 - INFO - ### VERIFICATION CONTAINS !!!
4+
2020-03-07 09:47:24,901 - INFO - Element found with locator: email and locatorType: id
5+
2020-03-07 09:47:25,153 - INFO - Sent data on element with locator: email locatorType: id
6+
2020-03-07 09:47:25,187 - INFO - Element found with locator: passwd and locatorType: id
7+
2020-03-07 09:47:25,324 - INFO - Sent data on element with locator: passwd locatorType: id
8+
2020-03-07 09:47:25,346 - INFO - Element found with locator: SubmitLogin and locatorType: id
9+
2020-03-07 09:47:27,008 - INFO - Clicked on element with locator: SubmitLogin locatorType: id
10+
2020-03-07 09:47:27,031 - INFO - Element found with locator: //*[@id='center_column']//li[contains(text(),'Authentication failed.')] and locatorType: xpath
11+
2020-03-07 09:47:27,031 - INFO - Element present with locator: //*[@id='center_column']//li[contains(text(),'Authentication failed.')] locatorType: xpath
12+
2020-03-07 09:47:27,031 - INFO - ### VERIFICATION SUCCESSFUL :: + In-valid SignIn
13+
2020-03-07 09:47:27,031 - INFO - test_invalid_SignIn ### TEST SUCCESSFUL
14+
2020-03-07 09:47:27,118 - INFO - Element found with locator: //*[@id='header']//a[contains(text(),'Sign in')] and locatorType: xpath
15+
2020-03-07 09:47:29,254 - INFO - Clicked on element with locator: //*[@id='header']//a[contains(text(),'Sign in')] locatorType: xpath
16+
2020-03-07 09:47:29,266 - INFO - ### VERIFICATION CONTAINS !!!
17+
2020-03-07 09:47:29,281 - INFO - Element found with locator: email and locatorType: id
18+
2020-03-07 09:47:29,543 - INFO - Sent data on element with locator: email locatorType: id
19+
2020-03-07 09:47:29,552 - INFO - Element found with locator: passwd and locatorType: id
20+
2020-03-07 09:47:29,664 - INFO - Sent data on element with locator: passwd locatorType: id
21+
2020-03-07 09:47:29,678 - INFO - Element found with locator: SubmitLogin and locatorType: id
22+
2020-03-07 09:47:31,892 - INFO - Clicked on element with locator: SubmitLogin locatorType: id
23+
2020-03-07 09:47:31,940 - INFO - Element found with locator: //*[@id='header']//span[contains(text(),'Firstname lastname')] and locatorType: xpath
24+
2020-03-07 09:47:31,940 - INFO - Element present with locator: //*[@id='header']//span[contains(text(),'Firstname lastname')] locatorType: xpath
25+
2020-03-07 09:47:31,941 - INFO - ### VERIFICATION SUCCESSFUL :: + Valid SignIn
26+
2020-03-07 09:47:31,941 - INFO - test_valid_SignIn ### TEST SUCCESSFUL

Logs/07-03-2020/log07032020-1033.log

Whitespace-only changes.

0 commit comments

Comments
 (0)