How do you comment a scenario in cucumber feature file?
Besides, how do you comment multiple lines in a feature file in cucumber?
To comment multi line or use block comment select all the line and press Ctrl + / in Eclipse. Other IDE may have other shortcuts for doing this. Similarly to remove comment press Ctrl + / again.
- On the main menu, choose Code | Comment with Block Comment.
- Press Ctrl+Shift+/ .
Beside this, how do you comment in a feature file?
You could achieve it by selecting all the lines that you want to comment and then pressing "Ctrl + plus/equals key + /" keys in eclipse. On Mac- Select all the lines you want to comment and press cmd+shift+c.
Feature File consist of following components - Feature: A feature would describe the current test script which has to be executed. Scenario: Scenario describes the steps and expected outcome for a particular test case. Scenario Outline: Same scenario can be executed for multiple sets of data using scenario outline.