This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 6018 - Test case selection UI needs revision
Summary: Test case selection UI needs revision
Status: NEW
Alias: None
Product: Test Harness for Browser testing
Classification: Unclassified
Component: CSS Harness (show other bugs)
Version: unspecified
Hardware: All All
: P2 normal
Target Milestone: ---
Assignee: David Berfanger
QA Contact:
URL: http://www.w3.org/2008/07/test-harnes...
Whiteboard:
Keywords:
Depends on: 5957 6022
Blocks:
  Show dependency treegraph
 
Reported: 2008-09-02 16:56 UTC by David Berfanger
Modified: 2010-08-04 23:23 UTC (History)
2 users (show)

See Also:


Attachments
updated template (6.41 KB, text/html)
2008-09-02 21:18 UTC, fantasai
Details
revision proposal (6.22 KB, text/html)
2008-09-16 18:16 UTC, David Berfanger
Details
proposed template v2.0 (8.55 KB, text/html)
2008-09-18 23:23 UTC, fantasai
Details
another revision proposal (7.10 KB, text/html)
2008-09-18 23:27 UTC, David Berfanger
Details
proposed template v2.1 (8.49 KB, text/html)
2008-09-18 23:58 UTC, fantasai
Details
revision proposal 2.1.1 (8.76 KB, text/html)
2008-09-19 00:24 UTC, David Berfanger
Details
proposed template v2.2 (8.46 KB, text/html)
2008-09-19 00:25 UTC, fantasai
Details
proposed template v2.3 (8.99 KB, text/html)
2008-09-19 00:48 UTC, fantasai
Details
proposed template v2.3.1 (8.94 KB, text/html)
2008-09-19 01:09 UTC, fantasai
Details
A couple of minor changes (8.94 KB, text/html)
2008-09-19 15:50 UTC, David Berfanger
Details
Yet another change for IE (proposed template v2.3.3) (8.25 KB, text/html)
2008-09-19 17:47 UTC, David Berfanger
Details
Template v2.3.3 - as implemented in my testbed (68.42 KB, text/html)
2008-09-19 20:30 UTC, David Berfanger
Details

Description David Berfanger 2008-09-02 16:56:00 UTC
Fantasai has proposed alterations to the test case selection UI of the test harness.

This proposed redesign needs to be finalized and implemented.

Fantasai is working out some issues with the proposal, including radio button usage and text field sizing. Also, fantasai will complete cross browser testing of the proposed interface design.

David Berfanger will then integrate the design in the harness code base.
Comment 1 fantasai 2008-09-02 21:18:29 UTC
Created attachment 569 [details]
updated template
Comment 2 David Berfanger 2008-09-02 21:55:03 UTC
Is the user-agent text field to small?

Still needs means of providing user agent mode (Bug: 5957).

Comment 3 David Berfanger 2008-09-03 02:14:52 UTC
Proposed template assumes that the harness has the concept of test formats.

Adding dependency on bug 6022, requesting that this concept be added.
Comment 4 David Berfanger 2008-09-03 02:22:36 UTC
It has been proposed that individual tests can belong to more than one test group (bug 6023).

This enhancment affects how the selection lists of the proposed template are populated. 

Adding dependency on bug 6023.


Comment 5 fantasai 2008-09-03 02:46:26 UTC
Wrt dependency on 6022, I think you can just comment that part out for now. It doesn't need to block this fix.

Wrt 6023, I don't think that needs to affect what the template looks like, it just affects the back-end that generates it. Also should not be considered blocking.
Comment 6 David Berfanger 2008-09-16 18:16:34 UTC
Created attachment 585 [details]
revision proposal

Selecting, for example, an entry in the test selection list leaves any previous selection in the group selection list active.

The selection lists are more prominent than the radio buttons, and this behavior seems to cause confusion regarding which selection is active.

I'm wondering if enabling and disabling the selection lists with radio button changes would be a better approach?

See attached.
Comment 7 David Berfanger 2008-09-16 18:23:45 UTC
We need to finalize the UI component for entering for what UA mode are data being provided.
Comment 8 David Berfanger 2008-09-18 21:21:47 UTC
With the proposed interface, it is not guaranteed that each test format in a particular suite will have the same number of test cases; thus, we should change the first radio button to say "All tests" rather than, for example, "All 511 tests."

Comment 9 fantasai 2008-09-18 23:23:12 UTC
Created attachment 586 [details]
proposed template v2.0

How's this? Changes I made:
  - tweaked scripting to do disabling dynamically (so nothing's permanently
    disabled if you have scripting turned off)
  - scripted the User-agent string field to also be disabled
  - added a CSS opacity rule to make disabled fields look even more disabled
  - added a Mode field
  - reordered and relabeled options a bit

Comments?
Comment 10 David Berfanger 2008-09-18 23:27:52 UTC
Created attachment 587 [details]
another revision proposal

Similar issues to those already discussed are present when considering the controls for providing an alternate user agent string.

That is you can enter a ua string but fail to check the radio button that would make that entry valid.

Suggesting enabling and disabling the text field for entering a new ua string according to which radio button is selected.

Separately, the form controls needed additional mark-up to make them functional with respect to providing posted data.
Comment 11 David Berfanger 2008-09-18 23:34:16 UTC
(In reply to comment #9)
> Created an attachment (id=586) [details]
> proposed template v2.0
> How's this? Changes I made:
>   - tweaked scripting to do disabling dynamically (so nothing's permanently
>     disabled if you have scripting turned off)
>   - scripted the User-agent string field to also be disabled
>   - added a CSS opacity rule to make disabled fields look even more disabled
>   - added a Mode field
>   - reordered and relabeled options a bit
> Comments?

Missed this previously.

Disregard my last proposal.

Will look at the new updates presently.
 
Comment 12 fantasai 2008-09-18 23:58:05 UTC
Created attachment 588 [details]
proposed template v2.1

Got some feedback already, heh.
Comment 13 David Berfanger 2008-09-19 00:24:24 UTC
Created attachment 589 [details]
revision proposal 2.1.1


Added markup to the from controls to make them functional with respect to providing correctly posted data.

I'm not sure I understand how the mode Other is supposed to work.

The dynamic disabling breaks when returning to the page using the browsers back button, disabling the selection box while leaving the radio button checked.
Comment 14 fantasai 2008-09-19 00:25:41 UTC
Created attachment 590 [details]
proposed template v2.2

A few minor fixes to the UA string styling.

Would it be possible to grab the least of the three and say e.g. All 511+ tests? Or maybe it's better to leave it out. I'm ok either way.
Comment 15 fantasai 2008-09-19 00:29:40 UTC
Other doesn't do anything, it's just a label. If someone picks it, it means we're probably missing something from the list. But at least their results aren't getting mixed up with those of another mode.

I'll make a diff of my style changes so we can apply them to your form fixes.

Wrt dynamic stuff.. it works on FF. :/ Maybe the <script> element isn't triggering in other browsers?
Comment 16 fantasai 2008-09-19 00:48:46 UTC
Created attachment 591 [details]
proposed template v2.3

Merged changes. Also added 'type' attribute to <script> ... does the state work with the back button now?
Comment 17 fantasai 2008-09-19 01:09:23 UTC
Created attachment 592 [details]
proposed template v2.3.1

Tweak some margins etc.
Comment 18 David Berfanger 2008-09-19 05:21:33 UTC
(In reply to comment #16)
> Created an attachment (id=591) [details]
> proposed template v2.3
> Merged changes. Also added 'type' attribute to <script> ... does the state work
> with the back button now?

No, neither IE6 of IE7 handle state correctly with the back button.

Indeed, no problems with FireFox.

Comment 19 David Berfanger 2008-09-19 15:50:07 UTC
Created attachment 595 [details]
A couple of minor changes


I had put one of the hidden <input> tags directly in the <form> such that the HTML didn't validate. Moving it one line down into the first <div> fixes that problem.

Also, moving the <SCRIPT> code into the onload of the <BODY> seems to fix the IE state problem. Also, Firefox still works.
Comment 20 David Berfanger 2008-09-19 17:47:03 UTC
Created attachment 596 [details]
Yet another change for IE (proposed template v2.3.3)

Even though v.2.3.2 validates IE still seems to think there is a coding error on the page.

Looks to be related to thinking that the scripts are unterminated strings.

I'm thinking IE doesn't like the strings to wrap lines.

Perhaps, we can fix this problem by defining a javascript function in the <head> and using this scirpt for onload, onclick, and onchange events.
Comment 21 David Berfanger 2008-09-19 20:30:01 UTC
Created attachment 597 [details]
Template v2.3.3 - as implemented in my testbed

Here is the output from my test bed implementing the new interface as proposed in template version 2.3.3.

This uses the group names and test case names parsed from testinfo.data about two days ago.

Check to make sure that the naming scheme works.

If all is well, I will mark this bug as resolved after the next code check in.
Comment 22 fantasai 2008-10-03 21:53:13 UTC
I prefer the mode names from the template rather than the output here. Also the ordering in the template should be kept: Normal screen followed by Handheld screen, etc.