Bug 1036028

Summary: [Test plan] Unable to calculate all run progress even if I select "Also select the rest XX page(s)"
Product: [Other] TCMS Reporter: Jin Zhao <jzhao>
Component: ApplicationAssignee: Yuguang Wang <yuwang>
Status: VERIFIED --- QA Contact: Nobody <nobody>
Severity: medium Docs Contact:
Priority: high    
Version: 3.8.5CC: cqi, junzhang, jzhao, ryang, vchen
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 3.8.5-4 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
Unable to calculate all run progress even if I select "Also select the rest XX page(s)" none

Description Jin Zhao 2013-11-29 08:45:09 UTC
Description of problem:


Version-Release number of selected component (if applicable):
V3.8.5-3 on https://tcms.app.qa.eng.nay.redhat.com

How reproducible:
Always


Steps to Reproduce:
1.Browser test plan which contain more than 20 test runs, e.g https://tcms.app.qa.eng.nay.redhat.com/plan/7686/
2.Click run tab
3.Select all test run(select the checkbox at top left corner), keep "Also select the rest 1 page(s)" as default selection
4. Click calculate progress
5. After finish the calculate, Click "Show More (1 pages left)"

Actual results:
The rest test run which can not be show in one page are not calculate the progress.

Expected results:
All run should be calculate

Additional info:

Comment 1 Chaobin Tang 2013-11-29 10:09:52 UTC
I should probably change how it says "calculate progress" into "calculate the runs shown below".

The button "calculate" only calculates the runs that are already loaded as of clicking.

While the UI could be misleading. I will work on that.

Comment 2 Chaobin Tang 2013-12-04 05:06:17 UTC
This one will be just like that.

The meaning of that 'Button' is to calculate the runs shown in the current page. In order to see progress for all runs, users will have just have to "Show More".

Comment 3 yangqiu 2013-12-05 03:12:02 UTC
Verify the bug on qa server.--->Fail

Steps to verify:
1.Browser test plan which contain more than 20 test runs, e.g https://tcms.app.qa.eng.nay.redhat.com/plan/7686/
2.Click run tab
3.Select all test run(select the checkbox at top left corner), keep "Also select the rest 1 page(s)" as default selection
4. Click calculate progress of selected runs.
5. After finish the calculate, Click "Show More (1 pages left)"

Actual results:
The rest test run which can not be show in one page are not calculate the progress.

Expected results:
All run should be calculate.

Comment 4 yangqiu 2013-12-05 03:13:05 UTC
Created attachment 832972 [details]
Unable to calculate all run progress even if I select "Also select the rest XX page(s)"

Comment 5 cqi 2013-12-05 04:53:05 UTC
(In reply to yangqiu from comment #3)
> Verify the bug on qa server.--->Fail
> 
> Steps to verify:
> 1.Browser test plan which contain more than 20 test runs, e.g
> https://tcms.app.qa.eng.nay.redhat.com/plan/7686/
> 2.Click run tab
> 3.Select all test run(select the checkbox at top left corner), keep "Also
> select the rest 1 page(s)" as default selection
> 4. Click calculate progress of selected runs.
> 5. After finish the calculate, Click "Show More (1 pages left)"
> 
> Actual results:
> The rest test run which can not be show in one page are not calculate the
> progress.
> 
> Expected results:
> All run should be calculate.

Comment 1 and 2 explained why this happens.

Comment 6 Jin Zhao 2013-12-05 11:31:03 UTC
After communicate with ctang, plan do not caculate runs which is hiden in list for performance issue. So we've keep agreement for below two update:
1. Change the button name from "calculate progress" to "calculate progress of selected shown run".
2. After select "Also select all runs not yet shown below", then when I click "Show More (XX pages left)", all cases are selected by default
 
--------------
So Verify V3.8.5-4 on https://tcms.app.qa.eng.nay.redhat.com  -- PASS

Verify steps:
1.Browser test plan which contain more than 20 test runs,https://tcms.app.qa.eng.nay.redhat.com/plan/7686/openshift-drupal-quick-starts-security#testruns
2.Select all test run(select the checkbox at top left corner), keep "Also select the rest 1 page(s)" as default selection
4. Click calculate progress of selected runs.

Actually result: All selected in current page have been calculated.

5.Click "Show More (XX pages left)" --> Actually result: run have been selected by default
6.Click calculate again,  --> Actually result: All selected run are caculating.