Page History
...
- includes global defects
- includes step level defects
- includes step level defects from data-driven tests
- counts only unique defects
Total test runs elapsed time (calculate the time difference between 2 dates and convert milliseconds to hh:mm:ss format)
Status | ||||
---|---|---|---|---|
|
Status | ||||
---|---|---|---|---|
|
Code Block |
---|
${set(dateDifTotal,0)}
#{for testruns}
${set(CreatedSpt,%{"${TestRuns[n].Started On}".split("[")[0]})}
${set(ResolvedSpt,%{"${TestRuns[n].Finished On}".split("[")[0]})}
${set(cr,%{new Date("${CreatedSpt}").getTime()})}
${set(res,%{new Date("${ResolvedSpt}").getTime()})}
${set(dateDif,%{${res} - ${cr}})}
${set(dateStr,%{new Date(${dateDif}).toISOString().substr(11, 8)})}
Begin: ${CreatedSpt}
End: ${ResolvedSpt}
Diference: ${dateStr}
${set(dateDifTotal,%{${dateDifTotal} + ${dateDif}})}
#{end}
${set(dateStrTotal,%{new Date(${dateDifTotal}).toISOString().substr(11, 8)})}
Total Elapsed Time: ${dateStrTotal} |
Notes:
- it will output "00:00:00" when there are no tests associated with the execution (or your executions are really fast) and " " when there are tests in progress (i.e. "Executing" or "To Do" status).