Sample Projects (Functional Tests)

Applies to ReadyAPI 3.56, last modified on November 21, 2024

ReadyAPI includes samples that show how you can create functional tests against SOAP and REST APIs, virtualize APIs and add authentication to your requests.

The changes you make to sample projects cannot be saved. This means that, if you make some changes, you will have to save the project as a new one. The original file will remain unchanged.

ReadyAPI Test Samples

Project Description
SOAP Sample Project

Contains a large variety of tests that send requests to the included SOAP virtual API.
Some tests are created to test the service behavior in case of incorrect requests, or to show how to create complex scenarios in ReadyAPI.

REST Sample Project

Simulates a user looking at the authorization form and logging in to the attached REST virtual service.

Data-Driven Sample Project

Takes data from a Grid data source and sends multiple requests to the Google Maps API.
Note: Find the link to this project on the Dashboard.

Virtualization Sample Project

Demonstrates how to use ReadyAPI to test both REST and SOAP services in the same project. Contains two test cases working with SOAP and REST virtual APIs.

Authentication Sample Project Contains the test cases that show how you can authenticate to a service in ReadyAPI:
  • Basic Auth – Logs in to the browserspy.dk web service by using the Basic authentication.

  • OAuth2 - Browser client – Simulates a browser and authenticates to the Google API. It uses the Implicit Grant method.

  • OAuth2 - Desktop client – Simulates a desktop client and authenticates to the Google API. It uses the Authorization Code Grant method.

  • OAuth2 - Automation – Demonstrates how you can automate OAuth 2.0 token retrieval in your tests.

Location

You can find ReadyAPI sample projects in the <ReadyAPI>/tutorials folder:

• Windows: <Program Files>/SmartBear/ReadyAPI-3-56-0/tutorials
     Program Files or Program Files (x86)
• Linux: /home/<user-name>/SmartBear/ReadyAPI-3-56-0/tutorials
• MacOS: /Applications/ReadyAPI-3-56-0.app/Contents/java/app/tutorials

How to Open

From the Main Menu

Select File > Import Project from the main menu, and then choose a sample project file in the subsequent dialog:

Web service testing with ReadyAPI: Open sample project

ReadyAPI project files have the .xml extension.

From the Start Page

Open the start page and select the project you need from the Sample Projects list:

Functional Testing: Sample Projects

Click the image to enlarge it.

From the Dashboard

Switch to Dashboard and find the project you need in the Sample Projects section:

Functional Testing: Sample Projects

Click the image to enlarge it.

Tip: By default, this section displays all the sample projects in ReadyAPI. Click and select Test Projects to limit the options to functional tests, security tests and Online Service examples.

See Also

About Virtualization in ReadyAPI
Creating Your First Functional Test

Highlight search results