Run the following command with the version to build the image
./buid-image.sh 1.7.6
- Node.js >= 10.x
- Run the
npm installcommand in the Katalon Agent's root directory to install the dependencies.
- Create the
agentconfigfile in the Katalon Agent's root directory and configure it:
agentName=My Agent
email=<email>
apikey=<api_key>
serverUrl=https://analytics.katalon.com/
organizationId=<organization_id>- Supported options:
| Mandatory Option | Description |
|---|---|
| agentName | The name of the Katalon Agent displayed on the Katalon TestOps CI page. It should be human-readable and distinguishable among multiple agents. |
| The email of the Katalon account used to log into the Katalon TestOps. | |
| apikey | The API Key used to log into the Katalon TestOps. The API key can be generated and retrieved from here. For more info read the docs. |
| serverUrl | The Katalon TestOps' URL. |
| organizationId | The ID of the Katalon TestOps organization to integrate the Katalon Agent into. The agent is shared among members and projects within an organization that the agent linked to. |
| uuid | The ID used to identify the agent. It is generated by the Katalon Agent on the first run and should not be specified manually or modified for any reason. |
| Optional Option | Description |
|---|---|
| xvfbRun | Xvfb-run supported options. Linux only. E.g. xvfbRun=-a -n 0 -s "-screen 0 1024x768x24" |
| x11Display | x11 DISPLAY environment variable. Linux only. E.g. x11Display=:0.0 |
| proxy | The proxy server. E.g. proxy=http://localhost:3000 |
| proxyExcludedUrls | E.g. proxyExcludedUrls=testops.katalon.io |
| logLevel | The logging level (ALL < TRACE < DEBUG < INFO < WARN < ERROR < FATAL < MARK < OFF). Default: INFO. |
| keepFiles | Whether to keep the test project's temporary files. Default: false. |
| vmargs | JVM arguments for Katalon Studio execution. E.g. vmargs=-Xms1024m -Xmx3072m -XX:+UseG1GC |
- Navigate to the Katalon Agent directory
- Run the
npm startornode cli.js start-agentcommand to start the agent.
- Download the suitable package from the Katalon Agent Releases.
- Extract the downloaded package.
- Depending on the platform a start script can be found inside the extracted directory,
start.baton Windowsstart.shon Linux and MacOS.
- Open your CLI and execute the start script.
Note: On Linux and MacOS, you might need to add execute permission (chmode u+x <file>) to the following files, if present:
cli-linux-x64cli-macos-x64start.shservice.sh
- Checkout the code
- Make sure the dependencies in the
package.jsonis installed and up-to-date by runningnpm installcommand - Run
npm run buildcommand - The build artifacts are available inside the
bindirectory.
- The
agentconfigfile can be generated or updated by runningconfigcommand with additional arguments. - E.g.
node cli.js config --server-url https://analytics.katalon.com --username <email> --apikey <api_key> --organizationid <organization_id> --agent-name my-agent - If an
agentconfighas been created, the existing configuration will be overridden with the new value. - Show the usage of the
configcommand with-hoption. E.g.node cli.js config -h.
- Download the suitable package from the Katalon Agent Releases.
- Extract the downloaded package.
- Depending on the platform a script can be found inside the extracted directory,
service.baton Windowsservice.shon Linux and MacOS.
- Open your CLI and execute the script.
- Checkout the code
- Open the Katalon Agent's directory with Intellij IDEA
Run --> Edit Configurations... -> + (Add New Configuration) --> 'npm'- Set the following values:
- package.json: The location of the package.json in Katalon Agent's directory
- Command: Select
start - Node interpreter: Select your Node.js location
- Package manager: Select your npm location
- Environment: Input
NODE_ENV=debug
- Click OK
- Choose the configuration and start debugging
- Checkout the code
- Open the Katalon Agent's directory with Visual Studio Code
- Select the Run icon in the Activity Bar on the side of VS Code
- Configure the
launch.jsonfile following the guide - Add the following configuration to the
launch.jsonfile:
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Start Agent",
"skipFiles": [
"<node_internals>/**"
],
"program": "${workspaceFolder}\\cli.js",
"args": [
"start-agent"
],
"env": {
"NODE_ENV": "debug"
},
"console": "integratedTerminal"
}
]
}- In Run view, select
Start Agentlaunch configuration and start debugging