0

Currently my team uses Cucumber as a testing framework.

We need to start testing REST web services. I understood that REST-Assured is one of the leading tools for that.

  1. Can these tools be used in coordination? An example or a link would be great.
  2. If yes, what are the advantages of using Rest-Assured together with Cucumber?
  3. Also I've heard about Serenity. What are its advantages over Cucumber, if any, and is it recommended to use?

Thanks!

  • I'd like to understand why I was downvoted here – dushkin Jun 13 '19 at 13:14
  • I'm not the downvoter, but I would guess that because your point 3 makes your question too broad for a single question. Asking if Rest-Assured can be used with Cucumber and if so what advantages does that bring makes a good question. Questions you have about Cucumber vs Serenity should probably be a separate question. – Kate Paulk Jun 13 '19 at 15:48
  • 1
    Thank you Kate. It maybe that you are right, but maybe not. To avoid unnecessary anger, it would have been better if downvoting was enforcing an explanation of the reason. – dushkin Jun 13 '19 at 16:33
  • 1
    @dushkin In my experience, it's better to just not let it get to you =) – corsiKa Jun 13 '19 at 18:27
  • 1
    This is so true!!! stackoverflow.blog/2018/04/26/… – dushkin Jun 15 '19 at 13:40
1

1 - Sure.

Cucumber is a test runner. The goal of this kind of tool is only to execute a suite with certain structure is a certain way.

Cucumber manages the execution of certain methods according to the matches of .feature files.

Rest-assure is a library. It abstracts HTTP calls.

You can add anything under Cucumber step definition methods, including statements with Rest Assured.

More details here.

2 - You will be able to abstract HTTP calls due Rest Assured and define scenarios in a BDD fashion.

3 - Mostly opinion-based; both have a similar learning-curve and features.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.