I have framework that has been written in Groovy, Spock and JUnit. Are there any way for getting variable from CreateResource
class (after its execution) in GetResource
class?
@RunWith(Suite.class)
@Suite.SuiteClasses({
CreateResource.class,
GetResource.class
})
public class SimpleTestSuit {}
For example, I would like to book hotel in CreateResources
class and will get booking number in GetResources
class? In the same time, I want to save order of execution.
Maybe, there is any an approach for that. Either using some context, or anything else.