
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-17-2019 02:16 PM
Hi All,
I am trying to create a ATF for change request. I am able to create a test for change request "submitting a for with all field values" but I am unable to find out how to make ATF to perform testing for change task created from change request as part of testing.
Please Advise.
Thanks,
Karthik
Solved! Go to Solution.
- Labels:
-
Change Management

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-21-2019 11:45 AM
Figured out an easy way to test the whole process flow of change.
for my issue, I used Record Query and then Record Update.
Thanks for all responses.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-17-2019 10:40 PM
Hi Karthik,
I hope following link will help you.
https://community.servicenow.com/community?id=community_question&sys_id=e683c365dbd8dbc01dcaf3231f9619d6
https://blog.jacebenson.com/uploads/hands-on-lab2-automated-testing-framework.pdf
Mark it correct/helpful if it helps.
Regards,
Tejal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-17-2019 10:56 PM
Why don't you try creating Change Tasks records and associating them to the already created Change Requested via the following way:
- 'Open a New Form' step against Change Task (change_task) table;
- 'Set Field Values' step: 'Change request' field should be populated with the Change Request previously created (fill in other fields such as 'Short description', 'Description', and etc):
- 'Submit a Form' step;
I believe these steps should cover your requirement.
To confirm it, you may add a search after the above steps:
- use a query against Change Task table and search for a Change Task which 'Change request' field contains the Change Request (as in the above screenshot);
Refer the following link for more information:
https://docs.servicenow.com/bundle/istanbul-application-development/page/administer/auto-test-framework/task/atf-use-backref.html
Mark it as correct/helpful if this helps you.
Thank you

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-18-2019 11:06 AM
Hi Shubham,
Why do I need to create a new record with the change request when the change request already has a workflow which creates changes tasks automatically?
why can't I open an existing (created change task from CR) change task and continue with the testing? Is there a way to perform this?
Thanks,
Karthik

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-21-2019 11:45 AM
Figured out an easy way to test the whole process flow of change.
for my issue, I used Record Query and then Record Update.
Thanks for all responses.