d3c5a77a
zengjin
idea第一次提交
|
1
2
|
package com.essa.testSuite;
|
81a4681f
zengjin
修改时间工具,还有船务相关
|
3
|
import com.essa.framework.Model;
|
d3c5a77a
zengjin
idea第一次提交
|
4
|
import com.essa.pageObject.BaseTest;
|
d7f15c1c
zengjin
提交并且覆盖之前的
|
5
|
import com.essa.pageObject.DocumentaryManage.BillingCenterPage;
|
a294c18e
zengjin
修改设置装柜的返回值
|
6
7
8
|
import com.essa.pageObject.DocumentaryManage.ConvertTailPage;
import com.essa.pageObject.DocumentaryManage.POBoardPage;
import com.essa.pageObject.DocumentaryManage.PODocumentaryListPage;
|
d7f15c1c
zengjin
提交并且覆盖之前的
|
9
|
import com.essa.pageObject.HomePage;
|
81a4681f
zengjin
修改时间工具,还有船务相关
|
10
11
12
13
14
15
|
import com.essa.pageObject.LogisticShipp.BookingCarPage;
import com.essa.pageObject.LogisticShipp.CabinInfoPage;
import com.essa.pageObject.LogisticShipp.LogisticsShippPage;
import com.essa.pageObject.LogisticShipp.SendCarPage;
import com.essa.pageObject.StorageManage.*;
import com.essa.pageObject.needDealt.LargeDcofdPage;
|
d3c5a77a
zengjin
idea第一次提交
|
16
|
import com.essa.pageObject.needDealt.NeedDealtApplyPage;
|
81a4681f
zengjin
修改时间工具,还有船务相关
|
17
18
|
import com.essa.pageObject.needDealt.RegisOptShpDatePage;
import com.essa.pageObject.needDealt.SellerFillInfoPage;
|
d7f15c1c
zengjin
提交并且覆盖之前的
|
19
20
21
22
23
24
|
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;
|
d3c5a77a
zengjin
idea第一次提交
|
25
|
|
d7f15c1c
zengjin
提交并且覆盖之前的
|
26
|
public class TestLoadContainer extends BaseTest {
|
0b640e79
zengjin
修改设置装柜的返回值
|
27
|
WebDriver driver;
|
d3c5a77a
zengjin
idea第一次提交
|
28
|
|
0b640e79
zengjin
修改设置装柜的返回值
|
29
30
31
|
@BeforeClass
public void setUp() {
initsetUp();
|
d7f15c1c
zengjin
提交并且覆盖之前的
|
32
33
|
loginValid("zhidanbu");
// loginValid("chenyijie");
|
0b640e79
zengjin
修改设置装柜的返回值
|
34
|
}
|
d3c5a77a
zengjin
idea第一次提交
|
35
|
|
0b640e79
zengjin
修改设置装柜的返回值
|
36
37
38
39
|
@AfterClass
public void tearDown() {
driver.quit();
}
|
a524812a
zengjin
idea增加epd环境
|
40
|
|
0b640e79
zengjin
修改设置装柜的返回值
|
41
42
43
|
/**
* 转尾货
*/
|
81a4681f
zengjin
修改时间工具,还有船务相关
|
44
|
@Test(description = "转在途尾货")
|
d7f15c1c
zengjin
提交并且覆盖之前的
|
45
|
public void toTail() {
|
0b640e79
zengjin
修改设置装柜的返回值
|
46
|
driver = getDriver();
|
d7f15c1c
zengjin
提交并且覆盖之前的
|
47
|
loginValid("chenyijie");
|
0b640e79
zengjin
修改设置装柜的返回值
|
48
49
50
51
52
53
54
55
56
|
HomePage homePage = PageFactory.initElements(driver, HomePage.class);
PODocumentaryListPage poDocumentaryListPage = PageFactory.initElements(driver, PODocumentaryListPage.class);
POBoardPage poBoardPage = PageFactory.initElements(driver, POBoardPage.class);
ConvertTailPage convertTailPage = PageFactory.initElements(driver, ConvertTailPage.class);
homePage.toPoDocumentaryListPage();
poDocumentaryListPage.todetail();
poBoardPage.toTail();
convertTailPage.convertTail();
}
|
a524812a
zengjin
idea增加epd环境
|
57
|
|
0b640e79
zengjin
修改设置装柜的返回值
|
58
59
60
|
/**
* 设置收货、装柜的仓库地址
*/
|
81a4681f
zengjin
修改时间工具,还有船务相关
|
61
|
@Test(description = "设置收货、装柜的仓库地址")
|
0b640e79
zengjin
修改设置装柜的返回值
|
62
63
64
65
66
67
68
|
public void noticReceive() {
driver = getDriver();
HomePage homePage = PageFactory.initElements(driver, HomePage.class);
NoticeReceivePage noticeReceivePage = PageFactory.initElements(driver, NoticeReceivePage.class);
homePage.toNoticeReceivePage();
noticeReceivePage.setWareHouse();
}
|
a524812a
zengjin
idea增加epd环境
|
69
|
|
0b640e79
zengjin
修改设置装柜的返回值
|
70
|
/**
|
d7f15c1c
zengjin
提交并且覆盖之前的
|
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
|
* 通知收货、装柜
*/
@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();
//断言:通知收货是否成功
boolean actualReceive = poBoardPage.isNoticeReceSucceed();
SoftAssert softAssert = new SoftAssert();
softAssert.assertEquals(actualReceive,true,"通知收货失败!");
//通知装柜
poBoardPage.noticeLoad();
//断言:通知装柜是否成功
boolean actualLoae = poBoardPage.isNoticeLoadSucceed();
softAssert.assertEquals(actualLoae,true,"通知装柜失败!");
softAssert.assertAll();
// homePage.logout();
}
/**
* 收货任务管理,处理
|
0b640e79
zengjin
修改设置装柜的返回值
|
101
|
*/
|
81a4681f
zengjin
修改时间工具,还有船务相关
|
102
|
@Test (description = "收货任务处理")
|
0b640e79
zengjin
修改设置装柜的返回值
|
103
104
105
106
107
108
|
public void dealWithDelivery() {
driver = getDriver();
HomePage homePage = PageFactory.initElements(driver, HomePage.class);
GoodsReceiveTaskPage goodsReceiveTaskPage = PageFactory.initElements(driver, GoodsReceiveTaskPage.class);
ReceiveTaskDealPage receiveTaskDealPage = PageFactory.initElements(driver, ReceiveTaskDealPage.class);
homePage.toGoodsReceiveTaskPage();
|
1458ba60
zengjin
组装用例
|
109
|
do {
|
d7f15c1c
zengjin
提交并且覆盖之前的
|
110
111
|
goodsReceiveTaskPage.dealReceive();
receiveTaskDealPage.allReceive();
|
1458ba60
zengjin
组装用例
|
112
|
}while (!(goodsReceiveTaskPage.isFinish()));
|
81a4681f
zengjin
修改时间工具,还有船务相关
|
113
114
115
116
|
homePage.getHome();
homePage.dealAlert(true);//确认弹框:离开
homePage.logout();
|
0b640e79
zengjin
修改设置装柜的返回值
|
117
|
}
|
a524812a
zengjin
idea增加epd环境
|
118
|
|
0b640e79
zengjin
修改设置装柜的返回值
|
119
120
121
|
/**
* 大跟单确认船期
*/
|
81a4681f
zengjin
修改时间工具,还有船务相关
|
122
|
@Test (description = "大跟单确认船期")
|
0b640e79
zengjin
修改设置装柜的返回值
|
123
124
|
public void confirmSailingDate() {
driver = getDriver();
|
d7f15c1c
zengjin
提交并且覆盖之前的
|
125
|
loginValid("yuwanhang");
|
0b640e79
zengjin
修改设置装柜的返回值
|
126
127
128
129
130
|
HomePage homePage = PageFactory.initElements(driver, HomePage.class);
NeedDealtApplyPage needDealtApplyPage = PageFactory.initElements(driver, NeedDealtApplyPage.class);
homePage.toSailingDateConfirmPage();
needDealtApplyPage.confirmSailingDate();
}
|
d7f15c1c
zengjin
提交并且覆盖之前的
|
131
132
133
134
135
|
/**
*制单部发单
* @param
* @return
*/
|
81a4681f
zengjin
修改时间工具,还有船务相关
|
136
|
@Test(description = "制单、发单")
|
d7f15c1c
zengjin
提交并且覆盖之前的
|
137
138
139
140
141
142
|
public void Billing(){
this.driver = getDriver();
HomePage homePage = PageFactory.initElements(driver, HomePage.class);
BillingCenterPage billingCenterPage = PageFactory.initElements(driver,BillingCenterPage.class);
homePage.toBillingCenterPage();
billingCenterPage.MoreBilling();
|
3f06ee1c
zengjin
修改时间工具,还有船务相关
|
143
|
homePage.getHome();
|
d7f15c1c
zengjin
提交并且覆盖之前的
|
144
145
|
homePage.logout();
}
|
81a4681f
zengjin
修改时间工具,还有船务相关
|
146
147
148
|
@Test(description = "通知确认船务资料、订车、发车")
public void confirmLogisticsTest() {
this.driver = getDriver();
|
3b58efeb
zengjin
调试完成
|
149
|
loginValid("chenhong");//
|
81a4681f
zengjin
修改时间工具,还有船务相关
|
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
|
HomePage homePage = PageFactory.initElements(driver, HomePage.class);
homePage.toLogisticsShippPage();
//通知业务人员和客户,进行船务资料确认
LogisticsShippPage logisticsShippPage = PageFactory.initElements(driver, LogisticsShippPage.class);
logisticsShippPage.isSucceed();
homePage.getHome();
homePage.logout();
loginValid(Model.getSalesman());//登录对应的业务员账号
//待办
// homePage.toSailingDateConfirmPage();
homePage.toWriteShipping();
//业务员补充船务资料
SellerFillInfoPage sellerFillInfo = PageFactory.initElements(driver, SellerFillInfoPage.class);
sellerFillInfo.toSellerFillInfo();
//登记备选船期待办
// homePage.getHome();
homePage.logout();
loginValid("wangmiaodan");
homePage.toSailingDateConfirmPage();
// homePage.toShippingMarkWait();//根据流水号进入待办
RegisOptShpDatePage regisOptShpDatePage = PageFactory.initElements(driver,RegisOptShpDatePage.class);
regisOptShpDatePage.toRegisOptShpDatePage();
//大跟单确认
// homePage.getHome();
homePage.logout();
loginValid("yuwanhang");
// homePage.toSailingDateConfirmPage();
homePage.toShippingMarkWait();//根据流水号进入待办
LargeDcofdPage largeDcofdPage = PageFactory.initElements(driver,LargeDcofdPage.class);
largeDcofdPage.toLargeDcofdPage();
//订舱
// homePage.getHome();
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();
homePage.getHome();
homePage.logout();
}
/**
* 查到存在有装柜任务,进入处理页面
*/
@Test(description="根据PO单号,确认装柜")
public void ConfirmCabinet(){
driver = getDriver();
loginValid("chenyijie");
HomePage homePage = PageFactory.initElements(driver, HomePage.class);
homePage.toCabineTaskManagemenPage();
CabineTaskManagemenPage searchCabineTaskManagemenPage = PageFactory.initElements(driver, CabineTaskManagemenPage.class);
searchCabineTaskManagemenPage.setWareHouse();
HandlingLoadingOrders handlingLoadingOrders = PageFactory.initElements(driver, HandlingLoadingOrders.class);
handlingLoadingOrders.setHandlingCabinet();
}
|
d3c5a77a
zengjin
idea第一次提交
|
221
|
}
|