Example #1
0
 def test_newly_built7(self):
     driver = self.driver
     driver.get(self.url)
     self._testMethodDoc = u"[陈博华]验证新建时,重复B/L NO是否校验"
     sleep(1.5)
     login = Login()
     login.test_click_login_btn(driver)
     sleep(5)
     bussiness = NewlyBuild()
     actual_text = bussiness.newlyBuilt07(driver)
     self.assertIn("重複B/L No.が存在します。", actual_text)
Example #2
0
 def test_newly_built6(self):
     driver = self.driver
     driver.get(self.url)
     self._testMethodDoc = u"[陈博华]验证新建时,海运拼箱,House B/L NO是否为必填项"
     sleep(1.5)
     login = Login()
     login.test_click_login_btn(driver)
     sleep(5)
     bussiness = NewlyBuild()
     actual_text = bussiness.newlyBuilt06(driver)
     self.assertEqual("House B/L NO必要である", actual_text)
Example #3
0
 def test_INV_search01(self):
     driver = self.driver
     driver.get(self.url)
     self._testMethodDoc = u"[陈博华]I/V NO搜索"
     sleep(1.5)
     login = Login()
     login.test_click_login_btn(driver)
     sleep(5)
     bussiness = NewlyBuild()
     actual_values, search_value = bussiness.INV_search01(driver)
     for i in actual_values:
         self.assertIn(search_value, i)
Example #4
0
 def test_newly_built3(self):
     driver = self.driver
     driver.get(self.url)
     self._testMethodDoc = u"[陈博华]新建海关数据,保存"
     sleep(1.5)
     login = Login()
     login.test_click_login_btn(driver)
     sleep(5)
     bussiness = NewlyBuild()
     BL_No = bussiness.newlyBuilt03(driver)
     sleep(1.5)
     homepage = HomePage()
     homepage.BL_No_search(driver, BL_No)
     sleep(1.5)
     locate = HomePageElement()
     status_element = locate.locate_status(BL_No)
     sleep(1.5)
     actual_status = ElementUtil.getText(self, driver, 5, "[陈博华]新建海关数据,保存",
                                         *status_element)
     self.assertEqual("SA一時保存", actual_status)
Example #5
0
 def test_newly_built2(self):
     driver = self.driver
     driver.get(self.url)
     self._testMethodDoc = u"[陈博华]海关新建空运送信"
     sleep(1.5)
     login = Login()
     login.test_click_login_btn(driver)
     sleep(5)
     bussiness = NewlyBuild()
     BL_No, tips = bussiness.newlyBuilt02(driver)
     sleep(1.5)
     homepage = HomePage()
     homepage.BL_No_search(driver, BL_No)
     sleep(1.5)
     locate = HomePageElement()
     status_element = locate.locate_status(BL_No)
     actual_status = Browser(driver, 10).get_text(status_element)
     if "有償INVが無いと、SAを作成できません。" in tips:
         self.assertEqual("SA一時保存", actual_status)
     else:
         self.assertEqual("SA登録済", actual_status)