Xray uses different issue types for implementing the testing process (with the exception of Test Runs).
Thus means that you are able to manually log time on those issues using Jira out-of-the-box. If you have some other apps or integrations that are based on this field, then you are going to have it available there also.
Only some issue types have time tracking enabled by default: Test Execution, Test Plan. However, you can then easily add Time Tracking features to the other issue types (Test, Pre-Condition, Test Set) by editing the respective view/default screens and adding the "Time Tracking" field. |
The question arises: How do I log the time I spent executing some tests runs?.
The time that you spend executing some Test Run is not logged in Jira automatically; you have to log it manually in the corresponding Test Execution issue.
Note that Xray is able to automatically calculate the elapsed time from each Test Run based on the "Started on" and "Finished on" dates of the Test Run. Some reports (e.g., Test Runs Report, Test Executions Report) use this value for the calculation of the overall elapsed time or simply display it.
Thus, the elapsed time (which is calculated automatically) and the actual logged time are two different things. You can choose to log exactly the displayed elapsed time, report another value or not even log anything.
The following table presents some possible usage scenarios for logging time in Xray issue types.
Issue type | Purpose | Notes |
---|---|---|
Test | log time related to specification | don't log time related to execution here because Test issues are like test templates |
Pre-Condition | log time related to specification | |
Test Set | log time related to the creation of Test Set, eventually considering the time related to the specification of related Tests and Pre-Conditions | |
(Sub)Test Execution | log time related to the execution of related Test runs | |
Test Plan | log time related to environment setup, planning | don't log time related to execution twice (both in the Test Plan and in the related Test Executions) |
The following table presents some possible usage scenarios for using time estimates, through the "Original Estimate" field, in Xray issue types.
Issue type | Purpose | Notes |
---|---|---|
Test |
| using "estimated execution time" may be more adequate; however if you choose that approach, you may have to decide where to report the estimation for the specification (e.g. in a Test Set or in some specification task) |
Pre-Condition |
| see notes for Test issue |
Test Set | estimated time for specifying all the Tests being grouped within this Test Set | |
(Sub)Test Execution | estimated time for running all related Test Runs | |
Test Plan |
| your estimated time aim for the Test Plan should match the aim of the logged time |
Using time estimates and logging time depend on your use case. You can choose to use both or just one of them.
General recommendations: