Ghaythfd/gherkin-scenarios huggingface dataset:
human: Complete this Gherkin scenario:

Scenario Outline: Dashboard welcome - Access Query screen using widget
    Given I am logged in as <user>
    And I check that <num_of_widgets> widgets are displayed which are <widget_titles>
    And I hover on the legend items of the <widget_name> widget and I check that the relative data is displayed on the pie chart

gpt: Scenario Outline: Dashboard welcome - Access Query screen using widget
    Given I am logged in as <user>
    And I check that <num_of_widgets> widgets are displayed which are <widget_titles>
    And I hover on the legend items of the <widget_name> widget and I check that the relative data is displayed on the pie chart
    When I click on the <widget_name2> widget
    Then I should be on <screen> with title beginning with <banner>
    And I go back to the welcome page
    And The welcome page matches the expected layout by comparing it with the reference image <refImage>
    Examples:
      | user                    | widget_titles                                                                                  | num_of_widgets | widget_name              | widget_name2              | refImage                                              | screen               | banner    |
      | TAV_standard.dashboard2 | Portfolios;Sec per type;Security Per Asset Class                                               |              3 | Security Per Asset Class | Sec per type              | config&ressources/Navigation/ref_screenshots/ref2.png | My Securities        | Security: |
      | TAV_standard.dashboard3 | Security Per Asset Class;Issuer Ratings - Fitch LT;Securities;Sec per type;Security Per Market |              5 | Security Per Market      | Issuer Ratings - Fitch LT | config&ressources/Navigation/ref_screenshots/ref4.png | My Business entities | Entity:   |
human: Finish writing this test scenario:

Scenario Outline: Upload Document And Save using ACTION menu
        Given I am logged as <user> on <screen_name>
        When I search and select the line of <document_name>
        And I upload the file <file_name> to a <document_name>

gpt: Scenario Outline: Upload Document And Save using ACTION menu
        Given I am logged as <user> on <screen_name>
        When I search and select the line of <document_name>
        And I upload the file <file_name> to a <document_name>
        And I perform the action <save_button>
        And A "info" toast is displayed with "ACTION ENDED: Recording object(s)"
        Then The uploaded file is displayed with <file_name> to document <document_name>
        Examples:
            | user              | screen_name | save_button | document_name                | file_name                   |
            | TAV_standard.user | Documents   | Save All    | TAV_Upload_Testing_Document2 | TAV_Upload_Testing_file.txt |
human: Write a Gherkin scenario for testing configure and run an archive data

gpt: Scenario Outline: Configure and run an archive data
    Given I am logged in as <user>
    And I open query screen <screen_name1> which title begins with <banner1>
    And I switch to mode config
    And I click on the banner
    And I check the text <text> is displayed in the config panel
    And I open the drop-down settings <settings_node>
    And I desactivate the options <options1>
    And I save the screen configuration
    And I switch to mode edit
    And I open query screen <screen_name2> which title begins with <banner2>
    And I search and open the task <task>
    And I run the scheduled task using the button <button> from the actions menu
    And I check that a popup is displayed with the message "Task launched."
    And I close the popup
    When I open query screen <screen_name3> which title begins with <banner3>
    And I search the task <task>
    And The column <column> of the task is equal to <value>
    And I open query screen <screen_name1> which title begins with <banner1>
    Then The object <object> is not displayed in the grid
    And I switch to mode config
    And I click on the banner
    And I open the drop-down settings <settings_node>
    And I activate the options <options2>
    And I save the screen configuration
    And I switch to mode edit
    And The object <object> is not displayed in the grid
    And I set an advanced list filter <field_name>  <operator>  <field_value>
    And I click on Search button
    And The object <object> is displayed in the grid
    Examples:
      | user              | screen_name1    | banner1   | text                            | settings_node | options1                                 | options2              | screen_name2    | banner2          | task                | button   | screen_name3 | banner3    | column | value           | object         | field_name | operator | field_value                |
      | TAV_standard.user | My Securities 3 | Security: | Data modeling : My Securities 3 | General       | Full Object Loading;Use Provider Service | Load Archived Objects | Scheduled Tasks | Scheduled tasks: | COMPLETE_ARCHIVING2 | Run task | Job Reports  | Job report | Status | Successful task | TAV_ToArchive3 | Search In  | =        | Main and Archived database |
human: Generate a feature file scenario for link objects using link reallocation

gpt: Scenario Outline: Link objects using link reallocation
    Given I am an authorized user <userApi>
    And I launch task <task_code> using an ID from API path <taskExecution_path>
    And I should get a response with status <status_code1>
    And I send a GET request to <taskExecution_path> with the retrieved task ID
    And I should get a response with status <status_code2>
    And The received object should include the field <field> with value <value> under <element>
    And I am logged in as <user>
    And I open query screen <screen_name> using the path <path>
    And I set an advanced list filter <field_name1>  <operator>  <field_value1>
    And I click on Search button
    When I search and open the object which the column <field_name2> equal <testCaseName>
    Then A grid is displayed under the block <block> which contains <numOfRows> rows with values on columns <columns> must equal to <rows_values>
    Examples:
      | userApi      | user              | taskExecution_path | task_code    | field  | value   | element   | status_code1 | status_code2 | screen_name  | banner       | numOfRows | columns     | rows_values | field_name1 | field_value1                | operator | field_name2 | testCaseName           | detail_screen    | block       | path                                                             |
      | TAR_api.user | TAV_standard.user | task-executions    | RUN_TESTING2 | status | SUCCESS | execution |          201 |          200 | Test Reports | Test reports |        13 | Test Result | Successful  | Test Suite  | Test suite LINKREALLOCATION | =        | Test Case   | TEST LINK REALLOCATION | Edit Test Report | Test Result | Screen / Datahub Factory / System Administration / Test Scenario |
human: Generate a Cucumber scenario to test add a new bookmark subfolder

gpt: Scenario Outline: Add a new bookmark subfolder
    Given I am logged in as <user>
    And I acces to the bookmark folder <Bookmark_folder>
    When I add a bookmark folder
    And I check that a popup is displayed with a message <message> and 2 options <button1> <button2>
    And I enter a folder name <subfolder_name>
    And I check that an orange badge is displayed on the edited field with value <subfolder_name>
    And I click on button <button1>
    Then A new bookmark sub folder <subfolder_name> is displayed
    And The bookmarks breadcrumb displays the following path <breadcrumb_path>
    Examples:
      | user        | subfolder_name | Bookmark_folder    | message                           | button1 | button2 | breadcrumb_path      |
      | TAV_User_EN | testSubfolder  | folderForSubfolder | Enter a folder name               | Ok      | Cancel  | > folderForSubfolder |
      | TAV_User_FR | testSubfolder  | folderForSubfolder | Veuillez saisir le nom du dossier | Ok      | Cancel  | > folderForSubfolder |
human: Finish writing this test scenario:

Scenario Outline: Add a bookmark screen
    Given I am logged as <user> on <screen_name>
    And I go back to Homepage
    When I hover on recent screen <screen_name>
    And In recent screens I click on button <action> in <screen_name>

gpt: Scenario Outline: Add a bookmark screen
    Given I am logged as <user> on <screen_name>
    And I go back to Homepage
    When I hover on recent screen <screen_name>
    And In recent screens I click on button <action> in <screen_name>
    And I check that a popup is displayed with a title <title> and a message <message>
    And I click on button <button>
    And I check that the screen <screen_name> is displayed under Bookmarks
    And I click on bookmark screen <screen_name>
    Then I should be on <screen_name> with title beginning with <banner_fixed_text>
    Examples:
      | user        | screen_name         | action            | title       | message                                                      | button | banner_fixed_text |
      | TAV_User_EN | My Portfolios 2     | Add Bookmark      | Information | Configuration of My Portfolios 2 (Query) successfully saved. | Close  | Portfolio:        |
      | TAV_User_FR | Mes Portefeuilles 2 | Ajouter un favori | Information | Configuration de Mes Portefeuilles 2 (Query) sauvegardée     | Close  | Portfolio:        |
human: Add the remaining steps to this scenario:

Scenario Outline: Upload document from detail screen and download from query screen
        Given I am logged as <user> on <screen_name>
        And I search and select the line of <document_name>
        And I upload the file <file_name> to a <document_name>
        And I go to detail screen <detail_screen> of <document_name>
        And I save

gpt: Scenario Outline: Upload document from detail screen and download from query screen
        Given I am logged as <user> on <screen_name>
        And I search and select the line of <document_name>
        And I upload the file <file_name> to a <document_name>
        And I go to detail screen <detail_screen> of <document_name>
        And I save
        And A "info" toast is displayed with "ACTION ENDED: Recording object(s)"
        And I check the field <field> is displayed with value <file_name>
        And I logg in with <user> on <screen_name> using a new browser
        And From the new browser i search and select the line of <document_name> and download the related file
        Then <file_name> is successfully downloaded in Downloads directory
        And The Downloaded file from Query should be equal to <ref_file>
        Examples:
            | user              | screen_name | field            | file_name                   | detail_screen                          | document_name                | save button | ref_file                                                                  |
            | TAV_standard.user | Documents   | File (on server) | TAV_Upload_Testing_file.csv | Document: TAV_Upload_Testing_Document3 | TAV_Upload_Testing_Document3 | Save        | config&ressources/DataManagement/toBeUploaded/TAV_Upload_Testing_file.csv |
human: Create a BDD test scenario for rename  directories with an unauthorized user

gpt: Scenario Outline: Rename Directories with an unauthorized user
        Given I am logged in as <user>
        And I switch to mode config
        And I open the user menu <user_menu>
        And I check that the folder <existing_folder> is displayed under <user_menu>
        When I hover on the folder <existing_folder>
        Then The rename icon is not available on the folder <existing_folder>
        Examples:
            | user                 | user_menu         | existing_folder      |
            | unauthorized.user.EN | DataHub warehouse | Folder_Unauthorized  |
            | unauthorized.user.FR | DataHub factory   | Dossier_Non_Autorise |
human: Complete this Gherkin scenario:

Scenario: Detail screen - Copy/paste from an hierarchical grid to Excel
    Given I am logged as <user> on <screen_name>
    And I search and select the line of <object_name>
    And I perform the action <action>
    And I select the tab <Tab>
    And I search and open the object which the column <column> equal <object_name>
    And I select manually all the grid of the block <block>
    And I perform the keyboard shortcut <shortcut1>

gpt: Scenario: Detail screen - Copy/paste from an hierarchical grid to Excel
    Given I am logged as <user> on <screen_name>
    And I search and select the line of <object_name>
    And I perform the action <action>
    And I select the tab <Tab>
    And I search and open the object which the column <column> equal <object_name>
    And I select manually all the grid of the block <block>
    And I perform the keyboard shortcut <shortcut1>
    And I open Excel using a new browser
    And I log in with the user <excel_user> and the password <password> with the second browser
    And I Create a new blank workbook with the second browser
    And I Click on the first cell of the sheet with the second browser
    When I apply the keyboard shortcut <shortcut2> from the second browser
    And I download the sheet from the second browser
    Then The content of the downloaded file should be equal to <file_ref>
    Examples:
      | user              | screen_name          | object_name    | action                       | Tab | column | block         | shortcut1 | excel_user              | password    | shortcut2 | file_ref                                              |
      | TAV_standard.user | My Business entities | Air France-KLM | Show Detail 'Agent - Detail' | ESG | Agent  | Pillar Scores | Ctrl + C  | dh_testauto@outlook.com | datahub2025 | Ctrl + V  | config&ressources/Navigation/DHRD-92749_ref_file.xlsx |
  @DHRD-92750 @skipped @waiting_for_ @DHRD-112273
human: Write a Gherkin scenario for testing detail grid navigation -  export  c s v with groups closed ( standard -  grid)

gpt: Scenario: Detail grid navigation - Export CSV with groups closed (Standard - Grid)
    Given I am logged as <user> on <screen_name>
    And I go to detail screen <detail_screen> of <object_name>
    And I select the tab <tab>
    When I download export file using button <csv_button> toolbar from query screen
    Then export csv file is successfully downloaded
    And The content of the downloaded <file_type> file should be equal to <file_ref>
    Examples:
      | user              | file_type | screen_name   | detail_screen                | object_name   | tab      | csv_button | file_ref                                                                                     |
      | TAV_standard.user | csv       | My Securities | Equity detail: TAV_TOEXPORT1 | TAV_TOEXPORT1 | Prices 6 | export CSV | config&ressources/DataManagement/DHRD-113612_standard_detail_grid_ref_with_closed_groups.csv |
  @DHRD-113613 @skipped @waiting_for_DHRD-112176
human: Write test steps in Gherkin format for manipulate  pre  mapping in an  import  x m l

gpt: Scenario Outline: Manipulate Pre Mapping in an Import XML
    Given I am an authorized user <userApi>
    And I launch task <task_code> using an ID from API path <taskExecution_path>
    And I should get a response with status <status_code1>
    When I send a GET request to <taskExecution_path> with the retrieved task ID
    Then I should get a response with status <status_code2>
    And The received object should include the field <field> with value <value> under <element>
    And The received object should include the field <field2> with value <value2> under <element>
    Examples:
      | userApi      | taskExecution_path | value2          | task_code                  | field  | value   | element   | status_code1 | status_code2 | field2  |
      | TAR_api.user | task-executions    | 1 skipped lines | TASK_Import_xml_premapping | status | SUCCESS | execution |          201 |          200 | comment |
human: Generate a Cucumber scenario to test create a screen with an unauthorized user

gpt: Scenario Outline: Create a screen with an unauthorized user
        Given I am logged in as <user>
        And I switch to mode config
        When I open the user menu <user_menu>
        Then The create button is not displayed under the <user_menu> menu folders
        Examples:
            | user                 | user_menu         |
            | unauthorized.user.EN | DataHub warehouse |
            | unauthorized.user.FR | DataHub factory   |
human: Write test steps in Gherkin format for query screen -  copy/ paste from a standard grid with breaks to  excel

gpt: Scenario: Query screen - Copy/Paste from a standard grid with breaks to Excel
    Given I am logged as <user> on <screen_name>
    And I expand all the breaks of the grid
    And I select manually all the grid
    And I perform the keyboard shortcut <shortcut1>
    And I open Excel using a new browser
    And I log in with the user <excel_user> and the password <password> with the second browser
    And I Create a new blank workbook with the second browser
    And I Click on the first cell of the sheet with the second browser
    When I apply the keyboard shortcut <shortcut2> from the second browser
    And I download the sheet from the second browser
    Then The content of the downloaded file should be equal to <file_ref>
    Examples:
      | user              | screen_name         | shortcut1 | excel_user              | password    | shortcut2 | file_ref                                              |
      | TAV_standard.user | My Profiles To Copy | Ctrl + C  | dh_testauto@outlook.com | datahub2025 | Ctrl + V  | config&ressources/Navigation/DHRD-92745_ref_file.xlsx |
human: Write a behavior-driven test for delete a bookmark folder  without content

gpt: Scenario Outline: Delete a bookmark folder Without content
    Given I am logged in as <user>
    And I hover on bookmark <folder_name>
    When In bookmark folder <folder_name> I click on button <action>
    Then The bookmark <folder_name> is deleted
    Examples:
      | user              | folder_name          | button1 | button2 | action |
      | TAV_standard.user | folderWithoutContent | Ok      | Cancel  | Delete |
human: Create an automated test scenario for add mapped fields to a new  i f block

gpt: Scenario Outline: Add mapped fields to a new IF block
    Given I am logged in as <user>
    And I open query screen <screen_name> which title begins with <banner>
    And I search and open the feed <feed> with the category Import
    And I check that the following steps are displayed <steps>
    And I check that the default displayed step is <step1>
    And I go to the step <step3>
    When I add an <cond_bloc> bloc under the <table>
    And I add the <field> fields to the <cond_bloc> conditional bloc by drag and drop
    And I check the condition <condition> is displayed
    And I add the fields <fields> under the <cond_bloc> conditional bloc
    And I assign the external fields <external_fields> to the internal fields <internal_fields>
    And I save
    And A "info" toast is displayed with "ACTION ENDED: Recording object(s)"
    Then The condition <condition> is displayed in the <cond_bloc> bloc under the table <table> with the internal fields <internal_fields> assigned to the following external fields <external_fields>
    Examples:
      | user              | screen_name     | banner               | feed              | steps                          | step1      | step3   | cond_bloc | table          | field    | fields                                           | external_fields          | internal_fields                                  | condition        |
      | TAV_standard.user | Feed Dictionary | Import/Export proc : | TEST_IMPORT_JSON1 | Definition;Data;Mapping;Result | Definition | Mapping | if        | SECURITY_QUOTE | Currency | Quote date;Quote currency;Close quote;Open quote | Date;Currency;Close;Open | Quote date;Quote currency;Close quote;Open quote | Currency <> Null |
human: Generate a Cucumber scenario to test filter/ search on a view using a list as reference display

gpt: Scenario Outline: Filter/Search on a view using a list as reference display
		Given I am an authorized user <user>
		When I update the scope view search api <scope_view_code> with criteria <criteria_fields> and <criteria_operators> and <criteria_values>
		Then I should get a response with status <status_code>
		And all received objects should include these <values> as <fields>
		Examples:
			| user         | scope_view_code                  | criteria_fields         | criteria_operators | criteria_values                         | status_code | values                        | fields                              |
			| TAR_api.user | TAR_PRETURN_BREAKDOWN_VIEW_FREE1 | Portfolio;Currency;Date | EQUAL;EQUAL;EQUAL  | Equities multi-currency;Euro;02/02/2024 | 200         | SMARTLIST_ITEM;SMARTLIST_ITEM | aggregation_type;aggregation_type_2 |
human: Add the remaining steps to this scenario:

Scenario Outline: Filter/Search on a view using ISO code as reference display
		Given I am an authorized user <user>
		When I update the scope view search api <scope_view_code> with criteria <criteria_fields> and <criteria_operators> and <criteria_values>

gpt: Scenario Outline: Filter/Search on a view using ISO code as reference display
		Given I am an authorized user <user>
		When I update the scope view search api <scope_view_code> with criteria <criteria_fields> and <criteria_operators> and <criteria_values>
		Then I should get a response with status <status_code>
		And all received objects should include these <values> for these <fields> under <element>
		Examples:
			| user         | scope_view_code         | criteria_fields                     | criteria_operators | criteria_values    | status_code | values | fields           | element |
			| TAR_api.user | TAR_SCOPE_VIEW_ISO_CODE | security_main_type;currency;country | EQUAL;EQUAL;EQUAL  | Mutual Fund;EUR;FR | 200         | EUR;FR | currency;country | value   |
human: Complete this Gherkin scenario:

Scenario: Detail screen - Copy/paste from Excel to standard grid
    Given I am logged as <user> on <screen_name>
    And I go to detail screen <detail_screen> of <object_name>
    And I select the tab <tab>
    And I open the workbook <workbook> using the second browser
    And I select and copy the first <nth> lines of the sheet using the second browser
    And I add a row using the buttons toolbar

gpt: Scenario: Detail screen - Copy/paste from Excel to standard grid
    Given I am logged as <user> on <screen_name>
    And I go to detail screen <detail_screen> of <object_name>
    And I select the tab <tab>
    And I open the workbook <workbook> using the second browser
    And I select and copy the first <nth> lines of the sheet using the second browser
    And I add a row using the buttons toolbar
    And I filter only edited rows
    And I check that there is a new row in the grid
    And I select manually all the grid
    When I perform the keyboard shortcut <shortcut>
    And I check that the Save button is displayed
    And I check that there is a <nth> new rows in the grid
    Then A grid is displayed which contains <nth> rows with values on columns <columns> must equal to <values>
    Examples:
      | user              | screen_name   | workbook       | nth | shortcut  | detail_screen                      | object_name         | tab            | columns                                             | values                                                                   |
      | TAV_standard.user | My Securities | Book_to_paste2 |   2 | Control+V | Equity detail: TAV_Object_To_Paste | TAV_Object_To_Paste | IDs & classif. | Code type;Code;Market code;Currency;Code start date | BGL;1234;24 EXCHANGE;EUR;05/05/2025//CME;12345;1741 Asset;TND;06/06/2025 |