【发布时间】:2018-03-05 10:43:38
【问题描述】:
我想运行我所有的测试套件。我想在一个名为 Allrun 的测试套件中调用测试套件。 我可以在另一个测试套件中调用测试套件吗?我正在寻找这样的东西:
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()
}
}
我该怎么做?有没有人有想法
【问题讨论】:
-
您需要按特定顺序吗?或者只是运行所有
*Spec -
我不明白这个问题。 Maven 和/或您的 IDE 应该会自动为您执行此操作。
标签: testing groovy automated-tests spock geb