West Wind WebSurge
Using response data in subsequent calls
Gravatar is a globally recognized avatar based on your email address. Using response data in subsequent calls
  Chris Hughes
  All
  Apr 19, 2019 @ 03:42am

Hi Rick,

We're looking for a load test solution for our API and I'm checking out WebSurge at the moment. Does WebSurge support using the response data in subsequent calls? So for example, let's say I want to load test a scenario where we post a new customer to a service, and then we want to delete that customer after that. The id of the newly created customer is generated by the service and isn't known in advance, but it is returned in the location header and required for the delete call. Is there a way to parse that information and use it for the delete call somehow? How would you handle such a scenario?

Regards,

Chris

Gravatar is a globally recognized avatar based on your email address. re: Using response data in subsequent calls
  Rick Strahl
  Chris Hughes
  Apr 19, 2019 @ 01:28pm

There's no built in way to do this for obvious reasons - the tool has no idea what it should look at or even what data is coming back and then what to do with it when to send the next request.

The only way to do this at this point would be via an addin - you'd have to code up an addin that looks at each request and decides what to capture after and send on the next one.

There's an example in the help file here:

(note I recently (1.13.5) changed the folder where addins loaded to Addins from Plugins)

+++ Rick ---

Gravatar is a globally recognized avatar based on your email address. re: Using response data in subsequent calls
  Chris Hughes
  Rick Strahl
  Apr 23, 2019 @ 01:27am

Thanks, I'll check it out.

© 1996-2024