katalon-studio / katalon-studio-github-action

Katalon Studio Github Action
11 stars 11 forks source link

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

Open gdo7 opened 4 years ago

gdo7 commented 4 years ago

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

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

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

duyluonganh commented 3 years ago

Hi @gdo7 ,

Please use katalon-studio/katalon-studio-github-action@v2.2. You can follow our sample template file here