Help needed - Linux Cli - Error "Test suite not found"


#1

The command I am running:

./katalon -noSplash -runMode=console -consoleLog -retry=0 -browserType=“Chrome (headless)” -projectPath="/var/www/Katalon/files/20181030/v10.2 Automation

Testing.prj" -testSuitePath="/var/www/Katalon/files/20181030/TestSuites/Paul.ts"

The Error:

com.kms.katalon.execution.exception.ExecutionException: com.kms.katalon.execution.exception.InvalidConsoleArgumentException: Test suite ‘/var/www/Katalon/files/20181030/TestSuites/Paul.ts’ not found.

My Attempts to find a solution:

That file definitely exists.

I did find a discussion on this forum with the same problem and so I have tried every variation I can think of:

- relative path / absolute path
- with “.ts” - without “.ts”
- with directory “Test Suites” / “Test\ Suites” / "TestSuites

But regardless of how I specify this path, I always get this error.

Other warnings are output so I have included the full output below.

I guess it is something obvious!

Anyone know why?

The full response I get:

!SESSION 2018-10-30 14:59:11.740 -----------------------------------------------

eclipse.buildId=unknown

java.version=1.8.0_181

java.vendor=Oracle Corporation

BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US

Framework arguments: -runMode=console -retry=0 -browserType=Chrome (headless) -projectPath=/var/www/Katalon/files/20181030/v10.2 Automation Testing.prj -testSuitePath=/var/www/Katalon/files/20181030/TestSuites/Paul.ts

Command-line arguments: -os linux -ws gtk -arch x86_64 -data config -runMode=console -consoleLog -retry=0 -browserType=Chrome (headless) -projectPath=/var/www/Katalon/files/20181030/v10.2 Automation Testing.prj -testSuitePath=/var/www/Katalon/files/20181030/TestSuites/Paul.ts

!ENTRY com.kms.katalon 4 0 2018-10-30 14:59:13.458

!MESSAGE [SCR] Component definition XMLs not found in bundle com.kms.katalon. The component header value is OSGI-INF/component.xml

!ENTRY com.kms.katalon 4 0 2018-10-30 14:59:13.486

!MESSAGE [SCR] Component definition XMLs not found in bundle com.kms.katalon. The component header value is OSGI-INF/component.xml

!ENTRY com.kms.katalon 4 0 2018-10-30 14:59:15.054

!MESSAGE [SCR] Component definition XMLs not found in bundle com.kms.katalon. The component header value is OSGI-INF/component.xml

!ENTRY com.kms.katalon 4 0 2018-10-30 14:59:15.054

!MESSAGE [SCR] Component definition XMLs not found in bundle com.kms.katalon. The component header value is OSGI-INF/component.xml

Request sent successfully.

!ENTRY org.eclipse.core.resources 2 10035 2018-10-30 14:59:18.170

!MESSAGE The workspace exited with unsaved changes in the previous session; refreshing workspace to recover changes.

Starting Groovy-Eclipse compiler resolver. Specified compiler level: unspecified

161 2.4.7.xx-201611170128-e46 = ACTIVE

/%var%www%Katalon%files%20181030%v10.2 Automation Testing.prj/Keywords/myLogin/Login_Build.groovy: 19 Groovy:unable to resolve class internal.GlobalVariable

/%var%www%Katalon%files%20181030%v10.2 Automation Testing.prj/Keywords/myLogin/Login_Frontend.groovy: 19 Groovy:unable to resolve class internal.GlobalVariable

com.kms.katalon.execution.exception.ExecutionException: com.kms.katalon.execution.exception.InvalidConsoleArgumentException: Test suite ‘/var/www/Katalon/files/20181030/TestSuites/Paul.ts’ not found.

at com.kms.katalon.execution.console.entity.TestSuiteLauncherOptionParser.getConsoleLauncher(TestSuiteLauncherOptionParser.java:113)

at com.kms.katalon.execution.console.ConsoleExecutor.execute(ConsoleExecutor.java:72)

at com.kms.katalon.execution.console.ConsoleMain.launch(ConsoleMain.java:94)

at com.kms.katalon.console.application.Application.runConsole(Application.java:76)

at com.kms.katalon.core.application.Application.runConsole(Application.java:72)

at com.kms.katalon.core.application.Application.start(Application.java:56)

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 ‘/var/www/Katalon/files/20181030/TestSuites/Paul.ts’ not found.

at com.kms.katalon.execution.console.entity.TestSuiteLauncherOptionParser.throwInvalidTestSuiteIdException(TestSuiteLauncherOptionParser.java:146)

at com.kms.katalon.execution.console.entity.TestSuiteLauncherOptionParser.getTestSuite(TestSuiteLauncherOptionParser.java:141)

at com.kms.katalon.execution.console.entity.TestSuiteLauncherOptionParser.getConsoleLauncher(TestSuiteLauncherOptionParser.java:92)

… 18 more

com.kms.katalon.execution.exception.ExecutionException: com.kms.katalon.execution.exception.InvalidConsoleArgumentException: Test suite ‘/var/www/Katalon/files/20181030/TestSuites/Paul.ts’ not found.


#2

Possibly you want:

./katalon .... -projectPath="/var/www/Katalon/files/20181030" -testSuitePath="Test Suites/Paul"

-testSuitePath option requires test suite name relative to -projectPath (absolute path of the project directory)


#3

Thanks for responding.

I have tried this too and doesn’t work.


#4

Error message?


#5

This shows the contents of the directory and the full output I get:

mats@coretest-auto-katalon-build:/var/www/Katalon $ ls -l /var/www/Katalon/files/20181030/Test\ Suites/

total 12

-rw-r–r-- 1 mats mats 2291 Nov 8 11:51 Katalon 10.1.groovy

-rw-r–r-- 1 mats mats 1338 Nov 8 11:51 Katalon 10.1.ts

-rw-r–r-- 1 mats mats 674 Nov 8 11:51 Paul.ts

mats@coretest-auto-katalon-build:/var/www/Katalon $ ./katalon -noSplash -runMode=console -consoleLog -retry=0 -browserType=“Chrome (headless)” -projectPath="/var/www/Katalon/files/20181030" -testSuitePath=“Test Suites/Paul”

!SESSION 2018-11-08 11:54:36.976 -----------------------------------------------

eclipse.buildId=unknown

java.version=1.8.0_181

java.vendor=Oracle Corporation

BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US

Framework arguments: -runMode=console -retry=0 -browserType=Chrome (headless) -projectPath=/var/www/Katalon/files/20181030 -testSuitePath=Test Suites/Paul

Command-line arguments: -os linux -ws gtk -arch x86_64 -data config -runMode=console -consoleLog -retry=0 -browserType=Chrome (headless) -projectPath=/var/www/Katalon/files/20181030 -testSuitePath=Test Suites/Paul

!ENTRY com.kms.katalon 4 0 2018-11-08 11:54:37.663

!MESSAGE [SCR] Component definition XMLs not found in bundle com.kms.katalon. The component header value is OSGI-INF/component.xml

!ENTRY com.kms.katalon 4 0 2018-11-08 11:54:37.665

!MESSAGE [SCR] Component definition XMLs not found in bundle com.kms.katalon. The component header value is OSGI-INF/component.xml

!ENTRY com.kms.katalon 4 0 2018-11-08 11:54:37.926

!MESSAGE [SCR] Component definition XMLs not found in bundle com.kms.katalon. The component header value is OSGI-INF/component.xml

!ENTRY com.kms.katalon 4 0 2018-11-08 11:54:37.928

!MESSAGE [SCR] Component definition XMLs not found in bundle com.kms.katalon. The component header value is OSGI-INF/component.xml

Request sent successfully.

!ENTRY org.eclipse.core.resources 2 10035 2018-11-08 11:54:40.275

!MESSAGE The workspace exited with unsaved changes in the previous session; refreshing workspace to recover changes.

Starting Groovy-Eclipse compiler resolver. Specified compiler level: unspecified

161 2.4.7.xx-201611170128-e46 = ACTIVE

/%var%www%Katalon%files%20181030%v10.2 Automation Testing.prj/Keywords/myLogin/Login_Build.groovy: 19 Groovy:unable to resolve class internal.GlobalVariable

/%var%www%Katalon%files%20181030%v10.2 Automation Testing.prj/Keywords/myLogin/Login_Frontend.groovy: 19 Groovy:unable to resolve class internal.GlobalVariable

com.kms.katalon.execution.exception.ExecutionException: com.kms.katalon.execution.exception.InvalidConsoleArgumentException: Test suite ‘Test Suites/Paul’ not found.

at com.kms.katalon.execution.console.entity.TestSuiteLauncherOptionParser.getConsoleLauncher(TestSuiteLauncherOptionParser.java:113)

at com.kms.katalon.execution.console.ConsoleExecutor.execute(ConsoleExecutor.java:72)

at com.kms.katalon.execution.console.ConsoleMain.launch(ConsoleMain.java:94)

at com.kms.katalon.console.application.Application.runConsole(Application.java:76)

at com.kms.katalon.core.application.Application.runConsole(Application.java:72)

at com.kms.katalon.core.application.Application.start(Application.java:56)

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 Suites/Paul’ not found.

at com.kms.katalon.execution.console.entity.TestSuiteLauncherOptionParser.throwInvalidTestSuiteIdException(TestSuiteLauncherOptionParser.java:146)

at com.kms.katalon.execution.console.entity.TestSuiteLauncherOptionParser.getTestSuite(TestSuiteLauncherOptionParser.java:141)

at com.kms.katalon.execution.console.entity.TestSuiteLauncherOptionParser.getConsoleLauncher(TestSuiteLauncherOptionParser.java:92)

… 18 more


#6

Paul,

Have you resolved the problem? If yes, would you tell what was the cause?