Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Can you run an ATF test case with multiple values?

jglez
Tera Contributor

For example, say I have an ATF test that creates an Interaction and sets a field on that form to a specific value, and verifies that certain fields are auto-populated based on that specific value, etc. Can you have some sort of collection of values on which the same test can iterate on?

 

Put another way, imagine I have Service IDs A, B, and C. Can I run my ATF test using these three values and have the validation on the auto-populated fields work accordingly? Thanks.

3 REPLIES 3

Sardash
Giga Guru

@jglez - You can run an ATF test case with multiple values by using Parameterization Testing.

Parameterization testing allows you to run the same test multiple times with different data sets.

Please Refer to below documentation -

https://www.servicenow.com/docs/bundle/zurich-application-development/page/administer/auto-test-fram...

---------------------------------------------------------------------------------------------------------------------------------------------------

If my response helped, please mark it by selecting "Accept as Solution" and " Helpful." This action benefits both the community and me.

@Sardash 

Any reason to repeat the same info which was already shared?

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Shaqeel
Mega Sage
Mega Sage

Hi @jglez 

 

Use Parameterrized Testing.

Here are some tutorials:

https://www.youtube.com/watch?v=sd5P0dCE2m0

https://www.youtube.com/watch?v=RF-WnXONek8

 

Regards

Shaqeel


***********************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting "Accept as Solution" and " Helpful." This action benefits both the community and me.

***********************************************************************************************************************





Regards

Shaqeel
ServiceNow Parameterized ATF Demo In English Your Queries:- What is parameterized testing in ATF ServiceNow? Which type of testing are appropriate for ATF? How to implement ATF in ServiceNow? What is the use of ATF in ServiceNow? What is ServiceNow Automated Test Framework? What are the benefits ...
In this episode, we explore the power of parameterized tests and test results management within the Automated Test Framework (ATF). Whether you're seeking to enhance test flexibility, optimize test coverage, or improve result analysis, this episode is designed to equip you with the knowledge and ...