Commit d20516863ed234a4d1bd0c69cb852538ce0046ee
1 parent
a90375bd
删除一些不要用的类和修改一些类的位置
Showing
7 changed files
with
25 additions
and
62 deletions
Show diff stats
src/main/java/com/essa/framework/BasePage1.java deleted
| ... | ... | @@ -1,38 +0,0 @@ |
| 1 | -package com.essa.framework; | |
| 2 | - | |
| 3 | -import org.openqa.selenium.WebDriver; | |
| 4 | -import org.openqa.selenium.WebElement; | |
| 5 | - | |
| 6 | -public class BasePage1 { | |
| 7 | - public static WebDriver driver; | |
| 8 | - /** | |
| 9 | - * 构造方法 | |
| 10 | - * @param driver | |
| 11 | - */ | |
| 12 | - public BasePage1(WebDriver driver) { | |
| 13 | - BasePage.driver = driver; | |
| 14 | - } | |
| 15 | - /** | |
| 16 | - * 填写文本 | |
| 17 | - * @param element 元素 | |
| 18 | - * @param text 文本值 | |
| 19 | - */ | |
| 20 | - protected void sendKeys(WebElement element, String text) { | |
| 21 | - element.clear();// 清除原有文本 | |
| 22 | - element.sendKeys(text); | |
| 23 | - } | |
| 24 | - /** | |
| 25 | - * 鼠标左键点击 | |
| 26 | - * @param element 元素 | |
| 27 | - */ | |
| 28 | - protected void click(WebElement element) { | |
| 29 | - element.click(); | |
| 30 | - } | |
| 31 | - /** | |
| 32 | - * 获取当前页面的标题 | |
| 33 | - * @return 标题 | |
| 34 | - */ | |
| 35 | - protected String getCurrentPageTitle() { | |
| 36 | - return driver.getTitle(); | |
| 37 | - } | |
| 38 | -} |
src/main/java/com/essa/pageObject/Documentary/PODocumentaryPage.java deleted
| ... | ... | @@ -1,17 +0,0 @@ |
| 1 | -package com.essa.pageObject.Documentary; | |
| 2 | - | |
| 3 | -import org.openqa.selenium.WebDriver; | |
| 4 | - | |
| 5 | -import com.essa.framework.BasePage; | |
| 6 | - | |
| 7 | -/** | |
| 8 | - * @author Administrator | |
| 9 | - *PO跟单页面 | |
| 10 | - */ | |
| 11 | -public class PODocumentaryPage extends BasePage { | |
| 12 | - | |
| 13 | - public PODocumentaryPage(WebDriver driver) { | |
| 14 | - super(driver); | |
| 15 | - } | |
| 16 | - | |
| 17 | -} |
src/main/java/com/essa/pageObject/HomePage.java
| 1 | 1 | package com.essa.pageObject; |
| 2 | 2 | |
| 3 | 3 | import com.essa.pageObject.DocumentaryManage.POBoardPage; |
| 4 | +import com.essa.pageObject.SupplierManage.SupplierOperationsTrackPage; | |
| 4 | 5 | import org.openqa.selenium.WebDriver; |
| 5 | 6 | import org.openqa.selenium.WebElement; |
| 6 | 7 | import org.openqa.selenium.support.FindBy; | ... | ... |
src/main/java/com/essa/pageObject/SupplierOperationsTrackPage.java renamed to src/main/java/com/essa/pageObject/SupplierManage/SupplierOperationsTrackPage.java
| 1 | -package com.essa.pageObject; | |
| 1 | +package com.essa.pageObject.SupplierManage; | |
| 2 | 2 | |
| 3 | 3 | import org.openqa.selenium.WebDriver; |
| 4 | 4 | import org.openqa.selenium.WebElement; |
| ... | ... | @@ -6,6 +6,11 @@ import org.openqa.selenium.support.FindBy; |
| 6 | 6 | |
| 7 | 7 | import com.essa.framework.BasePage; |
| 8 | 8 | |
| 9 | +/* | |
| 10 | +* @Description:BD跟进管理页面 | |
| 11 | +* @Author: ZengJin | |
| 12 | +* @CreateTime: 2018/10/29 | |
| 13 | +*/ | |
| 9 | 14 | public class SupplierOperationsTrackPage extends BasePage { |
| 10 | 15 | public SupplierOperationsTrackPage(WebDriver driver) { |
| 11 | 16 | super(driver); | ... | ... |
src/main/java/com/essa/pageObject/SupplierStrengthPage.java renamed to src/main/java/com/essa/pageObject/SupplierManage/SupplierStrengthPage.java
| 1 | -package com.essa.pageObject; | |
| 1 | +package com.essa.pageObject.SupplierManage; | |
| 2 | 2 | |
| 3 | 3 | import java.util.List; |
| 4 | 4 | |
| ... | ... | @@ -8,7 +8,11 @@ import org.openqa.selenium.WebElement; |
| 8 | 8 | import org.openqa.selenium.support.FindBy; |
| 9 | 9 | |
| 10 | 10 | import com.essa.framework.BasePage; |
| 11 | - | |
| 11 | +/* | |
| 12 | +* @Description:综合实力评估页面 | |
| 13 | +* @Author: ZengJin | |
| 14 | +* @CreateTime: 2018/10/29 | |
| 15 | +*/ | |
| 12 | 16 | public class SupplierStrengthPage extends BasePage{ |
| 13 | 17 | public SupplierStrengthPage(WebDriver driver) { |
| 14 | 18 | super(driver); | ... | ... |
src/main/java/com/essa/testSuite/SendEmail.java
| ... | ... | @@ -16,7 +16,11 @@ import javax.mail.internet.InternetAddress; |
| 16 | 16 | import javax.mail.internet.MimeBodyPart; |
| 17 | 17 | import javax.mail.internet.MimeMessage; |
| 18 | 18 | import javax.mail.internet.MimeMultipart; |
| 19 | - | |
| 19 | +/* | |
| 20 | +* @Description:发送邮件的demo | |
| 21 | +* @Author: ZengJin | |
| 22 | +* @CreateTime: 2018/10/29 | |
| 23 | +*/ | |
| 20 | 24 | public class SendEmail { |
| 21 | 25 | |
| 22 | 26 | public static void main(String[] args) { | ... | ... |
src/main/java/com/essa/testSuite/TestDevelopmentAbility.java
| ... | ... | @@ -3,8 +3,8 @@ package com.essa.testSuite; |
| 3 | 3 | import com.essa.framework.SystemConstant; |
| 4 | 4 | import com.essa.pageObject.BaseTest; |
| 5 | 5 | import com.essa.pageObject.HomePage; |
| 6 | -import com.essa.pageObject.SupplierOperationsTrackPage; | |
| 7 | -import com.essa.pageObject.SupplierStrengthPage; | |
| 6 | +import com.essa.pageObject.SupplierManage.SupplierOperationsTrackPage; | |
| 7 | +import com.essa.pageObject.SupplierManage.SupplierStrengthPage; | |
| 8 | 8 | import org.openqa.selenium.WebDriver; |
| 9 | 9 | import org.openqa.selenium.support.PageFactory; |
| 10 | 10 | import org.testng.annotations.AfterClass; |
| ... | ... | @@ -16,7 +16,11 @@ import org.testng.asserts.SoftAssert; |
| 16 | 16 | import java.io.IOException; |
| 17 | 17 | |
| 18 | 18 | import static org.testng.Assert.assertEquals; |
| 19 | - | |
| 19 | +/* | |
| 20 | +* @Description:综合实力评估 | |
| 21 | +* @Author: ZengJin | |
| 22 | +* @CreateTime: 2018/10/29 | |
| 23 | +*/ | |
| 20 | 24 | public class TestDevelopmentAbility extends BaseTest { |
| 21 | 25 | |
| 22 | 26 | WebDriver driver; | ... | ... |