Delete Object
Definition
With this Teststep type, an object or objects from a previous Teststep is marked for deletion.
To delete it from the database, add a Persist step.
Actions
Add a Delete Object Teststep
There are two options to Delete an Object. The first option is quicker:
Option 1:
- Click on the '' button on the Teststep that returns the object that you want to delete, and choose " Delete output".
Option 2:
- Select the Test Case that you want to create a Teststep in.
- Click " Add" and Click " Delete teststep" to add a Delete Object Teststep.
- Select an entity. You can search by name.
- Select the previous Teststep that returns the object that needs to be deleted. This could be a Create, Change or Retrieve Teststep but also a Microflow Teststep that returns an object.
- Click on the "Save" button.
When deleting objects from multiple entities, always make sure to have the Delete teststeps in the right order, to make sure domain model Delete Constraints don't prevent deletion of the object(s).
Note that if a retrieved object is deleted by a Delete Object Teststep in MTA, and afterwards changed in another Teststep, MTA will not give a warning during test design, but give a runtime error on test execution because the object to be changed is no longer available.