Point and Click with JSON

Article Index
JSON Wizard

NOTE: In this guide you'll learn how to leverage Point and Click Testing in SoapUI Pro. This feature is only available in SoapUI Pro that has been superseded by SoapUI NG Pro in the Ready! API platform.
You should download a SoapUI NG trial before starting, if you don't have it.

JSON Wizard

In Ready! API creation of an JSON statement is extremely easy; the top left button in the JSON Match configuration dialog opens a dialog that allows you to select the desired target node for the JSON expression, which will then be created automatically for you.

##

json-creation-wizard

(Clicking OK in the dialog inserts the selected JSON statement into the editor field)

Ready! API also adds a number of wizards to the right-click popup menu of outline view of the response message; right-clicking the node you want to assert in the outline view opens the following popup:

json-assertion-wizard-popup

The first four options here all create preconfigured JSON assertions for you, for example selecting the "for Existence" option creates the following JSON Assertion;

for-existance-json-assertion

If we instead had selected the "for Content matching RegEx" option, we would first have been prompted for a regular expression that should be used to validate the selected node;

add-regex-json-assertion

here we specified the .\d regular expression which matches just numbers (see this page for a regex reference), after clicking OK we get

regex-json-configuration