selendroid自动化移动网络测试

时间:2014-03-06 13:30:15

标签: android maven selenium selendroid

通过maven运行selenium测试时出现以下错误

INFO:执行命令:

 C:\adt-bundle-windows-x86_64-20131030\sdk\build-tools\android-4.4\aapt.exe remove C:\Users\CAMPK023\AppData\Local\Temp\android-driver5204.apk META-INF/ANDROIDD.RSA

java.lang.NoSuchMethodError: org.apache.commons.io.FileUtils.getUserDirectory()Ljava/io/File;
    at io.selendroid.builder.SelendroidServerBuilder.androidDebugKeystore(SelendroidServerBuilder.java:284)
    at io.selendroid.builder.SelendroidServerBuilder.signTestServer(SelendroidServerBuilder.java:228)
    at io.selendroid.builder.SelendroidServerBuilder.resignApp(SelendroidServerBuilder.java:134)
    at io.selendroid.server.model.SelendroidStandaloneDriver.initApplicationsUnderTest(SelendroidStandaloneDriver.java:156)
    at io.selendroid.server.model.SelendroidStandaloneDriver.<init>(SelendroidStandaloneDriver.java:93)
    at io.selendroid.server.SelendroidStandaloneServer.initializeSelendroidServer(SelendroidStandaloneServer.java:91)
    at io.selendroid.server.SelendroidStandaloneServer.<init>(SelendroidStandaloneServer.java:65)
    at io.selendroid.SelendroidLauncher.lauchServer(SelendroidLauncher.java:67)
    at io.selendroid.SelendroidLauncher.lauchSelendroid(SelendroidLauncher.java:90)
    at pages.AboutDirectDebitsPage.startSelendroidServer(AboutDirectDebitsPage.java:29)
    at stepdefinitions.DirectDebitStepDefs.I_am_in_the_business_rates_direct_debits_home_page(DirectDebitStepDefs.java:30)
    at ✽.Given I am in the business rates direct debits home page(BusinessRatesDirectDebitSetup.feature:8)

知道如何解决

由于 praneeth

1 个答案:

答案 0 :(得分:0)

建议如果您在Android API级别17或更高版本上自动化应用程序,请使用appium而不是selendroid。 http://appium.io/