report.html

Report generated on 28-Jul-2023 at 11:09:25 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", "order": "1.1.0", "xdist": "3.2.1"}
Python 3.8.5

Summary

2 tests ran in 2360.30 seconds.

0 passed, 0 skipped, 2 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 1075.05
self = <test_frs_lead_prod.TestFrsLeadSubmission object at 0x0000019E54E02850>, 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------------------------------
SimpliAutoTesting6865@simplilearn.com SimpliAutoTesting6314@simplilearn.com SimpliAutoTesting3624@simplilearn.com SimpliAutoTesting4771@simplilearn.com SimpliAutoTesting637@simplilearn.com SimpliAutoTesting5830@simplilearn.com SimpliAutoTesting8449@simplilearn.com SimpliAutoTesting7171@simplilearn.com SimpliAutoTesting1919@simplilearn.com SimpliAutoTesting3538@simplilearn.com SimpliAutoTesting8327@simplilearn.com SimpliAutoTesting9365@simplilearn.com SimpliAutoTesting3505@simplilearn.com SimpliAutoTesting3057@simplilearn.com SimpliAutoTesting670@simplilearn.com SimpliAutoTesting1486@simplilearn.com SimpliAutoTesting1955@simplilearn.com SimpliAutoTesting1960@simplilearn.com SimpliAutoTesting7321@simplilearn.com SimpliAutoTesting9381@simplilearn.com SimpliAutoTesting1954@simplilearn.com SimpliAutoTesting5621@simplilearn.com SimpliAutoTesting9786@simplilearn.com SimpliAutoTesting8730@simplilearn.com SimpliAutoTesting3090@simplilearn.com SimpliAutoTesting687@simplilearn.com SimpliAutoTesting1626@simplilearn.com SimpliAutoTesting3555@simplilearn.com SimpliAutoTesting980@simplilearn.com SimpliAutoTesting2574@simplilearn.com
Failed test_frs_lead_prod.py::TestFrsLeadSubmission::test_on_demand_webinar_lead_submission 1282.41
self = <test_frs_lead_prod.TestFrsLeadSubmission object at 0x0000019E54E02910>, initialize_pages = None
testdata = {'collection_name': 'contents', 'database_name': 'caldon_automation', 'db_type': 'mysql', 'query_type': 'find_with_limit'}

@pytest.mark.test_details("0000","high","ebook lead","pallavi")
def test_on_demand_webinar_lead_submission(self,initialize_pages,testdata):
countervalue=0
#STEP 2: set the mongo query
query = {}
query['database_name'] = testdata['database_name']
query['collection_name'] = testdata['collection_name']
query['query_type'] = testdata['query_type']
query['query'] ={'is_webcast':True, 'status':4}
query['limit']=30
query['project'] ={'seo_url':1}
response_data = db.get_test_data(query, 'mongo')
for url in response_data:
seo_url=url['seo_url']
course =seo_url.split('/')[-1]
on_demand_webinar=(pytest.config['prod_url']+seo_url)
pytest.driver.get(on_demand_webinar)
selenium_helper.scroll_page("200")
time.sleep(2)
counter,status=self.on_demand_webinar.on_demand_leads(url)
if counter >=1:
countervalue= countervalue+1
lead_type='FrsOndemandWebinar'
filename = "Report.csv"
rows = [[lead_type,course,on_demand_webinar,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:85: Failed
-------------------------------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 WARNING  setup:page_factory.py:53 the locator success_msg_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', "//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 WARNING  setup:page_factory.py:53 the locator success_msg_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', "//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 WARNING  setup:page_factory.py:53 the locator success_msg_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', "//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 WARNING  setup:page_factory.py:53 the locator success_msg_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', "//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 WARNING  setup:page_factory.py:53 the locator success_msg_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', "//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 WARNING  setup:page_factory.py:53 the locator success_msg_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', "//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 WARNING  setup:page_factory.py:53 the locator success_msg_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', "//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 WARNING  setup:page_factory.py:53 the locator success_msg_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', "//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 WARNING  setup:page_factory.py:53 the locator success_msg_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', "//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 WARNING  setup:page_factory.py:53 the locator success_msg_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', "//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 WARNING  setup:page_factory.py:53 the locator success_msg_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', "//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 WARNING  setup:page_factory.py:53 the locator success_msg_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', "//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 WARNING  setup:page_factory.py:53 the locator success_msg_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', "//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 WARNING  setup:page_factory.py:53 the locator success_msg_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', "//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 WARNING  setup:page_factory.py:53 the locator success_msg_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', "//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 WARNING  setup:page_factory.py:53 the locator success_msg_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', "//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 WARNING  setup:page_factory.py:53 the locator success_msg_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', "//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 WARNING  setup:page_factory.py:53 the locator success_msg_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', "//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 WARNING  setup:page_factory.py:53 the locator success_msg_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', "//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 WARNING  setup:page_factory.py:53 the locator success_msg_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', "//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 WARNING  setup:page_factory.py:53 the locator success_msg_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', "//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 WARNING  setup:page_factory.py:53 the locator success_msg_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', "//a[contains(text(),'Register for webinar')]") on url https://www.simplilearn.com/how-to-improve-your-employee-training-completion-rates-webinar is not visible