Recorder fails to install apk on mobile devcie

read

#1

I am trying to start the mobile recorder by clicking the mobile record button - everything loads until a point where it fails and gives some licencing error. I am unable to copy the error message. I am able to install the apk on the mobile device using adb - why can Katalon recorder not do the same?

If I install the apk manually I van then launch the recorder and record some step items. When I try to play back the steps, the app is uninstalled from the android phone but then it fails to install it again. I am able to run the very same install command successfully directly in adb:

Test Cases/RunShowmax FAILED because (of) Unable to start app at: ‘C:\Projects\Automation\apks\adb -P 5037 -s ce061606a2a3e51404 install -r -g “C:\\Projects\\Automation\\apks\\app-staging-release.apk”’ (Root cause: org.openqa.selenium.WebDriverException: An unknown server-side error occurred while processing the command. Original error: The application at ‘C:\Projects\Automation\apks\adb -P 5037 -s ce061606a2a3e51404 install -r -g “C:\\Projects\\Automation\\apks\\app-staging-release.apk”’ does not exist or is not accessible

Build info: version: ‘3.7.1’, revision: ‘8a0099a’, time: ‘2017-11-06T21:07:36.161Z’

System info: host: ‘09CREL-B1KRNC2’, ip: ‘192.168.100.201’, os.name: ‘Windows 10’, os.arch: ‘amd64’, os.version: ‘10.0’, java.version: ‘1.8.0_102’

Driver info: driver.version: SwipeableAndroidDriver

remote stacktrace: UnknownError: An unknown server-side error occurred while processing the command. Original error: The application at ‘C:\Projects\Automation\apks\adb -P 5037 -s ce061606a2a3e51404 install -r -g “C:\\Projects\\Automation\\apks\\app-staging-release.apk”’ does not exist or is not accessible

_ at getResponseForW3CError (C:\Users\jacob.jackson\AppData\Roaming\npm\node_modules\appium\node_modules\appium-base-driver\lib\protocol\errors.js:800:13)_

_ at asyncHandler$ (C:\Users\jacob.jackson\AppData\Roaming\npm\node_modules\appium\node_modules\appium-base-driver\lib\protocol\protocol.js:352:37)_

_ at tryCatch (C:\Users\jacob.jackson\AppData\Roaming\npm\node_modules\appium\node_modules\babel-runtime\regenerator\runtime.js:67:40)_

_ at GeneratorFunctionPrototype.invoke [as _invoke] (C:\Users\jacob.jackson\AppData\Roaming\npm\node_modules\appium\node_modules\babel-runtime\regenerator\runtime.js:315:22)_

_ at GeneratorFunctionPrototype.prototype.(anonymous function) [as next] (C:\Users\jacob.jackson\AppData\Roaming\npm\node_modules\appium\node_modules\babel-runtime\regenerator\runtime.js:100:21)_

_ at GeneratorFunctionPrototype.invoke (C:\Users\jacob.jackson\AppData\Roaming\npm\node_modules\appium\node_modules\babel-runtime\regenerator\runtime.js:136:37)_

_ at )_

_Test Cases/RunShowmax.run:22

_


#2

Hi Jacob, I’m the same problem. Can you resolved this issue?


#3

Hi @marco.pastore,

If you have an application already installed on your device that you don’t want to remove before the test (or between tests) you can pass false as the second parameter to the startApplication() function. So it would look like this:

startApplication("path\to\my\application", false)

Hope this helps,

Chris


#4

Hi @Chris,

the problem is different. I have some problem with Spy Mobile Function, then was specified in the thread Katalon. There are same Katalon library that generate an exception.

Do you have a solution for my problem?

Thank you for response.


#5

Hi @marco.pastore,

Thanks for clarifying. Could you confirm the versions of Katalon Studio and Appium that you’re using? Could you also please share any log files of screenshots of the error you’re seeing? That will be helpful in troubleshooting.

Here are some general things to check when troubleshooting mobile errors with Katalon:

Hope this helps,

Chris


#6

Hi @Chris_Trevarthen,

my machine work with appium version 1.8.1 and Katalon version 6.0.5 but this problem was reproduced also Katalon version 5.4.X . I have the same log of Jacob on the top of thread.
Thanks for all,

Marco.


#7

Hi @Chris_Trevarthen,

do you have a solution or an idea for this issue. This problem is very important for me. Can you help me, please?

Best regards,
Marco.


#8

Hi @marco.pastore,

Here are a couple things you can try:

  1. Update your appWaitActivity setting like this person who was having an issue starting:
  1. Make sure the directory where your .apk is located has full read and write permissions as well as the .apk file itself

  2. Move the .apk file to a different directory

  3. Run the .apk on an emulator if you’re using it on a real device

  4. Check to see if you can run the .apk that’s included in the Sample Android Mobile Tests Project. This could tell whether there is a problem with your Katalon setup or device, or if it’s a problem with the .apk you are originally trying to test.

Hope this helps,

Chris


#9

Hi Chris,

there are to many observations to the step that you have suggested. The point 2-3-4-5 are impossible solutions to problem because I tried only solutions with different apk version and different path location.
First, is interesting point. I prefix that work for mac and windows together. Only solution will be to set appWaitActivity. For this reason, I ask you, how set appWaitActivity?

Regards,
Marco!


#10

Hi @marco.pastore,

Please check out this post about setting appWaitActivity:

Hope this helps,

Chris