lundi 5 mars 2018

How to run multiple test suites in another test suite with geb

I would like to run all my test suites. I want to call the test suites in one test suit called Allrun. Can I call test suites in another test suite. I am looking for something like this:

class Myfirst extends GebReportingSpec {

 def myfunction(){
    when:''
    at mypage1

    and:''
     element1.text() == "mytext1"
  }
}

class Mysecond extends GebReportingSpec {

  def mysecondFunction() {
    when:''
    at mypage2

    and:''
     element2.text() == "mytext2"

   }

 }

 class AlltestSuites extends GebReportingSpec {
     Myfirst myfirst = new Myfirst ()
     Mysecond  mysecond = new Mysecond ()


    def allrun(){
          myfirst.myfunction() 
          mysecond.mysecondFunction()
      }


  }

How can i do this? Does anyone has an idea

Aucun commentaire:

Enregistrer un commentaire