def test9(self): #报告中的用例描述 self._testMethodDoc = "选择状态为納入指示済的数据修改配送模式" driver = self.driver driver.get(self.url) Login().test_click_login_btn(driver) sleep(3) Logic().test9(driver)
def test2(self): #报告中的用例描述 self._testMethodDoc = "选择陆扬港进行检索" driver = self.driver driver.get(self.url) Login().test_click_login_btn(driver) try: sucess_text = Logic().test2(driver) self.assertNotEqual('No data available', sucess_text) except Exception as e: print(e)
def test6 (self): #报告中的用例描述 self._testMethodDoc = "输入纳入指示开始、结束日期进行检索" driver = self.driver driver.get(self.url) Login().test_click_login_btn(driver) sleep(3) sucess_text = Logic().test6(driver) try: self.assertEqual('No data available', sucess_text) except Exception as e: print(e)
def test8 (self): #报告中的用例描述 self._testMethodDoc = "选择状态为受入確認済的数据进行受入確認解除" driver = self.driver driver.get(self.url) Login().test_click_login_btn(driver) sleep(3) sucess_text = Logic().test8(driver) try: self.assertIn('OK', sucess_text) except Exception as e: print(e)