Appium???????
???????????? ???????[ 2016/11/22 14:04:33 ] ????????????????? Appium Junit
????1.???????Junit??????????£?
???????????
????public class AppiumTest extends TestCase
????2.Appium??????????????????????app??????á???????????/?????????????????????setUp()????
???????????
????public void setUp() throws MalformedURLException{
????//??????
????DesiredCapabilities capabilities= new DesiredCapabilities();
????capabilities.setCapability( "device"?? "Anroid");
????capabilities.setCapability( "deviceName"?? "Android");
????capabilities.setCapability(CapabilityType. BROWSER_NAME?? "");
????capabilities.setCapability( "platformName"?? "Android");
????capabilities.setCapability( "platformVersion" ?? "4.4" );
????File classpathRoot= new File(System. getProperty( "user.dir"));
????//????apk ???·??
????File appDir= new File(classpathRoot?? "apps");
????File app= new File(appDir?? "Test.apk" );
????capabilities.setCapability( "app"?? app.getAbsolutePath());
????//????apk ????
????capabilities.setCapability( "app-package"?? "android.test" );
????//????apk ?????
????capabilities.setCapability( "app-activity"?? ".TestActivity");
????//AppiumDriver
????driver= new AppiumDriver( new URL("http://127.0.0.1:4723/wd/hub" )??capabilities);
????}
????3.Appium??????????????????????????tearDown()????
???????????
????public void tearDown(){
????driver.quit();
????}
????4.??????????д???????testXX???
???????????
????public void testClick(){
????//findElementByName??????????????????
????WebElement el= driver.findElementByName( "buttonText");
????el.click();
????}
????????????????????????????????api???????????
??????
???·???
??????????????????
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