Bug 857830 - [XML-RPC] TestCase.calculate_average_estimated_time() doesn't work
Summary: [XML-RPC] TestCase.calculate_average_estimated_time() doesn't work
Keywords:
Status: VERIFIED
Alias: None
Product: TCMS
Classification: Other
Component: XMLRPC
Version: 3.8.0
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: ---
: 3.8.10
Assignee: Yang Ren
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-09-17 07:13 UTC by Xin Gao
Modified: 2023-10-20 16:24 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description Xin Gao 2012-09-17 07:13:49 UTC
Description of problem:
TestCase.calculate_average_estimated_time() doesn't work

Version-Release number of selected component (if applicable):
tcms 3.8 on stage/production

How reproducible:


Steps to Reproduce:
1. TestCase.get(93021)['estimated_time']    ------> result is: '100:07:05'
2. TestCase.get(93857)['estimated_time']    ------> result is: '03:04:01'
3. TestCase.calculate_average_estimated_time([93021, 93857])
  
Actual results:
'00:00:00'

Expected results:
(100:07:05 + 03:04:01) / 2

Additional info:

Comment 1 jihu 2012-09-20 02:39:56 UTC
i reproduce this issue,it display average time '51:3095:33',only the min part is wrong,got "00:00:00" maybe some time delay.

reproduce steps:
1. TestCase.get(93021)['estimated_time']    ------> result is: '100:07:05'
2. TestCase.get(93857)['estimated_time']    ------> result is: '03:04:01'
3. TestCase.calculate_total_estimated_time([93021, 93857])
4. TestCase.calculate_average_estimated_time([93021, 93857])

Actual results:
'51:3095:33'

Expected results:
(100:07:05 + 03:04:01)/2

Comment 2 yangqiu 2014-07-30 08:56:35 UTC
Verify this bug on v3.8.10-1 on devel server.-->Fail

If the hour is over 60, the result is wrong.

verify steps:
1. TestCase.calculate_average_estimated_time([293348])------> result is: '180120'
2. TestCase.calculate_total_estimated_time([293348])

Actual results:
'15:03:00'

Expected results:
'75:03:00'

Comment 3 yangqiu 2014-08-05 09:30:23 UTC
verify this issue on v3.8.10-1 on devel server.--->Pass
verify steps are same as description.


Note You need to log in before you can comment on or make changes to this bug.