Converting Gherkin Based Feature File to CSV Format

Modified on Thu, 7 Aug at 2:46 PM

TABLE OF CONTENTS

1.Overview

1.1.Converting Feature File into CSV Format

2. Related Articles

1.Overview

This article describes about the converter functionality for converting Gherkin-based Feature File generated in the Test Case folder into Comma-Separated Values (CSV) file format. When there are application changes, if you choose to re-scrape elements, then you can download all the existing elements along with re-scraped elements in a consolidated CSV format.

1.1.Converting Feature File into CSV Format

 To convert the generated Feature File into CSV file format, perform the following:


  1. Navigate to Test Cases.
  2. Select a test case and expand the folder.
  3. Click on download icon.
  4. Click on Download CSV to download the CSV file.

  5. The downloaded file displays scenario outline and Given When Then steps for a specific functionality.
  6. Save the generated CSV file into desired location.

    Example of a CSV File Structure:
  7. In API test automation if you wish to download CSV file, then perform the following:
    1. Select an API project and select a collection in Generate Script by clicking the master check box.
    2. In Selected Request List, click the data set check box from more option besides each request.
    3. Click on Generate Script.
    4. Navigate to Test Cases, choose last file and expand it.
    5. Click on download icon besides the txt format file.
    6. Click on Download CSV file.

    7. The downloaded file displays scenario outline along with Given When Then steps and an example table for a specific functionality, as shown.
    8. Save the generated CSV file into desired location.

      Example CSV File Structure














Behavior-Driven Development (BDD) Complaint Feature Files

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