report.html

Report generated on 17-Sep-2020 at 11:02:14 by pytest-html v2.1.1

Environment

Packages {"pluggy": "0.13.1", "py": "1.9.0", "pytest": "6.0.1"}
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"}
Python 3.8.5

Summary

33 tests ran in 232.85 seconds.

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

Results

Result Test Duration Links
Failed test_registration.py::TestRegistration::test_trainer_registration_functionality 4.69
self = <test_registration.TestRegistration object at 0x0000024E0DE27280>, initialize_pages = None
testdata = {'profile_url': '#/profile/', 'query': "SELECT email,user_id,first_name,last_name,primary_country_code,primary_mobile_... engageX_test.user where email = '<<email>>' and status = '1'", 'register_url': '#/register', 'selectvalue': 'IN', ...}

@pytest.mark.test_details("SLUB-T1403","high","Access","Pavan")
def test_trainer_registration_functionality(self,initialize_pages,testdata):

'''
Objective : To check New Trainer Registration Functionality

Step1: Navigate to engageX Login url and click on Register
Step2: Generating random email and enter user email and click next
Step3: Enter all the details on Trainer Registration Page and click on Register
Step4: Validate registered data present in the database
Step5: Verify registered user redirecting to Profile Page

'''

#STEP1: Navigate to engageX Login url and click on Register
pytest.driver.get(pytest.config['login_url'])
self.pg_login.btn_register.click_button()
assert pytest.config['url'] + testdata['register_url'] == pytest.driver.current_url , " Expected url is not found on RegistrationPage "

#STEP2: Generating random email and enter user email and click next
email = utils.generate_random_email()
self.pg_registration.check_registration(email)

#STEP3: Enter all the details on Trainer Registration Page and click on Register
logging.info(f" New Trainer Registration Started - {email} ")
self.pg_registration.new_trainer_registeration(**testdata['user_details'])
assert self.pg_registration.txt_email.is_enabled() == False , " Expected Email textbox is in enabled state "
self.pg_registration.verify_checkbox_selected()
> self.pg_registration.select_list(testdata['selectvalue'])

test\test_registration.py:56:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
pages\registration_page.py:28: in select_list
self.dr_countries.select_element_by_value(selectvalue)
core\page_factory.py:143: in select_element_by_value
select.select_by_value(value)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <selenium.webdriver.support.select.Select object at 0x0000024E0DE2A820>, value = 'IN'

def select_by_value(self, value):
"""Select all options that have a value matching the argument. That is, when given "foo" this
would select an option like:

<option value="foo">Bar</option>

:Args:
- value - The value to match against

throws NoSuchElementException If there is no option with specisied value in SELECT
"""
css = "option[value =%s]" % self._escapeString(value)
opts = self._el.find_elements(By.CSS_SELECTOR, css)
matched = False
for opt in opts:
self._setSelected(opt)
if not self.is_multiple:
return
matched = True
if not matched:
> raise NoSuchElementException("Cannot locate option with value: %s" % value)
E selenium.common.exceptions.NoSuchElementException: Message: Cannot locate option with value: IN

c:\users\qateam\appdata\local\programs\python\python38\lib\site-packages\selenium\webdriver\support\select.py:87: NoSuchElementException
-------------------------------Captured log call--------------------------------
INFO  setup:test_registration.py:52 New Trainer Registration Started - Test7208@yopmail.com
Passed test_forgot_password.py::TestForgotPassword::test_forgot_password_functionality 3.49
-------------------------------Captured log setup-------------------------------
INFO  setup:conftest.py:134 reading config from path "config.json" INFO  setup:conftest.py:109 creating driver for provided browser - chrome
Passed test_live_classes.py::TestLiveClasses::test_admin_should_be_able_to_access_all_live_classes 8.66
-------------------------------Captured log call--------------------------------
INFO  setup:test_live_classes.py:48 Superadmin is able to access live classes : Classes Found on 1st Page -- 15
Passed test_live_classes.py::TestLiveClasses::test_manager_should_be_able_to_access_all_live_classes 5.24
-------------------------------Captured log call--------------------------------
INFO  setup:test_live_classes.py:88 Manager is able to access live classes : Classes Found on 1st Page -- 15
Passed test_live_classes.py::TestLiveClasses::test_search_functionality_live_classes 5.10
No log output captured.
Passed test_live_classes.py::TestLiveClasses::test_search_functionality_with_invalid_search 9.48
-------------------------------Captured log call--------------------------------
WARNING  setup:page_factory.py:56 the locator all_live_classes_names on url https://engagex.simplilearn.com/#/classes/glvc/ongoing is not present
Passed test_live_classes.py::TestLiveClasses::test_dropdown_functionality_live_classes 10.47
-------------------------------Captured log call--------------------------------
WARNING  setup:page_factory.py:56 the locator dr_search_box on url https://engagex.simplilearn.com/#/classes/glvc/ongoing is not present
Passed test_live_classes.py::TestLiveClasses::test_alert_popup_liveclasses_when_no_datarange_course_is_selected 4.70
-------------------------------Captured log call--------------------------------
INFO  setup:test_live_classes.py:263 Text Message On ALert Popup : Please Select Either Date Range or Course Filter Before Apply
Passed test_login.py::TestLogin::test_invalid_credentials 5.22
No log output captured.
Passed test_login.py::TestLogin::test_valid_credentials 6.74
No log output captured.
Passed test_login_role.py::TestLoginRole::test_verify_role_ta 2.85
No log output captured.
Passed test_login_role.py::TestLoginRole::test_verify_role_superadmin_and_click_on_add_course 2.98
No log output captured.
Passed test_login_role.py::TestLoginRole::test_verify_role_manager 3.46
No log output captured.
Passed test_login_role.py::TestLoginRole::test_verify_role_trainer_and_check_trainer_tab_present 5.16
-------------------------------Captured log call--------------------------------
WARNING  setup:page_factory.py:56 the locator mod_trainers on url http://dockerv2.simplilearn.com:8875/#/courses/activated/all is not present
Passed test_login_role.py::TestLoginRole::test_manager_should_not_be_able_to_add_course 5.21
-------------------------------Captured log call--------------------------------
WARNING  setup:page_factory.py:56 the locator add_course on url http://dockerv2.simplilearn.com:8875/#/courses/activated/all is not present
Passed test_login_role.py::TestLoginRole::test_ta_should_not_be_able_to_add_course 5.14
-------------------------------Captured log call--------------------------------
WARNING  setup:page_factory.py:56 the locator add_course on url http://dockerv2.simplilearn.com:8875/#/courses/activated/all is not present
Passed test_login_role.py::TestLoginRole::test_trainer_should_not_be_able_to_add_course 5.20
-------------------------------Captured log call--------------------------------
WARNING  setup:page_factory.py:56 the locator add_course on url http://dockerv2.simplilearn.com:8875/#/courses/activated/all is not present
Passed test_login_role.py::TestLoginRole::test_ta_should_not_be_able_to_add_tas 12.73
-------------------------------Captured log call--------------------------------
WARNING  setup:page_factory.py:56 the locator btn_add_ta on url http://dockerv2.simplilearn.com:8875/#/tas/active is not present WARNING  setup:page_factory.py:56 the locator btn_add_ta on url http://dockerv2.simplilearn.com:8875/#/tas/active is not present
Passed test_login_role.py::TestLoginRole::test_ta_should_not_be_able_to_add_trainers 12.77
-------------------------------Captured log call--------------------------------
WARNING  setup:page_factory.py:56 the locator btn_add_trainer on url http://dockerv2.simplilearn.com:8875/#/trainers/active is not present WARNING  setup:page_factory.py:56 the locator btn_add_trainer on url http://dockerv2.simplilearn.com:8875/#/trainers/active is not present
Passed test_login_role.py::TestLoginRole::test_ta_should_not_have_access_to_managers_tab 10.28
-------------------------------Captured log call--------------------------------
WARNING  setup:page_factory.py:56 the locator mod_managers on url http://dockerv2.simplilearn.com:8875/#/courses/activated/all is not present WARNING  setup:page_factory.py:56 the locator mod_managers on url http://dockerv2.simplilearn.com:8875/#/courses/activated/all is not present
Passed test_login_role.py::TestLoginRole::test_trainer_should_not_view_other_trainers 5.15
-------------------------------Captured log call--------------------------------
WARNING  setup:page_factory.py:56 the locator mod_trainers on url http://dockerv2.simplilearn.com:8875/#/courses/activated/all is not present
Passed test_login_role.py::TestLoginRole::test_trainer_should_not_able_to_assign_trainer_to_course 7.24
-------------------------------Captured log call--------------------------------
WARNING  setup:page_factory.py:56 the locator btn_assign_trainer on url http://dockerv2.simplilearn.com:8875/#/courses/activated/all/15/trainers is not present
Passed test_login_role.py::TestLoginRole::test_trainer_should_not_able_to_view_tas_assigned_to_course 7.54
-------------------------------Captured log call--------------------------------
WARNING  setup:page_factory.py:56 the locator tab_tas on url http://dockerv2.simplilearn.com:8875/#/courses/activated/all/15/learners is not present
Passed test_login_role.py::TestLoginRole::test_ta_should_not_able_to_assign_trainer_to_course 7.18
-------------------------------Captured log call--------------------------------
WARNING  setup:page_factory.py:56 the locator btn_assign_trainer on url http://dockerv2.simplilearn.com:8875/#/courses/activated/all/15/trainers is not present
Passed test_login_role.py::TestLoginRole::test_ta_should_not_able_to_assign_tas_to_course 7.77
-------------------------------Captured log call--------------------------------
WARNING  setup:page_factory.py:56 the locator btn_assign_ta on url http://dockerv2.simplilearn.com:8875/#/courses/activated/all/15/tas is not present
Passed test_projects.py::TestProjects::test_admin_should_be_able_to_access_all_projects 7.31
-------------------------------Captured log call--------------------------------
INFO  setup:test_projects.py:42 Total Projects Found under New Tab of My Course Projects -- 87 INFO  setup:test_projects.py:49 Superadmin is able to access projects : Projects Found on 1st Page : 50
Passed test_projects.py::TestProjects::test_manager_should_be_able_to_access_all_projects 5.43
-------------------------------Captured log call--------------------------------
INFO  setup:test_projects.py:84 Total Projects Found under New Tab of My Course Projects -- 87 INFO  setup:test_projects.py:91 Manager is able to access projects : Projects Found on 1st Page : 50
Passed test_projects.py::TestProjects::test_dropdown_functionality_projects 7.36
No log output captured.
Passed test_registration.py::TestRegistration::test_approve_registered_trainer 3.63
No log output captured.
Passed test_role_based_access.py::TestRoleBasedAccess::test_tabs_present_login_admin 2.44
No log output captured.
Passed test_role_based_access.py::TestRoleBasedAccess::test_tabs_present_login_manager 2.50
No log output captured.
Passed test_role_based_access.py::TestRoleBasedAccess::test_tabs_present_login_ta 2.23
No log output captured.
Passed test_role_based_access.py::TestRoleBasedAccess::test_tabs_present_login_trainer 2.13
No log output captured.