ATF for change request

karthikbabu
Giga Expert

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

1 ACCEPTED SOLUTION

karthikbabu
Giga Expert

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.

View solution in original post

5 REPLIES 5

Tejal Zete
Giga Expert

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

Shubham Kakade
Giga Guru

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):
find_real_file.png
- '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

 

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 

karthikbabu
Giga Expert

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.