Exercise 6c: Build and parameterize a Web service test

In Exercise 6b: Import a Web service, you imported a WSDL file containing the details of your Web service. After you imported the service, UFT displayed the methods in the Toolbox pane. From the Toolbox pane, you can use any of these methods to create a test.

In this lesson, you will create a Web service test and parameterize it to see how Web service tests are created using the UFT API testing interface.

In the Book Flights GUI test that you created in Lesson 3: Add steps to a test, the order of the application windows was as follows:

When you create an API test of the same application, you want to make the steps match the application's flow as closely as possible. In the list of methods imported from the WSDL file, you have the following:

  • CreateFlightOrder
  • GetFlights
  • GetFlightOrders
  • UpdateFlightOrder
  • DeleteFlightOrder
  • DeleteAllFlightOrders

In order to match the flow of the user interface, you need to create API test steps that find the flight, and then create a flight order based on the customer input.

In this exercise, you will create two test steps: GetFlights and CreateFlightOrder.

Now that you have created a test for the flight reservation application's Web service, you can run the test and see how UFT runs and reports run results for the Web service. Continue with Exercise 6d: Run a Web service test to learn more.