def testBl27(self): driver = self.driver driver.get(self.url) login = Login() login.test_click_login_btn(driver) b = BlOperate() self._testMethodDoc = "通过错误的D/O NO检索无结果" tip = b.bl27(driver, "21whdsafb") #print(tip) self.assertEqual(tip, "No data available")
def testBl04(self): driver = self.driver driver.get(self.url) login = Login() login.test_click_login_btn(driver) b = BlOperate() self._testMethodDoc = "没有BL附件资料送信失败" tip_text = b.bl04(driver, "GD558741") #print(tip_text) self.assertIn('BLまたはINV添付資料が無いので、', tip_text)
def testBl15(self): driver = self.driver driver.get(self.url) login = Login() login.test_click_login_btn(driver) b = BlOperate() self._testMethodDoc = "通过选择SJL輸入担当:NAOMI检索成功" num = b.bl15(driver) #print(num) self.assertNotEqual(0, num)
def testBl14(self): driver = self.driver driver.get(self.url) login = Login() login.test_click_login_btn(driver) b = BlOperate() self._testMethodDoc = "通过送信状態为送信済み检索成功" num = b.bl14(driver) print(num) self.assertNotEqual(0, num)
def testBl08(self): driver = self.driver driver.get(self.url) login = Login() login.test_click_login_btn(driver) b = BlOperate() self._testMethodDoc = "不输入检索条件可以检索" num = b.bl08(driver) print(num) self.assertNotEqual(0, num)
def testBl12(self): driver = self.driver driver.get(self.url) login = Login() login.test_click_login_btn(driver) sleep(3.5) b = BlOperate() self._testMethodDoc = "通过運送形態为AIR检索成功" num = b.bl12(driver) print(num) self.assertNotEqual(0, num)
def testBl11(self): driver = self.driver driver.get(self.url) login = Login() login.test_click_login_btn(driver) b = BlOperate() self._testMethodDoc = "通过運送形態为SEA检索成功" getBl().getDataBl() num = b.bl11(driver) print(num) self.assertNotEqual(0, num)
def testBl05(self): driver = self.driver driver.get(self.url) login = Login() login.test_click_login_btn(driver) b = BlOperate() self._testMethodDoc = "通过D/O NO检索结果、核对全部集装箱信息送信成功" result = getBl().getDataBl() if (result[1].get("code") != 200): self.assertIn('送信済み', result[1].get("result")) do = result[0] actual_text = b.bl05(driver, do) self.assertIn('送信済み', actual_text)
def testBl22(self): driver = self.driver driver.get(self.url) login = Login() login.test_click_login_btn(driver) b = BlOperate() self._testMethodDoc = "通过B/L No和B/L DATE组合检索成功" result = getBl().getDataBl() if (result[1].get("code") != 200): self.assertIn('送信済み', result[1].get("result")) bl = result[0] actual = b.bl22(driver, bl) #print(actual) self.assertEqual(actual[0], bl)
def testBl19(self): driver = self.driver driver.get(self.url) login = Login() login.test_click_login_btn(driver) b = BlOperate() self._testMethodDoc = "通过D/O No和運送形態组合检索成功 " result = getBl().getDataBl() if (result[1].get("code") != 200): self.assertIn('送信済み', result[1].get("result")) do = result[0] actual = b.bl19(driver, do) self.assertEqual(actual[0], do) self.assertEqual(actual[1], "SEA")
def testBl17(self): driver = self.driver driver.get(self.url) login = Login() login.test_click_login_btn(driver) b = BlOperate() self._testMethodDoc = "通过D/O No和B/L No组合检索成功" result = getBl().getDataBl() if (result[1].get("code") != 200): self.assertIn('送信済み', result[1].get("result")) bl = result[0] dobl = b.bl17(driver, bl, bl) print(dobl) self.assertEqual(dobl[0], bl) self.assertEqual(dobl[1], bl)
def testBl25(self): driver = self.driver driver.get(self.url) login = Login() login.test_click_login_btn(driver) b = BlOperate() self._testMethodDoc = "通过输入所有条件检索成功" result = getBl().getDataBl() if (result[1].get("code") != 200): self.assertIn('送信済み', result[1].get("result")) bl = result[0] actual = b.bl25(driver, bl, bl) #print(actual) self.assertEqual(actual[0], actual[7]) self.assertEqual(actual[1], bl) self.assertEqual(actual[2], bl) self.assertEqual(actual[4], "SEA") self.assertEqual(actual[5], "未送信")