Add Report
Create SQL query
Generate Report
Adding Report
- In the Excel Reports tree, select the folder in which you want to create the report. The
folders available are Public and Private. If a report is created under Public folder it will
be available to all the users of the project. The reports under private folder are available
only to the user who creates it.
- Clicking on the New Excel Report button opens a New Excel Report dialog box.
Type a name for your report in the Excel Report Name edit box, and click OK. Note
that a report name cannot include the following characters: / \ ? * = < > | : . " ' %.
(For ex: Enter Excel Report Name as Importing Test Cases)
Following are two drop downs available in the right side frame of the Excel Report Generator
-
In the Designer drop down, by default it will display your name. You can also select the
name of the report designer from the drop down.
Not Ready - Indicates that the report is not ready to generate. If a user tries to generate a
report with this status, a warning message displays.
If you click Yes, in the Confirm pop up, it will display a dialogue box to save the Excel by
browsing the location on your machine.
If you select the location and click Save, it will display the below pop up
If you click No in the Confirm pop up, it will close the pop up.
-
In the Description edit box, type a description about your report. You can format the text
that you described using the options in the Format Toolbar. If this toolbar is not available,
right-click in the Description area and select the required Format option.
In the Excel Reports tree, select a report and click on Query tab in the right side main
frame
In the SQL pane, type an SQL statement to define the data set you want to use for your
report.
Notes:
-
You need to write the SQL statement depending upon the DB type. To view the DB type,
To add a project entity without a column alias, double-click an entity in the Entities pane,
or select an entity and click the Add Entity to Query button
To add a project entity with the column alias defined by the entity title, select the entity
you want to add. Click the Add Entity to Query arrow and choose Add Entity to Query
with Entity Title as Alias.
and view the results of the test in the Query Results tab.
to display only the first ten records from the results of the query.
To add a new query, click the Add Query button . A new tab to the SQL pane with the
default name Sheet<number> will be added. The results from each query will be displayed in a
separate Excel worksheet.
To rename a query, select the query and click the Rename button
the query and choose Rename.
To delete a query, select the query and click the Delete button
query and choose Delete. Click yes to confirm.
. Alternatively, right-click
First try to find out the last most child ID of the test set folder from where to import all the Test
Cases to Excel by executing the SQL queries in the following manner.
-
Select AL_FATHER_ID,AL_ITEM_ID,al_description
from all_lists
where al_father_id=3292
Select AL_FATHER_ID,AL_ITEM_ID,al_description
from all_lists
where AL_FATHER_ID=8211
Select AL_FATHER_ID,AL_ITEM_ID,al_description
from all_lists
where AL_FATHER_ID=8212
SELECT
ALL_LISTS.AL_DESCRIPTION /*Test Plan Folder.Name*/as Test_Folder_Name,
TEST.TS_NAME /*Test.Test Name*/ as Test_Case_Name,
TEST.TS_DESCRIPTION /*Test.Description*/ as Scenario,
DESSTEPS.DS_STEP_NAME /*Design Step.Step Name*/ as Step_Name,
DESSTEPS.DS_DESCRIPTION /*Design Step.Description*/ as Description,
DESSTEPS.DS_EXPECTED /*Design Step.Expected Result*/ as Expected_Result
FROM TEST,DESSTEPS /*Design Step*/,ALL_LISTS /*Test Plan Folder*/
Where DESSTEPS.DS_TEST_ID /*Design Step.Test ID*/ = TEST.TS_TEST_ID /*Test.Test ID*/
AND TEST.TS_SUBJECT =ALL_LISTS.AL_ITEM_ID /*Test Plan Folder.Item Id*/
AND ALL_LISTS.AL_ITEM_ID = 8213
If you want to import the test cases from more than one test set, append the next test set
ALL_LISTS.AL_ITEM_ID with AND statement to the above SQL query.
SELECT
ALL_LISTS.AL_DESCRIPTION /*Test Plan Folder.Name*/as Test_Folder_Name,
TEST.TS_NAME /*Test.Test Name*/ as Test_Case_Name,
TEST.TS_DESCRIPTION /*Test.Description*/ as Scenario,
DESSTEPS.DS_STEP_NAME /*Design Step.Step Name*/ as Step_Name,
DESSTEPS.DS_DESCRIPTION /*Design Step.Description*/ as Description,
DESSTEPS.DS_EXPECTED /*Design Step.Expected Result*/ as Expected_Result
FROM TEST,DESSTEPS /*Design Step*/,ALL_LISTS /*Test Plan Folder*/
Where DESSTEPS.DS_TEST_ID /*Design Step.Test ID*/ = TEST.TS_TEST_ID /*Test.Test ID*/
AND TEST.TS_SUBJECT =ALL_LISTS.AL_ITEM_ID /*Test Plan Folder.Item Id*/
AND ALL_LISTS.AL_ITEM_ID = 8213
AND ALL_LISTS.AL_ITEM_ID = 8294
Likewise we can generate reports by writing different SQL Queries for Requirements, Test
Cases, and Defects etc to Microsoft Excel by using different column values present in each inbuilt tables.
"Status",
Excel report will be generated and saved with all the test cases on the desktop.