API Test Creation Overview

Relevant for: API testing only

Use UFT's API testing features to test your non-GUI applications and other API processes.

Create a test that represents the activities that your application performs, and use checkpoints to assess the success or failure of the test. Use actual output data from your application in your test.

UFT provides a number of standard activities that test common application processes.

Standard Activities examples

Activity type Description/Examples
Flow Control activities

Examples: Wait, Break, and Conditional steps.

These activities enable you to customize your test to match any special application workflows.

String Manipulation activities Concatenate Strings and Replace String.
File system activities Enable you to test your application's interaction with the file system.
Database activities Enable you to test your application's ability to connect and communicate with a database.
FTP activities Enable you to test your application's ability to perform FTP-related procedures.
Network activities

Examples: HTTP Request and SOAP Request.

Enable you to test your application's connection with a network or web-based server.

JSON and XML activities Enable you to test your application's ability to convert XML and JSON data to text and vice versa.
Math and Date/Time activities Enable you to perform math operations or perform tasks using the system date and time.
Other Miscellaneous activities Custom Code activities, Run and End program activities, and a Report activity.

Back to top

Technology-specific activities examples

Activity type Description
A Call Java Class activity Enables you to test Java-based processes that run in your application
JMS (Java Message Service) activities Enable you to test your application's ability to communicate, publish, browse, receive, and check messages from a JMS queue.
IBM WebSphere MQ activities

Enable you to test your application's ability to communicate with, publish, browse, receive, and check messages from the IBM WebSphere MQ queue or topic.

SAP activities, which enable you to test your application's ability to communicate with an SAP server using IDOCS and RFCs.

Load Testing activities Enable you to add steps for your test to be run as a load test in LoadRunner.
HPE Automated Testing Tools activities Enable you to call a GUI test or action, API test or action, or Virtual User Generator script from UFT, QuickTest Professional, Service Test, or LoadRunner to use as part of your test.

Back to top

Custom activity examples, based on your services

Activity type Description
Web Service activities

Imported from a WSDL file.

For details, see Import a WSDL-based Web service.

Web Application activities

Imported from a WADL file.

For details, see Import a Web Application service,

REST Service activities

Created in UFT using the Add REST Service dialog box or by importing a Swagger REST API.

For details, see Create a REST service model.

Network Capture activities

Imported from a Network Capture file.

Back to top

Custom services

If the built-in activities are not sufficient for your needs, you can:

Use custom code activities that seamlessly integrate with UFT

Using customized code, you can also customize the behavior of existing activities using event handlers.

For details, see Event Handlers for API test steps.

Create custom test activities with the UFT Activity Wizard

The Activity Wizard enables you to specify the activity type and properties. It then exports the activity to the Toolbox pane for use in future testing sessions.

For details, see API Testing Extensibility.

Start > All Programs > HPE Software > HPE Unified Functional Testing > Tools > Activity Wizard

Back to top

API testing integration

Application Lifecycle Management(ALM).

You can save tests, business component, and test resources on ALM, enabling multiple users to store and access a shared repository of tests and test resources.

You can also use ALM's defect tracking abilities to record and manage application defects when running your tests.

Service Virtualization

In order to mimic services that your application may use, UFT integrates with Service Virtualization. After creating your service models in Service Virtualization, you then run them as a service for your test.

Other tools

by using HPE Automated Testing Tools activities you can integrate with additional HPE functional testing products by creating test steps that call a GUI test or action, API test or action, or a LoadRunner script.

These tests or scripts are created in the original application and call from within your test flow.

For details, see Call external tests or actions.

Back to top