def test_employee_ATI_WebAlias_Library(self):
        # Set drivers from selenium framework
        driver = self.driver
        self.driver.get(
            "https://idm-prov-dev.humboldt.edu/identity/self-service/hsu/login.jsf"
        )

        # Login as a user and navigate to Requests and Request Accesss
        setup_login.fischer_login(driver, "")
        dashboard_navigate.gotoRequestAccess(driver)
        dashboard_navigate.selectIncludeSelf(driver)

        # Select from the dropdown options under "Select resources and permissions"
        dashboard_navigate.selectDropdownOption(driver, "Network Folder")
        network_folder_check(driver)

        dashboard_navigate.selectDropdownOption(driver, "Official website")
        official_websiteCheck(driver, "employee-ati")

        dashboard_navigate.selectDropdownOption(driver,
                                                "Departmental Email Account")
        departmental_email_account_check(driver)

        dashboard_navigate.selectDropdownOption(driver, "Personal website")
        personal_website_check(driver)
Ejemplo n.º 2
0
    def test_b_LoginLogout(self):
        try:
            #try to signin
            setup_login.fischer_login(self.driver, "sls1231")
        except:
            #login failed, lets take a screenshot
            #TODO: Screenshot
            #Fail the test
            assert 2 == 1

        dashboard_navigate.gotoRequestAccess(self.driver)

        dashboard_navigate.selectIncludeSelf(self.driver)

        dashboard_navigate.selectDropdownOption(self.driver,
                                                "Official website")

        dashboard_navigate.selectDropdownOption(self.driver, "Create website")

        time.sleep(10)

        try:
            #try to signout
            setup_login.fischer_logout(self.driver)
        except:
            #logout failed, lets take a screenshot
            #TODO: Screenshot
            #Fail the test
            assert 2 == 1
Ejemplo n.º 3
0
    def test_employee_ATI_WebAlias_sls1231(self):
        # Set drivers from selenium framework
        driver = self.driver
        self.driver.get(
            "https://idm-prov-dev.humboldt.edu/identity/self-service/hsu/login.jsf"
        )

        # Login as a user and navigate to Requests and Request Accesss
        setup_login.fischer_login(driver, "sls1231")
        dashboard_navigate.gotoRequestAccess(driver)
        dashboard_navigate.selectIncludeSelf(driver)

        # #Check network folder
        # network_folder_check(driver)
        #
        # #Check offical website
        # official_websiteCheck(driver, "employee-ati")
        #
        # #check personal website
        # personal_website_check(driver)
        #
        # #Check deparmental email acount
        # departmental_email_account_check(driver)
        #
        # #maybe doesn't belong here?
        # it_admin_check(driver)

        lister = dashboard_navigate.navigateDropdownOptions(driver)

        #lister_json = json.dumps(lister)
        #pprint.pprint(lister_json)

        thefile = open('lister.txt', 'w')
        for item in lister:
            thefile.write("%s\n" % item)
Ejemplo n.º 4
0
    def test_c_Test(self):
        dashboard_navigate.gotoRequestAccess(self.driver)
        dashboard_navigate.selectIncludeSelf(self.driver)

        dashboard_navigate.selectDropdownOption(self.driver,
                                                "Official website")

        official_websiteCheck(self.driver, "non-employee")
Ejemplo n.º 5
0
    def test_employeeUsername_mb1(self):
        # Set drivers from selenium framework
        driver = self.driver
        self.driver.get(
            "https://idm-prov-dev.humboldt.edu/identity/self-service/hsu/login.jsf"
        )

        # Login as a user and navigate to Requests and Request Accesss
        setup_login.fischer_login(driver, "mb1")
        dashboard_navigate.gotoRequestAccess(driver)
        dashboard_navigate.selectIncludeSelf(driver)

        # Select from the dropdown options under "Select resources and permissions"
        dashboard_navigate.selectDropdownOption(driver, "Network Folder")
        network_folder_check(driver)
Ejemplo n.º 6
0
    def test_Non_Employee_ATI_wwh36(self):
        # Set drivers from selenium framework
        driver = self.driver
        self.driver.get(
            "https://idm-prov-dev.humboldt.edu/identity/self-service/hsu/login.jsf"
        )

        # Login as a user and navigate to Requests and Request Accesss
        setup_login.fischer_login(driver, "wwh36")
        dashboard_navigate.gotoRequestAccess(driver)
        dashboard_navigate.selectIncludeSelf(driver)

        # Select from the dropdown options under "Select resources and permissions"
        dashboard_navigate.selectDropdownOption(driver, "Official website")
        official_websiteCheck(driver, "non-employee")
Ejemplo n.º 7
0
    def test_test_employee_ATI_Library(self):
        # Set drivers from selenium framework
        driver = self.driver
        self.driver.get(
            "https://idm-prov-dev.humboldt.edu/identity/self-service/hsu/login.jsf"
        )

        # Login as a user and navigate to Requests and Request Accesss
        setup_login.fischer_login(driver, "")
        dashboard_navigate.gotoRequestAccess(driver)
        dashboard_navigate.selectIncludeSelf(driver)

        # Select from the dropdown options under "Select resources and permissions"

        network_folder_check(driver)

        official_websiteCheck(driver, "employee-ati")
    def test_employee_ATI_WebAlias_sls1231(self):
        # Set drivers from selenium framework
        driver = self.driver
        self.driver.get(
            "https://idm-prov-dev.humboldt.edu/identity/self-service/hsu/login.jsf"
        )

        # Login as a user and navigate to Requests and Request Accesss
        setup_login.fischer_login(driver, "sls1231")
        dashboard_navigate.gotoRequestAccess(driver)
        dashboard_navigate.selectIncludeSelf(driver)

        dynamicPermisons = dashboard_navigate.DropdownOptionsListCreate(driver)

        knownPermisons = user_permissions["sls1231"]

        boolpermisontest = compare_lists(knownPermisons, dynamicPermisons,
                                         "sls1231")

        if boolpermisontest:
            pass
        else:
            assert 2 == 1
Ejemplo n.º 9
0
    def test_add_remove_site(self):
        # Set drivers from selenium framework
        driver = self.driver
        self.driver.get(
            "https://idm-prov-dev.humboldt.edu/identity/self-service/hsu/login.jsf"
        )

        # Login as a user and navigate to Requests and Request Accesss
        setup_login.fischer_login(driver, "sls1231")
        dashboard_navigate.gotoRequestAccess(driver)
        dashboard_navigate.selectIncludeSelf(driver)
        time.sleep(2)
        dashboard_navigate.selectDropdownOption(driver, 'Official website')
        dashboard_navigate.selectDropdownOption(driver, 'Create website')
        dashboard_navigate.selectCheckbox(driver, 'Official website')
        dashboard_navigate.enterTextInDatafield(driver, 'Website Name:',
                                                "Selenium_test_site")
        dashboard_navigate.clickButton(driver, 'Continue')
        WebDriverWait(driver, 30).until(
            expected_conditions.presence_of_element_located(
                (By.XPATH, "//*[@value='Continue']"))).click()

        time.sleep(100)