TestNoticeReceiveAndLoad.java
1.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
package com.essa.testSuite;
import com.essa.pageObject.BaseTest;
import com.essa.pageObject.HomePage;
import com.essa.pageObject.PODocumentary.POBoardPage;
import com.essa.pageObject.PODocumentary.PODocumentaryListPage;
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;
public class TestNoticeReceiveAndLoad extends BaseTest{
WebDriver driver;
@BeforeClass
public void setUp(){
initsetUp();
loginValid("chenyijie");
}
@AfterClass
public void tearDown(){
driver.quit();
}
/**
* 通知收货、装柜
*/
@Test(description = "通知收货、装柜")
public void NoticeReceiveAndLoad(){
this.driver = getDriver();
HomePage homePage = PageFactory.initElements(driver,HomePage.class);
homePage.toPoDocumentaryListPage();
PODocumentaryListPage poDocumentaryListPage = PageFactory.initElements(driver,PODocumentaryListPage.class);
POBoardPage poBoardPage = PageFactory.initElements(driver,POBoardPage.class);
poDocumentaryListPage.toPoFollowDetail();
poBoardPage.noticeReceive();
poBoardPage.noticeLoad();
}
}