How to reuse(extend) Test Case w/ATF

Dsm1
Giga Contributor

I am using Kingston and wanted to use ATF to run some tests.

An example is I create a new INC and expect a certain behavior.  I want to use this same INC to run additional tests for my processes, such as assignment group change, assigned to changes, etc. without having to create the steps multiple times for an INC.

How is this done because I cannot find it in the docs.servicenow site and want to be able to utilize this tool for my regression and enhancement testing?

Thank you.  Dave

7 REPLIES 7

Thank you.  I will read up on templates again.

Mustafa Hussain
ServiceNow Employee
ServiceNow Employee

ATF Custom Step configurations might be useful in your scenario. You can create a custom step config which creates an incident with some default values, And you can use this step in any ATF test.

https://docs.servicenow.com/bundle/london-application-development/page/administer/auto-test-framework/task/atf-create-custom-step.html

This explains it a bit more in detail

https://community.servicenow.com/community?id=community_blog&sys_id=398d6669dbd0dbc01dcaf3231f9619d2

 

You can also create a custom step category for all your custom step configurations like create an incident etc so that it is easier to use them in other tests

Thank you I will have to read up more on this too as it is not something I have the current skills to easily do on my own.