Adding global and local init and cleanup to test cases
Last edited on
For sake of easier maintenance/more flexibility one should consider introducing an init/cleanup mechanism on a global level for the test scripts.
For this a small change to any test script is require, but this can be done en masse by using the search & replace functionality of text editor (or any other tool of your choice) to add the required from .. import * command to all your scripts at once.
Test script example:
Shared test suite resource or global script example:
Log Global/shared init() before test case init()
Log Test case init()
Log Global/shared init() after test case init()
Log Global/shared cleanup() before test case cleanup()
Log Test case cleanup()
Log Global/shared cleanup() after test case cleanup()
We would like to use Google Analytics to get a better understanding of how
you use the website.
By agreeing to this, your usage data will be stored in the USA and processed
by Google LLC. Both Google as well as federal US agencies can access this data
and combine it with any other data about you, such as your search history,
personal accounts or any other data known to Google.