687cafe9
hanlei
船务
|
1
2
|
package com.essa.testSuite;
|
3f06ee1c
zengjin
修改时间工具,还有船务相关
|
3
|
import com.essa.framework.Model;
|
687cafe9
hanlei
船务
|
4
|
import com.essa.pageObject.LogisticShipp.*;
|
3f06ee1c
zengjin
修改时间工具,还有船务相关
|
5
6
7
|
import com.essa.pageObject.needDealt.LargeDcofdPage;
import com.essa.pageObject.needDealt.RegisOptShpDatePage;
import com.essa.pageObject.needDealt.SellerFillInfoPage;
|
687cafe9
hanlei
船务
|
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
|
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.support.PageFactory;
import org.testng.annotations.AfterClass;
import org.testng.annotations.BeforeClass;
import com.essa.pageObject.BaseTest;
import com.essa.pageObject.HomePage;
public class TestConfirLogistics extends BaseTest {
WebDriver driver;
@BeforeClass
public void setUp() {
initsetUp();
loginValid("chenhong");
}
@AfterClass
public void tearDown() {
driver.quit();
}
@org.testng.annotations.Test(description = "通知确认船务资料、订车、发车")
public void confirmLogisticsTest() {
this.driver = getDriver();
HomePage homePage = PageFactory.initElements(driver, HomePage.class);
homePage.toLogisticsShippPage();
//通知业务人员和客户,进行船务资料确认
LogisticsShippPage logisticsShippPage = PageFactory.initElements(driver, LogisticsShippPage.class);
logisticsShippPage.isSucceed();
homePage.getHome();
homePage.logout();
|
3f06ee1c
zengjin
修改时间工具,还有船务相关
|
43
|
loginValid(Model.getSalesman());//登录对应的业务员账号
|
687cafe9
hanlei
船务
|
44
45
|
//待办
|
3f06ee1c
zengjin
修改时间工具,还有船务相关
|
46
47
|
// homePage.toSailingDateConfirmPage();
homePage.toWriteShipping();
|
687cafe9
hanlei
船务
|
48
49
50
51
52
|
//业务员补充船务资料
SellerFillInfoPage sellerFillInfo = PageFactory.initElements(driver, SellerFillInfoPage.class);
sellerFillInfo.toSellerFillInfo();
//登记备选船期待办
|
3f06ee1c
zengjin
修改时间工具,还有船务相关
|
53
|
// homePage.getHome();
|
687cafe9
hanlei
船务
|
54
55
56
|
homePage.logout();
loginValid("wangmiaodan");
homePage.toSailingDateConfirmPage();
|
3f06ee1c
zengjin
修改时间工具,还有船务相关
|
57
|
// homePage.toShippingMarkWait();//根据流水号进入待办
|
687cafe9
hanlei
船务
|
58
59
60
61
|
RegisOptShpDatePage regisOptShpDatePage = PageFactory.initElements(driver,RegisOptShpDatePage.class);
regisOptShpDatePage.toRegisOptShpDatePage();
//大跟单确认
|
3f06ee1c
zengjin
修改时间工具,还有船务相关
|
62
|
// homePage.getHome();
|
687cafe9
hanlei
船务
|
63
64
|
homePage.logout();
loginValid("yuwanhang");
|
3f06ee1c
zengjin
修改时间工具,还有船务相关
|
65
66
|
// homePage.toSailingDateConfirmPage();
homePage.toShippingMarkWait();//根据流水号进入待办
|
687cafe9
hanlei
船务
|
67
68
69
70
|
LargeDcofdPage largeDcofdPage = PageFactory.initElements(driver,LargeDcofdPage.class);
largeDcofdPage.toLargeDcofdPage();
//订舱
|
3f06ee1c
zengjin
修改时间工具,还有船务相关
|
71
|
// homePage.getHome();
|
687cafe9
hanlei
船务
|
72
73
74
75
76
77
78
79
80
81
82
83
84
85
|
homePage.logout();
loginValid("chenhong");
homePage.toLogisticsShippPage();
CabinInfoPage cabinInfoPage = PageFactory.initElements(driver, CabinInfoPage.class);
cabinInfoPage.toCabinInfoPage();
//订车信息确认
BookingCarPage bookingCarPage = PageFactory.initElements(driver, BookingCarPage.class);
bookingCarPage.toBookingCarPage();
//确认发车
SendCarPage sendCarPage = PageFactory.initElements(driver, SendCarPage.class);
sendCarPage.toSendCarPage();
|
687cafe9
hanlei
船务
|
86
87
|
}
}
|