Need help with StresStimulus? Start here.
Changing credentials in Ajax JSON requests
Unregistered User Posts: 514
5/12/2017
|
My login data is sent by ajax request using JSON format. How could I change them to become variables ?
|
|
0
link
|
George @StresStimulus Administrator Posts: 567
5/12/2017
|
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