Forum Discussion
Below is the sample project which uses Script Dispatch and has sample for accessing both request and its headers.
https://github.com/nmrao/sample-soapui-projects/tree/master/scriptDispatch
- swalchemist4 years agoOccasional Contributor
Hi, nmrao. That's a nice example of reading headers in the dispatch script. But your project doesn't have any code injected directly in the response, and that's where we're not able to use the kind of code you're using in the dispatch script to access the request headers.
This does give me the idea that we could generate every combination of responses in a different hardcoded response file and choose one of them using the dispatch script. Right now it's just two boolean values, so there are four combinations, but that's likely to increase soon and create a maintenance problem.
On the topic of load tests - the SmartBear documentation does suggest doing a load test. We didn't need a heavy load to demonstrate the problem, just 2 or 3 concurrent threads, so we used only the minimum load necessary.
- nmrao4 years agoChampion Level 3May be I didn't read the inject part by looking just read part.
Of course one can inject as well, otherwise not possible for sending dynamic value in response. Will find a sample. - nmrao4 years agoChampion Level 3Please see if below video helps
https://youtu.be/L2SMZ9bbDvE- swalchemist4 years agoOccasional Contributor
Hi, nmrao. I watched the video, and he is injecting properties into the response in a similar way that we're doing it. I believe his code has a similar vulnerability that we have - it's possible for two clients to get the same value in a response from his virtual service, but his intention was for each response to be random.
Related Content
- 6 years ago
- 3 years ago
- 7 years ago
Recent Discussions
- 5 days ago
- 10 days ago