diff --git a/Projects/.idea/.gitignore b/Projects/.idea/.gitignore new file mode 100644 index 0000000..26d3352 --- /dev/null +++ b/Projects/.idea/.gitignore @@ -0,0 +1,3 @@ +# Default ignored files +/shelf/ +/workspace.xml diff --git a/Projects/.idea/Projects.iml b/Projects/.idea/Projects.iml new file mode 100644 index 0000000..086f25e --- /dev/null +++ b/Projects/.idea/Projects.iml @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/Projects/.idea/inspectionProfiles/Project_Default.xml b/Projects/.idea/inspectionProfiles/Project_Default.xml new file mode 100644 index 0000000..1627cb9 --- /dev/null +++ b/Projects/.idea/inspectionProfiles/Project_Default.xml @@ -0,0 +1,40 @@ + + + + \ No newline at end of file diff --git a/Projects/.idea/inspectionProfiles/profiles_settings.xml b/Projects/.idea/inspectionProfiles/profiles_settings.xml new file mode 100644 index 0000000..105ce2d --- /dev/null +++ b/Projects/.idea/inspectionProfiles/profiles_settings.xml @@ -0,0 +1,6 @@ + + + + \ No newline at end of file diff --git a/Projects/.idea/misc.xml b/Projects/.idea/misc.xml new file mode 100644 index 0000000..a971a2c --- /dev/null +++ b/Projects/.idea/misc.xml @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/Projects/.idea/modules.xml b/Projects/.idea/modules.xml new file mode 100644 index 0000000..7ed86b6 --- /dev/null +++ b/Projects/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/Projects/.idea/vcs.xml b/Projects/.idea/vcs.xml new file mode 100644 index 0000000..6c0b863 --- /dev/null +++ b/Projects/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/Projects/Amazon/TestData/New XLSX Worksheet.xlsx b/Projects/Amazon/TestData/New XLSX Worksheet.xlsx new file mode 100644 index 0000000..77fdcd4 Binary files /dev/null and b/Projects/Amazon/TestData/New XLSX Worksheet.xlsx differ diff --git a/Projects/Amazon/TestData/Testcases.xlsx b/Projects/Amazon/TestData/Testcases.xlsx new file mode 100644 index 0000000..c97cf73 Binary files /dev/null and b/Projects/Amazon/TestData/Testcases.xlsx differ diff --git a/Projects/Amazon/TestData/__init__.py b/Projects/Amazon/TestData/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/Projects/Amazon/Tests/__init__.py b/Projects/Amazon/Tests/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/Projects/Amazon/Tests/test_index.py b/Projects/Amazon/Tests/test_index.py new file mode 100644 index 0000000..38691bd --- /dev/null +++ b/Projects/Amazon/Tests/test_index.py @@ -0,0 +1,10 @@ +# Invoke Browser +from selenium import webdriver +from selenium.webdriver.chrome.service import Service +from selenium.webdriver.common.by import By + +service_obj = Service("C:/Users/Abhishek Kulkarni/Desktop/AK/Software Testing/Automation/chromedriver_win32/chromedriver") +driver = webdriver.Chrome(service=service_obj) + +driver.get("https://www.amazon.in/") +driver.find_element(By.ID, "nav-link-accountList").click() diff --git a/Projects/Amazon/__init__.py b/Projects/Amazon/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/PythonSelFramework/reports/report.html b/PythonSelFramework/reports/report.html index 654e27d..5814c39 100644 --- a/PythonSelFramework/reports/report.html +++ b/PythonSelFramework/reports/report.html @@ -253,10 +253,10 @@ }

report.html

-

Report generated on 02-Aug-2023 at 23:15:10 by pytest-html v3.2.0

+

Report generated on 06-Aug-2023 at 16:20:36 by pytest-html v3.2.0

Summary

-

3 tests ran in 324.23 seconds.

- 3 passed, 0 skipped, 0 failed, 0 errors, 0 expected failures, 0 unexpected passes +

2 tests ran in 105.19 seconds.

+ 2 passed, 0 skipped, 0 failed, 0 errors, 0 expected failures, 0 unexpected passes

Results

@@ -271,29 +271,18 @@

Results

- + - - - - - - - - - +
Passed test_anugularPractice.py::TestHomePage::test_FormSubmission[getData0]259.0053.51
-
-------------------------------Captured log call--------------------------------
INFO test_FormSubmission:test_anugularPractice.py:11 Entering Name as Abhishek -INFO test_FormSubmission:test_anugularPractice.py:21 × -Success! The Form has been submitted successfully!.
Passedtest_anugularPractice.py::TestHomePage::test_FormSubmission[getData1]15.70
-
-------------------------------Captured log call--------------------------------
INFO test_FormSubmission:test_anugularPractice.py:11 Entering Name as Priya +
-------------------------------Captured log setup-------------------------------
WARNING selenium.webdriver.common.selenium_manager:selenium_manager.py:117 Error getting version of chromedriver 115. Retrying with chromedriver 114 (attempt 1/5)
-------------------------------Captured log call--------------------------------
INFO test_FormSubmission:test_anugularPractice.py:11 Entering Name as Abhijeet INFO test_FormSubmission:test_anugularPractice.py:21 × Success! The Form has been submitted successfully!.
Passed test_e2e.py::TestOne::test_e2e48.1532.78
diff --git a/PythonSelFramework/tests/logfile.log b/PythonSelFramework/tests/logfile.log index 16ded86..6297838 100644 --- a/PythonSelFramework/tests/logfile.log +++ b/PythonSelFramework/tests/logfile.log @@ -208,3 +208,16 @@ Success! The Form has been submitted successfully!. 2023-08-04 01:29:04,282 : INFO : test_FormSubmission : Entering Name as Abhijeet 2023-08-04 01:29:09,923 : INFO : test_FormSubmission : × Success! The Form has been submitted successfully!. +2023-08-06 16:19:53,774 : INFO : test_FormSubmission : Entering Name as Abhijeet +2023-08-06 16:20:00,216 : INFO : test_FormSubmission : × +Success! The Form has been submitted successfully!. +2023-08-06 16:20:26,175 : INFO : test_e2e : Invoking browser and redirecting to link and filling form. +2023-08-06 16:20:27,412 : INFO : test_e2e : clicking on shop text link +2023-08-06 16:20:27,436 : INFO : test_e2e : getting card details +2023-08-06 16:20:27,494 : INFO : test_e2e : iphone X +2023-08-06 16:20:27,525 : INFO : test_e2e : Samsung Note 8 +2023-08-06 16:20:27,548 : INFO : test_e2e : Nokia Edge +2023-08-06 16:20:27,572 : INFO : test_e2e : Blackberry +2023-08-06 16:20:28,476 : INFO : test_e2e : Entering country name as Ind +2023-08-06 16:20:34,133 : INFO : test_e2e : Text received form application × +Success! Thank you! Your order will be delivered in next few weeks :-). diff --git a/PythonSelFramework/tests/result.xml b/PythonSelFramework/tests/result.xml index 0b85ab2..bffd266 100644 --- a/PythonSelFramework/tests/result.xml +++ b/PythonSelFramework/tests/result.xml @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file