Guest User

Untitled

a guest
Jan 20th, 2018
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.97 KB | None | 0 0
  1. @Unroll
  2. def "scenario with different parameters"() {
  3. given:
  4. def service = new MyService()
  5.  
  6. when:
  7. def actualDataFile = service.doSomething(param1, param2, param3, param4, param5, number)
  8.  
  9. then:
  10. readFileAsString(actualDataFile) == readFileAsString(expectedDataFileName)
  11.  
  12. where:
  13. param1 | param2 | param3 | param4 | param5 | number | expectedDataFileName
  14. 'any' | 'aaa' | 'any' | 'any' | 'any' | 1 | 'expectedA.txt'
  15. 'any' | 'aay' | '0ny' | 'any' | 'any' | 2 | 'expectedB.txt'
  16. 'any' | 'ady' | '3ny' | 'a__' | 'a3y' | 3 | 'expectedC.txt'
  17. 'any' | 'ady' | '3ny' | 'a__' | 'a3y' | 4 | 'expectedD.txt'
  18. 'any' | 'ady' | '3ny' | 'a__' | 'a3y' | 5 | 'expectedE.txt'
  19. 'any' | 'ady' | '3ny' | 'a__' | 'a3y' | 6 | 'expectedF.txt'
  20. 'any' | 'ady' | '3ny' | 'a__' | 'a3y' | 7 | 'expectedG.txt'
  21. 'any' | 'ady' | '3ny' | 'a__' | 'a3y' | 8 | 'expectedH.txt'
  22. // etc
  23. }
Add Comment
Please, Sign In to add comment