Cucumber Features

Expand All

Collapse All

# language: en

Feature: About Dialog

As a user of the Kata Tournament Runner
I want to have an About dialog
In order get infos about the version

features/AboutDialog.feature:8

Scenario: Open the dialog using the menu

  1. When I choose the "About" menu entry
    gui_steps.cpp:334
  2. Then the "About" dialog is shown
    gui_steps.cpp:553
# language: en

Feature: Add participant Dialog

As a Kata tournament operator
I want to have a dialog to enter participant data
In order to add participant to a tournament

features/AddParticipantDialog.feature:8

Scenario: Add a participant

  1. Given a tournaments is open
    gui_steps.cpp:155
  2. When I press the "Add Participant" button
    gui_steps.cpp:346
  3. And I enter the following participant data in the "Add Participant" dialog:
    features/step_definitions/forwarding_steps.rb:25
    name
    surname
    date of birth
    dojo
    rank
    Lee
    Brian
    1975-05-24
    Iron Dragon
    1st Kyu
  4. And I submit the data
    features/step_definitions/forwarding_steps.rb:5
  5. Then the participant list contains the following participants:
    gui_steps.cpp:591
    name
    surname
    date of birth
    dojo
    rank
    Lee
    Brian
    1975-05-24
    Iron Dragon
    1st Kyu
# language: en

Feature: Delete Participant

As a Kata tournament operator
I want to delete an already entered participant
In order to unregister participants which can not attend

features/DeleteParticipant.feature:8

Scenario: Delete a participant

  1. Given a tournaments is open
    gui_steps.cpp:155
  2. And the Tournament has the following participants:
    gui_steps.cpp:187
    name
    surname
    date of birth
    dojo
    rank
    Oyama
    Mas
    1923-07-27
    Honbu
    10 Dan
    Arneil
    Steve
    1934-08-29
    London
    9 Dan
    Norris
    Chuck
    1940-03-10
    Chun Kuk Do
    6 Dan
  3. And the mainpage is shown
    gui_steps.cpp:247
  4. When I select the 2nd row
    gui_steps.cpp:483
  5. And I press the "Delete" key
    gui_steps.cpp:510
  6. Then the participant list contains the following participants:
    gui_steps.cpp:591
    name
    surname
    date of birth
    dojo
    rank
    Oyama
    Mas
    1923-07-27
    Honbu
    10 Dan
    Norris
    Chuck
    1940-03-10
    Chun Kuk Do
    6 Dan
# language: en

Feature: Edit Participant

As a Kata tournament operator
I want to edit the data of a participant
In order to modify incorrect data or enter missing data

# language: en

Feature: Edit tournament data

As a Kata tournament operator
I want to edit the tournament data
In order to change an existing tournament

features/EditTournamentDialog.feature:8

Scenario: Edit tournament

  1. Given the following Tournament is open:
    gui_steps.cpp:167
    name
    date
    location
    SM
    2013-06-20
    Kriens
  2. When I press the "Edit Tournament" button
    gui_steps.cpp:346
  3. And I enter the following tournament data in the "Edit Tournament" dialog:
    features/step_definitions/forwarding_steps.rb:19
    name
    date
    location
    WM
    2014-01-20
    Berlin
  4. And I submit the data
    features/step_definitions/forwarding_steps.rb:5
  5. Then the mainscreen shows the following tournament:
    gui_steps.cpp:559
    name
    date
    location
    WM
    2014-01-20
    Berlin
# language: en

Feature: Kata Round Start Page

As a Kata tournament executor
I want to have a startpage for each new kata round
In order to have an overview of the startlist for the round

features/KataRoundStartPage.feature:8

Scenario: First round start page

  1. Given a tournaments is open
    gui_steps.cpp:155
  2. And the Tournament has the following participants:
    gui_steps.cpp:187
    name
    surname
    date of birth
    dojo
    rank
    Oyama
    Mas
    1923-07-27
    Honbu
    10 Dan
    Arneil
    Steve
    1934-08-29
    London
    9 Dan
    Norris
    Chuck
    1940-03-10
    Chun Kuk Do
    6 Dan
  3. And the mainpage is shown
    gui_steps.cpp:247
  4. When I press the "Start" button
    gui_steps.cpp:346
  5. Then a startpage for the first round is shown
    gui_steps.cpp:629
  6. And the following partipants are shown on the startpage:
    gui_steps.cpp:640
    start position
    name
    1
    Oyama, Mas (Honbu)
    2
    Arneil, Steve (London)
    3
    Norris, Chuck (Chun Kuk Do)
features/KataRoundStartPage.feature:25

Scenario: Second round start page

  1. Given a tournaments is open
    gui_steps.cpp:155
  2. And the following participants have performed a kata:
    gui_steps.cpp:252
    start No
    name
    surname
    score 1
    score 2
    score 3
    score 4
    score 5
    0
    Lee
    Brian
    5.0
    5.2
    5.3
    5.2
    5.2
    1
    Oyama
    Mas
    5.8
    5.8
    5.7
    5.7
    5.5
    2
    Arneil
    Steve
    5.9
    5.7
    5.7
    5.8
    5.5
    3
    Jet
    Jimi
    5.0
    5.2
    5.2
    5.2
    5.2
    4
    Norris
    John
    5.2
    5.2
    5.4
    5.2
    5.2
    5
    Norris
    Chuck
    5.6
    5.6
    5.6
    5.6
    5.6
    6
    Oyama
    Shigeru
    5.8
    5.8
    5.8
    5.8
    5.8
    7
    Nakamura
    Tadashi
    5.6
    5.7
    5.7
    5.6
    5.6
    8
    Lundgren
    Hans
    5.4
    5.4
    5.4
    5.4
    5.4
    9
    DaCosta
    Nick
    5.5
    5.4
    5.5
    5.4
    5.5
  3. When the startpage for the second round is shown
    gui_steps.cpp:385
  4. Then the following partipants are shown on the startpage:
    gui_steps.cpp:640
    start position
    name
    1
    Norris, John
    2
    Lundgren, Hans
    3
    DaCosta, Nick
    4
    Norris, Chuck
    5
    Nakamura, Tadashi
    6
    Oyama, Mas
    7
    Arneil, Steve
    8
    Oyama, Shigeru
# language: en

Feature: New tournament

As a Kata tournament operator
I want to create a new tournament
In order to start a tournament

features/NewTournamentDialog.feature:8

Scenario: New tournament

  1. When I choose the "New Tournament" menu entry
    gui_steps.cpp:334
  2. And I enter the following tournament data in the "New Tournament" dialog:
    features/step_definitions/forwarding_steps.rb:19
    name
    date
    location
    SM
    2014-01-20
    Kriens
  3. And I submit the data
    features/step_definitions/forwarding_steps.rb:5
  4. Then the mainscreen shows the following tournament:
    gui_steps.cpp:559
    name
    date
    location
    SM
    2014-01-20
    Kriens
# language: en

Feature: Kata tournament rankedlist

As a Kata tournament executor
I want to have a rankedlist of the participants after the final round
In order to determine the winner of the tournament

features/RankedlistPage.feature:8

Scenario: Create the final ranked list.

  1. Given a tournaments is open
    gui_steps.cpp:155
  2. And the following participants have performed katas:
    gui_steps.cpp:280
    name
    surname
    1-1
    1-2
    1-3
    1-4
    1-5
    2-1
    2-2
    2-3
    2-4
    2-5
    3-1
    3-2
    3-3
    3-4
    3-5
    Müller
    Roland
    7.7
    7.5
    7.5
    7.7
    7.5
    7.6
    7.7
    7.6
    7.8
    7.8
    7.7
    7.6
    7.7
    7.6
    7.8
    Paradiso
    Alessandro
    7.4
    7.0
    7.3
    7.2
    7.1
    7.2
    7.3
    7.2
    7.2
    7.3
    7.1
    7.1
    7.1
    7.0
    7.3
    Birrer
    Simon
    7.5
    7.6
    7.6
    7.5
    7.6
    7.7
    7.8
    7.7
    7.7
    7.6
    7.9
    7.8
    7.8
    7.9
    7.9
    Cehajic
    Edi
    7.5
    7.4
    7.5
    7.4
    7.4
    7.4
    7.5
    7.4
    7.6
    7.4
    7.4
    7.3
    7.4
    7.5
    7.4
    Felder
    Luca
    7.2
    6.9
    7.0
    7.1
    7.1
    7.3
    7.4
    7.2
    7.2
    7.1
    Klein
    Lorenz
    7.3
    7.0
    7.2
    7.2
    7.0
    7.4
    7.2
    7.3
    7.3
    7.2
    7.2
    7.1
    7.2
    7.3
    7.2
    Graziano
    Markus
    7.3
    7.4
    7.2
    7.4
    7.4
    7.3
    7.3
    7.4
    7.3
    7.4
    7.4
    7.4
    7.3
    7.3
    7.4
    Emmenegger
    André
    7.8
    7.8
    7.7
    7.8
    7.6
    7.6
    7.8
    7.8
    7.9
    7.8
    7.8
    8.0
    7.8
    7.8
    7.8
    Pfändler
    Ramon
    7.3
    7.3
    7.3
    7.4
    7.3
    7.5
    7.5
    7.5
    7.4
    7.5
    7.6
    7.4
    7.6
    7.5
    7.6
    Grande
    Davide
    7.3
    7.0
    7.1
    7.2
    7.2
    7.1
    7.3
    7.1
    7.4
    7.3
    Frey
    Dominique
    7.1
    7.0
    6.9
    7.0
    7.2
    7.0
    7.1
    7.0
    7.3
    6.9
  3. Then the following table is shown on the finalpage:
    gui_steps.cpp:659
    rank
    name
    surname
    overall 1
    min 1
    max 1
    overall 2
    min 2
    max 2
    overall 3
    min 3
    max 3
    1
    Birrer
    Simon
    22.7
    7.5
    7.6
    23.1
    7.6
    7.8
    23.6
    7.8
    7.9
    2
    Emmenegger
    André
    23.3
    7.6
    7.8
    23.4
    7.6
    7.9
    23.4
    7.8
    8.0
    3
    Müller
    Roland
    22.7
    7.5
    7.7
    23.1
    7.6
    7.8
    23.0
    7.6
    7.8
    4
    Pfändler
    Ramon
    21.9
    7.3
    7.4
    22.5
    7.4
    7.5
    22.7
    7.4
    7.6
    5
    Cehajic
    Edi
    22.3
    7.4
    7.5
    22.3
    7.4
    7.6
    22.2
    7.3
    7.5
    6
    Graziano
    Markus
    22.1
    7.2
    7.4
    22.0
    7.3
    7.4
    22.1
    7.3
    7.4
    7
    Klein
    Lorenz
    21.4
    7.0
    7.3
    21.8
    7.2
    7.4
    21.6
    7.1
    7.3
    8
    Paradiso
    Alessandro
    21.6
    7.0
    7.4
    21.7
    7.2
    7.3
    21.3
    7.0
    7.3
    9
    Grande
    Davide
    21.5
    7.0
    7.3
    21.7
    7.1
    7.4
    9
    Felder
    Luca
    21.2
    6.9
    7.2
    21.7
    7.1
    7.4
    11
    Frey
    Dominique
    21.1
    6.9
    7.2
    21.1
    6.9
    7.3
# language: en

Feature: Save and Load profiles

As a Kata tournament operator
I want to save a profile, i.e. a tournament and load it later
In order to preserve previous work

features/SaveAndLoad.feature:8

Scenario: Save and load to/from a default profile

  1. Given the following Tournament is open:
    gui_steps.cpp:167
    name
    date
    location
    SM
    2013-06-20
    Kriens
  2. When I save the profile
    features/step_definitions/forwarding_steps.rb:1
  3. And I restart the application
    gui_steps.cpp:320
  4. Then the mainscreen shows the following tournament:
    gui_steps.cpp:559
    name
    date
    location
    SM
    2013-06-20
    Kriens
features/SaveAndLoad.feature:29

Scenario Outline: Save to a profile file

  1. Given the following Tournament is open:
    gui_steps.cpp:167
    name
    date
    location
    SM
    2013-06-20
    Kriens
  2. When I save the profile to "<file>"
    features/step_definitions/forwarding_steps.rb:14
  3. Then the file "<file>" exists
    gui_steps.cpp:622

Examples

file
~/tmp/myprofile.ktr