01 March 2010 - 3.5 user guide eclipse intellij netbeans maven download nightly forum bugs blog sf.net eviware


Eviware Logo

REST/HTTP Request Steps

There are two types of HTTP Request steps available:

  1. REST Requests are linked to a REST Resource defined in the project and use that resources service for validations, etc.
  2. HTTP Requests are standalone requests not linked to any other item.

REST Request Steps

REST Request Steps are either created from REST requests using their "Add to Testcase" action or from the TestCase Editors popup menu with the "Insert Step -> REST Request" option which will prompt for which REST Resource in the project that the request should be created for.

REST/HTTP TestRequests are submitted either manually through their editors submit actions or when running the TestCase containing the request. The requests response is validated against a requests assertions and the requests icon changes to reflect the result of the validations; green means that all validations were ok, red means that some validations failed. A grey background icon indicates that the request has not yet been submitted for validation, a white background indicates that the TestRequest lacks assertions

REST Test Request Details Tab

The "Details" tab shown in the bottom-left shows the same properties when a HTTP TestRequest node is selected in the navigation tree as for a standard REST Request (see the Request Details Tab for more detailed information) and adds two read-only properties:

  • Service : the name of the Service for this TestRequest
  • Resource : the path of the Resource for this TestRequest

The REST Test Request Editor

Double-clicking a REST Test Request in either the navigator or the TestCase Editor Pane opens the requests editor which is more or less a copy of the standard REST Request Editor with the following exceptions:

  • The second toolbar button "Add to Testcase" has been replaced with "Add Assertion" which prompts to add an assertion to the REST TestRequest
  • The second toolbar contains a drop-down for selecting which REST Resource this REST Test Request should be linked to.

  • The clone action now clones the TestRequest and appends the cloned request to the containing TestCase
  • Under the request/response panes there is a now a tabbed pane containing 2 tabs; the "Assertions" tab and the "Request Log" tab as described in the Test Requests Overview.

All other editing, submittal, validation functionality is the same as in the REST Request editor


Next: HTTP Requests