4

I am working on automation tests with selenium webdriver and spock framework. I would like to know how can I integrate serenity with spock testing? My project is build with gradle and groovy is the language used for writing tests. Any sample class files or links will be appreciated.

Thanks, RV

RV_Dev
  • 435
  • 1
  • 7
  • 21

1 Answers1

3

Have you already checked out geb? (http://gebish.org/) Geb is the right webdriver abstraction layer to be used with spock.

rdmueller
  • 10,742
  • 10
  • 69
  • 126
  • 1
    Yes but I am looking for the comprehensive reporting that serenity provides. I have worked with serenity and cucumber but was wondering if the same is available in spock – RV_Dev Jul 17 '17 at 15:07
  • you can create comprehensive reporting with spock and the spock-reports plugin by renato athaydes. Whoever, afaik, there is nit such a template out of the box. You have to create your own. – rdmueller Jul 17 '17 at 17:08
  • But this does not give me a pie chart like in cucumber/serenity reports, does it? – RV_Dev Jul 18 '17 at 18:17
  • If you gather the data within the template and use a javascript library or something like google charts to render it.... Geb is a really great tool, but I do understand the reporting needs and it is not too easy to create a report template... :-( Maybe I should create one when I get around to it... – rdmueller Jul 18 '17 at 19:58