我在我的網頁BuyTicketSpec.groovy中創建了一個測試來購買一張票。用geb和spock在groovy中使用其他測試創建一個新測試
class BuyTicketsSpec extends GebReportingSpec {
def (String country, String userType, String type, String payment, String env) {
}
}
我已創建其他測試來修改ModifyTicketSpec o刪除票證DeleteTicketSpec。
我可以創建一個geb測試來將這個測試合併爲一個嗎?例如FullCycleTicket.groovy測試,我嘗試購買,修改和刪除票證。
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:
}
}
是否有可能使用geb和spock框架?
我感謝您的幫助。提前致謝。
謝謝aMoosingOne舉例說明我必須如何使用。我apreciatte你幫助! – Ibram