Applies to ReadyAPI 2.8, last modified on August 16, 2019

The Headers panel shows the headers of the message that will be sent to a service.

The Headers panel

Click the image to enlarge it.

Option Description Comment
Add Add Create a new header.
Add Add from clipboard Import headers from the clipboard. ReadyAPI expects one header per line.
Add Add from file Import headers from a text file. ReadyAPI expects one header per line.
Remove Remove Delete the header.

Adding Headers

In ReadyAPI, you can add headers to your requests in several ways:

Manually

To add a header manually, click and enter a name of the header. ReadyAPI will add it to the open request. You can then specify the required header value.

From the Clipboard

To import a header from the clipboard, click . ReadyAPI will try to create a new header by using the clipboard values. The clipboard must contain the appropriate header value pairs, for example name:value. To add multiple headers at once, copy each header value pair from a separate line, for example:

header1:MyValue
header2:MySecondValue

From a File

To import a header from a file, click and specify the path to the file containing header values. The target file should be a plain text file with one header value pair per line.

Using Property Expansions

To specify header data, you can either enter a string, numerical value, date, or a value of another type, or you can refer to a custom property of a test case, suite, or project. To specify a property, you use syntax like ${#location#property-name}:

Web service testing with ReadyAPI: Referring to a properrty ina request header

For complete information on syntax and supported property sources, see Property Expansion.

You can also specify a property through a dialog:

  1. Right-click within the Value cell and pick Get Data from the context menu.

  2. Select the desired property in the subsequent dialog:

Web service testing with ReadyAPI: Get Data command in the Headers panel

Deleting Headers

To delete a header, select it and click . Confirm that you no longer need the specified header.

Remarks

Your custom server may work incorrectly and may return the 500 status code. This may happen if the Content-Length: 0 header was encountered in the sent empty request. To solve the issue, add the following parameter to the vmoptions file and restart ReadyAPI in order for the changes to take effect:

-Dsoapui.send.zero.content.length=false

See Also

Bottom Request Panels
Top Request Panels
Using Cookies

Highlight search results