Generating Separate Feature Files with different names

Modified on Mon, 10 Mar at 12:48 PM


TABLE OF CONTENTS

1. Overview

2. Generating Feature Files

3. Related Articles


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 name within same test case folder, perform the following:
Make sure to select the 'Requirement Filter' option' in the Project Settings page and click Submit.
 

  1. In the Main Canvas, navigate to Edit Scenario feature. For more information on Edit Scenario feature, refer to Managing Test Cases using Edit Scenario workflow.
  2. In the Edit Scenario Form, click the Edit icon corresponding to the scenario you want to edit. 
  3. Click the down arrow in the Scenario Form to expand it.
  4. In this section, to generate feature files with different names, enter a name in both the Separate Feature and Folder Structure text boxes, as shown. The same name will be displayed in the Test Cases folder as entered by the user.
  5. Click the Save button to view 'Data Updated Successfully' message. Then, click Back arrow and  Close button.
  6. The Feature Files will be generated in a separate folder in the Test Cases folder, as shown. To access the feature file, navigate to the appropriate project folder and expand the Test Cases Folder in the Project Explorer pane.
    Note that generated Feature File does not display a timestamp when you hover over the corresponding file.
  7. The Feature name will also be displayed inside the specified feature file.

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

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article