report.html

Report generated on 11-Sep-2020 at 22:20:34 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

24 tests ran in 162.28 seconds.

23 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.91
self = <test_registration.TestRegistration object at 0x00000173EB3D2F10>, 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 0x00000173EB3DF790>, 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 - Test6481@yopmail.com
Passed test_forgot_password.py::TestForgotPassword::test_forgot_password_functionality 3.10
-------------------------------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 10.08
-------------------------------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.41
-------------------------------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_login.py::TestLogin::test_invalid_credentials 5.30
No log output captured.
Passed test_login.py::TestLogin::test_valid_credentials 6.78
No log output captured.
Passed test_login_role.py::TestLoginRole::test_verify_role_ta 3.17
No log output captured.
Passed test_login_role.py::TestLoginRole::test_verify_role_superadmin_and_click_on_add_course 2.99
No log output captured.
Passed test_login_role.py::TestLoginRole::test_verify_role_manager 3.56
No log output captured.
Passed test_login_role.py::TestLoginRole::test_verify_role_trainer_and_check_trainer_tab_present 5.13
-------------------------------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.32
-------------------------------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.12
-------------------------------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.11
-------------------------------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.43
-------------------------------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.52
-------------------------------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.25
-------------------------------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.09
-------------------------------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_projects.py::TestProjects::test_admin_should_be_able_to_access_all_projects 7.54
-------------------------------Captured log call--------------------------------
INFO  setup:test_projects.py:42 Total Projects Found under New Tab of My Course Projects -- 153 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.64
-------------------------------Captured log call--------------------------------
INFO  setup:test_projects.py:84 Total Projects Found under New Tab of My Course Projects -- 153 INFO  setup:test_projects.py:91 Manager is able to access projects : Projects Found on 1st Page : 50
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.47
No log output captured.
Passed test_role_based_access.py::TestRoleBasedAccess::test_tabs_present_login_manager 2.53
No log output captured.
Passed test_role_based_access.py::TestRoleBasedAccess::test_tabs_present_login_ta 2.26
No log output captured.
Passed test_role_based_access.py::TestRoleBasedAccess::test_tabs_present_login_trainer 2.14
No log output captured.