Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error while running katalon-studio-github-action as per its Example usage (modified because of the Issue 2) #3

Open
gdo7 opened this issue May 27, 2020 · 0 comments

Comments

@gdo7
Copy link

gdo7 commented May 27, 2020

Error while running katalon-studio-github-action as per its Example usage (modified because of the Issue 2, please see below):

Set up job2s
Build katalon-studio/[email protected] 45s
Checkout2s
Get and run action5s

  • exit 2
    ##[warning]Unexpected input 'katalon_api_key', valid inputs are ['ks_command', 'ks_api_key']
    ##[warning]Unexpected input 'Katalon_command', valid inputs are ['ks_command', 'ks_api_key']

    Run katalon-studio/[email protected]
    /usr/bin/docker run --name be76db7f415d31b34f44f59c2e3601dfba004c_75015d --label be76db --workdir /github/workspace --rm -e INPUT_KATALON_API_KEY -e INPUT_KATALON_COMMAND -e INPUT_KS_COMMAND -e INPUT_KS_API_KEY -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:7f415d31b34f44f59c2e3601dfba004c "" ""
  • echo 'Starting Katalon Studio'
    Starting Katalon Studio
  • cat /katalon/version
  • args=("$KATALON_KATALON_INSTALL_DIR/katalonc" "$@")
  • xvfb-run -s '-screen 0 1024x768x24' /opt/katalonstudio/katalonc -projectPath=/github/workspace -apiKey=
    Mozilla Firefox 76.0.1
    Google Chrome 83.0.4103.61
    Katalon Studio
    Katalon workspace folder is set to default location: /tmp/session-fc9c43d8
    Starting Groovy-Eclipse compiler resolver. Specified compiler level: unspecified
    177 2.4.7.xx-201611170128-e46 = ACTIVE
    joptsimple.OptionMissingRequiredArgumentException: Option apiKey requires an argument
    at joptsimple.RequiredArgumentOptionSpec.detectOptionArgument(RequiredArgumentOptionSpec.java:48)
    at joptsimple.ArgumentAcceptingOptionSpec.handleOption(ArgumentAcceptingOptionSpec.java:257)
    at joptsimple.OptionParser.handleShortOptionToken(OptionParser.java:520)
    at joptsimple.OptionParserState$2.handleArgument(OptionParserState.java:59)
    at joptsimple.OptionParser.parse(OptionParser.java:396)
    at com.kms.katalon.execution.console.ConsoleMain.launch(ConsoleMain.java:138)
    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)

All launchers terminated

  • ret_code=2
  • exit 2
    Post Checkout0s
    Complete job

Example usage (modified because of the Issue 2,)
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/[email protected]
with:
katalon_api_key: ${{ secrets.KATALON_API_KEY }}
Katalon_command: "-browserType=Chrome -retry=0 -statusDelay=15 -testSuitePath=Test Suites/TS_RegressionTest"

@gdo7 gdo7 changed the title Error while running katalon-studio-github-action as per its Example usage (modified because of the Issue 2)) Error while running katalon-studio-github-action as per its Example usage (modified because of the Issue 2) May 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant