51Testing软件测试论坛

 找回密码
 (注-册)加入51Testing

QQ登录

只需一步,快速开始

微信登录,快人一步

手机号码,快捷登录

查看: 1312|回复: 1
打印 上一主题 下一主题

[在学] 运行程序报错~

[复制链接]

该用户从未签到

跳转到指定楼层
1#
发表于 2018-2-9 15:06:14 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
这个是代码,
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, 下载次数: 22)


在学课程
Appium移动app自动化测试高手修炼班
http://www.atstudy.com/course/397


分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏
回复

使用道具 举报

该用户从未签到

2#
发表于 2018-2-9 16:48:21 | 只看该作者
activity的名字写错~
回复 支持 反对

使用道具 举报

本版积分规则

关闭

站长推荐上一条 /1 下一条

小黑屋|手机版|Archiver|51Testing软件测试网 ( 沪ICP备05003035号 关于我们

GMT+8, 2024-11-28 08:34 , Processed in 0.063720 second(s), 26 queries .

Powered by Discuz! X3.2

© 2001-2024 Comsenz Inc.

快速回复 返回顶部 返回列表