51Testing软件测试论坛

标题: An unknown server-side error occurred while processing the command. [打印本页]

作者: wangruixia2017    时间: 2017-3-15 14:35
标题: An unknown server-side error occurred while processing the command.
本帖最后由 wangruixia2017 于 2017-3-15 14:40 编辑

在安卓自动化测试过程中,总是报这个错误,为什么?感谢各位大神指点。[TestNG] Running:
  C:\Users\ShineMo-177\AppData\Local\Temp\testng-eclipse-1291693990\testng-customsuite.xml

PASSED: login
PASSED: largeViewLocal
PASSED: downloadFromCloud
PASSED: deleteFromCloud
FAILED: patchUpload
org.openqa.selenium.WebDriverException: An unknown server-side error occurred while processing the command. (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 58 milliseconds
Build info: version: '2.50.1', revision: 'd7fc91b', time: '2016-01-29 19:08:26'
System info: host: 'ShineMo-177-PC', ip: '10.1.10.13', os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1', java.version: '1.8.0_121'
Driver info: io.appium.java_client.android.AndroidDriver
Capabilities [{app=D:\Users\workspace\AlbumsTest\app\Album_netease.apk, appPackage=com.netease.cloudalbum, networkConnectionEnabled=true, warnings={}, databaseEnabled=false, deviceName=750BBLN22869, platform=LINUX, desired={app=D:\Users\workspace\AlbumsTest\app\Album_netease.apk, appPackage=com.netease.cloudalbum, platformVersion=5.0, unicodeKeyboard=true, platformName=Android, deviceName=750BBLN22869, resetKeyboard=true}, platformVersion=5.0.1, webStorageEnabled=false, locationContextEnabled=false, browserName=Android, takesScreenshot=true, javascriptEnabled=true, unicodeKeyboard=true, platformName=Android, resetKeyboard=true}]
Session ID: acd46f8f-07a9-4c0b-809a-55adcd90fbf2
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
        at org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:206)
        at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:158)
        at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:678)
        at io.appium.java_client.DefaultGenericMobileDriver.execute(DefaultGenericMobileDriver.java:42)
        at io.appium.java_client.AppiumDriver.execute(AppiumDriver.java:1)
        at io.appium.java_client.android.AndroidDriver.execute(AndroidDriver.java:1)
        at io.appium.java_client.AppiumDriver.performTouchAction(AppiumDriver.java:314)
        at io.appium.java_client.TouchAction.perform(TouchAction.java:301)
        at io.appium.java_client.AppiumDriver.swipe(AppiumDriver.java:369)
        at com.netease.album.AlbumTest.switchCloudToLocal(AlbumTest.java:239)
        at com.netease.album.AlbumTest.patchUpload(AlbumTest.java:181)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:85)
        at org.testng.internal.Invoker.invokeMethod(Invoker.java:639)
        at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:816)
        at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1124)
        at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:125)
        at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:108)
        at org.testng.TestRunner.privateRun(TestRunner.java:774)
        at org.testng.TestRunner.run(TestRunner.java:624)
        at org.testng.SuiteRunner.runTest(SuiteRunner.java:359)
        at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:354)
        at org.testng.SuiteRunner.privateRun(SuiteRunner.java:312)
        at org.testng.SuiteRunner.run(SuiteRunner.java:261)
        at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
        at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
        at org.testng.TestNG.runSuitesSequentially(TestNG.java:1215)
        at org.testng.TestNG.runSuitesLocally(TestNG.java:1140)
        at org.testng.TestNG.run(TestNG.java:1048)
        at org.testng.remote.AbstractRemoteTestNG.run(AbstractRemoteTestNG.java:132)
        at org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:236)
        at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:81)

SKIPPED: deleteCloudAblum
java.lang.Throwable: Method AlbumTest.deleteCloudAblum()[pri:0, instance:com.netease.album.AlbumTest@4439f31e] depends on not successfully finished methods
        at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1033)
        at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:125)
        at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:108)
        at org.testng.TestRunner.privateRun(TestRunner.java:774)
        at org.testng.TestRunner.run(TestRunner.java:624)
        at org.testng.SuiteRunner.runTest(SuiteRunner.java:359)
        at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:354)
        at org.testng.SuiteRunner.privateRun(SuiteRunner.java:312)
        at org.testng.SuiteRunner.run(SuiteRunner.java:261)
        at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
        at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
        at org.testng.TestNG.runSuitesSequentially(TestNG.java:1215)
        at org.testng.TestNG.runSuitesLocally(TestNG.java:1140)
        at org.testng.TestNG.run(TestNG.java:1048)
        at org.testng.remote.AbstractRemoteTestNG.run(AbstractRemoteTestNG.java:132)
        at org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:236)
        at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:81)


===============================================
    Default test
    Tests run: 6, Failures: 1, Skips: 1
===============================================


===============================================
Default suite
Total tests run: 6, Failures: 1, Skips: 1
===============================================

[TestNG] Time taken by org.testng.reporters.XMLReporter@5e025e70: 24 ms
[TestNG] Time taken by org.testng.reporters.jq.Main@2a18f23c: 45 ms
[TestNG] Time taken by org.testng.reporters.JUnitReportReporter@3f0ee7cb: 8 ms
[TestNG] Time taken by org.testng.reporters.EmailableReporter2@6debcae2: 8 ms
[TestNG] Time taken by org.testng.reporters.SuiteHTMLReporter@6adca536: 66 ms
[TestNG] Time taken by [FailedReporter passed=0 failed=0 skipped=0]: 16 ms



作者: 黑盒测试    时间: 2017-3-15 14:52
是用appium+python做的吗?好做吗?
作者: 梦想家    时间: 2017-3-15 15:44
什么工具呀  
作者: wangruixia2017    时间: 2017-3-15 16:03
梦想家 发表于 2017-3-15 15:44
什么工具呀

appium
作者: wangruixia2017    时间: 2017-3-15 16:04
黑盒测试 发表于 2017-3-15 14:52
是用appium+python做的吗?好做吗?

appium+java

作者: jingzizx    时间: 2017-3-17 13:54
有人说:查看设备上是否安装Selendroid,或者升级Selendroid

不知道是不是可以
作者: wangruixia2017    时间: 2017-3-17 14:07
我试试。谢谢
作者: Daryl    时间: 2017-6-2 10:56
请问如何解决此问题?




欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/) Powered by Discuz! X3.2