Run Test suite collection with mobile and browser

Hello all,

My test suites collection using both of browser and mobile (application) like as following

when I run the tests with local Katalon Studio :

Android test : Test can be run with running emulator
Chrome test : Test can be run with local Chrome browser

When I run the tests with Katalon Runtime Engine (in azure DevOps Pipeline)

Android test : Test can be run with running emulator
Chrome test : Shows following error…

Caused by: org.openqa.selenium.WebDriverException: An unknown server-side error occurred while processing the command. Original error: 'app' option is required for reinstall
Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:25:53'
System info: host: 'Mac-1627.local', ip: '10.79.0.238', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.15.5', java.version: '1.8.0_181'
Driver info: driver.version: SwipeableAndroidDriver
remote stacktrace: UnknownError: An unknown server-side error occurred while processing the command. Original error: 'app' option is required for reinstall

command : -noSplash -runMode=console -projectPath="/abc/abc.prj" -retry=1 -testSuiteCollectionPath='Test Suites/Basic test/1. Test for Gsuite' -browserType="Android" -deviceId="emulator-5554" -executionProfile="abc" -apiKey="$(api-key)"


Something wrong? Or I cannot run both mobile and browser test in console mode?

Currently, -deviceId command doesn’t apply for test suite collection, so the command should be like this:

-noSplash -runMode=console -projectPath="/abc/abc.prj" -retry=1 -testSuiteCollectionPath='Test Suites/Basic test/1. Test for Gsuite' -executionProfile="abc" -apiKey="$(api-key)"

1 Like

@duyluong Thanks for your reply,
I run the command without deviceId and browserType, but I got same error.

command : -noSplash -runMode=console -projectPath="/abc/abc.prj" -retry=1 -testSuiteCollectionPath='Test Suites/Basic test/1. Test for Gsuite' -executionProfile="abc" -apiKey="$(api-key)"

Caused by: org.openqa.selenium.SessionNotCreatedException: Unable to create a new remote session. Please check the server log for more details. Original error: An unknown server-side error occurred while processing the command. Original error: 'app' option is required for reinstall
Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:25:53'
System info: host: 'Mac-1467.local', ip: '10.79.0.118', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.15.5', java.version: '1.8.0_181'
Driver info: driver.version: SwipeableAndroidDriver
remote stacktrace: UnknownError: An unknown server-side error occurred while processing the command. Original error: 'app' option is required for reinstall
    at getResponseForW3CError (/usr/local/lib/node_modules/appium/node_modules/appium-base-driver/lib/protocol/errors.js:804:9)
    at asyncHandler (/usr/local/lib/node_modules/appium/node_modules/appium-base-driver/lib/protocol/protocol.js:392:37)
Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:25:53'
System info: host: 'Mac-1467.local', ip: '10.79.0.118', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.15.5', java.version: '1.8.0_181'
Driver info: driver.version: SwipeableAndroidDriver

I understood my situation.
My test also requires mobile browser, but there is no Chrome browser in the emulator initially.
I installed Chrome to the emulator and test can be run.
Thanks.

1 Like