# How to schedule Katalon Test case run

**URL:** <https://forum.katalon.com/t/how-to-schedule-katalon-test-case-run/12161>\
**Category:** Web Testing\
**Tags:** web-testing, katalon-studio\
**Created:** [July 20, 2018, 10:26am UTC](https://forum.katalon.com/t/how-to-schedule-katalon-test-case-run/12161 "2018-07-20T10:26:34Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![uma\_aggarwal](https://avatars.discourse-cdn.com/v4/letter/u/977dab/32.png) [@uma\_aggarwal](https://forum.katalon.com/u/uma_aggarwal)\
**Post date:** [July 20, 2018, 10:26am UTC](https://forum.katalon.com/t/how-to-schedule-katalon-test-case-run/12161/1 "2018-07-20T10:26:34Z")

</div>

HI All,

Could you please help me with below queries :

I have automated few web test cases. Those are running fine . I have also created few test suites for those test cases and running those manually on daily basis via katalon. I have also integrated it with Katalon Analytics

Now I want to schedule the run so that i do not have to run it manually on daily basis. i.e. the requirement is that everyday, all test suits/ test collection should run with no manual interruptions and i can see the details on analytics.

Can someone pleas help me achieving this ?

Thanks!

---

<div class="post-metadata">

**Author:** ![Zarashima](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/zarashima/32/928_2.png) [@Zarashima](https://forum.katalon.com/u/Zarashima)\
**Post date:** [July 20, 2018, 10:31am UTC](https://forum.katalon.com/t/how-to-schedule-katalon-test-case-run/12161/2 "2018-07-20T10:31:04Z")

</div>

Please refer this tip: [https://docs.katalon.com/display/KD/Schedule+tests+to+execute](https://docs.katalon.com/display/KD/Schedule+tests+to+execute)

---

<div class="post-metadata">

**Author:** ![uma\_aggarwal](https://avatars.discourse-cdn.com/v4/letter/u/977dab/32.png) [@uma\_aggarwal](https://forum.katalon.com/u/uma_aggarwal)\
**Post date:** [July 20, 2018, 10:54am UTC](https://forum.katalon.com/t/how-to-schedule-katalon-test-case-run/12161/3 "2018-07-20T10:54:06Z")

</div>

hi vinh,

Thanks for your prompt revert on this. With your help, I was able to generate teh command and execute it from command prompt, however I have below questions

1. i could run it from command prompt but have not worked with batch file before. I am not sure how do I put it in batch file, could you please help me in that ?

2. will it upload the results to katalon analytics ?

3. Where can i see teh logs when I run it from CMD or using batch file ?

Thanks!

---

<div class="post-metadata">

**Author:** ![b.swathireddy95](https://avatars.discourse-cdn.com/v4/letter/b/ad7895/32.png) [@b.swathireddy95](https://forum.katalon.com/u/b.swathireddy95)\
**Post date:** [July 3, 2019, 8:19am UTC](https://forum.katalon.com/t/how-to-schedule-katalon-test-case-run/12161/4 "2019-07-03T08:19:34Z")

</div>

Hi,  
You got the solution for this.  
Please let me know the solution for this query.  
Even i have same requirement, I need to run some of the test cases on daily basis.I need the results through mail  
Please help me on this

Thanks,  
Swathi

---

<div class="post-metadata">

**Author:** ![David\_Barker](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/david_barker/32/6036_2.png) [@David\_Barker](https://forum.katalon.com/u/David_Barker)\
**Post date:** [July 3, 2019, 9:16am UTC](https://forum.katalon.com/t/how-to-schedule-katalon-test-case-run/12161/5 "2019-07-03T09:16:56Z")

</div>

[This page](https://docs.katalon.com/katalon-studio/docs/console-mode-execution.html#execute-katalon-in-cmd) has most of the information you need, but here’s a quick summary.

1. Create a new batch file (.bat extension) and open it in any text editor.
2. In the batch file, you will need to [change directory](https://ss64.com/nt/cd.html) to where the katalon.exe is located, for example:

```auto
CD "C:\Katalon Studio"

```

1. After this line, paste your command that you generated inside Katalon Studio. For example:

```auto
katalon -noSplash -runMode=console -consoleLog -projectPath="..." -retry=0 -testSuitePath="..." -executionProfile="default" -browserType="Firefox (headless)" -sendMail="..."

```

1. For the `-sendMail` option, specify the email address or addresses (in a semicolon separated list) that you want the email to be delivered to.
2. Double click the batch file to execute it, or use Windows Task Scheduler to run the task automatically.

This assumes that you have email configured correctly for the project in Project Settings \> Email. (You don’t actually need to specify any recipients within project settings if you’re using the `sendMail` option with the command.)

As for the logs there is an option to attach them to the email, although I haven’t tried this. You can view them in Katalon Studio in the normal way (under Reports) or there are further command options related to logging. I can’t comment on Katalon Analytics because I do not use it.

Here’s a copy of the batch file I use to execute my company’s tests, I’ve declared the email addresses as a variable to make it a bit easier to add or remove addresses from the list:

```auto
SET "email=user1@gmail.com; user2@gmail.com"

CD "C:\Katalon Studio"

katalon -noSplash -runMode=console -consoleLog -projectPath="C:\..." -retry=0 -testSuitePath="..." -executionProfile="default" -browserType="Firefox (headless)" -sendMail="%email%"

```

---

<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:43am UTC](https://forum.katalon.com/t/how-to-schedule-katalon-test-case-run/12161/6 "2022-08-08T07:43:30Z")

</div>

Archived on August 8, 2022, 7:43am UTC


