TABLE OF CONTENTS
1. Overview
In the process of test automation, working with feature files that have different naming conventions but represent the same functionality can be essential for ensuring coverage across various scenarios. This overview explains how to generate test cases using feature files that share similar content but differ in their filenames, all stored within the same folder and different file name different folder.
For example, if you are registering a user on an e-commerce website, you might generate a separate feature file for the scenario of OTP verification via email instead of mobile OTP verification.
2. Generating Feature Files
To generate feature files with a separate feature, perform the following:
Make sure to select the 'Requirement Filter' option' in the Feature File Settings page and click on update.
- In the Test Design screen, while recording a scenario.
- In save scenario form, while filling the details the details like Scenario name, Scenario Outline and Custom Tag, fill the Folder Structure and Separate Feature fields also.
- In this section, to generate feature files with different names, enter a name in both the Separate Feature and Folder Structure text boxes. The same name will be displayed in the Test Cases as entered by the user.
- Click the Submit button to view 'Scenario Created Successfully' message.
- The Feature Files will be generated in a separate folder in the Test Cases folder. To access the feature file, navigate Test Cases Tab.
Note that generated Feature File does not display a timestamp when you hover over the corresponding file. - The Feature name will also be displayed inside the specified feature file.
3. Related Articles
Common Issues and Resolution in Edit Scenario
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article