Commit 687cafe9920d5cc292430215a4b578c841d8f159
1 parent
ba50132d
船务
Showing
1 changed file
with
81 additions
and
0 deletions
Show diff stats
src/main/java/com/essa/testSuite/TestConfirLogistics.java
0 → 100644
| ... | ... | @@ -0,0 +1,81 @@ |
| 1 | +package com.essa.testSuite; | |
| 2 | + | |
| 3 | +import com.essa.pageObject.LogisticShipp.*; | |
| 4 | +import org.openqa.selenium.WebDriver; | |
| 5 | +import org.openqa.selenium.support.PageFactory; | |
| 6 | +import org.testng.annotations.AfterClass; | |
| 7 | +import org.testng.annotations.BeforeClass; | |
| 8 | +import com.essa.pageObject.BaseTest; | |
| 9 | +import com.essa.pageObject.HomePage; | |
| 10 | + | |
| 11 | +public class TestConfirLogistics extends BaseTest { | |
| 12 | + | |
| 13 | + WebDriver driver; | |
| 14 | + | |
| 15 | + @BeforeClass | |
| 16 | + public void setUp() { | |
| 17 | + initsetUp(); | |
| 18 | + loginValid("chenhong"); | |
| 19 | + } | |
| 20 | + | |
| 21 | + @AfterClass | |
| 22 | + public void tearDown() { | |
| 23 | + driver.quit(); | |
| 24 | + } | |
| 25 | + | |
| 26 | + @org.testng.annotations.Test(description = "通知确认船务资料、订车、发车") | |
| 27 | + public void confirmLogisticsTest() { | |
| 28 | + this.driver = getDriver(); | |
| 29 | + | |
| 30 | + HomePage homePage = PageFactory.initElements(driver, HomePage.class); | |
| 31 | + homePage.toLogisticsShippPage(); | |
| 32 | + | |
| 33 | + //通知业务人员和客户,进行船务资料确认 | |
| 34 | + LogisticsShippPage logisticsShippPage = PageFactory.initElements(driver, LogisticsShippPage.class); | |
| 35 | + logisticsShippPage.isSucceed(); | |
| 36 | + | |
| 37 | + homePage.getHome(); | |
| 38 | + homePage.logout(); | |
| 39 | + loginValid("yanqingping"); | |
| 40 | + | |
| 41 | + //待办 | |
| 42 | + homePage.toSailingDateConfirmPage(); | |
| 43 | + //业务员补充船务资料 | |
| 44 | + SellerFillInfoPage sellerFillInfo = PageFactory.initElements(driver, SellerFillInfoPage.class); | |
| 45 | + sellerFillInfo.toSellerFillInfo(); | |
| 46 | + | |
| 47 | + //登记备选船期待办 | |
| 48 | + homePage.getHome(); | |
| 49 | + homePage.logout(); | |
| 50 | + loginValid("wangmiaodan"); | |
| 51 | + homePage.toSailingDateConfirmPage(); | |
| 52 | + RegisOptShpDatePage regisOptShpDatePage = PageFactory.initElements(driver,RegisOptShpDatePage.class); | |
| 53 | + regisOptShpDatePage.toRegisOptShpDatePage(); | |
| 54 | + | |
| 55 | + //大跟单确认 | |
| 56 | + homePage.getHome(); | |
| 57 | + homePage.logout(); | |
| 58 | + loginValid("yuwanhang"); | |
| 59 | + homePage.toSailingDateConfirmPage(); | |
| 60 | + LargeDcofdPage largeDcofdPage = PageFactory.initElements(driver,LargeDcofdPage.class); | |
| 61 | + largeDcofdPage.toLargeDcofdPage(); | |
| 62 | + | |
| 63 | + //订舱 | |
| 64 | + homePage.getHome(); | |
| 65 | + homePage.logout(); | |
| 66 | + loginValid("chenhong"); | |
| 67 | + | |
| 68 | + homePage.toLogisticsShippPage(); | |
| 69 | + CabinInfoPage cabinInfoPage = PageFactory.initElements(driver, CabinInfoPage.class); | |
| 70 | + cabinInfoPage.toCabinInfoPage(); | |
| 71 | + | |
| 72 | + //订车信息确认 | |
| 73 | + BookingCarPage bookingCarPage = PageFactory.initElements(driver, BookingCarPage.class); | |
| 74 | + bookingCarPage.toBookingCarPage(); | |
| 75 | + | |
| 76 | + //确认发车 | |
| 77 | + SendCarPage sendCarPage = PageFactory.initElements(driver, SendCarPage.class); | |
| 78 | + sendCarPage.toSendCarPage(); | |
| 79 | + | |
| 80 | + } | |
| 81 | +} | ... | ... |