Beispiel #1
0
 def testSendMail09(self):
     driver = self.driver
     driver.get(self.url)
     login = Login()
     login.test_click_login_btn(driver)
     send = SendOperate()
     self._testMethodDoc = "对已送信的可以批量解除送信"
     send.sendMail9(driver, "cxp")
Beispiel #2
0
 def testSendMail18(self):
     driver = self.driver
     driver.get(self.url)
     login = Login()
     login.test_click_login_btn(driver)
     send = SendOperate()
     self._testMethodDoc = "通过错误的B/L NO检索没有结果"
     nodata = send.sendMail18(driver, 'QAZ5556')
     self.assertEqual(nodata, "No data available")
Beispiel #3
0
 def testSendMail15(self):
     driver = self.driver
     driver.get(self.url)
     login = Login()
     login.test_click_login_btn(driver)
     send = SendOperate()
     self._testMethodDoc = "通过纳入指示者、B/L NO组合检索成功"
     actual_num = send.sendMail15(driver, "cxp")
     self.assertIn("cxp", actual_num)
Beispiel #4
0
 def testSendMail13(self):
     driver = self.driver
     driver.get(self.url)
     login = Login()
     login.test_click_login_btn(driver)
     send = SendOperate()
     self._testMethodDoc = "通过納入指示者检索成功"
     actual_num = send.sendMail13(driver)
     print(actual_num)
     self.assertNotEqual(actual_num, 0)
Beispiel #5
0
 def testSendMail05(self):
     driver = self.driver
     driver.get(self.url)
     login = Login()
     login.test_click_login_btn(driver)
     send = SendOperate()
     self._testMethodDoc = "通过B/L NO检索,输入1个收件人不输入CC送信成功"
     result = getBl().getDataBl()
     if (result[1].get("code") != 200):
         self.assertIn('送信済み', result[1].get("result"))
     bl = result[0]
     sucess_text = send.sendMail5(driver, bl)
     self.assertIn('指示Mail送信済', sucess_text)
Beispiel #6
0
 def testSendMail03(self):
     driver = self.driver
     driver.get(self.url)
     login = Login()
     login.test_click_login_btn(driver)
     send = SendOperate()
     self._testMethodDoc = "通过D/O NO检索输入纳入指示者1和CC送信成功"
     result = getBl().getDataBl()
     if (result[1].get("code") != 200):
         self.assertIn('送信済み', result[1].get("result"))
     do = result[0]
     sucess_text = send.sendMail3(driver, do)
     self.assertIn('指示Mail送信済', sucess_text)
Beispiel #7
0
 def testSendMail02(self):
     driver = self.driver
     driver.get(self.url)
     login = Login()
     login.test_click_login_btn(driver)
     send = SendOperate()
     self._testMethodDoc = "通过B/L NO检索输入5个收件人和CC送信成功"
     result = getBl().getDataBl()
     if (result[1].get("code") != 200):
         self.assertIn('送信済み', result[1].get("result"))
     do = result[0]
     actual_text = send.sendMail2(driver, do)
     self.assertEqual('指示Mail送信済', actual_text)
Beispiel #8
0
 def testSendMail14(self):
     driver = self.driver
     driver.get(self.url)
     login = Login()
     login.test_click_login_btn(driver)
     send = SendOperate()
     self._testMethodDoc = "通过纳入指示者、D/O NO组合检索成功"
     result = getBl().getDataBl()
     if (result[1].get("code") != 200):
         self.assertIn('送信済み', result[1].get("result"))
     do = result[0]
     actual_num = send.sendMail14(driver, do)
     self.assertEqual(actual_num, do)
Beispiel #9
0
 def testSendMail11(self):
     driver = self.driver
     driver.get(self.url)
     login = Login()
     login.test_click_login_btn(driver)
     send = SendOperate()
     self._testMethodDoc = "通过B/L NO检索,不输入纳入指示者和CC送信失败"
     result = getBl().getDataBl()
     if (result[1].get("code") != 200):
         self.assertIn('送信済み', result[1].get("result"))
     bl = result[0]
     actual_text = send.sendMail11(driver, bl)
     self.assertIn("納入指示者を設定ください", actual_text)
Beispiel #10
0
 def testSendMail08(self):
     driver = self.driver
     driver.get(self.url)
     login = Login()
     login.test_click_login_btn(driver)
     send = SendOperate()
     self._testMethodDoc = "对已送信的可以进行送信解除"
     result = getBl().getDataBl()
     if (result[1].get("code") != 200):
         self.assertIn('送信済み', result[1].get("result"))
     bl = result[0]
     Remove_text = send.sendMail8(driver, bl)
     self.assertIn('指示Mail送信解除', Remove_text)
Beispiel #11
0
 def testSendMail07(self):
     driver = self.driver
     driver.get(self.url)
     login = Login()
     login.test_click_login_btn(driver)
     send = SendOperate()
     self._testMethodDoc = "不可以批量送信成功"
     listsucess = send.sendMail7(driver, "cxp")  #cxp006\cxp007
     #断言批量送信只送信成功1条,而非2条数据
     count = 0
     if ("指示Mail送信済" or "SA登録済") in listsucess:
         count += 1
     self.assertEqual(count, 1)