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

Hi @Steph_Fagnant ,

Of course! We initially tried to go with the approach with creating a Test for each of our Catalog Items and found it to be very cumbersome and would be a full-time job maintaining the ATF when/if any/all modifications were made to either the Catalog Item Form or Flow. The more focused approach we took was:

  1. Let's pick the top 10-15 used catalog Items
  2. Trigger each from the Service Portal or Employee Center portal (depending on which we were using at the time)
  3. Use this top used list for patch and upgrade validations to ease the strain of manual validations

If your Flows and SubFlows don't change often, then building our ATF's to cover all might be an initial large effort, but the payoff is huge. As a question, are the insurance claims triggered from a portal, or a different action from a separate record?

They're triggered from a portal. We're using an event API, so a particular event is the trigger to our 'master' flow, which executes our subflows. The subflow I'm supposed to be creating a stand-alone ATF test for starts with an inbound API call to get data for the newly created claim (querying using a UID), does a couple calculations, and then performs an outbound API call that updates a table. Based on the information we've been given, it doesn't seem feasible, or all that practical, to create a stand-alone test for just this subflow. 

kevinanderson
Giga Guru

I am interested in this idea as well.  The only way I can think it might be possible is firing the flows /action via script and use the ATF server script test (jasmine api) to validate the output.

 

https://developer.servicenow.com/dev.do#!/reference/api/paris/server/sn_fd-namespace/FlowScopedAPI#FlowScoped-startAsync_S_GR

 

https://community.servicenow.com/community?id=community_question&sys_id=5752e955dbeb5304feb1a851ca961941&view_source=searchResult

 

https://jasmine.github.io/api/3.1/global

 

 

Parth kodgire
Kilo Explorer

i am intrested in this idea...if we execute this we can directly launch flow using ATF