How do i schedule and run in Katalon KRE Commandline..is that possible

How do i schedule and run in Katalon KRE Commandline..is that possible ?
If so how do i do it..

we have Katalon studio license and KRE Floating license… Now they want to run the the execution in KRE Commandline without manual intervention..that means scheduling and running in kre commandline…Someone give suggestions @kazurayam
@dineshh @Elly_Tran

1 Like

What do you know?

There are lots of options. Which one do you prefer?

and more.

Please make your question more focused on the environment you are on.

Windows Task Scheduler

Then why not try it yourself?

yes trying now…but its not starting

Do you think it is a problem about your way to use Task Scheduler?
Or do you have a doubt about Katalon Runtime Engine’s quaility?

PowerShell might be more modern than *.bat

You can personally get started with test automation through learning it. That would be the minimum experience.

But, I suppose, there aren’t many people who uses Windows Task Scheduler for their day-to-day business in a team development. They often use CI/CD services like Jenkins, Azure DevOps or GitHub Actions. I don’t know anything about Katalon’s offerings (TestOps, etc).

In Task Scheduler, program/ script part…i have given it like tis …F:\Katalon_Studio_Engine_Windows_64-10.1.1\Katalon_Studio_Engine_Windows_64-10.1.1\katalonc.exe
tis is the KRE path…
is tis correct

Only you know, nobody else can tell.

Ha ha..yeah that’s correct…execution also started using scheduler but after this its not running
INFO: Katalon Version: 10.1.1
INFO: Command-line arguments: katalonc -runMode=console -projectPath=C:\DCFKatalonAutomation\DCF.prj -retry=0 -testSuiteCollectionPath=Test Suites/TestSuiteCollections/AllTestsuites -apiKey=******** --config -proxy.auth.option=NO_PROXY -proxy.system.option=NO_PROXY -proxy.system.applyToDesiredCapabilities=true -webui.autoUpdateDrivers=true
INFO: User working dir: C:\WINDOWS\system32
INFO: Error log: C:/Users/In****/AppData/Local/Temp/session-d206dd89/.metadata/.log
INFO: Katalon KatOne server URL: https://admin.katalon.com
INFO: Katalon TestOps server URL: https://testops.katalon.io
INFO: Katalon Store server URL: https://store.katalon.com
INFO: User home: C:\Users\In***
INFO: Java vendor: Eclipse Adoptium
INFO: Java version: 17.0.14
INFO: Local OS: Windows 11 64bit
INFO: CPU load: 0%
INFO: Total memory: 24399 MB
INFO: Free memory: 13939 MB
Start getting machine ID on Windows
Start appending additional signatures
End appending additional signatures f26220c5-dd6c-4aa4-9f32-701bb382785c__inapp
End getting machine ID on Windows d46c7132c56d8095e99ff86bc2332af7
INFO: Machine ID: d46c7132c56d8095e99ff86bc2332af7

Delete folder: bin
Delete folder: Libs
Cleaning up workspace
Opening project file: C:\DCFKatalonAutomation\DCF.prj
Generating global variables…
Project ‘DCF’ opened
Activated successfully with Katalon Runtime Engine license.
Failed to activate with TestCloud license.
Start reloading plugins…
Katalon version: 10.1.1
Plugin info URL: https://store.katalon.com/api/products/ks?appVersion=10.1.1&appType=ENGINE&licenseType=ENTERPRISE
Plugin info: {
“productId”: 74,
“name”: “Test Suite Collection Scheduler”,
“id”: 233533
}
Plugin name: Test Suite Collection Scheduler. Is online: true. Plugin location: F:\Katalon_Studio_Engine_Windows_64-10.1.1\Katalon_Studio_Engine_Windows_64-10.1.1\configuration\plugin\install\233533\1.0.0\katalon-test-suite-scheduling-1.0.0.jar.
Plugin name: fontbox-2.0.27.jar. Is online: false. Plugin location: C:\DCFKatalonAutomation\Plugins\fontbox-2.0.27.jar.
Plugin name: pdfbox-2.0.27.jar. Is online: false. Plugin location: C:\DCFKatalonAutomation\Plugins\pdfbox-2.0.27.jar.
Plugin “Test Suite Collection Scheduler” has been installed.
Plugin “fontbox-2.0.27.jar” has been installed.
Plugin “pdfbox-2.0.27.jar” has been installed.
Checking WebDriverManager
Verify built-in web driver manager
Using built-in file

It seems that you forgot to give the Required arguments to tell what you want KRE to do.

KRE started but did nothing and finished soon because you did not tell it what to do.

no..in the arguments, i gave the katalon build cmd…

I don’t see any more. Please help yourself.

1 Like

sure..thanks

Hi - please see this resource to learn how to generate a KRE command easily from KSE.
You may paste this into a .bat file or similar - whatever system you require for command line.

In your .bat you’ll need to specify the KRE directory eg:
cd “C:\Katalon\KatalonRuntimeEngine”
The next rows will be the text generated from KSE as per instructions above eg:
katalonc -noSplash -runMode=console -projectPath=“C:\Work\TestProject.prj” -retry=0 -testSuitePath=“Test Suites/My Tests” -browserType=“Chrome” -executionProfile=“default” -apiKey=… … et etc