Creating web service test

Functional testing of web services consists of invoking web service’s APIs from TestArchitect’s test procedures and checking the returned result values.

Planning a web service functional test

Before creating test procedures, plan your web service test as follows:

  1. Define which service functionality should be tested.
  2. Determine which APIs of the service are verified.
  3. Specify which APIs to be called, the call order and how you verify the returned HTTP results.

After planning your test, start creating it.

Creating a web service functional test

Typically, creation of a web service test includes the following steps:

  1. Instantiate an HTTP request.
  2. Define necessary information of authentication (learn more), parameters, header, and/or body for an HTTP request.
  3. Send the HTTP request with prepared information.
  4. Parse an HTTP response.
  5. Depending on the HTTP response’s format returned by the tested web service which might be in XML, JSON, or text format, etc., use respective checkpoint built-in actions to verify the response by employing XML checkpoints, JSON checkpoints, or value checkpoints, such as, check value, or check text contains, etc. (Learn more.)

Copyright © 2023 LogiGear Corporation. All rights reserved. LogiGear is a registered trademark, and Action Based Testing and TestArchitect are trademarks of LogiGear Corporation. All other trademarks contained herein are the property of their respective owners.

LogiGear Corporation

1730 S. Amphlett Blvd. Suite 200, San Mateo, CA 94402

Tel: +1(800) 322-0333