JAVA????????????????????е????
???????????? ???????[ 2015/5/28 11:38:08 ] ????????????????
????6.????????????????????
????package com.test.annotation;
????import org.openqa.selenium.WebDriver;
????public class InitialAnnotation {
????private WebDriver driver;
????public InitialAnnotation(WebDriver driver) {
????this.driver = driver;
????}
????public void initialAnnotation(){
????LoadAllPage lap = new LoadAllPage();
????lap.setDriver(driver);
????lap.loadAllPage();
????AutoPage ap = new AutoPage();
????ap.setPageAnnotation();
????}
????}
????7.???????????????????Page?м??????@LoadPage???
????package com.test.page;
????import org.openqa.selenium.WebDriver;
????import com.test.annotation.LoadPage;
????import com.test.base.Page;
????@LoadPage("firstPage")
????public class FirstPage extends Page{
????public FirstPage(WebDriver driver) {
????super(driver);
????}
????public void linkToMobileList(){
????driver.navigate().to("http://www.baidu.com");
????}
????}
????8.????@Page?????case????????????????TestBase??@BeforeClass????????′???
????if(InitialManger.allInstance.isEmpty()){
????InitialAnnotation init = new InitialAnnotation(driver);
????init.initialAnnotation();
????}
????AutoPage ap = new AutoPage();
????ap.setTestAnnotation(this);
????9.??CASE???????ü????
package com.test.testcases;
import java.util.Map;
import org.testng.annotations.Test;
import com.test.annotation.Page;
import com.test.base.TestBase;
import com.test.page.FirstPage;
public class Test2 extends TestBase{
@Page(name="firstPage")
private FirstPage firstPage;
@Test(dataProvider="providerMethod")
public void testLogin(Map<String?? String> param){
firstPage.linkToMobileList();
}
}
???????????????????????漰???????????????????SPASVOС??(021-61079698-8054)?????????????????????????
??????
Java???????????Щ???????????????Java????????????????Java?б???Map????????Java Web???????????????Java??????????????д?????Java????????7???????????????????????(java .net ?????)???Java??????????Python??????Java webdriver??λ????????′????е?????Java??д??????????????????Java???????????????JavaScript????????????Java?????????????????? Java???????10??????????????Java?м????????????????java???????ü???????????м???????????????????
![](/images/ad-banner/ad-banner.png)
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11????????
?????????App Bug???????????????????????Jmeter?????????QC??????APP????????????????app?????е????????jenkins+testng+ant+webdriver??????????????JMeter????HTTP???????Selenium 2.0 WebDriver ??????