HomeSUPPORT QUESTIONS

Need help with StresStimulus? Start here.

Changing credentials in Ajax JSON requests Messages in this topic - RSS

Unregistered User
Unregistered User
Posts: 509


5/12/2017
Unregistered User
Unregistered User
Posts: 509
My login data is sent by ajax request using JSON format. How could I change them to become variables ?
0 link
George @StresStimulus
George @StresStimulus
Administrator
Posts: 554


5/12/2017
George @StresStimulus
George @StresStimulus
Administrator
Posts: 554
1. You need to create a dataset.

2. Find a request where the login data (i.e. username) is sent. Use search as described here http://support.stresstimulus.com/display/doc46/Searching+Test+Case+Tree

3. Select this request and create a parameter, as described here http://support.stresstimulus.com/display/doc46/Creating+a+Parameter

4. Because this is JSON request, instead of parameterization grid, the Free Format Request Editor will be selected automatically http://support.stresstimulus.com/display/doc46/Free+Format+Request+Editor

5. Select the recorded username value, right-click and in the variable picker, select the dataset field containing the username, and select VU_Bound databinding. Variable picker is described here http://support.stresstimulus.com/display/doc46/Variable-Picker

After that, verify the test case to make sure that everything works.
0 link






Copyright © 2024 Stimulus Technology