def test_updateUser_phonenumber_beginWithSpace_046(self, setup):
        self.logger.info(
            "****************  Test_046:: Test UpdateUser when user sends 'PhoneNumber' begin with space ****************"
        )
        self.logger.info(
            "https://rapidmicrobiosystems.jamacloud.com/perspective.req#/testCases/164254?projectId=50"
        )
        print(
            "****************  Test_046:: Test UpdateUser when user sends 'PhoneNumber' begin with space ****************"
        )
        print(
            "Jama link is ::https://rapidmicrobiosystems.jamacloud.com/perspective.req#/testCases/164254?projectId=50"
        )
        self.driver = setup
        self.driver.get(self.baseURL)
        self.login = admin_central_login(self.driver)
        self.login.admin_login()

        self.user = users(self.driver)
        self.user.select_users_Link()

        self.user.select_edit_button()
        self.driver.find_element_by_id("telephoneNumber").send_keys("  123456")

        self.user.select_save_button()
        try:
            self.user.firstName_RegEx()
        except Exception:
            self.user.capture_screenshot()
            self.user.select_edit_button()
        self.driver.quit()
    def test_UpdateUser_shiftTab_006(self,setup):
        self.logger.info("****************  Test_006 ::Test UpdateUser when user  access with Keyboard Shift+Tab  ****************")
        self.logger.info("https://rapidmicrobiosystems.jamacloud.com/perspective.req#/testCases/164254?projectId=50")
        print(
            "****************  Test_006 ::Test UpdateUser when user  access with Keyboard Shift+Tab  ****************")
        print(
            "Jama link is ::https://rapidmicrobiosystems.jamacloud.com/perspective.req#/testCases/164254?projectId=50")
        self.driver=setup
        self.driver.get(self.baseURL)
        self.login = admin_central_login(self.driver)
        self.login.admin_login()

        self.user = users(self.driver)
        self.user.select_users_Link()

        self.user.select_edit_button()
        # self.user.send_firstname_textbox()
        # self.user.send_middleinitial_textbox()
        # self.user.send_lastname_textbox()
        # self.user.send_emailaddress_textbox()
        # self.user.send_telephonenumber_textbox()
        # self.user.send_extension_textbox()
        # self.user.send_same_password_and_confirmPassword()
        # self.user.select_system_dropdown()
        # self.user.select_Role_from_dropdown()
        self.user.select_save_button()
        try:
            self.user.select_edit_button()
        except Exception:
            self.user.capture_screenshot()
            self.user.select_edit_button()
        self.driver.quit()
Ejemplo n.º 3
0
 def test_roleName_Empty_021(self, setup):
     self.logger.info(
         "****************  test_021 ::  Test CreateRole when user sends 'userRoleName' with values :: blank input ****************"
     )
     print(
         "In Description : TestCase_021 ::  Test CreateRole when user sends 'userRoleName' with values :: blank input."
     )
     self.logger.info(
         "https://rapidmicrobiosystems.jamacloud.com/perspective.req#/testCases/164224?projectId=50"
     )
     print(
         "https://rapidmicrobiosystems.jamacloud.com/perspective.req#/testCases/164224?projectId=50"
     )
     self.driver = setup
     self.driver.get(self.baseURL)
     self.login = admin_central_login(self.driver)
     self.login.admin_login()
     self.RolesList = roles(self.driver)
     self.RolesList.select_roles()
     time.sleep(3)
     self.RolesList.select_add_role_button()
     self.RolesList.select_system_from_dropdown()
     data = " "
     print("String is :::", data)
     self.RolesList.send_userrole_runtime(data)
     self.RolesList.select_Random_roles_checkboxes()
     self.RolesList.select_save_button()
     self.RolesList.search_toastify(data)
     time.sleep(1)
     try:
         self.RolesList.select_Random_roles_checkboxes()
     except Exception:
         self.RolesList.capture_screenshot()
         self.RolesList.select_Random_roles_checkboxes()
     self.driver.quit()
    def test_updateUser_middleName_empty_028(self, setup):
        self.logger.info(
            "****************  Test_028::Test UpdateUser when user sends 'Middle Initial' value as Empty  ****************"
        )
        self.logger.info(
            "https://rapidmicrobiosystems.jamacloud.com/perspective.req#/testCases/164254?projectId=50"
        )
        print(
            "****************  Test_028::Test UpdateUser when user sends 'Middle Initial' value as Empty  ****************"
        )
        print(
            "Jama link is ::https://rapidmicrobiosystems.jamacloud.com/perspective.req#/testCases/164254?projectId=50"
        )
        self.driver = setup
        self.driver.get(self.baseURL)
        self.login = admin_central_login(self.driver)
        self.login.admin_login()

        self.user = users(self.driver)
        self.user.select_users_Link()

        self.user.select_edit_button()

        self.user.send_middleInitial_empty()

        self.user.select_save_button()
        try:
            self.user.select_edit_button()
        except Exception:
            self.user.capture_screenshot()
            self.user.select_edit_button()
        self.driver.quit()
    def test_002_dashboardViewer_CompleteOption(self, setup):
        self.logger.info(
            "****************  Test_002:: Test Complete Option of Site Summary. ****************"
        )
        self.logger.info("")
        print(
            "****************  Test_002:: Test Complete Option of Site Summary.  ****************"
        )
        print("Jama link is ::")
        self.driver = setup
        self.driver.get(self.baseURL)
        self.login = admin_central_login(self.driver)
        self.login.admin_login()
        time.sleep(10)

        self.dashboard = dashboard_viewer(self.driver)
        self.dashboard.select_viewer()
        time.sleep(2)
        self.dashboard.verify_dashboard_header()
        self.dashboard.click_dayOption_dropdown()
        self.dashboard.verify_dayOption_dropdown()
        time.sleep(2)
        self.dashboard.select_dayOption_dropdown('30 days')
        self.dashboard.table_verifyColumn('Completed', '4')
        self.driver.quit()
Ejemplo n.º 6
0
    def test_UpdateUser_withoutFirstname_032(self, setup):
        self.logger.info(
            "**************** Test_032:: Test createUser when user   Try to update without FirstName ****************"
        )
        self.logger.info(
            "https://rapidmicrobiosystems.jamacloud.com/perspective.req#/testCases/164248?projectId=50"
        )
        print(
            "**************** Test_032:: Test createUser when user   Try to update without FirstName ****************"
        )
        print(
            "Jama link is ::https://rapidmicrobiosystems.jamacloud.com/perspective.req#/testCases/164248?projectId=50"
        )
        self.driver = setup
        self.driver.get(self.baseURL)
        self.login = admin_central_login(self.driver)
        self.login.admin_login()

        self.user = users(self.driver)
        self.user.select_users_Link()

        self.user.select_edit_button()
        self.user.send_firstName_empty()
        self.user.select_save_button()
        try:
            self.user.send_lastname_textbox()
        except Exception:
            self.user.capture_screenshot()
            self.user.select_edit_button()
        self.driver.quit()
    def test_updateUser_lastName_apartFrom_RegEx_027(self, setup):
        self.logger.info(
            "****************  Test_027:: Test UpdateUser when user sends 'LastName' values apart from RegularEx ^[a-zA-Z0-9]+$  ****************"
        )
        self.logger.info(
            "https://rapidmicrobiosystems.jamacloud.com/perspective.req#/testCases/164254?projectId=50"
        )
        print(
            "****************  Test_027:: Test UpdateUser when user sends 'LastName' values apart from RegularEx ^[a-zA-Z0-9]+$  ****************"
        )
        print(
            "Jama link is ::https://rapidmicrobiosystems.jamacloud.com/perspective.req#/testCases/164254?projectId=50"
        )
        self.driver = setup
        self.driver.get(self.baseURL)
        self.login = admin_central_login(self.driver)
        self.login.admin_login()

        self.user = users(self.driver)
        self.user.select_users_Link()

        self.user.select_edit_button()

        self.user.send_lastname_textbox()
        self.user.select_save_button()
        try:
            self.user.firstName_RegEx()
        except Exception:
            self.user.capture_screenshot()
            self.user.select_edit_button()
        self.driver.quit()
    def test_UpdateUser_updateUserName_009(self, setup):
        self.logger.info(
            "**************** Test_009 :: Test UpdateUser when user  Try to Update 'UserName' ****************"
        )
        self.logger.info(
            "https://rapidmicrobiosystems.jamacloud.com/perspective.req#/testCases/164254?projectId=50"
        )
        print(
            "**************** Test_009 :: Test UpdateUser when user  Try to Update 'UserName' ****************"
        )
        print(
            "Jama link is ::https://rapidmicrobiosystems.jamacloud.com/perspective.req#/testCases/164254?projectId=50"
        )
        self.driver = setup
        self.driver.get(self.baseURL)
        self.login = admin_central_login(self.driver)
        self.login.admin_login()

        self.user = users(self.driver)
        self.user.select_users_Link()

        self.user.select_edit_button()
        self.user.send_userName_update()

        try:
            self.user.select_edit_button()
        except Exception:
            self.user.capture_screenshot()
            self.user.select_edit_button()
        self.driver.quit()
Ejemplo n.º 9
0
    def test_updateUser_email_033(self, setup):
        self.logger.info(
            "****************  Test_033:: Test UpdateUser when user sends 'EmailAddress' with @ ****************"
        )
        self.logger.info(
            "https://rapidmicrobiosystems.jamacloud.com/perspective.req#/testCases/164254?projectId=50"
        )
        print(
            "****************  Test_033:: Test UpdateUser when user sends 'EmailAddress' with @ ****************"
        )
        print(
            "Jama link is ::https://rapidmicrobiosystems.jamacloud.com/perspective.req#/testCases/164254?projectId=50"
        )
        self.driver = setup
        self.driver.get(self.baseURL)
        self.login = admin_central_login(self.driver)
        self.login.admin_login()

        self.user = users(self.driver)
        self.user.select_users_Link()

        self.user.select_edit_button()

        self.user.send_emailaddress_textbox()

        self.user.select_save_button()
        try:
            self.user.select_edit_button()
        except Exception:
            self.user.capture_screenshot()
            self.user.select_edit_button()
        self.driver.quit()
Ejemplo n.º 10
0
 def test_cm_editUser_005(self,setup):
     self.logger.info("****************  Test_005:: Test Edit User ****************")
     self.logger.info("")
     print("****************  Test_005:: Test Edit User   ****************")
     print("Jama link is ::")
     self.driver=setup
     self.driver.get(self.baseURL)
     self.login = admin_central_login(self.driver)
     self.login.admin_login()
     self.cm_user = cm_userlist(self.driver)
     self.cm_user.select_CM_users_Link()
     self.cm_user.verify_CM_users_header()
     time.sleep(2)
     self.cm_user.select_edit_user_button('7WLm')
     time.sleep(2)
     creating_user = self.cm_user.send_username_textbox()
     time.sleep(2)
     self.cm_user.get_all_roles()
     self.cm_user.select_all_role()
     time.sleep(2)
     self.cm_user.select_save_button()
     self.cm_user.search_toastify(creating_user)
     self.cm_user.verify_error()
     time.sleep(1)
     try:
         print("****************  Test_005:: PASSED SUCCESSFULLY ****************")
     except Exception:
         print("****************  Test_005:: FAILED ****************")
         self.cm_user.capture_screenshot()
         self.cm_user.verify_error()
     self.driver.quit()
Ejemplo n.º 11
0
    def test_createUser_validPassword_emptyConfirmPassword_064(self, setup):
        self.logger.info(
            "****************  Test_064:: Test CreateUser by sending password is not empty  & CreatePassword is empty ****************"
        )
        self.logger.info(
            "https://rapidmicrobiosystems.jamacloud.com/perspective.req#/testCases/164248?projectId=50"
        )
        print(
            "****************  Test_064:: Test CreateUser by sending password is not empty  & CreatePassword is empty ****************"
        )
        print(
            "Jama link is ::https://rapidmicrobiosystems.jamacloud.com/perspective.req#/testCases/164248?projectId=50"
        )
        self.driver = setup
        self.driver.get(self.baseURL)
        self.login = admin_central_login(self.driver)
        self.login.admin_login()

        self.user = users(self.driver)
        self.user.select_users_Link()

        self.user.select_edit_button()

        self.user.password_RegEx()
        self.user.send_confirmPassword_empty()

        self.user.select_save_button()

        try:
            self.user.select_edit_button()
        except Exception:
            self.user.capture_screenshot()
            self.user.select_edit_button()
        self.driver.quit()
Ejemplo n.º 12
0
    def test_updateUser_email_254characters_041(self, setup):
        self.logger.info(
            "****************  Test_041:: Test UpdateUser when user sends 'EmailAddress' with 254 characters(all the characters after and before @) ****************"
        )
        self.logger.info(
            "https://rapidmicrobiosystems.jamacloud.com/perspective.req#/testCases/164254?projectId=50"
        )
        print(
            "****************  Test_041:: Test UpdateUser when user sends 'EmailAddress' with 254 characters(all the characters after and before @) ****************"
        )
        print(
            "Jama link is ::https://rapidmicrobiosystems.jamacloud.com/perspective.req#/testCases/164254?projectId=50"
        )
        self.driver = setup
        self.driver.get(self.baseURL)
        self.login = admin_central_login(self.driver)
        self.login.admin_login()

        self.user = users(self.driver)
        self.user.select_users_Link()

        self.user.select_edit_button()
        self.driver.find_element_by_id("emailAddress").send_keys(
            "*****@*****.**"
        )

        self.user.select_save_button()

        self.user.verify_error()
        try:
            self.user.select_edit_button()
        except Exception:
            self.user.capture_screenshot()
            self.user.select_edit_button()
        self.driver.quit()
    def test_createRole_after_zoom_010(self, setup):
        self.logger.info("****************  Test_010 : Test CreateRole after zoom ****************")
        print("In Description : TestCase_010: Test CreateRole after zoom")
        self.logger.info("https://rapidmicrobiosystems.jamacloud.com/perspective.req#/testCases/164224?projectId=50")
        print("https://rapidmicrobiosystems.jamacloud.com/perspective.req#/testCases/164224?projectId=50")

        self.driver = setup
        self.driver.get(self.baseURL)
        self.login = admin_central_login(self.driver)
        self.login.admin_login()
        time.sleep(10)
        self.RolesList = roles(self.driver)
        self.RolesList.select_roles_after_zoom()
        time.sleep(2)
        self.RolesList.verify_AdminCentral_RolesList_header()
        self.RolesList.select_add_role_button_after_zoom()
        self.RolesList.select_system_from_dropdown()
        creating_role = self.RolesList.send_Random_RoleName()
        self.RolesList.selectAll_checkbox_after_zoom()
        self.RolesList.select_save_button_after_zoom()
        self.RolesList.search_toastify(creating_role)
        self.RolesList.verify_cm_ui_positive(creating_role)
        try:
            self.RolesList.select_add_role_button()
        except Exception:
            self.RolesList.capture_screenshot()
            self.RolesList.select_add_role_button()
        self.driver.quit()
Ejemplo n.º 14
0
Archivo: .py Proyecto: vijaymandava/rmb
    def test_updateUser_email_without_atTheRate_032(self, setup):
        self.logger.info(
            "****************  Test_032:: Test UpdateUser when user sends 'EmailAddress' without @ ****************"
        )
        self.logger.info(
            "https://rapidmicrobiosystems.jamacloud.com/perspective.req#/testCases/164254?projectId=50"
        )
        print(
            "****************  Test_032:: Test UpdateUser when user sends 'EmailAddress' without @ ****************"
        )
        print(
            "Jama link is ::https://rapidmicrobiosystems.jamacloud.com/perspective.req#/testCases/164254?projectId=50"
        )
        self.driver = setup
        self.driver.get(self.baseURL)
        self.login = admin_central_login(self.driver)
        self.login.admin_login()

        self.user = users(self.driver)
        self.user.select_users_Link()

        self.user.select_edit_button()

        self.driver.find_element_by_id("emailAddress").send_keys("abc")

        self.user.select_save_button()
        self.user.verify_error()
        try:
            self.user.firstName_RegEx()
        except Exception:
            self.user.capture_screenshot()
            self.user.select_edit_button()
        self.driver.quit()
    def test_createUser_email_limitPlusOne_055(self, setup):
        self.logger.info(
            "****************  Test_055:: Test createUser when user sends 'EmailAddress' with 254+1 characters(all the characters after and before @) ****************"
        )
        self.logger.info(
            "https://rapidmicrobiosystems.jamacloud.com/perspective.req#/testCases/164248?projectId=50"
        )
        print(
            "****************  Test_046: Test Default fieldService and its default User Role Settings ****************"
        )
        print(
            "Jama link is ::https://rapidmicrobiosystems.jamacloud.com/perspective.req#/testCases/164248?projectId=50"
        )
        self.driver = setup
        self.driver.get(self.baseURL)
        self.login = admin_central_login(self.driver)
        self.login.admin_login()

        self.user = users(self.driver)
        self.user.select_users_Link()

        self.user.select_edit_button()
        self.driver.find_element_by_id("emailAddress").send_keys(
            "*****@*****.**"
        )

        self.user.select_save_button()
Ejemplo n.º 16
0
    def test_cross_x_button_005(self, setup):
        self.logger.info(
            "****************  Test_005: Test CreateUser when userClick ADD button and select cross(*) button  ****************"
        )
        self.logger.info(
            "https://rapidmicrobiosystems.jamacloud.com/perspective.req#/testCases/164248?projectId=50"
        )
        print(
            "****************  Test_005: Test CreateUser when userClick ADD button and select cross(*) button  ****************"
        )
        print(
            "Jama link is ::https://rapidmicrobiosystems.jamacloud.com/perspective.req#/testCases/164248?projectId=50"
        )
        self.driver = setup
        self.driver.get(self.baseURL)
        self.login = admin_central_login(self.driver)
        self.login.admin_login()

        self.User = users(self.driver)
        self.User.select_add_button()
        self.User.select_close_x()
        try:
            self.User.select_add_button()
        except Exception:
            self.User.capture_screenshot()
            self.User.verify_error()
            self.User.select_add_button()

        self.driver.quit()
    def test_connected_systems_editRole_not_selectable_015(self, setup):
        self.logger.info(
            "****************  Test_015 : Test edit role system options not selectable. ****************"
        )
        print(
            "In Description : Test_015 : Test edit role system options not selectable "
        )
        self.logger.info(
            "https://rapidmicrobiosystems.jamacloud.com/perspective.req#/testCases/164224?projectId=50"
        )
        print(
            "https://rapidmicrobiosystems.jamacloud.com/perspective.req#/testCases/164224?projectId=50"
        )

        self.driver = setup
        self.driver.get(self.baseURL)
        self.login = admin_central_login(self.driver)
        self.login.admin_login()
        time.sleep(10)
        self.RolesList = roles(self.driver)
        self.RolesList.select_roles()
        time.sleep(2)
        self.RolesList.verify_AdminCentral_RolesList_header()
        self.RolesList.select_edit_role_button()
        self.RolesList.system_options()
        self.RolesList.select_system_from_dropdown()
        self.driver.close()
Ejemplo n.º 18
0
    def test_createUser_email_lessthan_64Characters_051(self,setup):
        self.logger.info("****************  Test_051:: Test UpdateUser when user sends 'EmailAddress'  less than 64 characters  before @ ****************")
        self.logger.info("https://rapidmicrobiosystems.jamacloud.com/perspective.req#/testCases/164248?projectId=50")
        print("****************  Test_051:: Test UpdateUser when user sends 'EmailAddress'  less than 64 characters  before @ ****************")
        print("Jama link is ::https://rapidmicrobiosystems.jamacloud.com/perspective.req#/testCases/164248?projectId=50")
        self.driver=setup
        self.driver.get(self.baseURL)
        self.login = admin_central_login(self.driver)
        self.login.admin_login()

        self.user = users(self.driver)
        self.user.select_users_Link()

        self.user.select_edit_button()

        self.driver.find_element_by_id("emailAddress").send_keys(
            "*****@*****.**")

        self.user.select_save_button()

        try:
            self.user.select_edit_button()
        except Exception:
            self.user.capture_screenshot()
            self.user.select_edit_button()
        self.driver.quit()
    def test_createUser_selectCancel_003(self,setup):
        self.logger.info("****************  Test_003::Test CreateUser when user Click ADD button and select 'cancel' button on the 'Add User' popup. ****************")
        self.logger.info("https://rapidmicrobiosystems.jamacloud.com/perspective.req#/testCases/164248?projectId=50")
        print("****************  Test_003::Test CreateUser when user Click ADD button and select 'cancel' button on the 'Add User' popup. ****************")
        print("Jama link is ::https://rapidmicrobiosystems.jamacloud.com/perspective.req#/testCases/164248?projectId=50")
        self.driver=setup
        self.driver.get(self.baseURL)
        self.login = admin_central_login(self.driver)
        self.login.admin_login()

        self.user = users(self.driver)
        self.user.select_users_Link()

        self.user.select_edit_button()
        self.user.send_firstname_textbox()
        self.user.send_middleinitial_textbox()
        self.user.send_lastname_textbox()
        self.user.send_emailaddress_textbox()
        self.user.send_telephonenumber_textbox()
        self.user.send_extension_textbox()
        self.user.send_same_password_and_confirmPassword()
        self.user.select_system_dropdown()
        self.user.select_Role_from_dropdown()
        self.user.select_close_button()
        try:
            self.user.select_edit_button()
        except Exception:
            self.user.capture_screenshot()
            self.user.select_edit_button()
        self.driver.quit()
 def test_cross_x_button_006(self, setup):
     self.logger.info(
         "****************  Test_006: Test CreateRole when userClick ADD button and select cross(*) button  ****************"
     )
     print(
         "In Description : TestCase_006: Test CreateRole when userClick ADD button and select cross(*) button."
     )
     self.logger.info(
         "https://rapidmicrobiosystems.jamacloud.com/perspective.req#/testCases/164224?projectId=50"
     )
     print(
         "https://rapidmicrobiosystems.jamacloud.com/perspective.req#/testCases/164224?projectId=50"
     )
     self.driver = setup
     self.driver.get(self.baseURL)
     self.login = admin_central_login(self.driver)
     self.login.admin_login()
     self.RolesList = roles(self.driver)
     self.RolesList.select_roles()
     time.sleep(3)
     self.RolesList.verify_AdminCentral_RolesList_header()
     self.RolesList.select_add_role_button()
     self.RolesList.select_closeSymbol_mark()
     try:
         self.RolesList.select_add_role_button()
     except Exception:
         self.RolesList.capture_screenshot()
         self.RolesList.select_add_role_button()
     self.driver.quit()
    def test_add_role_popup_text_040(self, setup):
        self.logger.info(
            "****************  Test_040 : Test CreateRole when user Click ADD button and verify addrole popup text ****************"
        )
        print(
            "In Description : Test_040 : Test CreateRole when user Click ADD button and verify addrole popup text "
        )
        self.logger.info(
            "https://rapidmicrobiosystems.jamacloud.com/perspective.req#/testCases/164224?projectId=50"
        )
        print(
            "https://rapidmicrobiosystems.jamacloud.com/perspective.req#/testCases/164224?projectId=50"
        )

        self.driver = setup
        self.driver.get(self.baseURL)
        self.login = admin_central_login(self.driver)
        self.login.admin_login()
        self.RolesList = roles(self.driver)
        self.RolesList.select_roles()
        time.sleep(2)
        self.RolesList.verify_AdminCentral_RolesList_header()
        self.RolesList.select_add_role_button()
        self.RolesList.verify_all_the_text_in_editrole_popup()
        self.driver.close()
Ejemplo n.º 22
0
    def test_editUser_popup_057(self, setup):
        self.logger.info(
            "****************  Test_057:: Test editUser screen popup text ****************"
        )
        self.logger.info(
            "https://rapidmicrobiosystems.jamacloud.com/perspective.req#/testCases/164248?projectId=50"
        )
        print(
            "****************  Test_057:: Test editUser screen popup text  ****************"
        )
        print(
            "Jama link is ::https://rapidmicrobiosystems.jamacloud.com/perspective.req#/testCases/164248?projectId=50"
        )
        self.driver = setup
        self.driver.get(self.baseURL)
        self.login = admin_central_login(self.driver)
        self.login.admin_login()

        self.user = users(self.driver)
        self.user.select_users_Link()

        self.user.select_add_button()

        self.user.verify_editUser_popup_text()

        self.driver.quit()
Ejemplo n.º 23
0
    def test_roleName_alphabets_numbers_017(self, setup):
        self.logger.info(
            "****************  Test_017: Test CreateRole when user sends 'userRoleName' with values :: Characters(Mix of Alphabets and Numbers) ****************")
        print(
            "In Description : TestCase_017: Test CreateRole when user sends 'userRoleName' with values :: Characters(Mix of Alphabets and Numbers).")
        self.logger.info("https://rapidmicrobiosystems.jamacloud.com/perspective.req#/testCases/164224?projectId=50")
        print("https://rapidmicrobiosystems.jamacloud.com/perspective.req#/testCases/164224?projectId=50")
        self.driver = setup
        self.driver.get(self.baseURL)
        self.login = admin_central_login(self.driver)
        self.login.admin_login()
        self.RolesList = roles(self.driver)
        self.RolesList.select_roles()
        time.sleep(3)
        self.RolesList.select_add_role_button()
        self.RolesList.select_system_from_dropdown()

        def randStr(chars=string.ascii_uppercase + string.ascii_lowercase, N=8):
            return ''.join(random.choice(chars) for _ in range(N))

        data = randStr(N=20)
        print("String is :::", data)
        self.RolesList.send_userrole_runtime(data)
        self.RolesList.select_Random_roles_checkboxes()
        self.RolesList.select_save_button()
        self.RolesList.search_toastify(data)
        self.RolesList.verify_cm_ui_positive(data)
        com = Common_role_portal()
        com.verify_roles_from_sm_with_api(data)
        try:
            self.RolesList.select_add_role_button()
        except Exception:
            self.RolesList.capture_screenshot()
            self.RolesList.select_add_role_button()
        self.driver.quit()
Ejemplo n.º 24
0
    def test_userName_Html_017(self, setup):
        self.logger.info("****************  test_017 ::  Test CreateUser when user sends 'userName' with values ::  HTML characters ****************")
        self.logger.info("https://rapidmicrobiosystems.jamacloud.com/perspective.req#/testCases/164248?projectId=50")
        print("****************  test_017 ::  Test CreateUser when user sends 'userName' with values ::  HTML characters ****************")
        print("Jama link is ::https://rapidmicrobiosystems.jamacloud.com/perspective.req#/testCases/164248?projectId=50")
        self.driver = setup
        self.driver.get(self.baseURL)
        self.login = admin_central_login(self.driver)
        self.login.admin_login()

        self.user = users(self.driver)
        self.user.select_users_Link()
        self.user.select_add_button()

        data = "<fieldset name='a'>Name: <input type='text'><br>"
        print("String is :::", data)
        self.user.send_userName_runtime(data)
        self.user.send_firstname_textbox()
        self.user.send_middleinitial_textbox()
        self.user.send_lastname_textbox()
        self.user.send_emailaddress_textbox()
        self.user.send_telephonenumber_textbox()
        self.user.send_extension_textbox()
        self.user.send_same_password_and_confirmPassword()
        self.user.select_system_dropdown()
        self.user.select_Role_from_dropdown()
        self.user.select_save_button()
        self.user.verify_error()

        try:
            self.user.select_add_button()
        except Exception:
            self.user.capture_screenshot()
            self.user.select_add_button()
        self.driver.quit()
    def test_addRole_name_placeholder_037(self, setup):
        self.logger.info(
            "****************  Test_037 : Test CreateRole when user Click ADD button and verify name placeholder. ****************"
        )
        print(
            "In Description : Test_037 : Test CreateRole when user Click ADD button and verify name placeholder. "
        )
        self.logger.info(
            "https://rapidmicrobiosystems.jamacloud.com/perspective.req#/testCases/164224?projectId=50"
        )
        print(
            "https://rapidmicrobiosystems.jamacloud.com/perspective.req#/testCases/164224?projectId=50"
        )

        self.driver = setup
        self.driver.get(self.baseURL)
        self.login = admin_central_login(self.driver)
        self.login.admin_login()
        time.sleep(10)
        self.RolesList = roles(self.driver)
        self.RolesList.select_roles()
        time.sleep(2)
        self.RolesList.verify_AdminCentral_RolesList_header()
        self.RolesList.select_add_role_button()
        self.RolesList.name_placeholder()
Ejemplo n.º 26
0
 def test_roleName_RegEx_033(self,setup):
     self.logger.info("****************  Test_033: test Role name RegEx  ****************")
     print(
         "In Description : TestCase_033: test Role name RegEx")
     self.logger.info("https://rapidmicrobiosystems.jamacloud.com/perspective.req#/testCases/164224?projectId=50")
     print("https://rapidmicrobiosystems.jamacloud.com/perspective.req#/testCases/164224?projectId=50")
     self.driver=setup
     self.driver.get(self.baseURL)
     self.login = admin_central_login(self.driver)
     self.login.admin_login()
     self.RolesList = roles(self.driver)
     self.RolesList.select_roles()
     time.sleep(3)
     self.RolesList.verify_AdminCentral_RolesList_header()
     self.RolesList.select_add_role_button()
     self.RolesList.select_system_from_dropdown()
     creating_role = self.RolesList.send_Random_RoleName()
     self.RolesList.select_Random_roles_checkboxes()
     self.RolesList.select_save_button()
     self.RolesList.search_toastify(creating_role)
     self.RolesList.verify_cm_ui_positive(creating_role)
     com = Common_role_portal()
     com.verify_roles_from_sm_with_api(creating_role)
     try:
         self.RolesList.select_add_role_button()
     except Exception:
         self.RolesList.capture_screenshot()
         self.RolesList.select_add_role_button()
     self.driver.quit()
Ejemplo n.º 27
0
    def test_total_checkboxes_043(self, setup):
        self.logger.info(
            "****************  Test_043 : Test CreateRole when user Click ADD button and verify total check boxes ****************"
        )
        print(
            "In Description : Test_043 : Test CreateRole when user Click ADD button and verify total checkboxes "
        )
        self.logger.info(
            "https://rapidmicrobiosystems.jamacloud.com/perspective.req#/testCases/164224?projectId=50"
        )
        print(
            "https://rapidmicrobiosystems.jamacloud.com/perspective.req#/testCases/164224?projectId=50"
        )

        self.driver = setup
        self.driver.get(self.baseURL)
        self.login = admin_central_login(self.driver)
        self.login.admin_login()
        self.RolesList = roles(self.driver)
        self.RolesList.select_roles()
        time.sleep(2)
        self.RolesList.verify_AdminCentral_RolesList_header()
        self.RolesList.select_add_role_button()
        self.RolesList.total_checkboxes()
        len = self.RolesList.total_checkboxes_size()
        assert len == 43
        self.driver.close()
    def test_updateRole_selectAll_009(self, setup):
        self.logger.info(
            "****************  Test_009 : Test UpdateRole when user  - select the 'Select All' option ****************"
        )
        self.logger.info(
            "https://rapidmicrobiosystems.jamacloud.com/perspective.req#/testCases/164242?projectId=50"
        )
        print(
            "****************  Test_009 : Test UpdateRole when user  - select the 'Select All' option ****************"
        )
        print(
            "Jama link is ::https://rapidmicrobiosystems.jamacloud.com/perspective.req#/testCases/164242?projectId=50"
        )
        self.driver = setup
        self.driver.get(self.baseURL)
        self.login = admin_central_login(self.driver)
        self.login.admin_login()

        self.RolesList = roles(self.driver)
        self.RolesList.select_roles()
        time.sleep(10)

        self.RolesList.verify_AdminCentral_RolesList_header()
        self.RolesList.select_edit_role_button()
        self.RolesList.selectAll_checkbox()
        self.RolesList.select_save_button()
        time.sleep(2)
        self.RolesList.search_toastify_edit_success()
        self.driver.close()
Ejemplo n.º 29
0
    def test_createUser_lastName_whiteSpaces_037(self, setup):
        self.logger.info(
            "****************  Test_037:: Test createUser when user sends 'LastName' value as whitespaces ****************"
        )
        self.logger.info(
            "https://rapidmicrobiosystems.jamacloud.com/perspective.req#/testCases/164248?projectId=50"
        )
        print(
            "****************  Test_037:: Test createUser when user sends 'LastName' value as whitespaces ****************"
        )
        print(
            "Jama link is ::https://rapidmicrobiosystems.jamacloud.com/perspective.req#/testCases/164248?projectId=50"
        )
        self.driver = setup
        self.driver.get(self.baseURL)
        self.login = admin_central_login(self.driver)
        self.login.admin_login()

        self.user = users(self.driver)
        self.user.select_users_Link()

        self.user.select_edit_button()

        self.driver.find_element_by_id("lastName").send_keys("  ")

        self.user.select_save_button()
        try:
            self.user.select_edit_button()
        except Exception:
            self.user.capture_screenshot()
            self.user.select_edit_button()
        self.driver.quit()
Ejemplo n.º 30
0
    def test_updateUser_phone_begibEndWithSpace_048(self, setup):
        self.logger.info(
            "****************  Test_048:: Test UpdateUser when user sends 'PhoneNumber' Begin with space & End with space ****************"
        )
        self.logger.info(
            "https://rapidmicrobiosystems.jamacloud.com/perspective.req#/testCases/164254?projectId=50"
        )
        print(
            "****************  Test_048:: Test UpdateUser when user sends 'PhoneNumber' Begin with space & End with space ****************"
        )
        print(
            "Jama link is ::https://rapidmicrobiosystems.jamacloud.com/perspective.req#/testCases/164254?projectId=50"
        )
        self.driver = setup
        self.driver.get(self.baseURL)
        self.login = admin_central_login(self.driver)
        self.login.admin_login()

        self.user = users(self.driver)
        self.user.select_users_Link()

        self.user.select_edit_button()

        self.driver.find_element_by_id("telephoneNumber").send_keys(
            "  123567   ")
        self.user.select_save_button()