Every browser test, be it a single step monitor or a multistep monitor, may be assigned a folder. Populate the folder field with a folder name, and the test is provisioned under a group bearing the name you supplied in the folder field. If the group does not exist, it is created. If the group already exists, it is used for the provisioning request.
The following ProvisionTests request creates a test named
Test in Folder under a folder called
In this example, the first MonitorSite is defined by the siteId only. The second MonitorSite includes the entire site definition, even though only the siteId is required. If the entire MonitorSite is being collected from a request and programmatically being included in the ProvisionTests request, the web service ignores everything except the siteId.
Retrieve a list of all the tests created under a given group by supplying a MonitorFilter in your GetTests() request. In this case, the MonitorFilter will include a Group filter, so that the value of Group is the name of the folder containing the tests you are interested in. The GetTests() query returns only those tests that match the group filter.
The following is a GetTestsQuery() that returns all the tests within a folder named
At the time of provisioning, if you supply a folder, also supply a folder status (generally active to begin with). If, on an UpdateTests() request, you set the folder status of a test to Inactive, you will deactivate all the tests in the folder. You can reactive the entire group by setting the folder status to Active.
Currently, the UpdateTests() method is the only means of performing status updates on an entire folder. There is not a more granular FolderStatusUpdate method available at this time.
Currently, there is no way to delete a folder except through the Dynatrace Portal.