Hi Community members,
When considering the use of Katalon command line arguments for running tests, we often assume they are only applicable when executing tests through CI/CD tools. However, these command line arguments can also be utilized when running tests via Katalon TestOps .
In this article, we’ll explain how you can effectively use Katalon command line arguments within the TestOps platform to optimize your test executions.
Prerequisites
- Please help to integrate your project repository on TestOps and also clone the same project repository on Katalon Studio. Your same project should be available on Katalon Studio and TestOps:
- The first critical step in determining how to execute tests in TestOps is to select the appropriate execution environment. You have two primary options:
- To run tests from TestOps on TestCloud environments, please you can refer to: Desktop browser testing with TestCloud | Katalon Docs
- To run the tests from TestOps using the Local Agent, please can refer to: Create a local test environment with an Agent | Katalon Docs
Video Demo
Step-by-step instructions
- You can open your project in Katalon Studio and click on the “Build Command“ Icon like below:
- Then please help to select your Test Suite or Collection, Organization and your project and click on “Generate TestOps CI Command“:
-
Please help to copy the generated command
-
Now, go to your TestOps Organization: https://testops.katalon.io/
-
Click on the “Executions“ tab in the middle and then click on “Schedule Test Run“
-
Inside “Schedule Test Run“ window, please select your project repository in front of “Script Repository“:
- Click on “Katalon Command“ option and paste your copied command inside like below example:
- Now you just have to choose the “Environment“ where you want the tests to run on. To do that, just click on “Select Environment“ dropdown and then click on “More Options“:
- To select the TestCloud environment, you can select like below:
- Or to select the “Local Agent“ you can select like below:
- Finally, you can click “Save” and then "Run’!
Great Job! You have triggered a test from TestOps using the Katalon command line arguments.
If you find this article helpful, then don’t forget to leave us a like or a heart and share it with your colleagues and teammates! We greatly appreciate your support for KShare!