- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-13-2018 05:25 AM
Email notification has been configured for creation of enhancement record. I am creating an enhancement record from below steps.
I want to validate whether the notification has been triggered or not for enhancement record created from step 3. Also I want to validate notification is triggered to assigned to of enhancement record. Could any one suggest me how I can achieve this through ATF?
Also please inform me how I can query enhancement number from ATF?
Solved! Go to Solution.
- Labels:
-
Automated Test Framework

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-13-2018 10:11 AM
This would be your code:
(function(outputs, steps, stepResult, assertEqual) {
var gr = new GlideRecord("rm_enhancement");
var num = steps('60f29ef0dbf527006d3c72fc0f961959').record_id; //Sys Id is mentioned here is previous step sys_id.
gr.addQuery('sys_id',num);
gr.query();
if(gr.next())
{
outputs.record_id = gr.number; //(replace with field name of number)
}
// add test script here
})(outputs, steps, stepResult, assertEqual);

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-13-2018 12:11 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-13-2018 12:26 PM
Thank You!!!