# Scheduling Katalon job does not work in Windows!

**URL:** <https://forum.katalon.com/t/scheduling-katalon-job-does-not-work-in-windows/33957>\
**Category:** Web Testing\
**Tags:** katalon-studio\
**Created:** [September 30, 2019, 2:58pm UTC](https://forum.katalon.com/t/scheduling-katalon-job-does-not-work-in-windows/33957 "2019-09-30T14:58:07Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![infoware](https://avatars.discourse-cdn.com/v4/letter/i/3ab097/32.png) [@infoware](https://forum.katalon.com/u/infoware)\
**Post date:** [September 30, 2019, 2:58pm UTC](https://forum.katalon.com/t/scheduling-katalon-job-does-not-work-in-windows/33957/1 "2019-09-30T14:58:07Z")

</div>

Hi,

We have created a project in Katalon, and set up a batch script to run it in commandline. It works properly when it is run in the windows command line. But when we schedule it in Task scheduler, it does not work fully. It starts the execution, but fails in the middle.

Could you please let us know what could be the possible reasons for the issue.

The command we are using to run is:

```
D:\Utilities\Web_Performance\Katalon_Studio_Windows_64-6.2.0\katalon.exe -noSplash -runMode=console -consoleLog -projectPath="D:\Utilities\Web_Performance\Katalon_workspace\performance_monitoring\monitoring.prj" -retry=0 -testSuitePath="Test Suites/WebPerformanceTS" -executionProfile="default" -browserType="IE" -apiKey=xxx

```

Snippet of error message is as follows:

```
Reason:

```

com.kms.katalon.core.exception.StepFailedException: Unable to click on object ‘Object Repository/WebPerformance\_OR/Page\_IXIASOFT CCMS - cpi/button\_Measuring Web Performance\_asgv-edit-writer-yra1560408626870’  
at com.kms.katalon.core.webui.keyword.internal.WebUIKeywordMain.stepFailed(WebUIKeywordMain.groovy:64)  
at com.kms.katalon.core.webui.keyword.internal.WebUIKeywordMain.runKeyword(WebUIKeywordMain.groovy:26)  
at com.kms.katalon.core.webui.keyword.builtin.ClickKeyword.click(ClickKeyword.groovy:86)  
at com.kms.katalon.core.webui.keyword.builtin.ClickKeyword.execute(ClickKeyword.groovy:67)  
at com.kms.katalon.core.keyword.internal.KeywordExecutor.executeKeywordForPlatform(KeywordExecutor.groovy:56)  
at com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords.click(WebUiBuiltInKeywords.groovy:616)  
at com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords$click$5.call(Unknown Source)  
at VerifyTopicClickable.run(VerifyTopicClickable:19)  
at com.kms.katalon.core.main.ScriptEngine.run(ScriptEngine.java:194)  
at com.kms.katalon.core.main.ScriptEngine.runScriptAsRawText(ScriptEngine.java:119)  
at com.kms.katalon.core.main.TestCaseExecutor.runScript(TestCaseExecutor.java:337)  
at com.kms.katalon.core.main.TestCaseExecutor.doExecute(TestCaseExecutor.java:328)  
at com.kms.katalon.core.main.TestCaseExecutor.processExecutionPhase(TestCaseExecutor.java:307)  
at com.kms.katalon.core.main.TestCaseExecutor.accessMainPhase(TestCaseExecutor.java:299)  
at com.kms.katalon.core.main.TestCaseExecutor.execute(TestCaseExecutor.java:233)  
at com.kms.katalon.core.main.TestSuiteExecutor.accessTestCaseMainPhase(TestSuiteExecutor.java:133)  
at com.kms.katalon.core.main.TestSuiteExecutor.accessTestSuiteMainPhase(TestSuiteExecutor.java:116)  
at com.kms.katalon.core.main.TestSuiteExecutor.execute(TestSuiteExecutor.java:83)  
at com.kms.katalon.core.main.TestCaseMain.startTestSuite(TestCaseMain.java:157)  
at com.kms.katalon.core.main.TestCaseMain$startTestSuite$0.call(Unknown Source)  
at TempTestSuite1569587153249.run(TempTestSuite1569587153249.groovy:35)  
Caused by: com.kms.katalon.core.webui.exception.WebElementNotFoundException

Thanks in advance.

Regards,  
Shabeer

---

<div class="post-metadata">

**Author:** ![Timo\_Kuisma](https://avatars.discourse-cdn.com/v4/letter/t/8baadc/32.png) [@Timo\_Kuisma](https://forum.katalon.com/u/Timo_Kuisma)\
**Post date:** [September 30, 2019, 3:43pm UTC](https://forum.katalon.com/t/scheduling-katalon-job-does-not-work-in-windows/33957/2 "2019-09-30T15:43:58Z")

</div>

hi,  
is it browser opened properly?  
“Unable to click on object ‘Object”  
or maybe you have to add some delays between object click  
waitFor…

> **[Solving Wait-time issue with Katalon Studio](https://docs.katalon.com/katalon-studio/docs/solving_common_issue_wait_time.html)**
>
> This article will guide users through leveraging the wait time to handle the situations: network stability, internet bandwidth, the performance of the AUT.

---

<div class="post-metadata">

**Author:** ![infoware](https://avatars.discourse-cdn.com/v4/letter/i/3ab097/32.png) [@infoware](https://forum.katalon.com/u/infoware)\
**Post date:** [October 1, 2019, 2:38pm UTC](https://forum.katalon.com/t/scheduling-katalon-job-does-not-work-in-windows/33957/3 "2019-10-01T14:38:57Z")

</div>

Hi,

Thank you for the response!

When the script is run separately in command prompt, it works completely. But when it is scheduled in Task scheduler and tries to run, it executes partially only. Seeing the Reports, we see that it is able to open the browser and able to login to the url we provided, but it fails after that. We have already kept a delay time of 1 minute and still it is not working.

Also in the reports we see some reference images as a black screen.

Do you have any clue what could be going wrong here?

Regards,  
Shabeer

---

<div class="post-metadata">

**Author:** ![infoware](https://avatars.discourse-cdn.com/v4/letter/i/3ab097/32.png) [@infoware](https://forum.katalon.com/u/infoware)\
**Post date:** [October 3, 2019, 12:20pm UTC](https://forum.katalon.com/t/scheduling-katalon-job-does-not-work-in-windows/33957/4 "2019-10-03T12:20:27Z")

</div>

Hi,

One more thing. The scheduled task is running when I try to run it from task scheduler (right click-\> Run) with option “Run only when user is logged on” . But when I try to run it with the option “Run whether user is logged or not” option, this issue happens. Any clue?

Regards,  
Shabeer

---

<div class="post-metadata">

**Author:** ![smaharjan](https://avatars.discourse-cdn.com/v4/letter/s/5e9695/32.png) [@smaharjan](https://forum.katalon.com/u/smaharjan)\
**Post date:** [October 24, 2019, 5:37pm UTC](https://forum.katalon.com/t/scheduling-katalon-job-does-not-work-in-windows/33957/5 "2019-10-24T17:37:57Z")

</div>

I am also having the same issue. Test Suite runs fine in console mode without task scheduler in chrome and IE using a batch file. But when triggered from task scheduler, it fails in IE with this message -“unable to find the element located by ‘By.xpath: //\*[@name = ‘username’]’. Please recheck the objects properties to make sure the desired”  
And i get black screen screenshots in the reports. I’ve tried setting delays, wait till the element is present, visible, recommended IE settings and still same issue.  
Did you find a solution for it?

My batch file code:  
@echo off  
“C:\Program Files\Katalon\_Studio\_Windows\_64-6.3.3\katalon.exe” -noSplash -runMode=console -testSuiteCollectionPath=“Test Suites\SuiteCollectionIE” -projectPath=“C:\projects\KatalonTests\KatalonTests.prj” -apiKey= -consoleLog

---

<div class="post-metadata">

**Author:** ![albert.vu](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/albert.vu/32/20595_2.png) [@albert.vu](https://forum.katalon.com/u/albert.vu)\
**Post date:** [August 8, 2022, 7:39am UTC](https://forum.katalon.com/t/scheduling-katalon-job-does-not-work-in-windows/33957/6 "2022-08-08T07:39:34Z")

</div>


