
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Add Cucumber Layer on Top of REST Assured API Tests
We can add the Cucumber layer on top of Rest Assured API tests. This can be done by following the below steps:
Step 1 − Create a Maven project. The details on how to create a Maven project is discussed in detail in the below link −
https://www.tutorialspoint.com/maven/index.htm
Step 2 − Add the following dependencies in the pom.xml file in the project for Cucumber.
-
Cucumber JVM - Java dependency
https://mvnrepository.com/artifact/io.cucumber/cucumber-java
-
Cucumber JVM - JUnit dependency
https://mvnrepository.com/artifact/io.cucumber/cucumber-junit
Step 3 − Add the following dependencies in the pom.xml file in the project for Rest Assured.
-
Rest Assured dependency
https://mvnrepository.com/artifact/io.rest-assured/rest-assured
-
Jackson Databind dependency
https://mvnrepository.com/artifact/com.fasterxml.jackson.core/jacksondatabind