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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2020 01:09 AM
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 ?
- Labels:
-
flow designer
-
IntegrationHub
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2023 05:27 AM
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:
- Let's pick the top 10-15 used catalog Items
- Trigger each from the Service Portal or Employee Center portal (depending on which we were using at the time)
- 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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-07-2023 02:47 PM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-15-2021 01:04 PM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-12-2021 03:10 AM
i am intrested in this idea...if we execute this we can directly launch flow using ATF