Need help with StresStimulus? Start here.
Handling JSON
DeHaan Posts: 3
5/5/2016
|
I have the following code that has dynamic values {"UserSurveyID":"338847","UserSurveyQuestionID":null,"SurveyQuestionID":303666,"QuestionTypeID":1,"StatusID":2,"Options":[{"OptionID":1235415}]}
The UserSurveyID, UserSurveyQuestionID, SurveyQuestionID,OptionID and QuestionTypeID are dynamic and will change per user.
The test records fine but on play back no options for the questions are ever selected. How would I have at least one value in the questions selected?
|
|
0
link
|
StimTech Administrator Posts: 59
5/6/2016
|
Unique values of UserSurveyID are generated on the server. You need to do the following:
- Find the first response where the value 338847 was sent, as described here: http://support.stresstimulus.com/display/doc43/Searching+Test+Case+Tree
- In this response, create a text-delimited extractor called UserSurveyID, as described here: http://support.stresstimulus.com/display/doc43/Text+Delimited+Extractor
- Find the first request where the value 338847 is used, and create a parameter by replacing it with the extractor UserSurveyID, as described here: http://support.stresstimulus.com/display/doc43/Free+Format+Request+Editor
- Finally replace all remaining occurrences of 338847 by creating multiple parameters at once, as described here: http://support.stresstimulus.com/display/doc43/Creating+Multiple+Parameters+from+Editor
|
|
0
link
|
DeHaan Posts: 3
5/6/2016
|
Thank you.
|
|
0
link
|
Copyright © 2024 Stimulus Technology