PostMan variables assertion application (for standard Jmeter)

Common interface test tools PostMan / Jmeter / SoapUI, of course, there are some companies closer to their own application development a number of gadget.

From the comparison function, Jmeter more powerful, not only do the pressure test can measure the interface, scalability is also better.

But, just from the interface testing point of view, more convenient PostMan lightweight, no less functional.

PostMan-- global variable

Functions like a user-defined variable Jmeter [], this function reusability test interface to manage a large variable.

Subsequent maintenance of the interface, the parameters change, you can adjust the minimum level of the script.

PostMan Home: Set --Manage Environments - Add-- configuration environment variable names and other information

 

 

After adding the transmission request is successful, i.e., selects a corresponding context name reference request corresponding to the environment variable name.

Use reference variable format - {{custom variable name}}, as shown in FIG cited herein are three variables: the request address url, body username and password request.

PostMan- assertion Set

[] Jmeter functionally similar assertion, by setting the interface is determined in response to the assertion request is successful, contents of the response is correct.

Tests use of JavaScript, can debug interface, the right navigation bar has encapsulated some of the commonly used methods, select and modify the corresponding parameter.

The following figure describes several common assertion, the interface is operating, each corresponding to an assertion test results.

Runner request of PostMan-Collection assertion must be set, otherwise the Run Summay no test results.

 

Guess you like

Origin www.cnblogs.com/panda-sweets/p/11633719.html