Alternate way to run the ATF scheduler instead of windows Task Scheduler
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-09-2024 10:14 AM
I have a created a ATF scheduler and it will run daily with the help of Windows task scheduler. Sometimes, it's not working properly. Could anyone let me know that we have any alternative to run the suite scheduler rather than Task scheduler. Can we use anything available in ServiceNow to perform this activity
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-09-2024 11:28 AM
Hello Siddana Divakar,
I understand you're facing challenges with the ATF scheduler when triggered by the Windows Task Scheduler. While this approach is commonly used, there are alternative methods within ServiceNow that you can explore.
Scheduled Jobs: ServiceNow provides a Scheduled Jobs feature that allows you to set up recurring tasks directly within the platform. Navigate to System Scheduler > Scheduled Jobs and create a new job to execute your ATF suite at the desired intervals.
Business Rules or Scripted Scheduled Jobs: Depending on your specific requirements, you can use Business Rules or Scripted Scheduled Jobs to trigger the ATF suite. This provides more flexibility and control within the ServiceNow environment.
Scripted REST API: You can create a Scripted REST API in ServiceNow and trigger it externally using a scheduler or a script. This approach enables you to initiate ATF suite runs programmatically.
Event Management: Leverage the Event Management module to trigger ATF suites based on specific events or conditions.
Before making any changes, thoroughly test the alternative method to ensure it aligns with your requirements and resolves the issues you've experienced with the Windows Task Scheduler.
Feel free to share more details about your ATF setup or the issues faced, so the community can provide more targeted assistance.
Regards
Masoom Khan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-15-2024 09:51 PM
Hi @Masoom_Patthan & @Tushar ,
Thanks for details explanation. My query is we need to open a "scheduled client test runner" for executing Schedules in ATF. In simple sentence, we have to open an URL on particular time in ServiceNow instance. Can we implemented this through Scheduled job? If yes. Please provide the solution with script.
Thanks,
Divakar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-16-2024 06:32 AM
Do you want to trigger the Scheduled Client Test Runner URL at specific intervals? then I can try to provide you server-side script in the Scheduled Job.
Please, don't forget to mark my answer as correct if it solves your issue or mark it as helpful if it is relevant for you!
Regards,
Tushar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-09-2024 02:03 PM
Yes @siddana Divakar
ServiceNow provides its own scheduler for Automated Test Framework (ATF) tests, and using this built-in scheduler is generally a more reliable approach than relying on external task schedulers like Windows Task Scheduler.
The ServiceNow ATF scheduler allows you to configure and execute test suites at specified intervals directly within the ServiceNow platform.
set up a scheduled ATF test execution in ServiceNow -
Create an ATF Test Suite:
- First, create an ATF Test Suite containing the test cases you want to execute.
Configure a Test Schedule:
- Navigate to "Automated Test Framework" > "Test Schedules" in the application navigator.
- Click on "New" to create a new Test Schedule.
- Configure the schedule by providing a name, selecting the Test Suite you created, and setting the desired frequency (daily, hourly, etc.).
- Specify the start date and time for the scheduled execution.
Activate the Test Schedule:
- After configuring the Test Schedule, make sure to activate it. Activating the schedule enables the ATF framework to execute the tests at the scheduled times.
Monitor Test Results:
- Once activated, ATF will automatically trigger the test suite execution based on the configured schedule.
Please, don't forget to mark my answer as correct if it solves your issue or mark it as helpful if it is relevant for you!
Regards,
Tushar