當前位置: 首頁>>代碼示例>>Python>>正文


Python KolabWAPTestHelpers.logout_kolab_wap方法代碼示例

本文整理匯總了Python中helperKolabWAP.KolabWAPTestHelpers.logout_kolab_wap方法的典型用法代碼示例。如果您正苦於以下問題:Python KolabWAPTestHelpers.logout_kolab_wap方法的具體用法?Python KolabWAPTestHelpers.logout_kolab_wap怎麽用?Python KolabWAPTestHelpers.logout_kolab_wap使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在helperKolabWAP.KolabWAPTestHelpers的用法示例。


在下文中一共展示了KolabWAPTestHelpers.logout_kolab_wap方法的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。

示例1: test_domain_admin_user_type

# 需要導入模塊: from helperKolabWAP import KolabWAPTestHelpers [as 別名]
# 或者: from helperKolabWAP.KolabWAPTestHelpers import logout_kolab_wap [as 別名]
    def test_domain_admin_user_type(self):
        kolabWAPhelper = KolabWAPTestHelpers(self.driver)
        self.kolabWAPhelper = kolabWAPhelper
        
        # login Directory Manager
        kolabWAPhelper.login_kolab_wap("http://localhost/kolab-webadmin", "cn=Directory Manager", "test")

        kolabWAPhelper.select_domain("administrators.org")

        username, emailLogin, password = kolabWAPhelper.create_user(
            prefix = "admin")

        # now edit the user
        elem = self.driver.find_element_by_id("searchinput")
        elem.send_keys(username)
        elem.send_keys(Keys.RETURN)
        time.sleep(0.5)

        elem = self.driver.find_element_by_xpath("//tbody/tr/td[@class=\"name\"]")
        self.assertEquals(username + ", " + username, elem.text, "Expected to select user " + username + " but was " + elem.text)
        elem.click()
        time.sleep(0.5)
        
        # check if the user type is actually a domain admin
        elem = self.driver.find_element_by_xpath("//form[@id='user-form']/fieldset/table/tbody/tr/td[@class='value']")
        self.assertEquals("Domain Administrator", elem.text, "user type should be Domain Administrator, but was " + elem.text)

        kolabWAPhelper.logout_kolab_wap()
開發者ID:dhoffend,項目名稱:kolab3_tbits_scripts,代碼行數:30,代碼來源:testDomainAdmin.py

示例2: test_edit_user_himself

# 需要導入模塊: from helperKolabWAP import KolabWAPTestHelpers [as 別名]
# 或者: from helperKolabWAP.KolabWAPTestHelpers import logout_kolab_wap [as 別名]
    def test_edit_user_himself(self):
        kolabWAPhelper = KolabWAPTestHelpers(self.driver)
        self.kolabWAPhelper = kolabWAPhelper
        
        # login Directory Manager
        kolabWAPhelper.login_kolab_wap("http://localhost/kolab-webadmin", "cn=Directory Manager", "test")

        username, emailLogin, password = kolabWAPhelper.create_user()

        kolabWAPhelper.logout_kolab_wap()

        # login the new user
        kolabWAPhelper.login_kolab_wap("http://localhost/kolab-webadmin", emailLogin, password)

        self.helper_user_edits_himself()
開發者ID:dhoffend,項目名稱:kolab3_tbits_scripts,代碼行數:17,代碼來源:testCreateUserAndEditSelf.py

示例3: test_domain_admin

# 需要導入模塊: from helperKolabWAP import KolabWAPTestHelpers [as 別名]
# 或者: from helperKolabWAP.KolabWAPTestHelpers import logout_kolab_wap [as 別名]
    def test_domain_admin(self):
        kolabWAPhelper = KolabWAPTestHelpers(self.driver)
        self.kolabWAPhelper = kolabWAPhelper
        
        # login Directory Manager
        kolabWAPhelper.login_kolab_wap("http://localhost/kolab-webadmin", "cn=Directory Manager", "test")

        kolabWAPhelper.select_domain("administrators.org")

        username, emailLogin, password = kolabWAPhelper.create_user(
            prefix = "admin",
            overall_quota = "1gb",
            default_quota = "100mb",
            max_accounts = 3,
            allow_groupware = True)

        # TODO create domain, with domain admin
        # TODO select domain
        # TODO create user accounts
        
        kolabWAPhelper.logout_kolab_wap()
開發者ID:dhoffend,項目名稱:kolab3_tbits_scripts,代碼行數:23,代碼來源:testDomainAdmin.py

示例4: test_modified_foldername_in_new_domain

# 需要導入模塊: from helperKolabWAP import KolabWAPTestHelpers [as 別名]
# 或者: from helperKolabWAP.KolabWAPTestHelpers import logout_kolab_wap [as 別名]
    def test_modified_foldername_in_new_domain(self):
        kolabWAPhelper = KolabWAPTestHelpers(self.driver)
        self.kolabWAPhelper = kolabWAPhelper
        
        # login
        kolabWAPhelper.login_kolab_wap("http://localhost/kolab-webadmin", "cn=Directory Manager", "test")

        domainname = kolabWAPhelper.create_domain()

        #modify the default folders in /etc/kolab/kolab.conf
        newContactsFolderName = self.helper_modify_autocreate_folders()

        username, emailLogin, password = kolabWAPhelper.create_user()

        kolabWAPhelper.logout_kolab_wap()

        # check if mailbox has been created, with the modified folder name
        p = subprocess.Popen("kolab lm | grep " + username + " | grep " + newContactsFolderName, shell=True, stdout=subprocess.PIPE)
        out, err = p.communicate()
        if newContactsFolderName not in out:
            self.assertTrue(False, "kolab lm cannot find mailbox with folder " + newContactsFolderName + " for new user " + username)
開發者ID:dhoffend,項目名稱:kolab3_tbits_scripts,代碼行數:23,代碼來源:testAutoCreateFolders.py


注:本文中的helperKolabWAP.KolabWAPTestHelpers.logout_kolab_wap方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。