LR test HTTP interface
1. Read the interface documentation
two。 Select protocol
3. Send the request using the web custom request function, which supports both get and post, and needs to pay attention to the data format.
4. You can also use web_url to complete get,web_submit_data and post.
5. Check the return code in the response (optional), that is, the checkpoint in the script.
6. Run-Time Settings- > Log- > Extended log- > check Data returned by server (unchecked for non-APIs)
7. If it is the interface of https, you need to add web_set_sockets_option ("SSL_VERSION", "TLS") to the top of the script
8. For Chinese parameters, transcoding is required.
9. Interface dependency-Association
10. If it is in json format, you need to specify EncType=application/json, as shown above.
If it is in xml format, you need to specify EncType=text/html;charset=UTF-8.