The steps are:
- Create a new custom report in Administration. Make sure Excel is listed as one of the output formats
- Add a new custom section to the report
- In this custom section, add the following ESQL query:
(Spira v4.x)
select TX.NAME AS TEST_SET_NAME, TC.NAME AS TEST_CASE_NAME, TC.DESCRIPTION AS TEST_CASE_DESC, TS.POSITION AS TEST_STEP_NUMBER, TS.DESCRIPTION as STEP_DESCRIPTION, TS.EXPECTED_RESULT, TX.INDENT_LEVEL + '-' + TC.INDENT_LEVEL + '-' + cast (TS.POSITION as string) as location
from SpiraTestEntities.R_TestSets as TX inner join SpiraTestEntities.R_TestSetTestCases as TT on TX.TEST_SET_ID = TT.TEST_SET_ID inner join SpiraTestEntities.R_TestCases as TC on TT.TEST_CASE_ID = TC.TEST_CASE_ID
inner join SpiraTestEntities.R_TestSteps as TS on TS.TEST_CASE_ID = TC.TEST_CASE_ID where TC.PROJECT_ID = ${ProjectId}
order by location
(Spira v5.0+)
select TX.NAME AS TEST_SET_NAME, TC.NAME AS TEST_CASE_NAME, TC.DESCRIPTION AS TEST_CASE_DESC, TS.POSITION AS TEST_STEP_NUMBER, TS.DESCRIPTION as STEP_DESCRIPTION, TS.EXPECTED_RESULT, TX.NAME + '-' + TC.NAME + '-' + cast (TS.POSITION as string) as location
from SpiraTestEntities.R_TestSets as TX inner join SpiraTestEntities.R_TestSetTestCases as TT on TX.TEST_SET_ID = TT.TEST_SET_ID inner join SpiraTestEntities.R_TestCases as TC on TT.TEST_CASE_ID = TC.TEST_CASE_ID
inner join SpiraTestEntities.R_TestSteps as TS on TS.TEST_CASE_ID = TC.TEST_CASE_ID where TC.PROJECT_ID = ${ProjectId}
order by location
- Click on the button to 'Create Default Template'. Now save your custom report.
- Go to Reports
- Choose your new report
- Choose MS-Excel as the output format
- Click on the button to generate the report
- You now have an Excel sheet with the required list of test sets, test cases, and test steps:
TEST_SET_NAME | TEST_CASE_NAME | TEST_CASE_DESC | TEST_STEP_NUMBER | STEP_DESCRIPTION | EXPECTED_RESULT | location |
---|
Testing Cycle for Release 1.0 | Ability to create new book | Tests that the user can create a new book in the system | 1 | Call | | AAAAAA-AAAAAA-1 |
Testing Cycle for Release 1.0 | Ability to create new book | Tests that the user can create a new book in the system | 2 | Call | | AAAAAA-AAAAAA-2 |
Testing Cycle for Release 1.0 | Ability to create new book | Tests that the user can create a new book in the system | 3 | Call | | AAAAAA-AAAAAA-3 |
Testing Cycle for Release 1.0 | Ability to create new book | Tests that the user can create a new book in the system | 4 | User clicks link to create book | User taken to first screen in wizard | AAAAAA-AAAAAA-4 |
Testing Cycle for Release 1.0 | Ability to create new book | Tests that the user can create a new book in the system | 5 | User enters books name and author, then clicks Next | User taken to next screen in wizard | AAAAAA-AAAAAA-5 |
Testing Cycle for Release 1.0 | Ability to create new book | Tests that the user can create a new book in the system | 6 | User chooses book's genre and sub-genre from list | User sees screen displaying all entered information | AAAAAA-AAAAAA-6 |
Testing Cycle for Release 1.0 | Ability to create new book | Tests that the user can create a new book in the system | 7 | User clicks submit button | Confirmation screen is displayed | AAAAAA-AAAAAA-7 |
Testing Cycle for Release 1.0 | Ability to edit existing book | Tests that the user can login, view the details of a book, and then if he/she desires, make the necessary changes | 1 | Call | | AAAAAA-AAAAAB-1 |
Testing Cycle for Release 1.0 | Ability to edit existing book | Tests that the user can login, view the details of a book, and then if he/she desires, make the necessary changes | 2 | User clicks link to view existing books | List of active books in system displayed | AAAAAA-AAAAAB-2 |
Testing Cycle for Release 1.0 | Ability to edit existing book | Tests that the user can login, view the details of a book, and then if he/she desires, make the necessary changes | 3 | User clicks on link to edit a specific book | User taken to edit book details screen | AAAAAA-AAAAAB-3 |