report.html

Report generated on 06-Apr-2023 at 11:05:15 by pytest-html v2.1.1

Environment

Packages {"pluggy": "0.13.1", "py": "1.9.0", "pytest": "7.2.2"}
Platform Windows-10-10.0.19041-SP0
Plugins {"allure-pytest": "2.8.18", "datadir": "1.3.1", "html": "2.1.1", "metadata": "1.10.0", "xdist": "3.2.1"}
Python 3.8.5

Summary

2 tests ran in 2110.04 seconds.

1 passed, 0 skipped, 1 failed, 0 errors, 0 expected failures, 0 unexpected passes

Results

Result Test Duration Links
Failed test_frs_lead_prod.py::TestFrsLeadSubmission::test_ebook_lead_submission 918.69
self = <test_frs_lead_prod.TestFrsLeadSubmission object at 0x0000017F7E9F6F10>, initialize_pages = None
testdata = {'db_type': 'mysql', 'query_to_fetch_urls': "select url from ice9.seo where linkable_type='ebook' and status=1 and url is not null limit 30"}

@pytest.mark.test_details("0000","high","ebook lead","pallavi")
def test_ebook_lead_submission(self,initialize_pages,testdata):
self._test_add_rows_in_csv()
countervalue=0
query_to_get_data = db.get_prod_data(testdata['query_to_fetch_urls'],testdata['db_type'])
urls = list(map(itemgetter('url'), query_to_get_data))
for url in urls:
ebook_url=(pytest.config['prod_url']+url).replace('//','/')
course =ebook_url.split('/')[-1]
counter,status=self.pg_ebook.submit_ebook_lead_submission(ebook_url)
if counter >=1:
countervalue= countervalue+1
lead_type='FrsEbookLead'
filename = "Report.csv"
rows = [[lead_type,course,ebook_url,status]]
with open(filename, 'a', newline='\n') as csvfile:
csvwriter = csv.writer(csvfile)
csvwriter.writerows(rows)
if countervalue >=1:
> pytest.fail('lead submission failed')
E Failed: lead submission failed

test_prod\test_frs_lead_prod.py:54: Failed
------------------------------Captured stdout call------------------------------
SimpliAutoTesting5718@simplilearn.com SimpliAutoTesting9067@simplilearn.com SimpliAutoTesting5868@simplilearn.com SimpliAutoTesting7016@simplilearn.com SimpliAutoTesting8645@simplilearn.com SimpliAutoTesting2505@simplilearn.com SimpliAutoTesting7381@simplilearn.com SimpliAutoTesting3706@simplilearn.com SimpliAutoTesting237@simplilearn.com SimpliAutoTesting5284@simplilearn.com SimpliAutoTesting707@simplilearn.com SimpliAutoTesting3072@simplilearn.com SimpliAutoTesting2302@simplilearn.com SimpliAutoTesting7408@simplilearn.com SimpliAutoTesting7010@simplilearn.com SimpliAutoTesting38@simplilearn.com SimpliAutoTesting9765@simplilearn.com SimpliAutoTesting5588@simplilearn.com SimpliAutoTesting256@simplilearn.com SimpliAutoTesting1912@simplilearn.com SimpliAutoTesting8681@simplilearn.com SimpliAutoTesting512@simplilearn.com SimpliAutoTesting5351@simplilearn.com SimpliAutoTesting2718@simplilearn.com SimpliAutoTesting3268@simplilearn.com SimpliAutoTesting1472@simplilearn.com SimpliAutoTesting161@simplilearn.com SimpliAutoTesting9272@simplilearn.com SimpliAutoTesting638@simplilearn.com SimpliAutoTesting6359@simplilearn.com
Passed test_frs_lead_prod.py::TestFrsLeadSubmission::test_on_demand_webinar_lead_submission 1185.70
-------------------------------Captured log call--------------------------------
ERROR  setup:selenium_helper.py:113 Message: WARNING  setup:selenium_helper.py:114 the locator ('xpath', "//a[contains(text(),'Register for webinar')]") on url https://www.simplilearn.com/aws-security-identity-and-access-management-iam-webinar is not visible ERROR  setup:selenium_helper.py:113 Message: WARNING  setup:selenium_helper.py:114 the locator ('xpath', "//input[@name='firstname']") on url https://www.simplilearn.com/aws-security-identity-and-access-management-iam-webinar is not visible ERROR  setup:selenium_helper.py:113 Message: WARNING  setup:selenium_helper.py:114 the locator ('xpath', "//a[contains(text(),'Register for webinar')]") on url https://www.simplilearn.com/how-to-mint-money-with-adsense-and-blogging-skills-webinar is not visible ERROR  setup:selenium_helper.py:113 Message: WARNING  setup:selenium_helper.py:114 the locator ('xpath', "//input[@name='firstname']") on url https://www.simplilearn.com/how-to-mint-money-with-adsense-and-blogging-skills-webinar is not visible ERROR  setup:selenium_helper.py:113 Message: WARNING  setup:selenium_helper.py:114 the locator ('xpath', "//a[contains(text(),'Register for webinar')]") on url https://www.simplilearn.com/why-you-should-consider-career-in-salesforce-webinar is not visible ERROR  setup:selenium_helper.py:113 Message: WARNING  setup:selenium_helper.py:114 the locator ('xpath', "//input[@name='firstname']") on url https://www.simplilearn.com/why-you-should-consider-career-in-salesforce-webinar is not visible ERROR  setup:selenium_helper.py:113 Message: WARNING  setup:selenium_helper.py:114 the locator ('xpath', "//a[contains(text(),'Register for webinar')]") on url https://www.simplilearn.com/how-i-failed-my-pmp-webinar is not visible ERROR  setup:selenium_helper.py:113 Message: WARNING  setup:selenium_helper.py:114 the locator ('xpath', "//input[@name='firstname']") on url https://www.simplilearn.com/how-i-failed-my-pmp-webinar is not visible ERROR  setup:selenium_helper.py:113 Message: WARNING  setup:selenium_helper.py:114 the locator ('xpath', "//a[contains(text(),'Register for webinar')]") on url https://www.simplilearn.com/need-for-cloud-skilled-technical-professionals-webinar is not visible ERROR  setup:selenium_helper.py:113 Message: WARNING  setup:selenium_helper.py:114 the locator ('xpath', "//input[@name='firstname']") on url https://www.simplilearn.com/need-for-cloud-skilled-technical-professionals-webinar is not visible ERROR  setup:selenium_helper.py:113 Message: WARNING  setup:selenium_helper.py:114 the locator ('xpath', "//a[contains(text(),'Register for webinar')]") on url https://www.simplilearn.com/designing-spam-classifier-using-machine-learning-webinar is not visible ERROR  setup:selenium_helper.py:113 Message: WARNING  setup:selenium_helper.py:114 the locator ('xpath', "//input[@name='firstname']") on url https://www.simplilearn.com/designing-spam-classifier-using-machine-learning-webinar is not visible ERROR  setup:selenium_helper.py:113 Message: WARNING  setup:selenium_helper.py:114 the locator ('xpath', "//a[contains(text(),'Register for webinar')]") on url https://www.simplilearn.com/how-it-service-continuity-model-help-defeat-ransomware-attack-webinar is not visible ERROR  setup:selenium_helper.py:113 Message: WARNING  setup:selenium_helper.py:114 the locator ('xpath', "//input[@name='firstname']") on url https://www.simplilearn.com/how-it-service-continuity-model-help-defeat-ransomware-attack-webinar is not visible ERROR  setup:selenium_helper.py:113 Message: WARNING  setup:selenium_helper.py:114 the locator ('xpath', "//a[contains(text(),'Register for webinar')]") on url https://www.simplilearn.com/need-of-cyber-security-in-the-present-era-webinar is not visible ERROR  setup:selenium_helper.py:113 Message: WARNING  setup:selenium_helper.py:114 the locator ('xpath', "//input[@name='firstname']") on url https://www.simplilearn.com/need-of-cyber-security-in-the-present-era-webinar is not visible ERROR  setup:selenium_helper.py:113 Message: WARNING  setup:selenium_helper.py:114 the locator ('xpath', "//a[contains(text(),'Register for webinar')]") on url https://www.simplilearn.com/big-data-analysis-using-apache-hive-webinar is not visible ERROR  setup:selenium_helper.py:113 Message: WARNING  setup:selenium_helper.py:114 the locator ('xpath', "//input[@name='firstname']") on url https://www.simplilearn.com/big-data-analysis-using-apache-hive-webinar is not visible ERROR  setup:selenium_helper.py:113 Message: WARNING  setup:selenium_helper.py:114 the locator ('xpath', "//a[contains(text(),'Register for webinar')]") on url https://www.simplilearn.com/basics-of-online-reputation-management-webinar is not visible ERROR  setup:selenium_helper.py:113 Message: WARNING  setup:selenium_helper.py:114 the locator ('xpath', "//input[@name='firstname']") on url https://www.simplilearn.com/basics-of-online-reputation-management-webinar is not visible ERROR  setup:selenium_helper.py:113 Message: WARNING  setup:selenium_helper.py:114 the locator ('xpath', "//a[contains(text(),'Register for webinar')]") on url https://www.simplilearn.com/10-ways-to-market-your-project-webinar is not visible ERROR  setup:selenium_helper.py:113 Message: WARNING  setup:selenium_helper.py:114 the locator ('xpath', "//input[@name='firstname']") on url https://www.simplilearn.com/10-ways-to-market-your-project-webinar is not visible ERROR  setup:selenium_helper.py:113 Message: WARNING  setup:selenium_helper.py:114 the locator ('xpath', "//a[contains(text(),'Register for webinar')]") on url https://www.simplilearn.com/skill-vs-talent-acquisition-webinar is not visible ERROR  setup:selenium_helper.py:113 Message: WARNING  setup:selenium_helper.py:114 the locator ('xpath', "//a[contains(text(),'Register for webinar')]") on url https://www.simplilearn.com/creating-killer-marketing-plan-for-your-app-webinar is not visible ERROR  setup:selenium_helper.py:113 Message: WARNING  setup:selenium_helper.py:114 the locator ('xpath', "//input[@name='firstname']") on url https://www.simplilearn.com/creating-killer-marketing-plan-for-your-app-webinar is not visible ERROR  setup:selenium_helper.py:113 Message: WARNING  setup:selenium_helper.py:114 the locator ('xpath', "//a[contains(text(),'Register for webinar')]") on url https://www.simplilearn.com/why-cloud-computing-certification-makes-sense-webinar is not visible ERROR  setup:selenium_helper.py:113 Message: WARNING  setup:selenium_helper.py:114 the locator ('xpath', "//input[@name='firstname']") on url https://www.simplilearn.com/why-cloud-computing-certification-makes-sense-webinar is not visible ERROR  setup:selenium_helper.py:113 Message: WARNING  setup:selenium_helper.py:114 the locator ('xpath', "//a[contains(text(),'Register for webinar')]") on url https://www.simplilearn.com/lean-six-sigma-application-in-manufacturing-webinar is not visible ERROR  setup:selenium_helper.py:113 Message: WARNING  setup:selenium_helper.py:114 the locator ('xpath', "//input[@name='firstname']") on url https://www.simplilearn.com/lean-six-sigma-application-in-manufacturing-webinar is not visible ERROR  setup:selenium_helper.py:113 Message: WARNING  setup:selenium_helper.py:114 the locator ('xpath', "//a[contains(text(),'Register for webinar')]") on url https://www.simplilearn.com/how-to-build-social-media-driven-omni-channel-strategy-webinar is not visible ERROR  setup:selenium_helper.py:113 Message: WARNING  setup:selenium_helper.py:114 the locator ('xpath', "//a[contains(text(),'Register for webinar')]") on url https://www.simplilearn.com/change-management-fundamentals-pmp-webinar is not visible ERROR  setup:selenium_helper.py:113 Message: WARNING  setup:selenium_helper.py:114 the locator ('xpath', "//input[@name='firstname']") on url https://www.simplilearn.com/change-management-fundamentals-pmp-webinar is not visible ERROR  setup:selenium_helper.py:113 Message: WARNING  setup:selenium_helper.py:114 the locator ('xpath', "//a[contains(text(),'Register for webinar')]") on url https://www.simplilearn.com/holiday-digital-marketing-review-and-wrap-up-webinar is not visible ERROR  setup:selenium_helper.py:113 Message: WARNING  setup:selenium_helper.py:114 the locator ('xpath', "//a[contains(text(),'Register for webinar')]") on url https://www.simplilearn.com/realizing-and-measuring-value-of-itil-initiatives-webinar is not visible ERROR  setup:selenium_helper.py:113 Message: WARNING  setup:selenium_helper.py:114 the locator ('xpath', "//a[contains(text(),'Register for webinar')]") on url https://www.simplilearn.com/how-to-prepare-analytics-team-for-digital-transformation-2017-webinar is not visible ERROR  setup:selenium_helper.py:113 Message: WARNING  setup:selenium_helper.py:114 the locator ('xpath', "//a[contains(text(),'Register for webinar')]") on url https://www.simplilearn.com/how-to-measure-social-media-success-webinar is not visible ERROR  setup:selenium_helper.py:113 Message: WARNING  setup:selenium_helper.py:114 the locator ('xpath', "//input[@name='firstname']") on url https://www.simplilearn.com/how-to-measure-social-media-success-webinar is not visible ERROR  setup:selenium_helper.py:113 Message: WARNING  setup:selenium_helper.py:114 the locator ('xpath', "//a[contains(text(),'Register for webinar')]") on url https://www.simplilearn.com/visualizing-it-roadmap-for-leading-digital-transformation-webinar is not visible ERROR  setup:selenium_helper.py:113 Message: WARNING  setup:selenium_helper.py:114 the locator ('xpath', "//a[contains(text(),'Register for webinar')]") on url https://www.simplilearn.com/how-radical-analytics-uncover-blind-spots-in-your-data-webinar is not visible ERROR  setup:selenium_helper.py:113 Message: WARNING  setup:selenium_helper.py:114 the locator ('xpath', "//a[contains(text(),'Register for webinar')]") on url https://www.simplilearn.com/digitization-and-what-it-means-it-professionals-webinar is not visible ERROR  setup:selenium_helper.py:113 Message: WARNING  setup:selenium_helper.py:114 the locator ('xpath', "//input[@name='firstname']") on url https://www.simplilearn.com/digitization-and-what-it-means-it-professionals-webinar is not visible ERROR  setup:selenium_helper.py:113 Message: WARNING  setup:selenium_helper.py:114 the locator ('xpath', "//a[contains(text(),'Register for webinar')]") on url https://www.simplilearn.com/unlocking-data-science-webinar is not visible ERROR  setup:selenium_helper.py:113 Message: WARNING  setup:selenium_helper.py:114 the locator ('xpath', "//input[@name='firstname']") on url https://www.simplilearn.com/unlocking-data-science-webinar is not visible ERROR  setup:selenium_helper.py:113 Message: WARNING  setup:selenium_helper.py:114 the locator ('xpath', "//a[contains(text(),'Register for webinar')]") on url https://www.simplilearn.com/innovation-digital-era-webinar is not visible ERROR  setup:selenium_helper.py:113 Message: WARNING  setup:selenium_helper.py:114 the locator ('xpath', "//input[@name='firstname']") on url https://www.simplilearn.com/innovation-digital-era-webinar is not visible ERROR  setup:selenium_helper.py:113 Message: WARNING  setup:selenium_helper.py:114 the locator ('xpath', "//a[contains(text(),'Register for webinar')]") on url https://www.simplilearn.com/how-enterprises-identify-potential-employees-webinar is not visible ERROR  setup:selenium_helper.py:113 Message: WARNING  setup:selenium_helper.py:114 the locator ('xpath', "//input[@name='firstname']") on url https://www.simplilearn.com/how-enterprises-identify-potential-employees-webinar is not visible ERROR  setup:selenium_helper.py:113 Message: WARNING  setup:selenium_helper.py:114 the locator ('xpath', "//a[contains(text(),'Register for webinar')]") on url https://www.simplilearn.com/pros-and-cons-of-paying-for-social-placement-webinar is not visible ERROR  setup:selenium_helper.py:113 Message: WARNING  setup:selenium_helper.py:114 the locator ('xpath', "//input[@name='firstname']") on url https://www.simplilearn.com/pros-and-cons-of-paying-for-social-placement-webinar is not visible ERROR  setup:selenium_helper.py:113 Message: WARNING  setup:selenium_helper.py:114 the locator ('xpath', "//a[contains(text(),'Register for webinar')]") on url https://www.simplilearn.com/when-ppc-best-practices-fail-webinar is not visible ERROR  setup:selenium_helper.py:113 Message: WARNING  setup:selenium_helper.py:114 the locator ('xpath', "//input[@name='firstname']") on url https://www.simplilearn.com/when-ppc-best-practices-fail-webinar is not visible ERROR  setup:selenium_helper.py:113 Message: WARNING  setup:selenium_helper.py:114 the locator ('xpath', "//a[contains(text(),'Register for webinar')]") on url https://www.simplilearn.com/how-to-improve-your-employee-training-completion-rates-webinar is not visible