- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Debomita Bhattacharjee has Published 867 Articles
![Debomita Bhattacharjee](https://www.tutorialspoint.com/assets/profiles/210947/profile/60_171666-1594382095.jpg)
Debomita Bhattacharjee
15K+ Views
We can run tests using a test runner file for Cucumber. The test runner file should contain the path of the feature file and step definition file that we want to execute.Code Implementation of the Feature fileFeature − Login ModuleScenario − Welcome Page Login verificationGiven User is on Welcome PageThen Welcome ... Read More
![Debomita Bhattacharjee](https://www.tutorialspoint.com/assets/profiles/210947/profile/60_171666-1594382095.jpg)
Debomita Bhattacharjee
4K+ Views
We can create a test runner file for Cucumber. This can be done using the below steps −Step1− Click on the File menu in Eclipse. Then select the option New. Next click on Other.Step2− Click on Maven Project from the Maven folder. Then click on Next.Step3− Proceed with the further ... Read More
![Debomita Bhattacharjee](https://www.tutorialspoint.com/assets/profiles/210947/profile/60_171666-1594382095.jpg)
Debomita Bhattacharjee
5K+ Views
We can auto-generate a step definition file to a feature file in Cucumber. This can be done by using the Tidy Gherkin plugin which is available as a Chrome extension.Step1− Navigate to the below link to access the Tidy Gherkin plugin.https://chrome.google.com/webstore/detail/tidygherkin/ nobemmencanophcnicjhfhnjiimegjeo?hl=en-GBStep2− Then click on the Add to Chrome button.Step3− ... Read More
![Debomita Bhattacharjee](https://www.tutorialspoint.com/assets/profiles/210947/profile/60_171666-1594382095.jpg)
Debomita Bhattacharjee
4K+ Views
We can map a step definition file to a feature file in Cucumber. This can be done using the below steps −Step1− Create a feature file with .feature extension(say Login.feature) with the following −Feature − Login ModuleScenario − Welcome Page Login verificationGiven User is on Welcome PageThen Welcome page should ... Read More
![Debomita Bhattacharjee](https://www.tutorialspoint.com/assets/profiles/210947/profile/60_171666-1594382095.jpg)
Debomita Bhattacharjee
3K+ Views
We can create a step definition file for Cucumber. This can be done using the below steps −Step1− Click on the File menu in Eclipse. Then select the option New. Next click on OtherStep2− Click on Maven Project from the Maven folder. Then click on Next.Step3− Proceed with the further ... Read More
![Debomita Bhattacharjee](https://www.tutorialspoint.com/assets/profiles/210947/profile/60_171666-1594382095.jpg)
Debomita Bhattacharjee
8K+ Views
We can use Assertion in response in Rest Assured. To obtain the Response we need to use the methods - Response.body or Response.getBody. Both these methods are a part of the Response interface.Once a Response is obtained it is converted to string with the help of the asString method. This ... Read More
![Debomita Bhattacharjee](https://www.tutorialspoint.com/assets/profiles/210947/profile/60_171666-1594382095.jpg)
Debomita Bhattacharjee
3K+ Views
We can transform the response to Java list in Rest Assured. This can be achieved when we have a JSON array Response. To convert the JSON array to List, we need to use the method as.(List.class).Once the JSON array Response is converted to a List, we need to convert it ... Read More
![Debomita Bhattacharjee](https://www.tutorialspoint.com/assets/profiles/210947/profile/60_171666-1594382095.jpg)
Debomita Bhattacharjee
2K+ Views
We can get the size of a JSON array response in Rest Assured. First, we shall obtain a Response body which is in JSON format from a request. Then convert it to string. Finally, obtain its length with the size method. Code Implementationimport static io.restassured.RestAssured.given; import org.testng.annotations.Test; import io.restassured.RestAssured; import ... Read More
![Debomita Bhattacharjee](https://www.tutorialspoint.com/assets/profiles/210947/profile/60_171666-1594382095.jpg)
Debomita Bhattacharjee
4K+ Views
We can create a Feature file for Cucumber. This can be done using the below steps−Step1− Click on the File menu in Eclipse. Then select the option New. Next click on OtherStep2− Click on Maven Project from the Maven folder. Then click on Next.Step3− Proceed with the further steps.Step4− Select ... Read More
![Debomita Bhattacharjee](https://www.tutorialspoint.com/assets/profiles/210947/profile/60_171666-1594382095.jpg)
Debomita Bhattacharjee
4K+ Views
We can add Cucumber Maven dependencies to a project. This can be done by following the below steps −Step1− 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.htmStep2− Add the following dependencies in the pom.xml file in ... Read More