mercredi 2 décembre 2015

Create a new test using other test in groovy with geb and spock

I have created one test to buy a ticket in my webpage BuyTicketSpec.groovy.

  class BuyTicketsSpec extends GebReportingSpec {

    def (String country, String userType, String type, String payment, String env) {

    }
}

I have created others tests to modify ModifyTicketSpec o delete a ticket DeleteTicketSpec.

Could I create a geb test to combine this test in one? For example FullCycleTicket.groovy test where i try to buy, modify and delete a ticket.

      class FullCycleTicketsSpec extends GebReportingSpec {

        def (String country, String userType, String type, String payment, String env) {

setup:
//initialize

when:
//launch BuyTicketSpec
//launch ModifyTicketSpec
//launch DeleteTicketSpec

then:
//

where:

        }
    }

Is it possible using geb and spock framework?

I appreciate your help. Thanks you in advance.

Aucun commentaire:

Enregistrer un commentaire