Cannot run test suite in console mode

When i try to execute in console code , it does not run but when i run in katalon it runs.

i have shared the log below

!SESSION 2017-06-28 12:36:08.046 ———————————————–

eclipse.buildId=unknown
java.version=1.8.0_102
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
Framework arguments: -runMode=console -projectPath=C:\\\\\\Users\\\\\\ssrinivasan\\\\\\Katalon Studio\\\\\\SC\\\\\\SC.prj -reportFolder=Reports -reportFileName=report -retry=2 -retryFailedTestCases=false -testSuitePath=Test Suites/Issuecode -browserType=Chrome
Command-line arguments: -os win32 -ws win32 -arch x86_64 -data config -runMode=console -consoleLog -projectPath=C:\\\\\\Users\\\\\\ssrinivasan\\\\\\Katalon Studio\\\\\\SC\\\\\\SC.prj -reportFolder=Reports -reportFileName=report -retry=2 -retryFailedTestCases=false -testSuitePath=Test Suites/Issuecode -browserType=Chrome

!ENTRY org.eclipse.core.resources 2 10035 2017-06-28 12:36:11.850
!MESSAGE The workspace exited with unsaved changes in the previous session; refreshing workspace to recover changes.

Wed Jun 28 12:36:18 IST 2017
java.lang.NullPointerException
at com.kms.katalon.core.reporting.JsSuiteModel.(JsSuiteModel.java:29)
at com.kms.katalon.core.reporting.ReportUtil.writeHtmlReport(ReportUtil.java:136)
at com.kms.katalon.execution.launcher.ReportableLauncher.prepareReport(ReportableLauncher.java:174)
at com.kms.katalon.execution.launcher.ReportableLauncher.preExecutionComplete(ReportableLauncher.java:72)
at com.kms.katalon.execution.launcher.ProcessLauncher.onWatchdogComplete(ProcessLauncher.java:171)
at com.kms.katalon.execution.launcher.LaunchWatchdog.notifyProcessTerminated(LaunchWatchdog.java:135)
at com.kms.katalon.execution.launcher.LaunchWatchdog.run(LaunchWatchdog.java:65)
at java.lang.Thread.run(Thread.java:745)

When i try to execute in console code , it does not run but when i run in katalon it runs.

i have shared the log below

!SESSION 2017-06-28 12:36:08.046 ———————————————–

eclipse.buildId=unknown
java.version=1.8.0_102
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
Framework arguments: -runMode=console -projectPath=C:\\\\\\Users\\\\\\ssrinivasan\\\\\\Katalon Studio\\\\\\SC\\\\\\SC.prj -reportFolder=Reports -reportFileName=report -retry=2 -retryFailedTestCases=false -testSuitePath=Test Suites/Issuecode -browserType=Chrome
Command-line arguments: -os win32 -ws win32 -arch x86_64 -data config -runMode=console -consoleLog -projectPath=C:\\\\\\Users\\\\\\ssrinivasan\\\\\\Katalon Studio\\\\\\SC\\\\\\SC.prj -reportFolder=Reports -reportFileName=report -retry=2 -retryFailedTestCases=false -testSuitePath=Test Suites/Issuecode -browserType=Chrome

!ENTRY org.eclipse.core.resources 2 10035 2017-06-28 12:36:11.850
!MESSAGE The workspace exited with unsaved changes in the previous session; refreshing workspace to recover changes.

Wed Jun 28 12:36:18 IST 2017
java.lang.NullPointerException
at com.kms.katalon.core.reporting.JsSuiteModel.(JsSuiteModel.java:29)
at com.kms.katalon.core.reporting.ReportUtil.writeHtmlReport(ReportUtil.java:136)
at com.kms.katalon.execution.launcher.ReportableLauncher.prepareReport(ReportableLauncher.java:174)
at com.kms.katalon.execution.launcher.ReportableLauncher.preExecutionComplete(ReportableLauncher.java:72)
at com.kms.katalon.execution.launcher.ProcessLauncher.onWatchdogComplete(ProcessLauncher.java:171)
at com.kms.katalon.execution.launcher.LaunchWatchdog.notifyProcessTerminated(LaunchWatchdog.java:135)
at com.kms.katalon.execution.launcher.LaunchWatchdog.run(LaunchWatchdog.java:65)
at java.lang.Thread.run(Thread.java:745)

Hi there,

1. Can you copy for me the command line which you’ve used?
2. If possible, please go to ‘Drivers’ folder of your project and also capture for me the screenshot showing all files there.

Thanks

____________________
Thank you for choosing Katalon Studio as your automation solution.
Your feedback is needed to make Katalon Studio a better tool, take the survey at: https://goo.gl/S25NVO

the cmd which i used below ::

katalon -runMode=console -consoleLog -noExit -projectPath=“C:\Users\ssrinivasan\Katalon Studio\SC\SC.prj” -reportFolder=“Reports” -reportFileName=“report” -retry=2 -retryFailedTestCases=false -testSuitePath=“Test Suites/Issuecode” -browserType=“Chrome”

attached the drivers folders.

Hi there,

The attached screenshot from you is in Katalon Studio folder, please capture ‘Drivers’ folder in that PROJECT FOLDER :slight_smile:

Thanks

____________________
Thank you for choosing Katalon Studio as your automation solution.
Your feedback is needed to make Katalon Studio a better tool, take the survey at: https://goo.gl/S25NVO

The drivers folder does not have any files. check the attachments , whether we need to add any files there

Hi there,

Thanks for that information. We need the whole test suite’s report folder of that console mode execution, can you help to send me also?

Thanks

____________________
Thank you for choosing Katalon Studio as your automation solution.
Your feedback is needed to make Katalon Studio a better tool, take the survey at: https://goo.gl/S25NVO

ya but before that i need to confirm that actually i was running the console for test case. is that right to do so ?
if i am wrong please let me know

can you say where the report path of the console execution?

Hi there,

The report path in is the same place when you execute it directly from Katalon Studio. It’s available in ‘Reports’ folder of your project folder.

Thanks

____________________
Thank you for choosing Katalon Studio as your automation solution.
Your feedback is needed to make Katalon Studio a better tool, take the survey at: https://goo.gl/S25NVO

Hi there,

Regard to this question:
"ya but before that i need to confirm that actually i was running the console for test case. is that right to do so ? "

Can you please tell me more which steps you’ve done for this execution?

Thanks again.

Regards

____________________
Thank you for choosing Katalon Studio as your automation solution.
Your feedback is needed to make Katalon Studio a better tool, take the survey at: https://goo.gl/S25NVO

Actually i went to the test case and clicked on build cmd and from there i genearted the command code. similarly for test suite also

i have attached the reports

Hi there,

Is it possible for you to send me the whole project? I can’t reproduce your issue and your report attachments don’t help much :).

Thanks

____________________
Thank you for choosing Katalon Studio as your automation solution.
Your feedback is needed to make Katalon Studio a better tool, take the survey at: https://goo.gl/S25NVO

i have attached the project folder

Thanks for your project. One more thing is if it is possible to send me Katalon Studio logs which are available as .log file in .metadata folder,e.g: C:\4.6\Katalon Studio Windows 64\config\.metadata\.log
Sorry for asking you to send us many things to troubleshoot this case.

Thanks

____________________
Thank you for choosing Katalon Studio as your automation solution.
Your feedback is needed to make Katalon Studio a better tool, take the survey at: https://goo.gl/S25NVO

I have attached the log

Hi there,

I can’t reproduce this issue as well. We will try to create another build to log everything into it and send you later so that we can keep track of what is going on :).

Thanks

____________________
Thank you for choosing Katalon Studio as your automation solution.
Your feedback is needed to make Katalon Studio a better tool, take the survey at: https://goo.gl/S25NVO

Hi there,

Please select appropriate versions for your machine. These versions add more logs into console mode execution:
1. http://download.katalon.com/4.6.0/logs/Katalon_Studio_Windows_64.zip
2. http://download.katalon.com/4.6.0/logs/Katalon_Studio_Windows_32.zip

Then please try to execute through console mode again and me generated logs.

Thanks

____________________
Thank you for choosing Katalon Studio as your automation solution.
Your feedback is needed to make Katalon Studio a better tool, take the survey at: https://goo.gl/S25NVO