- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-18-2025 05:25 AM
Hi All,
I am trying to create a BR that will launch an ATF test suite when any Update Set is moved to "Committed" state, but the BR is not triggering the ATF suite automatically, what should I do to fix it.
Table:
sys_remote_update_set
Details of BR:
Script:
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-19-2025 01:48 AM - edited ‎02-19-2025 01:51 AM
Hello @Siddhartha6 ,
1) You need to create one Suite Schedule:
Create a Suite Schedule
Go to Automated Test Framework (ATF) -> Schedules and create a new Suite Schedule. (Run as On demand)
In the related list, add the Test Suite you want to run.
2)Business Rule: write this code ( Replace with the actual Sys ID of your schedule )
(function executeRule(current, previous /*null when async*/) {
var scheduledRunSysId = 'e3786e79833f5210a411faa6feaad3c5'; // Replace this with the actual Sys ID
new sn_atf.ScheduledRunsExecutor().setScheduleSysId(scheduledRunSysId).start();
gs.log('ATF Scheduled Run Started for Sys ID: ' + scheduledRunSysId);
})(current, previous);
3)Make sure That Scheduled Client test Runner is open
If the above information helps you, Kindly mark it as Helpful and Accept the solution.
Regards,
Pooja.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-19-2025 01:48 AM - edited ‎02-19-2025 01:51 AM
Hello @Siddhartha6 ,
1) You need to create one Suite Schedule:
Create a Suite Schedule
Go to Automated Test Framework (ATF) -> Schedules and create a new Suite Schedule. (Run as On demand)
In the related list, add the Test Suite you want to run.
2)Business Rule: write this code ( Replace with the actual Sys ID of your schedule )
(function executeRule(current, previous /*null when async*/) {
var scheduledRunSysId = 'e3786e79833f5210a411faa6feaad3c5'; // Replace this with the actual Sys ID
new sn_atf.ScheduledRunsExecutor().setScheduleSysId(scheduledRunSysId).start();
gs.log('ATF Scheduled Run Started for Sys ID: ' + scheduledRunSysId);
})(current, previous);
3)Make sure That Scheduled Client test Runner is open
If the above information helps you, Kindly mark it as Helpful and Accept the solution.
Regards,
Pooja.