06fc8ada
huangyuanbo914@163.com
123
|
1
|
package com.essa.testSuite;
|
492c1c63
huangyuanbo914@163.com
结构调整
|
2
|
|
06fc8ada
huangyuanbo914@163.com
123
|
3
4
|
import com.essa.framework.LinkSQL;
import com.essa.pageObject.BaseTest;
|
492c1c63
huangyuanbo914@163.com
结构调整
|
5
|
import com.essa.pageObject.DocumentaryManage.ReceiptCorePage;
|
06fc8ada
huangyuanbo914@163.com
123
|
6
|
import com.essa.pageObject.HomePage;
|
06fc8ada
huangyuanbo914@163.com
123
|
7
8
9
10
11
12
13
|
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.support.PageFactory;
import org.testng.annotations.AfterClass;
import org.testng.annotations.BeforeClass;
import org.testng.annotations.Test;
import org.testng.asserts.SoftAssert;
|
a90375bd
huangyuanbo914@163.com
huangyuanbo
|
14
|
// 跟单管理
|
06fc8ada
huangyuanbo914@163.com
123
|
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
public class TestReceiptCore extends BaseTest {
WebDriver driver ;
@BeforeClass
public void setUp() {
initsetUp();
loginValid("zhidanbu");
}
@AfterClass
public void tearDown() {driver.quit();}
/*
* PO发单接单
* */
@Test( )
public void receiptcore () {
this.driver = getDriver();
HomePage homePage = PageFactory.initElements(driver,HomePage.class);
homePage.toReceiptCore();
|
492c1c63
huangyuanbo914@163.com
结构调整
|
36
|
ReceiptCorePage receiptCorePage = PageFactory.initElements(driver,ReceiptCorePage.class);
|
06fc8ada
huangyuanbo914@163.com
123
|
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
String PO = LinkSQL.SQLQuery();
receiptCorePage.BillOrder(PO);
SoftAssert softAssert = new SoftAssert();
boolean SucceedElement = receiptCorePage.isSucceed();
// boolean FailElement = receiptCorePage.FailBilling();
// boolean FailElement1 = receiptCorePage.FailOrder();
System.out.println(SucceedElement);
softAssert.assertEquals(SucceedElement,true,"发单接单失败");
softAssert.assertAll();
}
}
|