Hit a POST endpoint that creates a resource (this returns some JSON including the ID (let's call it res1Id) of this newly created resource)
Use this res1Id to query Postgres using the SQL executor for a different resource's (res2Id) that was created as a side effect of this original resource being created
Hit a PATCH endpoint that updates this second resource using its ID (res2Id)
Query Postgres again for res2Id and confirm the updates took place
Hit 2 DELETE endpoints for both res1Id and res2Id to remove them from the DB
I see in the docs you can capture variable output from testcases, but is there a way to capture variable output between steps themselves in a single testcase? I tried to do something like {{.testCaseOne.<some-var>}} but that doesn't work from within a next step unfortunately.
I have a single testcase that has 5 steps:
res1Id
) of this newly created resource)res1Id
to query Postgres using the SQL executor for a different resource's (res2Id
) that was created as a side effect of this original resource being createdres2Id
)res2Id
and confirm the updates took placeres1Id
andres2Id
to remove them from the DBI see in the docs you can capture variable output from testcases, but is there a way to capture variable output between steps themselves in a single testcase? I tried to do something like
{{.testCaseOne.<some-var>}}
but that doesn't work from within a next step unfortunately.