コード例 #1
0
 def custom_step(self):
     accountMainPage = AccountMainPage()
     accountMainPage.enterFunction()
     row = {
         'accountUsername': self.data.get('userData').get('accountUsername')
     }
     accountMainPage.disableRow(row)
     accountMainPage.search(row.get('accountUsername'))
     return accountMainPage.checkupTableData(self.data.get('userData'))
コード例 #2
0
ファイル: JCWAutoTest0002.py プロジェクト: zhuypy/AutoTest_UI
    def custom_setUp(self):
        LoginPage().loginSu()
        accountMainPage = AccountMainPage()
        accountMainPage.enterFunction()
        row = {'accountUsername':self.data.get('userData').get('accountUsername')}
        accountMainPage.search(row.get('accountUsername'))
        if not accountMainPage.checkupTableData(row):
            accountMainPage.createAccount(self.data.get('create_userData'))

        accountMainPage.search(row.get('accountUsername'))
        if accountMainPage.checkupTableData(self.data.get('userData')):
            accountMainPage.disableRow(row)