JSON protocol support in AgileLoad

To allow the AgileLoad user to modify and add some variables in the JSON message, the AgileLoad recording module converts the JSON messages to XML.

The JSON tree view allows to extract data from JSON responses.

Because JSON messages are managed like XML messages, data can be extracted from JSON messages using the same method than the one used to extract data from XML messages (see Extracting a web page content and Extracting data from a XML document)

When a parser is added to a json http request, two functions calls are added to the json http request:

 

SUBMIT POST "http://10.1.10.195/examples/json/remote" IDENTIFIER 2 REFERER 1
JSON
    "<JsonParser:node type=\"object\">"
         "<firstName type=\"string\">John</firstName>"
         "<lastName type=\"string\">Smith</lastName>"
    ...
    "</JsonParser:node>"
    _JsonToXml=JsonToXml(CONTENT)
    result=XML_GetElementText(_JsonToXml, "/JsonParser:node[1]/address[1]/city[1]", 1)
   





Go back to the Learning center:


Copyright © AgileLoad. All rights reserved.
Agile Load testing tool| Contact AgileLoad | Terms of Use | Sitemap