Skip to content

Commit 64d6b1f

Browse files
committed
refactor: test case markdown structure and update step extraction logic
- Removed unnecessary HTML comments for step sections in various test case markdown files. - Updated the `MarkdownTableParser` to extract test steps directly from markdown tables without relying on HTML comments.
1 parent 50b35ba commit 64d6b1f

22 files changed

+155
-115
lines changed

docs/TC-Login-001.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,12 @@ The purpose of this test-case is to satisfy the use-case UC-001-Login which is t
1919

2020
## Steps
2121

22-
<!-- STEPS:BEGIN -->
2322
| Step ID | Description | Test Data | Expected Result | Actual Result |
2423
| -------:| ---------------------- | -------------------------------------------------------------- | ---------------------------------------------------------------- | ------------- |
2524
| 1 | enter username | Locator=GetByLabel Text=Username Action=Fill Value=admin | username is entered | - |
2625
| 2 | enter password | Locator=GetByLabel Text=Password Action=Fill Value=password | password is entered | - |
2726
| 3 | click login button | Locator=GetByRole AriaRole=Button Text=Login Action=Click | system validates the user credentials and redirects to dashboard | - |
2827
| 4 | displays the dashboard | Locator=GetByRole AriaRole=Button Text=Logout Action=IsVisible | Logout button visible in the main navigation | - |
29-
<!-- STEPS:END -->
3028

3129
## Postcondition
3230

samples/Definitions/commitquality/TC-Documents-001.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,11 @@ The purpose of this test-case is to test the upload of a file to the system.
1818

1919
## Steps
2020

21-
<!-- STEPS:BEGIN -->
2221
| Step ID | Description | Test Data | Expected Result | Actual Result |
2322
| -------:| ----------------------------- | ------------------------------------------------------------------------------- | ----------------------------------------- | ------------- |
2423
| 1 | File selector visible | Locator=GetByTestId Text=file-input Action=IsVisible | File selector is visible | |
2524
| 2 | Select file | Locator=GetByTestId Text=file-input Action=PickFile Value=../../samples/Definitions/commitquality/TC-Documents-001.md | File selected | |
2625
| 3 | Upload file | Locator=GetByRole AriaRole=Button Text=Submit Action=Click | Submit button clicked and file uploaded | |
27-
<!-- STEPS:END -->
2826

2927
## Postcondition
3028

samples/Definitions/localhost/Dashboard/TC-Dashboard-100.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,10 @@ When authenticated as administrator I see the dashboard with two available workf
1818

1919
## Steps
2020

21-
<!-- STEPS:BEGIN -->
2221
| Step ID | Description | Test Data | Expected Result | Actual Result |
2322
| -------:| ---------------------- | -------------------------------------------------------------- | -----------------------------| ------------- |
2423
| 1 | nav Holiday | Locator=GetByRole AriaRole=Link Text=HOLIDAY Action=IsVisible | Holiday nav item is visible | - |
2524
| 2 | nav Issue | Locator=GetByRole AriaRole=Link Text=ISSUE Action=IsVisible | Issue nav item is visible | - |
26-
<!-- STEPS:END -->
2725

2826
## Postcondition
2927

samples/Definitions/localhost/TC-Login-001.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,12 @@ The purpose of this test-case is to satisfy the use-case UC-001-Login which is t
1717

1818
## Steps
1919

20-
<!-- STEPS:BEGIN -->
2120
| Step ID | Description | Test Data | Expected Result | Actual Result |
2221
| -------:| ---------------------- | -------------------------------------------------------------- | ---------------------------------------------------------------- | ------------- |
2322
| 1 | enter username | Locator=GetByLabel Text=Username Action=Fill Value=admin | username is entered | - |
2423
| 2 | enter password | Locator=GetByLabel Text=Password Action=Fill Value=@Password | password is entered | - |
2524
| 3 | click login button | Locator=GetByRole AriaRole=Button Text=Login Action=Click | system validates the user credentials and redirects to dashboard | - |
2625
| 4 | displays the dashboard | Locator=GetByRole AriaRole=Button Text=Logout Action=IsVisible | Logout button visible in the main navigation | - |
27-
<!-- STEPS:END -->
2826

2927
## Postcondition
3028

samples/Definitions/localhost/TC-Login-002.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,12 @@ The purpose of this test-case is to validate the expected behavior when a user t
1717

1818
## Steps
1919

20-
<!-- STEPS:BEGIN -->
2120
| Step ID | Description | Test Data | Expected Result | Actual Result |
2221
| -------:| ---------------------- | ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ------------- |
2322
| 1 | enter username | Locator=GetByLabel Text=Username Action=Fill Value=Albert | username Albert is entered | - |
2423
| 2 | enter password | Locator=GetByLabel Text=Password Action=Fill Value=@Password | password is entered | - |
2524
| 3 | click login button | Locator=GetByRole AriaRole=Button Text=Login Action=Click | system validates the user credentials and displays an error message that the tried login attempt is invalid | - |
2625
| 4 | displays error message | Locator=GetByText Text=\"Invalid login attempt for user 'Albert'\" Action=IsVisible | Validation result of invalid login attempt is visible | - |
27-
<!-- STEPS:END -->
2826

2927
## Postcondition
3028

samples/Definitions/localhost/TC-Login-003.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,12 @@ The purpose of this test-case is to validate the expected behavior when a user t
1717

1818
## Steps
1919

20-
<!-- STEPS:BEGIN -->
2120
| Step ID | Description | Test Data | Expected Result | Actual Result |
2221
| -------:| ---------------------- | ---------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ------------- |
2322
| 1 | enter username | Locator=GetByLabel Text=Username Action=Fill Value=admin | username admin is entered | - |
2423
| 2 | enter wrong password | Locator=GetByLabel Text=Password Action=Fill Value=test | password test is entered | - |
2524
| 3 | click login button | Locator=GetByRole AriaRole=Button Text=Login Action=Click | system validates the user credentials and displays an error message that the tried login attempt is invalid | - |
2625
| 4 | displays error message | Locator=GetByText Text=\"Invalid login attempt for user 'admin'\" Action=IsVisible | Validation result of invalid login attempt is visible | - |
27-
<!-- STEPS:END -->
2826

2927
## Postcondition
3028

samples/Runs/commitquality/TC-Documents-001.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# TC-Documents-001: Upload File
22

3-
- **Date**: 2025-06-25
3+
- **Date**: 2025-08-02
44
- **Author**: Thomas Duft
55
- **Test Priority**: High
66
- **Module**: Documents
@@ -19,13 +19,11 @@ The purpose of this test-case is to test the upload of a file to the system.
1919

2020
## Steps
2121

22-
<!-- STEPS:BEGIN -->
2322
| Step ID | Description | Test Data | Expected Result | Actual Result |
2423
| -------:| ----------------------------- | ------------------------------------------------------------------------------- | ----------------------------------------- | ------------- |
25-
| 1 | File selector visible | Locator=GetByTestId Text=file-input Action=IsVisible | File selector is visible ||
26-
| 2 | Select file | Locator=GetByTestId Text=file-input Action=PickFile Value=../../samples/Definitions/commitquality/TC-Documents-001.md | File selected ||
27-
| 3 | Upload file | Locator=GetByRole AriaRole=Button Text=Submit Action=Click | Submit button clicked and file uploaded ||
28-
<!-- STEPS:END -->
24+
| 1 | File selector visible | Locator=GetByTestId Text=file-input Action=IsVisible | File selector is visible | |
25+
| 2 | Select file | Locator=GetByTestId Text=file-input Action=PickFile Value=../../samples/Definitions/commitquality/TC-Documents-001.md | File selected | |
26+
| 3 | Upload file | Locator=GetByRole AriaRole=Button Text=Submit Action=Click | Submit button clicked and file uploaded | |
2927

3028
## Postcondition
3129

samples/Runs/localhost/Dashboard/TC-Dashboard-100.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# TC-Dashboard-100: Dashboard as administrator
22

3-
- **Date**: 2025-06-25
3+
- **Date**: 2025-08-02
44
- **Test Priority**: High
55
- **Module**: Dashboard
66
- **Type**: Run
@@ -19,12 +19,10 @@ When authenticated as administrator I see the dashboard with two available workf
1919

2020
## Steps
2121

22-
<!-- STEPS:BEGIN -->
2322
| Step ID | Description | Test Data | Expected Result | Actual Result |
2423
| -------:| ---------------------- | -------------------------------------------------------------- | -----------------------------| ------------- |
25-
| 1 | nav Holiday | Locator=GetByRole AriaRole=Link Text=HOLIDAY Action=IsVisible | Holiday nav item is visible ||
26-
| 2 | nav Issue | Locator=GetByRole AriaRole=Link Text=ISSUE Action=IsVisible | Issue nav item is visible ||
27-
<!-- STEPS:END -->
24+
| 1 | nav Holiday | Locator=GetByRole AriaRole=Link Text=HOLIDAY Action=IsVisible | Holiday nav item is visible | - |
25+
| 2 | nav Issue | Locator=GetByRole AriaRole=Link Text=ISSUE Action=IsVisible | Issue nav item is visible | - |
2826

2927
## Postcondition
3028

samples/Runs/localhost/TC-Login-001.md

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# TC-Login-001: Login
22

3-
- **Date**: 2025-06-25
3+
- **Date**: 2025-08-02
44
- **Test Priority**: High
55
- **Module**: Identity
66
- **Type**: Run
@@ -18,14 +18,12 @@ The purpose of this test-case is to satisfy the use-case UC-001-Login which is t
1818

1919
## Steps
2020

21-
<!-- STEPS:BEGIN -->
2221
| Step ID | Description | Test Data | Expected Result | Actual Result |
2322
| -------:| ---------------------- | -------------------------------------------------------------- | ---------------------------------------------------------------- | ------------- |
24-
| 1 | enter username | Locator=GetByLabel Text=Username Action=Fill Value=admin | username is entered ||
25-
| 2 | enter password | Locator=GetByLabel Text=Password Action=Fill Value=@Password | password is entered ||
26-
| 3 | click login button | Locator=GetByRole AriaRole=Button Text=Login Action=Click | system validates the user credentials and redirects to dashboard ||
27-
| 4 | displays the dashboard | Locator=GetByRole AriaRole=Button Text=Logout Action=IsVisible | Logout button visible in the main navigation ||
28-
<!-- STEPS:END -->
23+
| 1 | enter username | Locator=GetByLabel Text=Username Action=Fill Value=admin | username is entered | - |
24+
| 2 | enter password | Locator=GetByLabel Text=Password Action=Fill Value=@Password | password is entered | - |
25+
| 3 | click login button | Locator=GetByRole AriaRole=Button Text=Login Action=Click | system validates the user credentials and redirects to dashboard | - |
26+
| 4 | displays the dashboard | Locator=GetByRole AriaRole=Button Text=Logout Action=IsVisible | Logout button visible in the main navigation | - |
2927

3028
## Postcondition
3129

samples/Runs/localhost/TC-Login-002.md

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# TC-Login-002: Login with wrong or not existing Username
22

3-
- **Date**: 2025-06-25
3+
- **Date**: 2025-08-02
44
- **Test Priority**: High
55
- **Module**: Identity
66
- **Type**: Run
@@ -18,14 +18,12 @@ The purpose of this test-case is to validate the expected behavior when a user t
1818

1919
## Steps
2020

21-
<!-- STEPS:BEGIN -->
2221
| Step ID | Description | Test Data | Expected Result | Actual Result |
2322
| -------:| ---------------------- | ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ------------- |
24-
| 1 | enter username | Locator=GetByLabel Text=Username Action=Fill Value=Albert | username Albert is entered ||
25-
| 2 | enter password | Locator=GetByLabel Text=Password Action=Fill Value=@Password | password is entered ||
26-
| 3 | click login button | Locator=GetByRole AriaRole=Button Text=Login Action=Click | system validates the user credentials and displays an error message that the tried login attempt is invalid ||
27-
| 4 | displays error message | Locator=GetByText Text=\"Invalid login attempt for user 'Albert'\" Action=IsVisible | Validation result of invalid login attempt is visible ||
28-
<!-- STEPS:END -->
23+
| 1 | enter username | Locator=GetByLabel Text=Username Action=Fill Value=Albert | username Albert is entered | - |
24+
| 2 | enter password | Locator=GetByLabel Text=Password Action=Fill Value=@Password | password is entered | - |
25+
| 3 | click login button | Locator=GetByRole AriaRole=Button Text=Login Action=Click | system validates the user credentials and displays an error message that the tried login attempt is invalid | - |
26+
| 4 | displays error message | Locator=GetByText Text=\"Invalid login attempt for user 'Albert'\" Action=IsVisible | Validation result of invalid login attempt is visible | - |
2927

3028
## Postcondition
3129

0 commit comments

Comments
 (0)