Skip to content

Error while running katalon-studio-github-action as per its Example usage (modified because of the Issues 2,3) - similar to issue 1 #4

@gdo7

Description

@gdo7

Error while running katalon-studio-github-action as per its Example usage (modified because of the Issues 2,3) - similar to issue 1:

Set up job2s
Build katalon-studio/katalon-studio-github-action@1.41m 49s
Checkout1s
Get and run action14s

  • exit 2
    Run katalon-studio/katalon-studio-github-action@1.4
    /usr/bin/docker run --name be76dbfea6fa4e0a0c4188a8ec44cb6092eea0_f54aec --label be76db --workdir /github/workspace --rm -e INPUT_KS_API_KEY -e INPUT_KS_COMMAND -e HOME -e GITHUB_JOB -e GITHUB_REF -e GITHUB_SHA -e GITHUB_REPOSITORY -e GITHUB_REPOSITORY_OWNER -e GITHUB_RUN_ID -e GITHUB_RUN_NUMBER -e GITHUB_ACTOR -e GITHUB_WORKFLOW -e GITHUB_HEAD_REF -e GITHUB_BASE_REF -e GITHUB_EVENT_NAME -e GITHUB_URL -e GITHUB_API_URL -e GITHUB_GRAPHQL_URL -e GITHUB_WORKSPACE -e GITHUB_ACTION -e GITHUB_EVENT_PATH -e RUNNER_OS -e RUNNER_TOOL_CACHE -e RUNNER_TEMP -e RUNNER_WORKSPACE -e ACTIONS_RUNTIME_URL -e ACTIONS_RUNTIME_TOKEN -e ACTIONS_CACHE_URL -e GITHUB_ACTIONS=true -e CI=true -v "/var/run/docker.sock":"/var/run/docker.sock" -v "/home/runner/work/_temp/_github_home":"/github/home" -v "/home/runner/work/_temp/_github_workflow":"/github/workflow" -v "/home/runner/work/test/test":"/github/workspace" be76db:fea6fa4e0a0c4188a8ec44cb6092eea0 "katalon-execute.sh -browserType="Chrome" -retry=0 -statusDelay=15 -testSuitePath="Test Suites/TS_RegressionTest"" "***"
    Starting Katalon Studio
    Mozilla Firefox 76.0.1
    Google Chrome 83.0.4103.61
    Katalon Studio
  • echo 'Starting Katalon Studio'
  • cat /katalon/version
  • args=("$KATALON_KATALON_INSTALL_DIR/katalonc" "$@")
  • xvfb-run -s '-screen 0 1024x768x24' /opt/katalonstudio/katalonc -projectPath=/github/workspace katalon-execute.sh '-browserType="Chrome"' -retry=0 -statusDelay=15 '-testSuitePath="Test' 'Suites/TS_RegressionTest"' -apiKey=***
    Katalon workspace folder is set to default location: /tmp/session-c1b13bcc
    Starting Groovy-Eclipse compiler resolver. Specified compiler level: unspecified
    177 2.4.7.xx-201611170128-e46 = ACTIVE

INFO: Katalon Version: 7.5.0
INFO: Command-line arguments: -projectPath=/github/workspace katalon-execute.sh -browserType="Chrome" -retry=0 -statusDelay=15 -testSuitePath="Test Suites/TS_RegressionTest" -apiKey=********
INFO: User working dir: /github/workspace
INFO: Error log: /tmp/session-c1b13bcc/.metadata/.log
INFO: Katalon TestOps server URL: https://analytics.katalon.com
Start appending additional signatures
hardwareSerialNumber
osDependentUsername root
End appending additional signatures 8f761174ec0c96ed5f8a42455ecc9c9a__root
INFO: Machine ID: 950d1270754e474d28956782ea26f527

Activating...
Start activating offline...
Search for valid offline licenses in folder: /root/.katalon/license
The number of valid offline licenses: 0
Offline activation failed.
Start activating online...
Project path is a folder.
Examine file '.gitignore'.
Examine file '.project'.
Examine folder '.github'.
Examine folder 'Profiles'.
Examine file 'KatalonTest.prj'.
Found project file '/github/workspace/KatalonTest.prj'.
Examine folder 'settings'.
Examine folder 'Include'.
Examine folder 'Scripts'.
Examine folder '.git'.
Examine folder 'Test Cases'.
Examine folder 'Test Suites'.
Examine file 'README.md'.
Examine file 'console.properties'.
Cleaning up workspace
Opening project file: /github/workspace/KatalonTest.prj
Warning! Please run Katalon execution command outside of the project folder.
Generating global variables...
Parsing custom keywords...
Project 'KatalonTest' opened
Start reloading plugins...
Katalon version: 7.5.0
Plugin info URL: https://store.katalon.com/api/products/ks?appVersion=7.5.0&appType=ENGINE&licenseType=TRIAL
Plugin info: {
"expired": false,
"productId": 59,
"name": "Basic Report",
"id": 174206
}
Plugin name: Basic Report. Is online: true. Plugin location: /opt/katalonstudio/configuration/plugin/install/174206/1.0.7/katalon-studio-report-plugin.jar.
Plugin "Basic Report" has been installed.
Start check license task
com.kms.katalon.execution.exception.ExecutionException: com.kms.katalon.execution.exception.InvalidConsoleArgumentException: Test suite '"Test' not found.
at com.kms.katalon.execution.console.entity.TestSuiteLauncherOptionParser.getConsoleLauncher(TestSuiteLauncherOptionParser.java:240)

at com.kms.katalon.execution.console.ConsoleExecutor.execute(ConsoleExecutor.java:74)
at com.kms.katalon.execution.console.ConsoleMain.launch(ConsoleMain.java:341)
at com.kms.katalon.console.application.Application.runConsole(Application.java:71)
at com.kms.katalon.core.application.Application.runConsole(Application.java:104)
at com.kms.katalon.core.application.Application.start(Application.java:78)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:388)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:243)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:673)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:610)
at org.eclipse.equinox.launcher.Main.run(Main.java:1519)
at org.eclipse.equinox.launcher.Main.main(Main.java:1492)

Caused by: com.kms.katalon.execution.exception.InvalidConsoleArgumentException: Test suite '"Test' not found.
at com.kms.katalon.execution.console.entity.TestSuiteLauncherOptionParser.throwInvalidTestSuiteIdException(TestSuiteLauncherOptionParser.java:335)
at com.kms.katalon.execution.console.entity.TestSuiteLauncherOptionParser.getTestSuite(TestSuiteLauncherOptionParser.java:330)
at com.kms.katalon.execution.console.entity.TestSuiteLauncherOptionParser.buildRunConfig(TestSuiteLauncherOptionParser.java:258)
at com.kms.katalon.execution.console.entity.TestSuiteLauncherOptionParser.getConsoleLauncher(TestSuiteLauncherOptionParser.java:237)
... 18 more

All launchers terminated

  • ret_code=2
  • exit 2
    Post Checkout0s
    Complete job

Example usage (modified because of the Issues 2,3)
on: [push]

jobs:
katalon_test_job:
runs-on: ubuntu-latest
name: Run katalon Studio Test CLI
steps:
# To use this repository's private action, you must check out the repository
- name: Checkout
uses: actions/checkout@v1
#- uses: ./ # Uses an action in the root directory #COMMENTED OUT BECAUSE OF THE ISSUE 2
- name: Get and run action
uses: katalon-studio/katalon-studio-github-action@1.4
with:
# katalon_api_key: ${{ secrets.KATALON_API_KEY }}
# Katalon_command: 'katalon-execute.sh -browserType="Chrome" -retry=0 -statusDelay=15 -testSuitePath="Test Suites/TS_RegressionTest"'
# : BECAUSE OF THE ISSUE 3
ks_api_key: ${{ secrets.KATALON_API_KEY }}
ks_command: 'katalon-execute.sh -browserType="Chrome" -retry=0 -statusDelay=15 -testSuitePath="Test Suites/TS_RegressionTest
"'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions