Skip to content
This repository was archived by the owner on May 17, 2023. It is now read-only.
This repository was archived by the owner on May 17, 2023. It is now read-only.

Win32 ListBox control: base operations #8

@mkolisnyk

Description

@mkolisnyk

Scenario: Select by index

  • Select by index

  • Get selection index

    Given the test GUI application is started
    When I select the "List Box" tab
    And I select item 1 from the "Basic List Box" list box
    Then I should see the item 1 is selected in the "Basic List Box" list box
    When I select item 2 from the "Basic List Box" list box
    Then I should see the item 2 is selected in the "Basic List Box" list box
    And the item 1 is unselected in the "Basic List Box" list box

Scenario: Select by name

  • Select item by name

  • Get selected item names

    Given the test GUI application is started
    When I select the "List Box" tab
    And I select the "[-c-]" in the "Basic List Box" list box
    Then I should see the "[-c-]" item is selected in the "Basic List Box" list box
    When I select the "[-d-]" in the "Basic List Box" list box
    Then I should see the "[-d-]" item is selected in the "Basic List Box" list box
    And the "[-c-]" item is unselected in the "Basic List Box" list box

Scenario: Multiple selection by index

  • Add selection by index

  • Remove selection by index

    Given the test GUI application is started
    When I select the "List Box" tab
    And I select item 1 from the "Basic List Box" list box
    And add item 2 from the "Basic List Box" list box to selection
    Then I should see the item 1 is selected in the "Basic List Box" list box
    And the item 2 is selected in the "Basic List Box" list box
    When I remove item 1 from the "Basic List Box" list box selection
    Then I should see the item 1 is unselected in the "Basic List Box" list box
    And the item 2 is selected in the "Basic List Box" list box

Scenario: Multiple selection by name

  • Add selection by name

  • Remove selection by name

    Given the test GUI application is started
    When I select the "List Box" tab
    And I select the "[-c-]" in the "Basic List Box" list box
    And add the "[-d-]" item from the "Basic List Box" list box to selection
    Then I should see the "[-c-]" item is selected in the "Basic List Box" list box
    And the "[-d-]" item is selected in the "Basic List Box" list box
    When I remove "[-c-]" item from the "Basic List Box" list box selection
    Then I should see the "[-c-]" item is unselected in the "Basic List Box" list box
    And the "[-c-]" item is selected in the "Basic List Box" list box

Metadata

Metadata

Assignees

Labels

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions