I want to do action takeScreen() every 'when' step (Spock). How can I do that without calling this function every 'when' step.
def "doSomeAction"() {
when:
doSmth()
takeScreen()
then:
at SomePage
when:
doAction()
takeScreen()
then:
at SomePage
}
def takeScreen(){
//code there
}
Aucun commentaire:
Enregistrer un commentaire