You can use Dynatrace monitoring solutions to test your web services. Browser agents provide a limited amount of support for monitoring web services through the HTTP Request feature.
The HTTP action enables you to define and specify the necessary requests the test should make. It works well with tests making static API calls.
These steps create a single request script. You can, however, add as many requests as necessary.
In the Recorder, select File > New Script.
This creates a new, empty transaction. The timeline consists of one empty step.
To add a new HTTP action , hold the mouse pointer over the action separator , then click the plus sign ( + ) that appears and select HTTP from the list.
The HTTP Requests tab for the action is displayed.
Edit the HTTP action.
Click the add icon to add a row to define the request for the web service call. Select the appropriate method and enter the URL.
Click More beside the row to display the Details tab in a popup window.
If you selected POST for the request, enter the POST content in the Body area.
Add any required headers for the request, if applicable.
After the HTTP action, add a Wait action .
Configure the Wait action as Wait for Network.
It is important to follow each HTTP action with a Wait for Network action to enable the agent to wait the appropriate amount of time for the request to complete.
For more information, see Wait actions.
Add a Validation action to match text within the return content to verify the script was successful.
This step is not required, but as a best practice, validations should be used throughout a transaction, especially on the final step.