sgardner
9 years agoNew Contributor
How do I transfer newly created unique id's for a successful POST to the next test step
Hey everyone,
I am working on a REST API that can be used to construct a set of data. The data is set up in a hierarchy that is linked through a set of unique identifiers (id's). For instance, I create an initial test step (1) which submits a POST request for Resource A; If successful, the POST request will return with an unique identifier for Resource A, This unique identifier is then needed to submit a POST request to Resource B, test step (2). The problem is that the identifier generated for test step 1 on Resource A is unique and I can not figure out how to capture and transfer that id to the next test step without manual intervention. Does anyone know of a way to transfer a returned value from a POST test step to the next test step?