Smart now offers the ability to 'chain' HCM business processes together. This improves the reliability of end to end tests in the test pack execution and removes maintenance from employee self-service tests.
HCM Chaining allows test cases to reference objects created by previous test cases within the same Test Run.
With the chaining notation '<FROM_TEST_CASE: XXXXXX>' (where XXXXXX is a Test Case ID) in your template you can link HCM Business Processes together so that they are in a chain every execution.
You can reference positions that are created, workers that are hired and usernames that are generated in the 'Create Workday Account' step of a hire or contract contingent worker.
You can create a position, hire a worker into that position, login as the worker you just created to change their own personal information and then terminate that worker.
This image shows this simple example test run set up on the Create BP / Integration Test screen.
When hiring a worker into a created position, you can create a link to the position in the hire template
Within your test template specify the correct notation, '<FROM_TEST_CASE: XXXXXX>', where XXXXXX is the Test Case ID of the Create Position or Create Job requisition.
If your hire creates a new account for the worker you can link this to an employee self service test case, personal information change in this scenario. The test case will use the username created.
Using the hire test case id in the termination test case as a link allows you to terminate that hired worker.
Sequencing & Rescinding
When creating your BP tests, ensure you have them sequenced in the right order. The item e.g. position or worker, must exist before creating a link to it in another test case.
The data must not be rescinded and the sequence must be correct to allow the chaining to occur.
Updating Existing Packs
You can update existing BP packs with the new chaining notation. Re-execute your test packs with the updated templates to use this functionality.