Resource Handling

The folder TBox Automation Tools->Resource Handlingin the Standard subset contains the Module TBox Delete Resource.

This Module allows you to delete resources., i.e. references to files. You can then re-use the name of the resource.

The Module TBox Delete Resource has the following ModuleAttribute:

Attribute

Description

Resource

Name of the resource that you want to delete.

When you run your tests, keep the following things in mind:

  • This Module only removes the reference to the file in Tosca Commander. Tricentis Tosca doesn't delete the file itself.

  • If the specified resource exists and can be deleted, the associated test passes.

  • If the specified resource exists but can't be deleted, the associated test fails.

  • If the specified resource doesn't exist, the associated test passes.

In this example, Tricentis Tosca performs the following actions:

  • Creates a resource with the name MyResource. This resource is the file resource.xml, located at C:\Temp.

  • Deletes the resource named MyResource.

Delete a resource