ATF Architecture for Sequential Lifecycle Processes

HamzaZ
Tera Contributor

Hi everyone,

 

I am currently working on designing ATFs for an HR onboarding lifecycle process and I would like to get feedback on the best architecture approach.

 

The process is sequential and contains multiple stages.

 

We also have employee types.

 

My challenge is that the process is fully dependent from one stage to another. For example, a Day 1 scenario requires the employee to already have gone through Recruitment and Preboarding.

 

Initially, I considered structuring the test design by separating test suites based on employee types, with dedicated tests for each lifecycle stage within those suites. However, this approach introduces challenges around lifecycle continuity, as ATF suites do not inherently share runtime context or data across suites.

 

On the other hand, implementing a single end-to-end test per employee type would ensure continuity across all stages, but it would result in overly complex and lengthy test cases with a high number of steps, making them harder to maintain, debug, and stabilize.

 

Thanks in advance for your feedback.

1 REPLY 1

Tanushree Maiti
Mega Patron

Hi @HamzaZ 

 

Refer this ServiceNow documentation link: https://www.servicenow.com/docs/r/application-development/automated-test-framework-atf/available-qui...

 

HR LifeCycle: Request Onboarding Case CreationCreates a Request Onboarding case using the native UI and updates the case after creation.Madrid
HR Lifecycle: Trigger Rescind WorkflowTriggers the Rescind workflow for a New Hire Onboarding Lifecycle Event case.Quebec
HR Lifecycle: Verify Requests page for Open and Closed casesVerifies open and closed cases on the Requests page.Orlando
HR Lifecycle: Verify search in Requests PageVerifies the search functionality on the Requests page for open and closed cases.Orlando
[LE]: Add Ad hoc taskVerifies an ad hoc task can be added for a Lifecycle Event case.Yokohama

 

Please mark this response as Helpful & Accept it as solution if it assisted you with your question.
Regards
Tanushree Maiti
ServiceNow Technical Architect
Linkedin: