Thoughts on using ATF for Flows created in Flow Designer and Integrationhub?

waqar5
Kilo Expert

Hi,

I'd like to understand the possibility of using Automated Testing Framework to test Flows and external integrations in Flows.

As of now, exploring the out of the box functionality from ATF doesnt seem very promising but there might be a way to do it.

Any ideas ? 

8 REPLIES 8

Pradeep Sharma
ServiceNow Employee
ServiceNow Employee

Hi Waqar,

As of this writing, Flow designer UI is not supported. 

If you feel strongly about this requirement, I invite you to open an enhancement request! Our product managers DO listen.

https://community.servicenow.com/community?id=ideas_list&sysparm_module_id=enhancement_requests

 

- Pradeep Sharma

This is several yrs old, so I'm wondering if this is still the case. My team has been tasked with creating ATF tests for every one of our subflows. We're struggling to identify how to even begin since the documentation we've all seen focuses on entries from screens. We've questioning if it's even feasible to test subflows via ATF. 

Hi @Steph_Fagnant , 

We've been working through setting up ATF Tests for each of the core modules we utilize. We've found that Flows/SubFlows/Actions can be tested if you know the desired outcome. 

 

IE: We have a few Catalog Items that go through Flow and then down through multiple SubFlows, so we configured the ATF to validate:

  • Catalog Item Variables
  • Flow Processing for Approval Generation and then Catalog Task(s)
  • Associated Notification(s) 

It's taken us a bit longer to develop, but we're able to automate some of the testing for more complex Catalog Items and Flows.

Thank you for your response. My teammates and I were discussing this as well. Our flows and subflows are triggered by activities on insurance claims, so we know we can use ATF to simulate what would happen on the screens, such as when a new claim is created. Our team lead is looking for us to create separate stand-alone ATF tests for each individual subflow, too, tho. Doing it via ATF doesn't seem to really buy us anything over the regular subflow testing within flow designer, however.