Reactivate a test (TestStatusUpdate, UpdateTests)

For this use case, you want to reactivate a test, which increases the number of active tests and decreases the number of available tests. Tests can be provisioned in the inactive state or made inactive using the TestStatusUpdate method or the UpdateTests method. When these inactive tests are needed, they can also be reactivated using the TestStatusUpdate or UpdateTests method.

Note

Inactive tests cannot be made active if they do not deploy to a valid collection of monitor sites.

Sample TestStatusUpdate request

The following TestStatusUpdate message can be used to reactivate an inactive test:

<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="Active"/>
      </prov:TestStatusUpdateRequest>
   </soapenv:Body>
</soapenv:Envelope>

Sample UpdateTests request

The following UpdateTests message can be used to reactivate an inactive test:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
                  xmlns:prov="http://www.gomeznetworks.com/schemas/provisioning">
   <soapenv:Header/>
   <soapenv:Body>
      <prov:UpdateTestsRequest>
         <prov:Credentials>
            <prov:UserName>MyUser</prov:UserName>
            <prov:Password>MyPassword</prov:Password>
         </prov:Credentials>
         <prov:Monitors>
            <prov:Monitor name="Site Management Test SingleStepMonitor"
                          folder="Site Management Tests"
                          agentType="IE"
                          summaryFlag="On"
                          includeRenderTimeFlag="On"
                          frequencyInMins="60"
                          expirationDate="2012-08-15T10:17:12"
                          ipVersion="IPv4_only"
                          monitorStatus="Active"
                          folderStatus="Active"
                          monitorId="263756"
                          createDate="2012-07-19T14:17:11.953"
                          modifyDate="2012-07-21T00:05:00.583"
                          scriptId="263756">
               <prov:MonitorSites>
                  <prov:MonitorSite siteId="865"/>
                  <prov:MonitorSite siteId="866"/>
                  <prov:MonitorSite siteId="873"/>
                  <prov:MonitorSite siteId="880"/>
                  <prov:MonitorSite siteId="886"/>
               </prov:MonitorSites>
               <prov:Steps>
                  <prov:Step stepSeqNum="0">
                     <prov:URL>http://www.dynatrace.com</prov:URL>
                     <prov:DisplayName/>
                  </prov:Step>
               </prov:Steps>
            </prov:Monitor>
         </prov:Monitors>
      </prov:UpdateTestsRequest>
   </soapenv:Body>
</soapenv:Envelope>

If a folder’s status is currently Inactive, changing its status to Active reactivates it and all of the inactive tests that it contains.