LinkedIn
Copied!

Table of Contents

Test environment cleanup

Version:

Only available versions of this content are shown in the dropdown

After you run a unit test case or test suite, user and data pages used to set up the test environment and the parameter page are automatically removed by default.

You can override this behavior if you want the data from the current test to be available to the subsequent tests.

You can also apply additional data transforms or activities to remove other pages or information on the clipboard before you run more tests. Cleaning up the clipboard ensures that data pages or properties on the clipboard do not interfere with subsequent tests. For example, when you run a test case, you can use a data transform to set the values of the pyWorkPage data page with the AvailableDate, ProductID, and ProductName properties.

You can use a data transform to clear these properties from the pyWorkPage. Clearing these values ensures that, if setup data changes on subsequent test runs, the test uses the latest information. For example, if you change the value of the AvailableDate property to May 2018, you ensure that the data page uses that value, not the older (December 2018) information.

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.