wangruixia2017 发表于 2017-3-15 14:35:03

An unknown server-side error occurred while processing the command.

本帖最后由 wangruixia2017 于 2017-3-15 14:40 编辑

在安卓自动化测试过程中,总是报这个错误,为什么?感谢各位大神指点。 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() 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
===============================================

Time taken by org.testng.reporters.XMLReporter@5e025e70: 24 ms
Time taken by org.testng.reporters.jq.Main@2a18f23c: 45 ms
Time taken by org.testng.reporters.JUnitReportReporter@3f0ee7cb: 8 ms
Time taken by org.testng.reporters.EmailableReporter2@6debcae2: 8 ms
Time taken by org.testng.reporters.SuiteHTMLReporter@6adca536: 66 ms
Time taken by : 16 ms


黑盒测试 发表于 2017-3-15 14:52:29

是用appium+python做的吗?好做吗?

梦想家 发表于 2017-3-15 15:44:41

什么工具呀

wangruixia2017 发表于 2017-3-15 16:03:37

梦想家 发表于 2017-3-15 15:44
什么工具呀

appium

wangruixia2017 发表于 2017-3-15 16:04:13

黑盒测试 发表于 2017-3-15 14:52
是用appium+python做的吗?好做吗?

appium+java

jingzizx 发表于 2017-3-17 13:54:13

有人说:查看设备上是否安装Selendroid,或者升级Selendroid

不知道是不是可以

wangruixia2017 发表于 2017-3-17 14:07:19

我试试。谢谢:hug:

Daryl 发表于 2017-6-2 10:56:29

请问如何解决此问题?
页: [1]
查看完整版本: An unknown server-side error occurred while processing the command.