I would like to test async api performance. POST api call to api/createAsset starts the creation of the asset on the backend (that needs x time to be created).
After that GET api call api/getAsset checks if the server have finished the asset creation. While the asset is not yet created it return status “in_progress”, when the asset is created it return “finished” status.
I would like test that the api return status 200 and would like to measure performance (and set thresholds) for both GET api call and the time from the POST (start of the asset creation) to GET “finished” status (time that backend needed for the asset creation).
Can I do that with the framework and how would I go about it? I already have a custom script for this but would like to incorporate this into k6 framework.