When I run the test case below I got RANDOM fails because the test would fail at a RANDOM tap or swipe.I am using Appium 1.7.0 (npm install -g appium@1.7.0) on Mac Here is the test case:
import static com.kms.katalon.core.checkpoint.CheckpointFactory.findCheckpoint
Mobile.startApplication('/Users/hanqingwang/Downloads/shopstore.apk', true)
Mobile.tap(findTestObject('s2/banner'), 0)
Mobile.tap(findTestObject('s2/faded'), 0)
Mobile.swipe(990,740,-870,0)
Mobile.swipe(990,740,-870,0)
Mobile.swipe(120,740,870,0)
Mobile.pressBack()
Mobile.swipe(550,1200,0,-600)
Mobile.swipe(550,1200,0,-600)
Mobile.tapAtPosition(300, 1250)
Mobile.swipe(990,740,-870,0)
Mobile.swipe(990,740,-870,0)
Mobile.tap(findTestObject('s2/right'), 0)
Mobile.tapAtPosition(550, 950)
Mobile.tap(findTestObject('s2/right'), 0)
Mobile.tap(findTestObject('s2/right'), 0)
Mobile.tap(findTestObject('s2/right'), 0)
Mobile.tap(findTestObject('s2/right'), 0)
Mobile.tap(findTestObject('s2/left'), 0)
Mobile.tap(findTestObject('s2/left'), 0)
Mobile.swipe(550,1400,0,-800)
Mobile.tap(findTestObject('s2/cart'), 0)
Mobile.tap(findTestObject('s2/cart'), 0)
Mobile.tapAtPosition(660, 1430)
Mobile.tap(findTestObject('s2/cart'), 0)
Mobile.tap(findTestObject('s2/cart'), 0)
Mobile.tap(findTestObject('s2/burger'), 0)
Mobile.tap(findTestObject('s2/pants'), 0)
Mobile.swipe(550,1400,0,-900)
Mobile.swipe(550,700,0,700)
Mobile.tapAtPosition(850, 1000)
Mobile.swipe(550,1400,0,-900)
Mobile.pressBack()
Mobile.tapAtPosition(300, 1640)
Mobile.tap(findTestObject('s2/right'), 0)
Mobile.tap(findTestObject('s2/right'), 0)
Mobile.swipe(550,1400,0,-900)
Mobile.swipe(550,1400,0,-900)
Mobile.tapAtPosition(660, 1430)
Mobile.tap(findTestObject('s2/cart'), 0)
Mobile.tap(findTestObject('s2/cart'), 0)
Mobile.tap(findTestObject('s2/cart'), 0)
Mobile.closeApplication()
Here is the error info. But this error can happen at any TAP or SWIPE. If I run it again, the error location will change.
Test Cases/scenario 2 FAILED because (of) (Stack trace: com.kms.katalon.core.exception.StepFailedException: Cannot swipe on device.
(Root cause: 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: 0 millisecondsBuild info:
version: '3.7.1', revision: '8a0099a', time: '2017-11-06T21:07:36.161Z'System info: host: 'MacBook-Pro-6.local', ip:
'fe80:0:0:0:801:cfa3:5ab8:4091%en0', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.13.6', java.version:
'1.8.0_102'Driver info: com.kms.katalon.core.appium.driver.SwipeableAndroidDriverCapabilities {app: /Users/Download...,
autoGrantPermissions: true, automationName: uiautomator2, deviceName: emulator-5554 (Android SDK ..., fullReset: true,
javascriptEnabled: true, newCommandTimeout: 1800, noReset: false, platform: ANDROID, platformName: ANDROID, udid:
emulator-5554}Session ID: a8da2b8e-f062-4906-84de-859e03565a20) at
com.kms.katalon.core.keyword.internal.KeywordMain.stepFailed(KeywordMain.groovy:36) at
com.kms.katalon.core.mobile.keyword.internal.MobileKeywordMain.stepFailed(MobileKeywordMain.groovy:40) at
com.kms.katalon.core.mobile.keyword.internal.MobileKeywordMain.runKeyword(MobileKeywordMain.groovy:23) at
com.kms.katalon.core.mobile.keyword.builtin.SwipeKeyword.swipe(SwipeKeyword.groovy:71) at
com.kms.katalon.core.mobile.keyword.builtin.SwipeKeyword.execute(SwipeKeyword.groovy:66) at
com.kms.katalon.core.keyword.internal.KeywordExecutor.executeKeywordForPlatform(KeywordExecutor.groovy:53) at
com.kms.katalon.core.mobile.keyword.MobileBuiltInKeywords.swipe(MobileBuiltInKeywords.groovy:153) at
com.kms.katalon.core.mobile.keyword.MobileBuiltInKeywords$swipe$1.call(Unknown Source) at
org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48) at
org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:113) at
org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:149) at
Script1535634849086.run(Script1535634849086.groovy:85) at
com.kms.katalon.core.main.ScriptEngine.run(ScriptEngine.java:183) at
com.kms.katalon.core.main.ScriptEngine.runScriptAsRawText(ScriptEngine.java:108) at
com.kms.katalon.core.main.TestCaseExecutor.runScript(TestCaseExecutor.java:294) at
com.kms.katalon.core.main.TestCaseExecutor.doExecute(TestCaseExecutor.java:285) at
com.kms.katalon.core.main.TestCaseExecutor.processExecutionPhase(TestCaseExecutor.java:264) at
com.kms.katalon.core.main.TestCaseExecutor.accessMainPhase(TestCaseExecutor.java:256) at
com.kms.katalon.core.main.TestCaseExecutor.execute(TestCaseExecutor.java:200) at
com.kms.katalon.core.main.TestCaseMain.runTestCase(TestCaseMain.java:99) at
com.kms.katalon.core.main.TestCaseMain.runTestCase(TestCaseMain.java:90) at
com.kms.katalon.core.main.TestCaseMain$runTestCase$0.call(Unknown Source) at
org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48) at
org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:113) at
org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:149) at
TempTestCase1536573838319.run(TempTestCase1536573838319.groovy:22) at
groovy.lang.GroovyShell.runScriptOrMainOrTestOrRunnable(GroovyShell.java:263) at
groovy.lang.GroovyShell.run(GroovyShell.java:518) at groovy.lang.GroovyShell.run(GroovyShell.java:507) at
groovy.ui.GroovyMain.processOnce(GroovyMain.java:653) at groovy.ui.GroovyMain.run(GroovyMain.java:384) at
groovy.ui.GroovyMain.process(GroovyMain.java:370) at groovy.ui.GroovyMain.processArgs(GroovyMain.java:129) at
groovy.ui.GroovyMain.main(GroovyMain.java:109) 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.codehaus.groovy.tools.GroovyStarter.rootLoader(GroovyStarter.java:109) at
org.codehaus.groovy.tools.GroovyStarter.main(GroovyStarter.java:131))Test Cases/scenario 2.run:85
Thanks for any help!