I’m currently working on a series of APTs in order for us to automate our AST testing. I had hoped to write short recordings, and connect them together using the Test functionality. However I’m struggling to get them to connect together easily, as it doesn’t seem like scenario data setup for 1 recording is available to the next recording, instead it asks for the data again.
For example, I have three recordings that do the following
- Create and Release Purchase Requisition
- Find Purchase Requisition
- Convert Purchase Requisition Line to Purchase Order
When connected into a test, I setup the part data differently per scenario. So scenario 1 wants Part Number LEGO-BROWN, Scenario 2 wants Part Number LEGO-TEAL, etc.
This works easily for creating/releasing the requisition, and then I can use the screenshot capture to get the PR number in order to do recording #2.
However when I get to recording #3, I want to select the requisition line based on the Part Number from Scenario 1. But to do this, I would have to re-type in the same part number, because I can’t capture Scenario 1’s part number during Recording 1.
Am I missing something? Can I not capture the scenario’s data values into a variable or something else so that I can reference it in future recordings in the test? The ability to get the Scenario Number as a variable makes it feel like I should be able to get the Scenario Data into a variable, but I can’t figure it out!
Apologies if this doesn’t make sense. I’ve attached some images of my tests to illustrate my points:
I guess what I’m trying to do is: I want to be able to have one scenario defined across all my recordings, and to not have to re-enter data for recordings when the data isn’t changing in the scenario.
Perhaps I’m just structuring my testing wrong, but I’m trying to keep things as modular as possible