Skip to content

Commit

Permalink
21 commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Abhi-Cool-karni committed Aug 12, 2023
1 parent 6fc9c14 commit 4e57676
Show file tree
Hide file tree
Showing 16 changed files with 108 additions and 18 deletions.
3 changes: 3 additions & 0 deletions Projects/.idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 11 additions & 0 deletions Projects/.idea/Projects.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

40 changes: 40 additions & 0 deletions Projects/.idea/inspectionProfiles/Project_Default.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions Projects/.idea/inspectionProfiles/profiles_settings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions Projects/.idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions Projects/.idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions Projects/.idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file added Projects/Amazon/TestData/New XLSX Worksheet.xlsx
Binary file not shown.
Binary file added Projects/Amazon/TestData/Testcases.xlsx
Binary file not shown.
Empty file.
Empty file.
10 changes: 10 additions & 0 deletions Projects/Amazon/Tests/test_index.py
Original file line number Diff line number Diff line change
@@ -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()
Empty file added Projects/Amazon/__init__.py
Empty file.
23 changes: 6 additions & 17 deletions PythonSelFramework/reports/report.html
Original file line number Diff line number Diff line change
Expand Up @@ -253,10 +253,10 @@
}
</script>
<h1>report.html</h1>
<p>Report generated on 02-Aug-2023 at 23:15:10 by <a href="https://pypi.python.org/pypi/pytest-html">pytest-html</a> v3.2.0</p>
<p>Report generated on 06-Aug-2023 at 16:20:36 by <a href="https://pypi.python.org/pypi/pytest-html">pytest-html</a> v3.2.0</p>
<h2>Summary</h2>
<p>3 tests ran in 324.23 seconds. </p>
<p class="filter" hidden="true">(Un)check the boxes to filter the results.</p><input checked="true" class="filter" data-test-result="passed" hidden="true" name="filter_checkbox" onChange="filterTable(this)" type="checkbox"/><span class="passed">3 passed</span>, <input checked="true" class="filter" data-test-result="skipped" disabled="true" hidden="true" name="filter_checkbox" onChange="filterTable(this)" type="checkbox"/><span class="skipped">0 skipped</span>, <input checked="true" class="filter" data-test-result="failed" disabled="true" hidden="true" name="filter_checkbox" onChange="filterTable(this)" type="checkbox"/><span class="failed">0 failed</span>, <input checked="true" class="filter" data-test-result="error" disabled="true" hidden="true" name="filter_checkbox" onChange="filterTable(this)" type="checkbox"/><span class="error">0 errors</span>, <input checked="true" class="filter" data-test-result="xfailed" disabled="true" hidden="true" name="filter_checkbox" onChange="filterTable(this)" type="checkbox"/><span class="xfailed">0 expected failures</span>, <input checked="true" class="filter" data-test-result="xpassed" disabled="true" hidden="true" name="filter_checkbox" onChange="filterTable(this)" type="checkbox"/><span class="xpassed">0 unexpected passes</span>
<p>2 tests ran in 105.19 seconds. </p>
<p class="filter" hidden="true">(Un)check the boxes to filter the results.</p><input checked="true" class="filter" data-test-result="passed" hidden="true" name="filter_checkbox" onChange="filterTable(this)" type="checkbox"/><span class="passed">2 passed</span>, <input checked="true" class="filter" data-test-result="skipped" disabled="true" hidden="true" name="filter_checkbox" onChange="filterTable(this)" type="checkbox"/><span class="skipped">0 skipped</span>, <input checked="true" class="filter" data-test-result="failed" disabled="true" hidden="true" name="filter_checkbox" onChange="filterTable(this)" type="checkbox"/><span class="failed">0 failed</span>, <input checked="true" class="filter" data-test-result="error" disabled="true" hidden="true" name="filter_checkbox" onChange="filterTable(this)" type="checkbox"/><span class="error">0 errors</span>, <input checked="true" class="filter" data-test-result="xfailed" disabled="true" hidden="true" name="filter_checkbox" onChange="filterTable(this)" type="checkbox"/><span class="xfailed">0 expected failures</span>, <input checked="true" class="filter" data-test-result="xpassed" disabled="true" hidden="true" name="filter_checkbox" onChange="filterTable(this)" type="checkbox"/><span class="xpassed">0 unexpected passes</span>
<h2>Results</h2>
<table id="results-table">
<thead id="results-table-head">
Expand All @@ -271,29 +271,18 @@ <h2>Results</h2>
<tr>
<td class="col-result">Passed</td>
<td class="col-name">test_anugularPractice.py::TestHomePage::test_FormSubmission[getData0]</td>
<td class="col-duration">259.00</td>
<td class="col-duration">53.51</td>
<td class="col-links"></td></tr>
<tr>
<td class="extra" colspan="4">
<div class="log"> -------------------------------Captured log call-------------------------------- <br/>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!.<br/></div></td></tr></tbody>
<tbody class="passed results-table-row">
<tr>
<td class="col-result">Passed</td>
<td class="col-name">test_anugularPractice.py::TestHomePage::test_FormSubmission[getData1]</td>
<td class="col-duration">15.70</td>
<td class="col-links"></td></tr>
<tr>
<td class="extra" colspan="4">
<div class="log"> -------------------------------Captured log call-------------------------------- <br/>INFO test_FormSubmission:test_anugularPractice.py:11 Entering Name as Priya
<div class="log"> -------------------------------Captured log setup------------------------------- <br/>WARNING selenium.webdriver.common.selenium_manager:selenium_manager.py:117 Error getting version of chromedriver 115. Retrying with chromedriver 114 (attempt 1/5)<br/> -------------------------------Captured log call-------------------------------- <br/>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!.<br/></div></td></tr></tbody>
<tbody class="passed results-table-row">
<tr>
<td class="col-result">Passed</td>
<td class="col-name">test_e2e.py::TestOne::test_e2e</td>
<td class="col-duration">48.15</td>
<td class="col-duration">32.78</td>
<td class="col-links"></td></tr>
<tr>
<td class="extra" colspan="4">
Expand Down
13 changes: 13 additions & 0 deletions PythonSelFramework/tests/logfile.log
Original file line number Diff line number Diff line change
Expand Up @@ -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 :-).
2 changes: 1 addition & 1 deletion PythonSelFramework/tests/result.xml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<?xml version="1.0" encoding="utf-8"?><testsuites><testsuite name="pytest" errors="0" failures="0" skipped="0" tests="3" time="323.761" timestamp="2023-08-02T23:09:46.588682" hostname="LAPTOP-4VQ070E6"><testcase classname="test_anugularPractice.TestHomePage" name="test_FormSubmission[getData0]" time="259.009" /><testcase classname="test_anugularPractice.TestHomePage" name="test_FormSubmission[getData1]" time="15.705" /><testcase classname="test_e2e.TestOne" name="test_e2e" time="48.151" /></testsuite></testsuites>
<?xml version="1.0" encoding="utf-8"?><testsuites><testsuite name="pytest" errors="0" failures="0" skipped="0" tests="2" time="105.075" timestamp="2023-08-06T16:18:51.086573" hostname="LAPTOP-4VQ070E6"><testcase classname="test_anugularPractice.TestHomePage" name="test_FormSubmission[getData0]" time="53.513" /><testcase classname="test_e2e.TestOne" name="test_e2e" time="32.786" /></testsuite></testsuites>

0 comments on commit 4e57676

Please sign in to comment.