- 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
What is Cucumber dry run in Selenium?
Cucumber dry run is used for compilation of the Step Definition and Feature files and to verify the compilation errors. The value of dry run can be either true or false. The default value of dry run is false and it is a part of the Test Runner Class file.
In case the value of dry run is set to true, Cucumber will verify individual steps in the Feature file and the implementation code of steps in Feature file within the Step Definition file.
A message is thrown, if any of the steps in the Feature file is not implemented in the Step Definition file. A dry run parameter is a part of the @CucumberOptions which is used to configure the test settings.
Example
Implementation of Test Runner Class file
import org.junit.runner.RunWith; import cucumber.api.CucumberOptions; import cucumber.api.junit.Cucumber; @RunWith(Cucumber.class) @CucumberOptions( features = "Feature" ,glue={"stepDefinition"} ,strict = true ,dryRun = true ) public class TestRunner { }
- Related Articles
- Differences Between Selenium and Cucumber
- Ansible Playbook Dry Run Run Playbook in Check Mode
- What's the difference between RSpec and Cucumber in Selenium?
- How to run precondition and postcondition test methods in Cucumber?
- What is the Background keyword in Cucumber?
- What is the Example keyword in Cucumber?
- How to run tests using a test runner file for Cucumber?
- What is the Scenario Outline keyword in Cucumber?
- What is dry ice?
- How to run Selenium WebDriver test cases in Chrome?
- What is run time polymorphism in C#?
- How to run Selenium tests on Chrome Browser using?
- How to run Selenium tests on Internet Explorer browser?
- What are the main file components in Cucumber?
- What do you mean by glue in Cucumber?

Advertisements