I Am still learning jenkins and dev ops, have some challenges and need some help.
I have written the tests for my android app with Katalon studio. I have created a job on Jenkins which does code checkout from git, runs shell commands to create APK.
Now my next challenge is to run the KS test suites on this apk file.
I am clueless on how to start with this task. FYI, i have created the script to run KS test suite from command line. Was able to run the kS test suite but with this process the test suite runs only if a device is connected to my machine and KS is installed.
I want to automate the last two steps, that manual KS installation shouldn’t be a restriction. Should happen from the jenkins shell command maybe
connecting device also shouldn’t be a requirement as if i can use android emulator or some other free online device farm service.
Let me know if I need to detail out something.
command line code: ./Katalon\ Studio.app/Contents/MacOS/katalon --args -noSplash -runMode=console -consoleLog -projectPath="/Users/bm/Katalon Studio/TestFoxy/TestFoxy.prj" -retry=0 -testSuitePath=“Test Suites/Foxy Suite/Suite S01” -executionProfile=“default” -deviceId=“aec4cc69” -browserType="Android"apiKey=“xxxxxxx
EDIT1: I can not get my head around on where to start. For Katalon test job in jenkins I have added a trigger that says run the test as soon as the GIT checkout job finishes. Have hardcoded the path for apk in katalon test case ( let me know if this is best practice). But in the Katalon Job, i have simply created the cmd command and pasted in EXECUTE SHELL step. This triggers the katalon and runs the test.
But i want all of it to happen without manual intervention, say pereodically