HomeSUPPORT QUESTIONS

Need help with StresStimulus? Start here.

Handling JSON Messages in this topic - RSS

DeHaan
DeHaan
Posts: 3


5/5/2016
DeHaan
DeHaan
Posts: 3
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
StimTech
Administrator
Posts: 59


5/6/2016
StimTech
StimTech
Administrator
Posts: 59
Unique values of UserSurveyID are generated on the server. You need to do the following:

  1. Find the first response where the value 338847 was sent, as described here:  http://support.stresstimulus.com/display/doc43/Searching+Test+Case+Tree

  2. In this response, create a text-delimited extractor called UserSurveyID, as described here:  http://support.stresstimulus.com/display/doc43/Text+Delimited+Extractor

  3. 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

  4. 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
DeHaan
Posts: 3


5/6/2016
DeHaan
DeHaan
Posts: 3
Thank you.
0 link






Copyright © 2024 Stimulus Technology