Information:

Environment

  • Dynatrace Synthetic Classic Platform
  • Web Services API

 

Symptoms

I would like to use the Web Services API to delete the scripts, please let us know how to do it.

Solution

The TestStatusUpdate method in the Test Management Web Services API allows you to delete a script.See TestStatusUpdate in the documentation for details.

To use this method, send the request to the Synthetic Classic Web Services servers, using SOAP. The endpoint is http://gpn.webservice.gomez.com/TestManagementWS_30/TestManagementService.asmx?WSDL.

You need to provide:

  • Your Synthetic Classic Portal username and password.
  • The monitor ID for the test or script you want to delete.  You can get the Monitor IDs can through the Windows Recorder. When you use the Open (Remote) command, the Monitor ID is displayed in the test list in the Open from Dynatrace Synthetic Classic Platform dialog box. See Opening a Script for details.


Use Case: Delete a Test (TestStatusUpdate)

In this use case, you want to delete a test, which decreases the number of active tests and increases the number of available tests. The number of tests that you can create is currently constrained to the number you purchased. So it is beneficial to delete tests when they are no longer useful to you. The method used for this is TestStatusUpdate(). Change the test’s status to Deleted and the test is deleted.

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:prov="http://www.gomeznetworks.com/schemas/provisioning">
<soapenv:Header/>
<soapenv:Body>
<prov:TestStatusUpdateRequest>
<prov:Credentials>
<prov:UserName>MyUser</prov:UserName>
<prov:Password>MyPassword</prov:Password>
</prov:Credentials>
<!- 1 or more repetitions: ->
<prov:TestStatusUpdate monitorId="270276" status="Deleted"/>
</prov:TestStatusUpdateRequest>
</soapenv:Body>
</soapenv:Envelope>

  1. Anonymous (login to see details)

    Currently, the Test Management API only supports changing status for BB tests. In other words, only BB test monitor can be deleted. Unassigned scripts cannot be deleted, LM/PLM/Mobile test monitors cannot be deleted either.

  2. Anonymous (login to see details)

    Confirmed with dev, users can delete unassigned or assigned BB/LM tests/scripts with this link: https://gsr.webservice.gomez.com/utascriptservice/UtaScriptService.asmx?op=DeleteScript