mermet
17 years agoOccasional Contributor
How to share data between Test Cases belonging to the same Test Suite
Hi, I want to share data between all Test Cases that are in my Test Suite.
I just found out that the scope of Context properties are only for the Test Case.
Properties can be read from file (or Database I suppose), but I want to share pre-processed data between Test Cases. Not only data directly accessed from a File.
For instance my Test Suite includes an initialisation Test Case that is responsible to prepare some list (or even things like myXML). I want to have those data to be available for each Test Case so they can be used in Groovy script to set the requests for instance.
How can this be achieved ?
Thanks a lot.
I just found out that the scope of Context properties are only for the Test Case.
Properties can be read from file (or Database I suppose), but I want to share pre-processed data between Test Cases. Not only data directly accessed from a File.
For instance my Test Suite includes an initialisation Test Case that is responsible to prepare some list (or even things like myXML). I want to have those data to be available for each Test Case so they can be used in Groovy script to set the requests for instance.
How can this be achieved ?
Thanks a lot.