I have a Groovy class like this:
// All import stuffs
class Test extends GebSpec{
def setupSpec() {
// Works just fine
}
def setup() {
// Works just fine
}
// Now I have some helper functions
// and I want them to execute exactly in the same order
def "function 1" (){
// code goes here
}
def "function 2" (){
// code goes here
}
def "function 3" (){
// code goes here
}
}
I want to execute the helper functions exactly one after another. At this moment, they start executing randomly but they should follow the order like, at first "function 1", then "function 2" and at last "function 3". I tried with adding @Stepwise before the class but that did not help. I would really appreciate any suggestion or help.