|
这个是代码,
Exception in thread "main" org.openqa.selenium.WebDriverException:An unknown server-side error occurred while processing the command. Originalerror: Error occured while starting App. Original error: Activity used to startapp doesn't exist or cannot be launched! Make sure it exists and is alaunchable activity (WARNING: The server did not provide any stacktraceinformation)
Command duration or timeout: 26.17 seconds
Build info: version: '3.6.0', revision:'6fbf3ec767', time: '2017-09-27T15:28:36.4Z'
System info: host: 'MVALRI8VIXNETTP', ip:'192.168.56.1', os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1',java.version: '1.8.0_151'
Driver info: driver.version: AndroidDriver
atsun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(UnknownSource)
atsun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
atjava.lang.reflect.Constructor.newInstance(Unknown Source)
atorg.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:214)
atorg.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:166)
atorg.openqa.selenium.remote.JsonWireProtocolResponse.lambda$new$0(JsonWireProtocolResponse.java:53)
atorg.openqa.selenium.remote.JsonWireProtocolResponse.lambda$getResponseFunction$2(JsonWireProtocolResponse.java:91)
atorg.openqa.selenium.remote.ProtocolHandshake.lambda$createSession$24(ProtocolHandshake.java:359)
atjava.util.stream.ReferencePipeline$3$1.accept(Unknown Source)
atjava.util.Spliterators$ArraySpliterator.tryAdvance(Unknown Source)
atjava.util.stream.ReferencePipeline.forEachWithCancel(Unknown Source)
atjava.util.stream.AbstractPipeline.copyIntoWithCancel(Unknown Source)
at java.util.stream.AbstractPipeline.copyInto(UnknownSource)
atjava.util.stream.AbstractPipeline.wrapAndCopyInto(Unknown Source)
atjava.util.stream.FindOps$FindOp.evaluateSequential(Unknown Source)
atjava.util.stream.AbstractPipeline.evaluate(Unknown Source)
atjava.util.stream.ReferencePipeline.findFirst(Unknown Source)
atorg.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:362)
atorg.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:136)
atorg.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:142)
atio.appium.java_client.remote.AppiumCommandExecutor.execute(AppiumCommandExecutor.java:89)
atorg.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:586)
atio.appium.java_client.DefaultGenericMobileDriver.execute(DefaultGenericMobileDriver.java:42)
atio.appium.java_client.AppiumDriver.execute(AppiumDriver.java:1)
atio.appium.java_client.android.AndroidDriver.execute(AndroidDriver.java:1)
atorg.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:217)
atorg.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:140)
atio.appium.java_client.DefaultGenericMobileDriver.<init>(DefaultGenericMobileDriver.java:38)
atio.appium.java_client.AppiumDriver.<init>(AppiumDriver.java:83)
atio.appium.java_client.AppiumDriver.<init>(AppiumDriver.java:93)
atio.appium.java_client.android.AndroidDriver.<init>(AndroidDriver.java:72)
at appium_fn_testing.CalculatorTest.main(CalculatorTest.java:28)
这是附件
222.doc
(272 KB, 下载次数: 18)
在学课程
Appium移动app自动化测试高手修炼班
http://www.atstudy.com/course/397
|
|