Changeset 1493


Ignore:
Timestamp:
04/11/14 11:21:45 (10 years ago)
Author:
pharms
Message:
  • state of the HCSE 2014 Paper. An appropriate tag will follow.
Location:
trunk
Files:
8 added
11 edited
2 moved

Legend:

Unmodified
Added
Removed
  • trunk/autoquest-core-usability-test/src/test/java/de/ugoe/cs/autoquest/usability/RequiredInefficientActionsRuleTest.java

    r1335 r1493  
    1515package de.ugoe.cs.autoquest.usability; 
    1616 
    17 import static de.ugoe.cs.autoquest.usability.UsabilityDefectDescription.SCROLL_REQUIRED; 
     17import static de.ugoe.cs.autoquest.usability.UsabilityDefectDescription.INEFFICIENT_ACTIONS; 
    1818import static de.ugoe.cs.autoquest.usability.UsabilityDefectSeverity.HIGH; 
    1919import static de.ugoe.cs.autoquest.usability.UsabilityDefectSeverity.INFO; 
     
    2121import static de.ugoe.cs.autoquest.usability.UsabilityDefectSeverity.MEDIUM; 
    2222 
     23import org.junit.Before; 
    2324import org.junit.Test; 
    2425 
     
    2829 * 
    2930 */ 
    30 public class RequiredScrollRuleTest extends AbstractUsabilityEvaluationTC { 
    31  
     31public class RequiredInefficientActionsRuleTest extends AbstractUsabilityEvaluationTC { 
     32 
     33    /** 
     34     * 
     35     */ 
     36    @Before 
     37    public void setUp() { 
     38        UsabilityDefectSeverity.defaultCoverageQuantile = 0; 
     39    } 
     40     
    3241    /** 
    3342     * 
     
    3544    @Test 
    3645    public void testWithNormalScroll_01() { 
    37         RequiredScrollRule rule = new RequiredScrollRule(); 
     46        RequiredInefficientActionsRule rule = new RequiredInefficientActionsRule(); 
    3847 
    3948        // ===== check ===== 
     
    5665    @Test 
    5766    public void testWithNormalScroll_02() { 
    58         RequiredScrollRule rule = new RequiredScrollRule(); 
     67        RequiredInefficientActionsRule rule = new RequiredInefficientActionsRule(); 
    5968 
    6069        // ===== check ===== 
     
    7988    @Test 
    8089    public void testWithNormalScroll_03() { 
    81         RequiredScrollRule rule = new RequiredScrollRule(); 
     90        RequiredInefficientActionsRule rule = new RequiredInefficientActionsRule(); 
    8291 
    8392        // ===== check ===== 
     
    91100         
    92101        UsabilityDefect[] expectedDefects = new UsabilityDefect[] 
    93             { new UsabilityDefect(HIGH, SCROLL_REQUIRED) }; 
     102            { new UsabilityDefect(HIGH, INEFFICIENT_ACTIONS) }; 
    94103 
    95104        assertUsabilityEvaluationResult(expectedDefects, rule.evaluate(createTaskModel(spec))); 
     
    102111    @Test 
    103112    public void testWithNormalScroll_04() { 
    104         RequiredScrollRule rule = new RequiredScrollRule(); 
    105  
    106         // ===== check ===== 
    107         String spec = 
    108             "UserSession {" + 
    109             "  Sequence seq1 {" + 
    110             "    Scroll body {}" + 
    111             "    Interaction elem1 {}" + 
    112             "  }" + 
    113             "  Sequence seq1 {" + 
    114             "    Scroll body {}" + 
    115             "    Interaction elem1 {}" + 
    116             "  }" + 
    117             "}"; 
    118          
    119         UsabilityDefect[] expectedDefects = new UsabilityDefect[] 
    120             { new UsabilityDefect(HIGH, SCROLL_REQUIRED) }; 
    121  
    122         assertUsabilityEvaluationResult(expectedDefects, rule.evaluate(createTaskModel(spec))); 
    123  
    124     } 
    125  
    126     /** 
    127      * 
    128      */ 
    129     @Test 
    130     public void testOnlySeldomPreceededByScroll_01() { 
    131         RequiredScrollRule rule = new RequiredScrollRule(); 
    132  
    133         // ===== check ===== 
    134         String spec = 
    135             "UserSession {" + 
    136             "  Sequence seq1 {" + 
    137             "    Interaction elem1 {}" + 
    138             "    Interaction elem1 {}" + 
    139             "    Interaction elem1 {}" + 
    140             "    Scroll body {}" + 
     113        RequiredInefficientActionsRule rule = new RequiredInefficientActionsRule(); 
     114 
     115        // ===== check ===== 
     116        String spec = 
     117            "UserSession {" + 
     118            "  Sequence {" + 
     119            "    Interaction elem1 {}" + 
     120            "    Scroll body {}" + 
     121            "  }" + 
     122            "}"; 
     123         
     124        UsabilityDefect[] expectedDefects = new UsabilityDefect[] 
     125            { new UsabilityDefect(HIGH, INEFFICIENT_ACTIONS) }; 
     126 
     127        assertUsabilityEvaluationResult(expectedDefects, rule.evaluate(createTaskModel(spec))); 
     128 
     129    } 
     130 
     131    /** 
     132     * 
     133     */ 
     134    @Test 
     135    public void testWithNormalScroll_05() { 
     136        RequiredInefficientActionsRule rule = new RequiredInefficientActionsRule(); 
     137 
     138        // ===== check ===== 
     139        String spec = 
     140            "UserSession {" + 
     141            "  Sequence seq1 {" + 
     142            "    Scroll body {}" + 
     143            "    Interaction elem1 {}" + 
     144            "  }" + 
     145            "  Sequence seq1 {" + 
     146            "    Scroll body {}" + 
     147            "    Interaction elem1 {}" + 
     148            "  }" + 
     149            "}"; 
     150         
     151        UsabilityDefect[] expectedDefects = new UsabilityDefect[] 
     152            { new UsabilityDefect(HIGH, INEFFICIENT_ACTIONS) }; 
     153 
     154        assertUsabilityEvaluationResult(expectedDefects, rule.evaluate(createTaskModel(spec))); 
     155 
     156    } 
     157 
     158    /** 
     159     * 
     160     */ 
     161    @Test 
     162    public void testWithNormalScroll_06() { 
     163        RequiredInefficientActionsRule rule = new RequiredInefficientActionsRule(); 
     164 
     165        // ===== check ===== 
     166        String spec = 
     167            "UserSession {" + 
     168            "  Sequence seq1 {" + 
     169            "    Interaction elem1 {}" + 
     170            "    Scroll body {}" + 
     171            "  }" + 
     172            "  Sequence seq1 {" + 
     173            "    Interaction elem1 {}" + 
     174            "    Scroll body {}" + 
     175            "  }" + 
     176            "}"; 
     177         
     178        UsabilityDefect[] expectedDefects = new UsabilityDefect[] 
     179            { new UsabilityDefect(HIGH, INEFFICIENT_ACTIONS) }; 
     180 
     181        assertUsabilityEvaluationResult(expectedDefects, rule.evaluate(createTaskModel(spec))); 
     182 
     183    } 
     184 
     185    /** 
     186     * 
     187     */ 
     188    @Test 
     189    public void testScrollSeldomRequired_01() { 
     190        RequiredInefficientActionsRule rule = new RequiredInefficientActionsRule(); 
     191 
     192        // ===== check ===== 
     193        String spec = 
     194            "UserSession {" + 
     195            "  Sequence seq1 {" + 
     196            "    Interaction elem1 {}" + 
     197            "    Interaction elem1 {}" + 
     198            "    Interaction elem1 {}" + 
     199            "    Scroll body {}" + 
     200            "    Interaction elem1 {}" + 
     201            "  }" + 
     202            "}"; 
     203         
     204        UsabilityDefect[] expectedDefects = new UsabilityDefect[] 
     205            { new UsabilityDefect(LOW, INEFFICIENT_ACTIONS) }; 
     206 
     207        assertUsabilityEvaluationResult(expectedDefects, rule.evaluate(createTaskModel(spec))); 
     208 
     209    } 
     210 
     211    /** 
     212     * 
     213     */ 
     214    @Test 
     215    public void testScrollSeldomRequired_02() { 
     216        RequiredInefficientActionsRule rule = new RequiredInefficientActionsRule(); 
     217 
     218        // ===== check ===== 
     219        String spec = 
     220            "UserSession {" + 
     221            "  Sequence seq1 {" + 
     222            "    Optional opt1 { }" + 
     223            "    Interaction elem1 {}" + 
     224            "  }" + 
     225            "  Sequence seq1 {" + 
     226            "    Optional opt1 {" + 
     227            "      Scroll body {}" + 
     228            "    }" + 
     229            "    Interaction elem1 {}" + 
     230            "  }" + 
     231            "  Sequence seq1 {" + 
     232            "    Optional opt1 {" + 
     233            "      Scroll body {}" + 
     234            "    }" + 
     235            "    Interaction elem1 {}" + 
     236            "  }" + 
     237            "}"; 
     238         
     239        UsabilityDefect[] expectedDefects = new UsabilityDefect[] 
     240            { new UsabilityDefect(MEDIUM, INEFFICIENT_ACTIONS) }; 
     241 
     242        assertUsabilityEvaluationResult(expectedDefects, rule.evaluate(createTaskModel(spec))); 
     243 
     244    } 
     245 
     246    /** 
     247     * 
     248     */ 
     249    @Test 
     250    public void testScrollSeldomRequired_03() { 
     251        RequiredInefficientActionsRule rule = new RequiredInefficientActionsRule(); 
     252 
     253        // ===== check ===== 
     254        String spec = 
     255            "UserSession {" + 
     256            "  Sequence seq1 {" + 
     257            "    Interaction elem1 {}" + 
     258            "    Optional opt1 { }" + 
     259            "  }" + 
     260            "  Sequence seq1 {" + 
     261            "    Interaction elem1 {}" + 
     262            "    Optional opt1 {" + 
     263            "      Scroll body {}" + 
     264            "    }" + 
     265            "  }" + 
     266            "  Sequence seq1 {" + 
     267            "    Interaction elem1 {}" + 
     268            "    Optional opt1 {" + 
     269            "      Scroll body {}" + 
     270            "    }" + 
     271            "  }" + 
     272            "}"; 
     273         
     274        UsabilityDefect[] expectedDefects = new UsabilityDefect[] 
     275            { new UsabilityDefect(MEDIUM, INEFFICIENT_ACTIONS) }; 
     276 
     277        assertUsabilityEvaluationResult(expectedDefects, rule.evaluate(createTaskModel(spec))); 
     278 
     279    } 
     280 
     281    /** 
     282     * 
     283     */ 
     284    @Test 
     285    public void testScrollSeldomRequired_04() { 
     286        RequiredInefficientActionsRule rule = new RequiredInefficientActionsRule(); 
     287 
     288        // ===== check ===== 
     289        String spec = 
     290            "UserSession {" + 
     291            "  Sequence seq1 {" + 
     292            "    Optional opt1 { }" + 
     293            "    Interaction elem1 {}" + 
     294            "  }" + 
     295            "  Sequence seq1 {" + 
     296            "    Optional opt1 {}" + 
     297            "    Interaction elem1 {}" + 
     298            "  }" + 
     299            "  Sequence seq1 {" + 
     300            "    Optional opt1 {" + 
     301            "      Scroll body {}" + 
     302            "    }" + 
     303            "    Interaction elem1 {}" + 
     304            "  }" + 
     305            "  Sequence seq1 {" + 
     306            "    Optional opt1 {" + 
     307            "      Scroll body {}" + 
     308            "    }" + 
     309            "    Interaction elem1 {}" + 
     310            "  }" + 
     311            "}"; 
     312         
     313        UsabilityDefect[] expectedDefects = new UsabilityDefect[] 
     314           { new UsabilityDefect(LOW, INEFFICIENT_ACTIONS) }; 
     315 
     316        assertUsabilityEvaluationResult(expectedDefects, rule.evaluate(createTaskModel(spec))); 
     317 
     318    } 
     319 
     320    /** 
     321     * 
     322     */ 
     323    @Test 
     324    public void testScrollSeldomRequired_05() { 
     325        RequiredInefficientActionsRule rule = new RequiredInefficientActionsRule(); 
     326 
     327        // ===== check ===== 
     328        String spec = 
     329            "UserSession {" + 
     330            "  Sequence seq1 {" + 
     331            "    Interaction elem1 {}" + 
     332            "    Optional opt1 { }" + 
     333            "  }" + 
     334            "  Sequence seq1 {" + 
     335            "    Interaction elem1 {}" + 
     336            "    Optional opt1 {}" + 
     337            "  }" + 
     338            "  Sequence seq1 {" + 
     339            "    Interaction elem1 {}" + 
     340            "    Optional opt1 {" + 
     341            "      Scroll body {}" + 
     342            "    }" + 
     343            "  }" + 
     344            "  Sequence seq1 {" + 
     345            "    Interaction elem1 {}" + 
     346            "    Optional opt1 {" + 
     347            "      Scroll body {}" + 
     348            "    }" + 
     349            "  }" + 
     350            "}"; 
     351         
     352        UsabilityDefect[] expectedDefects = new UsabilityDefect[] 
     353           { new UsabilityDefect(LOW, INEFFICIENT_ACTIONS) }; 
     354 
     355        assertUsabilityEvaluationResult(expectedDefects, rule.evaluate(createTaskModel(spec))); 
     356 
     357    } 
     358 
     359    /** 
     360     * 
     361     */ 
     362    @Test 
     363    public void testScrollSeldomRequired_06() { 
     364        RequiredInefficientActionsRule rule = new RequiredInefficientActionsRule(); 
     365 
     366        // ===== check ===== 
     367        String spec = 
     368            "UserSession {" + 
     369            "  Sequence seq1 {" + 
     370            "    Optional opt1 { }" + 
     371            "    Interaction elem1 {}" + 
     372            "  }" + 
     373            "  Sequence seq1 {" + 
     374            "    Optional opt1 { }" + 
     375            "    Interaction elem1 {}" + 
     376            "  }" + 
     377            "  Sequence seq1 {" + 
     378            "    Optional opt1 { }" + 
     379            "    Interaction elem1 {}" + 
     380            "  }" + 
     381            "  Sequence seq1 {" + 
     382            "    Optional opt1 {" + 
     383            "      Scroll body {}" + 
     384            "    }" + 
     385            "    Interaction elem1 {}" + 
     386            "  }" + 
     387            "}"; 
     388         
     389        UsabilityDefect[] expectedDefects = new UsabilityDefect[] 
     390            { new UsabilityDefect(INFO, INEFFICIENT_ACTIONS) }; 
     391 
     392        assertUsabilityEvaluationResult(expectedDefects, rule.evaluate(createTaskModel(spec))); 
     393 
     394    } 
     395 
     396    /** 
     397     * 
     398     */ 
     399    @Test 
     400    public void testScrollSeldomRequired_07() { 
     401        RequiredInefficientActionsRule rule = new RequiredInefficientActionsRule(); 
     402 
     403        // ===== check ===== 
     404        String spec = 
     405            "UserSession {" + 
     406            "  Sequence seq1 {" + 
     407            "    Interaction elem1 {}" + 
     408            "    Optional opt1 { }" + 
     409            "  }" + 
     410            "  Sequence seq1 {" + 
     411            "    Interaction elem1 {}" + 
     412            "    Optional opt1 { }" + 
     413            "  }" + 
     414            "  Sequence seq1 {" + 
     415            "    Interaction elem1 {}" + 
     416            "    Optional opt1 { }" + 
     417            "  }" + 
     418            "  Sequence seq1 {" + 
     419            "    Interaction elem1 {}" + 
     420            "    Optional opt1 {" + 
     421            "      Scroll body {}" + 
     422            "    }" + 
     423            "  }" + 
     424            "}"; 
     425         
     426        UsabilityDefect[] expectedDefects = new UsabilityDefect[] 
     427            { new UsabilityDefect(INFO, INEFFICIENT_ACTIONS) }; 
     428 
     429        assertUsabilityEvaluationResult(expectedDefects, rule.evaluate(createTaskModel(spec))); 
     430 
     431    } 
     432 
     433    /** 
     434     * 
     435     */ 
     436    @Test 
     437    public void testScrollSeldomRequired_08() { 
     438        RequiredInefficientActionsRule rule = new RequiredInefficientActionsRule(); 
     439 
     440        // ===== check ===== 
     441        String spec = 
     442            "UserSession {" + 
     443            "  Sequence seq1 {" + 
     444            "    Optional opt1 { }" + 
     445            "    Interaction elem1 {}" + 
     446            "  }" + 
     447            "  Sequence seq1 {" + 
     448            "    Optional opt1 { }" + 
     449            "    Interaction elem1 {}" + 
     450            "  }" + 
     451            "  Sequence seq1 {" + 
     452            "    Optional opt1 { }" + 
     453            "    Interaction elem1 {}" + 
     454            "  }" + 
     455            "  Sequence seq1 {" + 
     456            "    Optional opt1 {" + 
     457            "      Scroll body {}" + 
     458            "    }" + 
     459            "    Interaction elem1 {}" + 
     460            "  }" + 
     461            "  Sequence seq1 {" + 
     462            "    Optional opt1 { }" + 
     463            "    Interaction elem1 {}" + 
     464            "  }" + 
     465            "  Sequence seq1 {" + 
     466            "    Optional opt1 { }" + 
     467            "    Interaction elem1 {}" + 
     468            "  }" + 
     469            "  Sequence seq1 {" + 
     470            "    Optional opt1 { }" + 
     471            "    Interaction elem1 {}" + 
     472            "  }" + 
     473            "  Sequence seq1 {" + 
     474            "    Optional opt1 { }" + 
    141475            "    Interaction elem1 {}" + 
    142476            "  }" + 
     
    153487     */ 
    154488    @Test 
    155     public void testOnlySeldomPreceededByScroll_02() { 
    156         RequiredScrollRule rule = new RequiredScrollRule(); 
    157  
    158         // ===== check ===== 
    159         String spec = 
    160             "UserSession {" + 
    161             "  Sequence seq1 {" + 
    162             "    Optional opt1 { }" + 
    163             "    Interaction elem1 {}" + 
    164             "  }" + 
    165             "  Sequence seq1 {" + 
    166             "    Optional opt1 {" + 
    167             "      Scroll body {}" + 
    168             "    }" + 
    169             "    Interaction elem1 {}" + 
    170             "  }" + 
    171             "  Sequence seq1 {" + 
    172             "    Optional opt1 {" + 
    173             "      Scroll body {}" + 
    174             "    }" + 
    175             "    Interaction elem1 {}" + 
    176             "  }" + 
    177             "}"; 
    178          
    179         UsabilityDefect[] expectedDefects = new UsabilityDefect[] 
    180             { new UsabilityDefect(MEDIUM, SCROLL_REQUIRED) }; 
    181  
    182         assertUsabilityEvaluationResult(expectedDefects, rule.evaluate(createTaskModel(spec))); 
    183  
    184     } 
    185  
    186     /** 
    187      * 
    188      */ 
    189     @Test 
    190     public void testOnlySeldomPreceededByScroll_03() { 
    191         RequiredScrollRule rule = new RequiredScrollRule(); 
    192  
    193         // ===== check ===== 
    194         String spec = 
    195             "UserSession {" + 
    196             "  Sequence seq1 {" + 
    197             "    Optional opt1 { }" + 
    198             "    Interaction elem1 {}" + 
    199             "  }" + 
    200             "  Sequence seq1 {" + 
    201             "    Optional opt1 {}" + 
    202             "    Interaction elem1 {}" + 
    203             "  }" + 
    204             "  Sequence seq1 {" + 
    205             "    Optional opt1 {" + 
    206             "      Scroll body {}" + 
    207             "    }" + 
    208             "    Interaction elem1 {}" + 
    209             "  }" + 
    210             "  Sequence seq1 {" + 
    211             "    Optional opt1 {" + 
    212             "      Scroll body {}" + 
    213             "    }" + 
    214             "    Interaction elem1 {}" + 
    215             "  }" + 
    216             "}"; 
    217          
    218         UsabilityDefect[] expectedDefects = new UsabilityDefect[] 
    219            { new UsabilityDefect(LOW, SCROLL_REQUIRED) }; 
    220  
    221         assertUsabilityEvaluationResult(expectedDefects, rule.evaluate(createTaskModel(spec))); 
    222  
    223     } 
    224  
    225     /** 
    226      * 
    227      */ 
    228     @Test 
    229     public void testOnlySeldomPreceededByScroll_04() { 
    230         RequiredScrollRule rule = new RequiredScrollRule(); 
    231  
    232         // ===== check ===== 
    233         String spec = 
    234             "UserSession {" + 
    235             "  Sequence seq1 {" + 
    236             "    Optional opt1 { }" + 
    237             "    Interaction elem1 {}" + 
    238             "  }" + 
    239             "  Sequence seq1 {" + 
    240             "    Optional opt1 { }" + 
    241             "    Interaction elem1 {}" + 
    242             "  }" + 
    243             "  Sequence seq1 {" + 
    244             "    Optional opt1 { }" + 
    245             "    Interaction elem1 {}" + 
    246             "  }" + 
    247             "  Sequence seq1 {" + 
    248             "    Optional opt1 {" + 
    249             "      Scroll body {}" + 
    250             "    }" + 
    251             "    Interaction elem1 {}" + 
    252             "  }" + 
    253             "}"; 
    254          
    255         UsabilityDefect[] expectedDefects = new UsabilityDefect[] 
    256             { new UsabilityDefect(INFO, SCROLL_REQUIRED) }; 
    257  
    258         assertUsabilityEvaluationResult(expectedDefects, rule.evaluate(createTaskModel(spec))); 
    259  
    260     } 
    261  
    262     /** 
    263      * 
    264      */ 
    265     @Test 
    266     public void testOnlySeldomPreceededByScroll_05() { 
    267         RequiredScrollRule rule = new RequiredScrollRule(); 
    268  
    269         // ===== check ===== 
    270         String spec = 
    271             "UserSession {" + 
    272             "  Sequence seq1 {" + 
    273             "    Optional opt1 { }" + 
    274             "    Interaction elem1 {}" + 
    275             "  }" + 
    276             "  Sequence seq1 {" + 
    277             "    Optional opt1 { }" + 
    278             "    Interaction elem1 {}" + 
    279             "  }" + 
    280             "  Sequence seq1 {" + 
    281             "    Optional opt1 { }" + 
    282             "    Interaction elem1 {}" + 
    283             "  }" + 
    284             "  Sequence seq1 {" + 
    285             "    Optional opt1 {" + 
    286             "      Scroll body {}" + 
    287             "    }" + 
    288             "    Interaction elem1 {}" + 
    289             "  }" + 
    290             "  Sequence seq1 {" + 
    291             "    Optional opt1 { }" + 
    292             "    Interaction elem1 {}" + 
    293             "  }" + 
    294             "  Sequence seq1 {" + 
    295             "    Optional opt1 { }" + 
    296             "    Interaction elem1 {}" + 
    297             "  }" + 
    298             "  Sequence seq1 {" + 
    299             "    Optional opt1 { }" + 
    300             "    Interaction elem1 {}" + 
    301             "  }" + 
    302             "  Sequence seq1 {" + 
    303             "    Optional opt1 { }" + 
    304             "    Interaction elem1 {}" + 
     489    public void testScrollSeldomRequired_09() { 
     490        RequiredInefficientActionsRule rule = new RequiredInefficientActionsRule(); 
     491 
     492        // ===== check ===== 
     493        String spec = 
     494            "UserSession {" + 
     495            "  Sequence seq1 {" + 
     496            "    Interaction elem1 {}" + 
     497            "    Optional opt1 { }" + 
     498            "  }" + 
     499            "  Sequence seq1 {" + 
     500            "    Interaction elem1 {}" + 
     501            "    Optional opt1 { }" + 
     502            "  }" + 
     503            "  Sequence seq1 {" + 
     504            "    Interaction elem1 {}" + 
     505            "    Optional opt1 { }" + 
     506            "  }" + 
     507            "  Sequence seq1 {" + 
     508            "    Interaction elem1 {}" + 
     509            "    Optional opt1 {" + 
     510            "      Scroll body {}" + 
     511            "    }" + 
     512            "  }" + 
     513            "  Sequence seq1 {" + 
     514            "    Interaction elem1 {}" + 
     515            "    Optional opt1 { }" + 
     516            "  }" + 
     517            "  Sequence seq1 {" + 
     518            "    Interaction elem1 {}" + 
     519            "    Optional opt1 { }" + 
     520            "  }" + 
     521            "  Sequence seq1 {" + 
     522            "    Interaction elem1 {}" + 
     523            "    Optional opt1 { }" + 
     524            "  }" + 
     525            "  Sequence seq1 {" + 
     526            "    Interaction elem1 {}" + 
     527            "    Optional opt1 { }" + 
    305528            "  }" + 
    306529            "}"; 
  • trunk/autoquest-core-usability-test/src/test/java/de/ugoe/cs/autoquest/usability/UsabilityDefectDescriptionTest.java

    r927 r1493  
    1919 
    2020import java.util.HashMap; 
     21import java.util.LinkedList; 
     22import java.util.List; 
    2123import java.util.Map; 
    2224 
     
    2628 
    2729/** 
    28  * TODO comment 
    29  *  
    30  * @version $Revision: $ $Date: 20.07.2012$ 
    31  * @author 2012, last modified by $Author: pharms$ 
     30 * @author Patrick Harms 
    3231 */ 
    3332public class UsabilityDefectDescriptionTest { 
    3433 
    3534    /** 
    36      * TODO: comment 
    3735     *  
    3836     */ 
     
    4745 
    4846    /** 
    49      * TODO: comment 
    5047     *  
    5148     */ 
    5249    @Test 
    53     public void testParameterization() { 
     50    public void testParameterization_01() { 
    5451        for (UsabilityDefectDescription description : UsabilityDefectDescription.values()) { 
    55             Map<String, String> parameters = new HashMap<String, String>(); 
     52            Map<String, Object> parameters = new HashMap<String, Object>(); 
    5653 
    5754            for (String parameter : description.getDescriptionParameters()) { 
     
    6562    } 
    6663 
     64 
     65    /** 
     66     *  
     67     */ 
     68    @Test 
     69    public void testParameterization_02() { 
     70        for (UsabilityDefectDescription description : UsabilityDefectDescription.values()) { 
     71            Map<String, Object> parameters = new HashMap<String, Object>(); 
     72 
     73            for (String parameter : description.getDescriptionParameters()) { 
     74                List<String> values = new LinkedList<String>(); 
     75                values.add("<parameter " + parameter + " value 1>"); 
     76                values.add("<parameter " + parameter + " value 2>"); 
     77                values.add("<parameter " + parameter + " value 3>"); 
     78                parameters.put(parameter, values); 
     79            } 
     80 
     81            assertNotNull(description.toString(parameters)); 
     82            assertNotSame("", description.toString(parameters)); 
     83            System.err.println(description.toString(parameters)); 
     84        } 
     85    } 
     86 
    6787} 
  • trunk/autoquest-core-usability/.classpath

    r548 r1493  
    2020                </attributes> 
    2121        </classpathentry> 
    22         <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"> 
     22        <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.7"> 
    2323                <attributes> 
    2424                        <attribute name="maven.pomderived" value="true"/> 
  • trunk/autoquest-core-usability/pom.xml

    r927 r1493  
    1 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 
    2   <parent> 
    3     <groupId>de.ugoe.cs.autoquest</groupId> 
    4     <artifactId>autoquest</artifactId> 
    5     <version>0.0.1-SNAPSHOT</version> 
    6   </parent> 
    7   <modelVersion>4.0.0</modelVersion> 
    8   <artifactId>autoquest-core-usability</artifactId> 
    9   <name>autoquest-core-usability</name> 
    10   <licenses> 
    11     <license> 
    12       <name>The Apache Software License, Version 2.0</name> 
    13       <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url> 
    14     </license> 
    15   </licenses> 
    16   <scm> 
    17     <url>${autoquest-scm-trunk-dir}/autoquest-core-usability</url> 
    18   </scm> 
    19   <dependencies> 
    20     <dependency> 
     1<project 
     2    xmlns="http://maven.apache.org/POM/4.0.0" 
     3    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
     4    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" 
     5> 
     6    <parent> 
    217        <groupId>de.ugoe.cs.autoquest</groupId> 
    22         <artifactId>autoquest-core-tasktrees</artifactId> 
    23         <version>${project.parent.version}</version> 
    24     </dependency> 
    25   </dependencies> 
    26   <build> 
    27     <plugins> 
    28       <plugin> 
    29         <groupId>org.jvnet.jaxb2.maven2</groupId> 
    30         <artifactId>maven-jaxb2-plugin</artifactId> 
    31         <version>0.8.2</version> 
    32         <configuration> 
    33           <generatePackage>de.ugoe.cs.autoquest.usability</generatePackage> 
    34         </configuration> 
    35         <executions> 
    36           <execution> 
    37             <goals> 
    38               <goal>generate</goal> 
    39             </goals> 
    40           </execution> 
    41         </executions> 
    42       </plugin> 
    43     </plugins> 
    44   </build> 
     8        <artifactId>autoquest</artifactId> 
     9        <version>0.0.1-SNAPSHOT</version> 
     10    </parent> 
     11    <modelVersion>4.0.0</modelVersion> 
     12    <artifactId>autoquest-core-usability</artifactId> 
     13    <name>autoquest-core-usability</name> 
     14    <licenses> 
     15        <license> 
     16            <name>The Apache Software License, Version 2.0</name> 
     17            <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url> 
     18        </license> 
     19    </licenses> 
     20    <scm> 
     21        <url>${autoquest-scm-trunk-dir}/autoquest-core-usability</url> 
     22    </scm> 
     23    <dependencies> 
     24        <dependency> 
     25            <groupId>de.ugoe.cs.autoquest</groupId> 
     26            <artifactId>autoquest-core-tasktrees</artifactId> 
     27            <version>${project.parent.version}</version> 
     28        </dependency> 
     29        <dependency> 
     30            <groupId>org.apache.commons</groupId> 
     31            <artifactId>commons-math3</artifactId> 
     32            <version>3.2</version> 
     33        </dependency> 
     34    </dependencies> 
     35    <build> 
     36        <plugins> 
     37            <plugin> 
     38                <groupId>org.jvnet.jaxb2.maven2</groupId> 
     39                <artifactId>maven-jaxb2-plugin</artifactId> 
     40                <version>0.8.2</version> 
     41                <configuration> 
     42                    <generatePackage>de.ugoe.cs.autoquest.usability</generatePackage> 
     43                </configuration> 
     44                <executions> 
     45                    <execution> 
     46                        <goals> 
     47                            <goal>generate</goal> 
     48                        </goals> 
     49                    </execution> 
     50                </executions> 
     51            </plugin> 
     52        </plugins> 
     53    </build> 
    4554</project> 
  • trunk/autoquest-core-usability/src/main/java/de/ugoe/cs/autoquest/usability/RequiredInefficientActionsRule.java

    r1335 r1493  
    1515package de.ugoe.cs.autoquest.usability; 
    1616 
    17 import java.text.DecimalFormat; 
    1817import java.util.Collection; 
    1918import java.util.HashMap; 
    2019import java.util.Map; 
    2120 
    22 import de.ugoe.cs.autoquest.eventcore.IEventType; 
     21import org.apache.commons.math3.stat.descriptive.DescriptiveStatistics; 
     22 
     23import de.ugoe.cs.autoquest.eventcore.Event; 
    2324import de.ugoe.cs.autoquest.eventcore.gui.Scroll; 
     25import de.ugoe.cs.autoquest.tasktrees.treeifc.DefaultTaskInstanceTraversingVisitor; 
     26import de.ugoe.cs.autoquest.tasktrees.treeifc.IEventTask; 
    2427import de.ugoe.cs.autoquest.tasktrees.treeifc.IEventTaskInstance; 
    25 import de.ugoe.cs.autoquest.tasktrees.treeifc.IIterationInstance; 
    26 import de.ugoe.cs.autoquest.tasktrees.treeifc.IOptionalInstance; 
    27 import de.ugoe.cs.autoquest.tasktrees.treeifc.ISelectionInstance; 
    28 import de.ugoe.cs.autoquest.tasktrees.treeifc.ISequence; 
    29 import de.ugoe.cs.autoquest.tasktrees.treeifc.ISequenceInstance; 
     28import de.ugoe.cs.autoquest.tasktrees.treeifc.IMarkingTemporalRelationship; 
    3029import de.ugoe.cs.autoquest.tasktrees.treeifc.ITask; 
    3130import de.ugoe.cs.autoquest.tasktrees.treeifc.ITaskInstance; 
     
    3837 * @author 2012, last modified by $Author: pharms$ 
    3938 */ 
    40 public class RequiredScrollRule implements UsabilityEvaluationRule { 
     39public class RequiredInefficientActionsRule implements UsabilityEvaluationRule { 
    4140 
    4241    /* 
     
    4746    @Override 
    4847    public UsabilityEvaluationResult evaluate(ITaskModel taskModel) { 
    49         Map<ITask, Integer> smellingTasks = getTasksStartingWithScroll(taskModel.getTasks()); 
     48        UsabilityEvaluationResult results = new UsabilityEvaluationResult(taskModel); 
    5049 
    51         UsabilityEvaluationResult results = new UsabilityEvaluationResult(); 
    52         analyzeTasksStartingWithScroll(smellingTasks, results); 
     50        Map<ITask, double[]> smellingTasks = getInefficientActionStatistics(taskModel.getTasks()); 
     51        analyzeTasksWithInefficientActions(smellingTasks, results, taskModel); 
    5352 
    5453        return results; 
     
    5857     * 
    5958     */ 
    60     private void analyzeTasksStartingWithScroll(Map<ITask, Integer>       smellingTasks, 
    61                                                 UsabilityEvaluationResult results) 
     59    private void analyzeTasksWithInefficientActions(Map<ITask, double[]>      smellingTasks, 
     60                                                    UsabilityEvaluationResult results, 
     61                                                    ITaskModel                taskModel) 
    6262    { 
    6363 
    64         for (Map.Entry<ITask, Integer> entry : smellingTasks.entrySet()) { 
    65             float ratio = entry.getValue() / (float) entry.getKey().getInstances().size(); 
     64        for (Map.Entry<ITask, double[]> entry : smellingTasks.entrySet()) { 
     65            DescriptiveStatistics stats = new DescriptiveStatistics(entry.getValue()); 
     66             
     67            int ratio = (int) (1000 * stats.getMean()); 
    6668 
    67             UsabilityDefectSeverity severity = null; 
    68             if (ratio > 0.9) { 
    69                 severity = UsabilityDefectSeverity.HIGH; 
    70             } 
    71             else if (ratio > 0.6) { 
    72                 severity = UsabilityDefectSeverity.MEDIUM; 
    73             } 
    74             else if (ratio > 0.4) { 
    75                 severity = UsabilityDefectSeverity.LOW; 
    76             } 
    77             else if (ratio > 0.2) { 
    78                 severity = UsabilityDefectSeverity.INFO; 
    79             } 
     69            UsabilityDefectSeverity severity = UsabilityDefectSeverity.getSeverity 
     70                (ratio, 500, 300, 200, 100, entry.getKey(), taskModel); 
    8071 
    8172            if (severity != null) { 
    82                 Map<String, String> parameters = new HashMap<String, String>(); 
    83                 parameters.put("task", entry.getKey().toString()); 
    84                 parameters.put("scrollRatio", DecimalFormat.getInstance().format(ratio * 100)); 
     73                Map<String, Object> parameters = new HashMap<String, Object>(); 
     74                parameters.put("task", entry.getKey()); 
     75                parameters.put("ratio", (ratio / 10)); 
    8576 
    86                 results.addDefect(severity, UsabilityDefectDescription.SCROLL_REQUIRED, parameters); 
     77                results.addDefect 
     78                    (severity, UsabilityDefectDescription.INEFFICIENT_ACTIONS, parameters); 
    8779            } 
    8880        } 
     
    9284     *  
    9385     */ 
    94     private Map<ITask, Integer> getTasksStartingWithScroll(Collection<ITask> tasks) { 
    95         Map<ITask, Integer> scrollCounts = new HashMap<ITask, Integer>(); 
     86    private Map<ITask, double[]> getInefficientActionStatistics(Collection<ITask> tasks) { 
     87        Map<ITask, double[]> inefficientActionRatios = new HashMap<ITask, double[]>(); 
    9688         
    9789        for (ITask task : tasks) { 
    98             // only sequences are important for required scrolls 
    99             if (task instanceof ISequence) { 
    100                 int count = countInstancesStartingWithScroll(task); 
    101                 if (count > 0) { 
    102                     scrollCounts.put(task, count); 
     90            if (taskMustBeChecked(task))  { 
     91                double[] ratios = getRatiosOfInefficientActionsInInstances(task); 
     92                 
     93                for (int i = 0; i < ratios.length; i++) { 
     94                    if (ratios[i] > 0) { 
     95                        // there is at least on inefficient action 
     96                        inefficientActionRatios.put(task, ratios); 
     97                        break; 
     98                    } 
    10399                } 
    104100            } 
    105101        } 
    106102         
    107         return scrollCounts; 
     103        return inefficientActionRatios; 
    108104    } 
    109105 
     
    111107     * 
    112108     */ 
    113     private int countInstancesStartingWithScroll(ITask task) { 
    114         Collection<ITaskInstance> instances = task.getInstances(); 
    115          
    116         int counter = 0; 
    117         for (ITaskInstance instance : instances) { 
    118             if (startsWithScroll(instance)) { 
    119                 counter++; 
    120             } 
     109    private boolean taskMustBeChecked(ITask task) { 
     110        if ((task instanceof IEventTask) || (task instanceof IMarkingTemporalRelationship)) { 
     111            // event tasks are not considered 
     112            // marking temporal relationships have a child, that is more important, but it will 
     113            // be checked independently as all tasks of a task model are checked separately 
     114            return false; 
    121115        } 
    122          
    123         return counter; 
     116        else { 
     117            return true; 
     118        } 
    124119    } 
    125120 
     
    127122     * 
    128123     */ 
    129     private boolean startsWithScroll(ITaskInstance instance) { 
    130         if (instance instanceof ISequenceInstance) { 
    131             ITaskInstance firstChild = ((ISequenceInstance) instance).size() > 1 ? 
    132                 ((ISequenceInstance) instance).get(0) : null; 
    133  
    134             if (firstChild == null) { 
    135                 throw new IllegalArgumentException 
    136                     ("instance of a sequence must have at least two children"); 
    137             } 
    138  
    139             if (startsWithScroll(firstChild)) { 
    140                 return true; 
    141             } 
    142         } 
    143         else if (instance instanceof ISelectionInstance) { 
    144             ITaskInstance child = ((ISelectionInstance) instance).getChild(); 
    145              
    146             if (child != null) { 
    147                 return startsWithScroll(child); 
    148             } 
    149             else { 
    150                 throw new IllegalArgumentException("instance of a selection must have a child"); 
    151             } 
    152         } 
    153         else if (instance instanceof IIterationInstance) { 
    154             ITaskInstance firstChild = ((IIterationInstance) instance).size() > 0 ? 
    155                 ((IIterationInstance) instance).get(0) : null; 
    156  
    157             if (firstChild == null) { 
    158                 throw new IllegalArgumentException 
    159                     ("instance of an iteration must have at least one child"); 
    160             } 
    161  
    162             if (startsWithScroll(firstChild)) { 
    163                 return true; 
    164             } 
    165         } 
    166         else if (instance instanceof IOptionalInstance) { 
    167             ITaskInstance child = ((IOptionalInstance) instance).getChild(); 
    168              
    169             if (child != null) { 
    170                 return startsWithScroll(child); 
    171             } 
    172         } 
    173         else if (isScroll(instance)) { 
    174             return true; 
     124    private double[] getRatiosOfInefficientActionsInInstances(ITask task) { 
     125        Collection<ITaskInstance> instances = task.getInstances(); 
     126         
     127        double[] ratios = new double[instances.size()]; 
     128        int index = 0; 
     129        for (ITaskInstance instance : instances) { 
     130            ratios[index++] = getRatioOfInefficientActionsInInstance(instance); 
    175131        } 
    176132         
    177         return false; 
     133        return ratios; 
    178134    } 
    179135 
    180136    /** 
    181      * @param firstChild 
    182      * @return 
     137     * 
    183138     */ 
    184     private boolean isScroll(ITaskInstance instance) { 
    185         ITaskInstance instanceToCheck = instance; 
     139    private double getRatioOfInefficientActionsInInstance(ITaskInstance instance) { 
     140        final int[] count = new int[2]; 
     141        count[0] = 0; 
     142        count[1] = 0; 
    186143         
    187         if (instanceToCheck instanceof IIterationInstance) { 
    188             instanceToCheck = ((IIterationInstance) instanceToCheck).size() > 0 ? 
    189                 ((IIterationInstance) instanceToCheck).get(0) : null; 
     144        instance.accept(new DefaultTaskInstanceTraversingVisitor() { 
     145            @Override 
     146            public void visit(IEventTaskInstance eventTaskInstance) { 
     147                if (isInefficientAction(eventTaskInstance.getEvent())) { 
     148                    count[0]++; 
     149                } 
     150                 
     151                count[1]++; 
     152            } 
     153             
     154        }); 
     155         
     156        return (double) count[0] / count[1]; 
     157    } 
    190158 
    191             if (instanceToCheck == null) { 
    192                 throw new IllegalArgumentException 
    193                     ("instance of an iteration must have at least one child"); 
    194             } 
    195         } 
    196          
    197         if (instanceToCheck instanceof IEventTaskInstance) { 
    198             IEventType type = ((IEventTaskInstance) instanceToCheck).getEvent().getType(); 
    199              
    200             return (type instanceof Scroll); 
    201         } 
    202          
    203         return false; 
     159    /** 
     160     * 
     161     */ 
     162    private boolean isInefficientAction(Event event) { 
     163        return (event.getType() instanceof Scroll); 
    204164    } 
    205165 
  • trunk/autoquest-core-usability/src/main/java/de/ugoe/cs/autoquest/usability/TextInputStatisticsRule.java

    r1335 r1493  
    1515package de.ugoe.cs.autoquest.usability; 
    1616 
    17 import java.text.DecimalFormat; 
    1817import java.util.ArrayList; 
    1918import java.util.Collection; 
     
    5756        calculateStatistics(taskModel.getUserSessions(), statistics); 
    5857 
    59         UsabilityEvaluationResult results = new UsabilityEvaluationResult(); 
     58        UsabilityEvaluationResult results = new UsabilityEvaluationResult(taskModel); 
    6059        analyzeStatistics(statistics, results); 
    6160 
     
    8079                                     UsabilityEvaluationResult results) 
    8180    { 
    82         float allTextFieldInputs = 
     81        int allTextFieldInputs = 
    8382            statistics.getNoOfTextFieldInputs() + statistics.getNoOfTextAreaInputs(); 
    8483 
    85         float ratio = allTextFieldInputs / (float) statistics.getNoOfAllEvents(); 
    86  
    87         UsabilityDefectSeverity severity = null; 
    88         if (ratio > 0.9) { 
    89             severity = UsabilityDefectSeverity.HIGH; 
    90         } 
    91         else if (ratio > 0.7) { 
    92             severity = UsabilityDefectSeverity.MEDIUM; 
    93         } 
    94         else if (ratio > 0.5) { 
    95             severity = UsabilityDefectSeverity.LOW; 
    96         } 
    97         else if (ratio > 0.3) { 
    98             severity = UsabilityDefectSeverity.INFO; 
    99         } 
    100  
     84        int ratio = 1000 * allTextFieldInputs / statistics.getNoOfAllEvents(); 
     85 
     86        // TODO comment magic numbers 
     87        UsabilityDefectSeverity severity = UsabilityDefectSeverity.getSeverity 
     88            (ratio, 900, 700, 500, 300); 
     89         
    10190        if (severity != null) { 
    102             Map<String, String> parameters = new HashMap<String, String>(); 
    103             parameters.put("textInputRatio", DecimalFormat.getInstance().format(ratio * 100)); 
     91            Map<String, Object> parameters = new HashMap<String, Object>(); 
     92            parameters.put("textInputRatio", (ratio / 10)); 
    10493 
    10594            results.addDefect 
     
    122111            int noOfUsagesOfTextField1WithSameTextInTextField2 = entry.enteredTexts.size(); 
    123112             
    124             float ratioTextField1 = 
    125                 noOfUsagesOfTextField1WithSameTextInTextField2 / (float) noOfUsagesOfTextField1; 
    126              
    127             float ratioTextField2 = 
    128                 noOfUsagesOfTextField1WithSameTextInTextField2 / (float) noOfUsagesOfTextField2; 
    129              
    130             createTextFieldEntryRepetitionDefect 
    131                 (ratioTextField1, entry.textField1, entry.textField2, results); 
    132              
    133             createTextFieldEntryRepetitionDefect 
    134                 (ratioTextField2, entry.textField2, entry.textField1, results); 
    135              
    136         } 
    137     } 
    138  
    139     /** 
    140      * 
    141      */ 
    142     private void createTextFieldEntryRepetitionDefect(float                     ratioOfEqualEntries, 
     113            int ratioTextField1 =  
     114                1000 * noOfUsagesOfTextField1WithSameTextInTextField2 / noOfUsagesOfTextField1; 
     115             
     116            int ratioTextField2 = 
     117                1000 * noOfUsagesOfTextField1WithSameTextInTextField2 / noOfUsagesOfTextField2; 
     118 
     119            createTextFieldEntryRepetitionDefect(ratioTextField1, entry.textField1, 
     120                                                entry.textField2, results); 
     121             
     122            createTextFieldEntryRepetitionDefect(ratioTextField2, entry.textField2, 
     123                                                entry.textField1, results); 
     124             
     125        } 
     126    } 
     127 
     128    /** 
     129     * 
     130     */ 
     131    private void createTextFieldEntryRepetitionDefect(int                       ratioOfEqualEntries, 
    143132                                                      ITextField                textField1, 
    144133                                                      ITextField                textField2, 
    145134                                                      UsabilityEvaluationResult results) 
    146135    { 
    147         UsabilityDefectSeverity severity = null; 
    148         if (ratioOfEqualEntries > 0.9) { 
    149             severity = UsabilityDefectSeverity.HIGH; 
    150         } 
    151         else if (ratioOfEqualEntries > 0.5) { 
    152             severity = UsabilityDefectSeverity.MEDIUM; 
    153         } 
    154         else if (ratioOfEqualEntries > 0.2) { 
    155             severity = UsabilityDefectSeverity.LOW; 
    156         } 
    157         else if (ratioOfEqualEntries > 0.1) { 
    158             severity = UsabilityDefectSeverity.INFO; 
    159         } 
     136        // TODO comment magic numbers 
     137        UsabilityDefectSeverity severity = UsabilityDefectSeverity.getSeverity 
     138            (ratioOfEqualEntries, 900, 500, 200, 100); 
    160139         
    161140        if (severity != null) { 
    162             Map<String, String> parameters = new HashMap<String, String>(); 
    163             parameters.put("textRepetitionRatio", 
    164                            DecimalFormat.getInstance().format(ratioOfEqualEntries * 100)); 
    165             parameters.put("textField1", textField1.toString()); 
    166             parameters.put("textField2", textField2.toString()); 
     141            Map<String, Object> parameters = new HashMap<String, Object>(); 
     142            parameters.put("textRepetitionRatio", (ratioOfEqualEntries / 10)); 
     143            parameters.put("textField1", textField1); 
     144            parameters.put("textField2", textField2); 
    167145 
    168146            results.addDefect 
     
    192170            } 
    193171 
    194             float ratio = (float) noLetterOrDigitCount / (float) allCharactersCount; 
    195  
    196             UsabilityDefectSeverity severity = null; 
    197             if (ratio > 0.1) { // every 10th sign 
    198                 severity = UsabilityDefectSeverity.HIGH; 
    199             } 
    200             else if (ratio > 0.05) { // every 20th sign 
    201                 severity = UsabilityDefectSeverity.MEDIUM; 
    202             } 
    203             else if (ratio > 0.02) { // every 50th sign 
    204                 severity = UsabilityDefectSeverity.LOW; 
    205             } 
    206             else if (ratio > 0.01) { // every 100th sign 
    207                 severity = UsabilityDefectSeverity.INFO; 
    208             } 
     172            int ratio = 1000 * noLetterOrDigitCount / allCharactersCount; 
     173 
     174            UsabilityDefectSeverity severity = 
     175                UsabilityDefectSeverity.getSeverity(ratio, 
     176                                                    100, // every 10th sign 
     177                                                    50, // every 20th sign 
     178                                                    20, // every 50th sign 
     179                                                    10 // every 100th sign 
     180                                                    ); 
    209181 
    210182            if (severity != null) { 
    211                 Map<String, String> parameters = new HashMap<String, String>(); 
    212                 parameters.put("textField", textField.toString()); 
    213                 parameters.put("noLetterOrDigitRatio", 
    214                                DecimalFormat.getInstance().format(ratio * 100)); 
     183                Map<String, Object> parameters = new HashMap<String, Object>(); 
     184                parameters.put("textField", textField); 
     185                parameters.put("noLetterOrDigitRatio", (ratio / 10)); 
    215186 
    216187                results.addDefect 
    217                     (severity, UsabilityDefectDescription.TEXT_FIELD_NO_LETTER_OR_DIGIT_RATIO, parameters); 
     188                    (severity, UsabilityDefectDescription.TEXT_FIELD_NO_LETTER_OR_DIGIT_RATIO, 
     189                     parameters); 
    218190            } 
    219191        } 
  • trunk/autoquest-core-usability/src/main/java/de/ugoe/cs/autoquest/usability/UsabilityDefect.java

    r1335 r1493  
    1515package de.ugoe.cs.autoquest.usability; 
    1616 
     17import java.util.List; 
    1718import java.util.Map; 
    1819 
     
    3233 
    3334    /** */ 
    34     private Map<String, String> descriptionParameters; 
     35    private Map<String, Object> descriptionParameters; 
    3536 
    3637    /** 
    3738     * 
    3839     */ 
    39     UsabilityDefect(UsabilityDefectSeverity severity, UsabilityDefectDescription description) 
    40     { 
     40    UsabilityDefect(UsabilityDefectSeverity severity, UsabilityDefectDescription description) { 
    4141        this(severity, description, null); 
    4242    } 
     
    4747    UsabilityDefect(UsabilityDefectSeverity    severity, 
    4848                    UsabilityDefectDescription description, 
    49                     Map<String, String>        parameters) 
     49                    Map<String, Object>        parameters) 
    5050    { 
    5151        this.severity = severity; 
     
    8080    public String getParameterizedDescription() { 
    8181        return description.toString(descriptionParameters); 
     82    } 
     83 
     84    /** 
     85     *  
     86     */ 
     87    public List<Object> getDescriptionFragments() { 
     88        return description.toFragmentList(descriptionParameters); 
     89    } 
     90 
     91    /* 
     92     */ 
     93    public String getBriefDescription() { 
     94        return description.getBriefDescription(); 
    8295    } 
    8396 
  • trunk/autoquest-core-usability/src/main/java/de/ugoe/cs/autoquest/usability/UsabilityDefectDescription.java

    r1335 r1493  
    1818import java.io.InputStream; 
    1919import java.util.ArrayList; 
     20import java.util.Collection; 
    2021import java.util.List; 
    2122import java.util.Map; 
     
    3334public enum UsabilityDefectDescription { 
    3435     
    35     SCROLL_REQUIRED, 
     36    INEFFICIENT_ACTIONS, 
    3637    TEXT_FIELD_INPUT_RATIO, 
    3738    TEXT_FIELD_INPUT_REPETITIONS, 
    38     TEXT_FIELD_NO_LETTER_OR_DIGIT_RATIO; 
     39    TEXT_FIELD_NO_LETTER_OR_DIGIT_RATIO, 
     40    COOCCURENCE_SUCCEED, 
     41    COOCCURENCE_PRECED, 
     42    HIGH_EVENT_COVERAGE, 
     43    HIGH_TARGET_DISTANCE, 
     44    MISSING_FEEDBACK, 
     45    UNUSED_GUI_ELEMENTS; 
    3946 
    4047    /** */ 
     
    122129     *  
    123130     */ 
    124     public String toString(Map<String, String> parameters) throws IllegalArgumentException { 
     131    public String toString(Map<String, Object> parameters) throws IllegalArgumentException { 
    125132        StringBuffer result = new StringBuffer(); 
    126133 
     
    131138 
    132139            if (fragment instanceof ParameterFragment) { 
    133                 String value = null; 
     140                Object value = null; 
    134141                if (parameters != null) { 
    135142                    value = parameters.get(((ParameterFragment) fragment).getParameterName()); 
     
    137144 
    138145                if (value != null) { 
    139                     result.append(value); 
     146                    if (value instanceof Collection<?>) { 
     147                        int counter = 1; 
     148                        for (Object elem : ((Collection<?>) value)) { 
     149                            result.append('\n'); 
     150                            result.append(counter++); 
     151                            result.append(".: "); 
     152                            result.append(elem); 
     153                        } 
     154                    } 
     155                    else { 
     156                        result.append(value.toString()); 
     157                    } 
    140158                } 
    141159                else { 
     
    154172    } 
    155173 
     174    /** 
     175     *  
     176     */ 
     177    public List<Object> toFragmentList(Map<String, Object> parameters) 
     178        throws IllegalArgumentException 
     179    { 
     180        List<Object> result = new ArrayList<Object>(); 
     181 
     182        for (Object fragment : defectDescription.getTextFragmentOrParameterFragment()) { 
     183            if (fragment instanceof ParameterFragment) { 
     184                Object value = null; 
     185                if (parameters != null) { 
     186                    value = parameters.get(((ParameterFragment) fragment).getParameterName()); 
     187                } 
     188 
     189                if (value != null) { 
     190                    result.add(value); 
     191                } 
     192                else { 
     193                    throw new IllegalArgumentException 
     194                        ("required parameter \"" + 
     195                         ((ParameterFragment) fragment).getParameterName() + 
     196                         "\" for usability defect description " + this.name() + " not provided"); 
     197                } 
     198            } 
     199            else { 
     200                result.add(getFragmentString(fragment)); 
     201            } 
     202        } 
     203 
     204        return result; 
     205    } 
     206     
     207    /** 
     208     *  
     209     */ 
     210    public String getBriefDescription() { 
     211        return defectDescription.briefText; 
     212    } 
     213 
    156214    /* 
    157215     * (non-Javadoc) 
  • trunk/autoquest-core-usability/src/main/java/de/ugoe/cs/autoquest/usability/UsabilityDefectSeverity.java

    r927 r1493  
    1515package de.ugoe.cs.autoquest.usability; 
    1616 
     17import de.ugoe.cs.autoquest.tasktrees.treeifc.ITask; 
     18import de.ugoe.cs.autoquest.tasktrees.treeifc.ITaskInfo; 
     19import de.ugoe.cs.autoquest.tasktrees.treeifc.ITaskModel; 
     20import de.ugoe.cs.autoquest.tasktrees.treeifc.TaskMetric; 
     21 
    1722/** 
    1823 * TODO comment 
     
    2429     
    2530    INFO, LOW, MEDIUM, HIGH; 
     31     
     32    /** */ 
     33    static int defaultCoverageQuantile = 950; 
    2634 
     35    /** 
     36     *  
     37     */ 
     38    static UsabilityDefectSeverity getSeverity(int ratio, 
     39                                               int highRatioLevel, 
     40                                               int mediumRatioLevel, 
     41                                               int lowRatioLevel, 
     42                                               int infoRatioLevel) 
     43    { 
     44        return getSeverity(ratio, highRatioLevel, mediumRatioLevel, lowRatioLevel, infoRatioLevel, 
     45                           defaultCoverageQuantile); 
     46    } 
     47 
     48    /** 
     49     *  
     50     */ 
     51    static UsabilityDefectSeverity getSeverity(int        ratio, 
     52                                               int        highRatioLevel, 
     53                                               int        mediumRatioLevel, 
     54                                               int        lowRatioLevel, 
     55                                               int        infoRatioLevel, 
     56                                               ITask      taskWithDefect, 
     57                                               ITaskModel wholeTaskModel) 
     58    { 
     59        ITaskInfo taskInfo = wholeTaskModel.getTaskInfo(taskWithDefect); 
     60        int eventCoverageQuantile = taskInfo.getMeasureValue(TaskMetric.EVENT_COVERAGE_QUANTILE); 
     61        return getSeverity(ratio, highRatioLevel, mediumRatioLevel, lowRatioLevel, infoRatioLevel, 
     62                           eventCoverageQuantile); 
     63    } 
     64 
     65    /** 
     66     *  
     67     */ 
     68    static UsabilityDefectSeverity getSeverity(int ratio, 
     69                                               int highRatioLevel, 
     70                                               int mediumRatioLevel, 
     71                                               int lowRatioLevel, 
     72                                               int infoRatioLevel, 
     73                                               int coverageQuantile) 
     74    { 
     75        int effectiveRatio = ratio; 
     76         
     77        // event coverage ratio is in per mille. The more executed events a task covers, the more 
     78        // important a related usability defect. 
     79        /*if (eventCoverageRatio < 1) { 
     80            // one per mille, so one of thousand events is covered 
     81            effectiveRatio *= 0.2; 
     82        } 
     83        else if (eventCoverageRatio < 5) { 
     84            // 5 per mille, so one of 250 events is covered 
     85            effectiveRatio *= 0.4; 
     86        } 
     87        else if (eventCoverageRatio < 10) { 
     88            // 1 percent, so one of 100 events is covered 
     89            effectiveRatio *= 0.5; 
     90        } 
     91        else if (eventCoverageRatio < 20) { 
     92            // 2 percent, so one of 50 events is covered 
     93            effectiveRatio *= 0.6; 
     94        } 
     95        else if (eventCoverageRatio < 30) { 
     96            // 3 percent, so one of 33 events is covered 
     97            effectiveRatio *= 0.7; 
     98        } 
     99        else if (eventCoverageRatio < 40) { 
     100            // 4 percent, so one of 28 events is covered 
     101            effectiveRatio *= 0.8; 
     102        } 
     103        else if (eventCoverageRatio < 50) { 
     104            // 5 percent, so one of 25 events is covered 
     105            effectiveRatio *= 0.9; 
     106        }*/ 
     107        //else { 
     108            // more than 5 percent, so 1 of 20 events, do not change ratio 
     109        //} 
     110        if (coverageQuantile >= defaultCoverageQuantile) { 
     111            if (effectiveRatio >= highRatioLevel) { 
     112                return UsabilityDefectSeverity.HIGH; 
     113            } 
     114            else if (effectiveRatio >= mediumRatioLevel) { 
     115                return UsabilityDefectSeverity.MEDIUM; 
     116            } 
     117            else if (effectiveRatio >= lowRatioLevel) { 
     118                return UsabilityDefectSeverity.LOW; 
     119            } 
     120            else if (effectiveRatio >= infoRatioLevel) { 
     121                return UsabilityDefectSeverity.INFO; 
     122            } 
     123        } 
     124         
     125        return null; 
     126    } 
    27127} 
  • trunk/autoquest-core-usability/src/main/java/de/ugoe/cs/autoquest/usability/UsabilityEvaluationManager.java

    r1335 r1493  
    1919import java.util.logging.Level; 
    2020 
     21import de.ugoe.cs.autoquest.tasktrees.treeifc.IMarkingTemporalRelationship; 
     22import de.ugoe.cs.autoquest.tasktrees.treeifc.IStructuringTemporalRelationship; 
     23import de.ugoe.cs.autoquest.tasktrees.treeifc.ITask; 
    2124import de.ugoe.cs.autoquest.tasktrees.treeifc.ITaskModel; 
    2225import de.ugoe.cs.util.console.Console; 
     
    4548     */ 
    4649    private void init() { 
    47         rules.add(new TextInputStatisticsRule()); 
    48         rules.add(new RequiredScrollRule()); 
     50        //rules.add(new TextInputStatisticsRule()); 
     51        rules.add(new MissingFeedbackRule()); 
     52        rules.add(new EventCoverageRatioRule()); 
     53        rules.add(new RequiredInefficientActionsRule()); 
     54        //rules.add(new TaskCooccurrenceRule()); 
     55        rules.add(new TargetDistanceRule()); 
     56        //rules.add(new UnusedGUIElementsRule()); 
     57        //rules.add(new TaskTreeTestRule()); 
    4958    } 
    5059 
     
    6473                            " usability defects, of which " + result.getSevereDefects().size() + 
    6574                            " are severe."); 
     75             
     76            if ((rule instanceof EventCoverageRatioRule) || 
     77                (rule instanceof RequiredInefficientActionsRule) || 
     78                (rule instanceof TargetDistanceRule)) 
     79            { 
     80                ITask[] referredTasks = new ITask[result.getAllDefects().size()]; 
     81 
     82                for (int i = 0; i < result.getAllDefects().size(); i++) { 
     83                    referredTasks[i] = 
     84                        (ITask) result.getAllDefects().get(i).getDescriptionFragments().get(1); 
     85                } 
     86                 
     87                int counter = 0; 
     88                for (int i = 0; i < referredTasks.length; i++) { 
     89                    for (int j = 0; j < referredTasks.length; j++) { 
     90                        if (isChildOf(referredTasks[i], referredTasks[j])) { 
     91                            counter++; 
     92                            break; 
     93                        } 
     94                    } 
     95                } 
     96                 
     97                if (counter > 0) { 
     98                    Console.traceln(Level.INFO, counter + " of the findings are duplicates in " + 
     99                                    "that they refer to tasks whose parent tasks are also " + 
     100                                    "referred by the findings"); 
     101                } 
     102            } 
    66103        } 
    67104 
    68         UsabilityEvaluationResult result = new UsabilityEvaluationResult(interimResults); 
     105        UsabilityEvaluationResult result = new UsabilityEvaluationResult(taskModel, interimResults); 
    69106        Console.println("the evaluation result contains " + result.getAllDefects().size() + 
    70107                        " defects, of which " + result.getSevereDefects().size() + " are severe."); 
    71  
    72         List<UsabilityDefect> defects = result.getAllDefects(); 
    73         for (int i = 0; i < defects.size(); i++) { 
    74             Console.println((i + 1) + ": " + defects.get(i).getParameterizedDescription()); 
    75         } 
    76108 
    77109        return result; 
    78110    } 
    79111 
     112    /** 
     113     * <p> 
     114     * TODO: comment 
     115     * </p> 
     116     * 
     117     * @param iTask 
     118     * @param iTask2 
     119     * @return 
     120     */ 
     121    private boolean isChildOf(final ITask potChild, ITask potParent) { 
     122         
     123        if (potParent instanceof IStructuringTemporalRelationship) { 
     124            for (ITask child : ((IStructuringTemporalRelationship) potParent).getChildren()) { 
     125                if ((child == potChild) || isChildOf(potChild, child)) { 
     126                    return true; 
     127                } 
     128            } 
     129        } 
     130        else if (potParent instanceof IMarkingTemporalRelationship) { 
     131            ITask child = ((IMarkingTemporalRelationship) potParent).getMarkedTask(); 
     132            if ((child == potChild) || isChildOf(potChild, child)) { 
     133                return true; 
     134            } 
     135        } 
     136         
     137        return false; 
     138    } 
     139 
    80140} 
  • trunk/autoquest-core-usability/src/main/java/de/ugoe/cs/autoquest/usability/UsabilityEvaluationResult.java

    r1335 r1493  
    1919import java.util.Map; 
    2020 
     21import de.ugoe.cs.autoquest.tasktrees.treeifc.ITaskModel; 
     22 
    2123/** 
    2224 * TODO comment 
     
    2830     
    2931    /** */ 
     32    private ITaskModel taskModel; 
     33     
     34    /** */ 
    3035    private List<UsabilityDefect> defects = new ArrayList<UsabilityDefect>(); 
    3136 
     
    3338     * 
    3439     */ 
    35     public UsabilityEvaluationResult() { 
    36         // default constructor 
     40    public UsabilityEvaluationResult(ITaskModel taskModel) { 
     41        this.taskModel = taskModel; 
    3742    } 
    3843 
     
    4045     * 
    4146     */ 
    42     public UsabilityEvaluationResult(List<UsabilityEvaluationResult> results) { 
     47    public UsabilityEvaluationResult(ITaskModel                      taskModel, 
     48                                     List<UsabilityEvaluationResult> results) 
     49    { 
     50        this.taskModel = taskModel; 
    4351        for (UsabilityEvaluationResult result : results) { 
    4452            for (UsabilityDefect defect : result.getAllDefects()) { 
     
    5361    public void addDefect(UsabilityDefectSeverity    severity, 
    5462                          UsabilityDefectDescription description, 
    55                           Map<String, String>        parameters) 
     63                          Map<String, Object>        parameters) 
    5664    { 
    5765        defects.add(new UsabilityDefect(severity, description, parameters)); 
     
    8088    } 
    8189 
     90    /** 
     91     * @return the taskModel 
     92     */ 
     93    public ITaskModel getTaskModel() { 
     94        return taskModel; 
     95    } 
     96 
    8297} 
  • trunk/autoquest-core-usability/src/main/resources/defectDescriptions.xsd

    r442 r1493  
    11<?xml version="1.0" encoding="UTF-8"?> 
    22<xsd:schema 
    3   targetNamespace="http://quest" 
    4   xmlns:tns="http://quest" 
     3  targetNamespace="http://autoquest.informatik.uni-goettingen.de" 
     4  xmlns:tns="http://autoquest.informatik.uni-goettingen.de" 
    55  xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
    66  xmlns:jxb="http://java.sun.com/xml/ns/jaxb" 
     
    2222    </xsd:choice> 
    2323    <xsd:attribute name="defectId" type="xsd:string" use="required" /> 
     24    <xsd:attribute name="briefText" type="xsd:string" use="required" /> 
    2425  </xsd:complexType> 
    2526 
  • trunk/autoquest-core-usability/src/main/resources/defectDescriptions_en.xml

    r1335 r1493  
    11<?xml version="1.0" encoding="UTF-8"?> 
    22<defectDescriptions 
    3   xmlns="http://quest" 
     3  xmlns="http://autoquest.informatik.uni-goettingen.de" 
    44  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
    5   xsi:schemaLocation="http://quest defectDescriptions.xsd"> 
     5  xsi:schemaLocation="http://autoquest.informatik.uni-goettingen.de defectDescriptions.xsd"> 
    66   
    7   <defectDescription defectId="TEXT_FIELD_INPUT_RATIO"> 
     7  <defectDescription defectId="TEXT_FIELD_INPUT_RATIO" briefText="many text inputs"> 
    88    <textFragment> 
    99      The ratio of interactions that enter text into text fields is relatively high in comparison 
     
    1717  </defectDescription> 
    1818   
    19   <defectDescription defectId="TEXT_FIELD_INPUT_REPETITIONS"> 
     19  <defectDescription defectId="TEXT_FIELD_INPUT_REPETITIONS" briefText="many text repetitions"> 
    2020    <textFragment> 
    2121      In 
     
    3636  </defectDescription> 
    3737   
    38   <defectDescription defectId="TEXT_FIELD_NO_LETTER_OR_DIGIT_RATIO"> 
     38  <defectDescription defectId="TEXT_FIELD_NO_LETTER_OR_DIGIT_RATIO" briefText="many special signs"> 
    3939    <parameterFragment parameterName="noLetterOrDigitRatio" /> 
    4040    <textFragment> 
     
    5050  </defectDescription> 
    5151   
    52   <defectDescription defectId="SCROLL_REQUIRED"> 
     52  <defectDescription defectId="HIGH_EVENT_COVERAGE" briefText="often executed"> 
     53    <textFragment> 
     54      The task 
     55    </textFragment> 
     56    <parameterFragment parameterName="task" /> 
     57    <textFragment> 
     58      covers 
     59    </textFragment> 
     60    <parameterFragment parameterName="ratio" /> 
     61    <textFragment> 
     62      % of all recorded user actions. Therefore, it should be executed with a high efficiency. 
     63      You should consider making the task more efficient, by minimizing the number of actions to 
     64      be executed by users for fulfilling this task. 
     65    </textFragment> 
     66  </defectDescription> 
     67   
     68  <defectDescription defectId="INEFFICIENT_ACTIONS" briefText="inefficient actions"> 
     69    <textFragment> 
     70      For executing task 
     71    </textFragment> 
     72    <parameterFragment parameterName="task" /> 
     73    <textFragment> 
     74      , the user has to execute a high number of inefficient actions ( 
     75    </textFragment> 
     76    <parameterFragment parameterName="ratio" /> 
     77    <textFragment> 
     78      % in average). Such actions are, e.g., scrolls. The number of inefficient actions should 
     79      be as minimal as possible to increase the users efficiency in executing a task. Please 
     80      check the task structure for occurrences of the following event tasks and consider to prevent 
     81      them: scrolling. 
     82    </textFragment> 
     83  </defectDescription> 
     84   
     85  <defectDescription defectId="COOCCURENCE_SUCCEED" briefText="usual cooccurrence"> 
    5386    <textFragment> 
    5487      In 
    5588    </textFragment> 
    56     <parameterFragment parameterName="scrollRatio" /> 
     89    <parameterFragment parameterName="ratio" /> 
    5790    <textFragment> 
    5891      % of all occurrences, the task 
    5992    </textFragment> 
     93    <parameterFragment parameterName="task1" /> 
     94    <textFragment> 
     95      is succeeded by 
     96    </textFragment> 
     97    <parameterFragment parameterName="task2" /> 
     98    <textFragment> 
     99      . This shows, that both tasks are likely used in combination. Please consider to support the 
     100      execution of both tasks in one user action, e.g., by providing an appropriate button, to 
     101      reduce the number of actions to be performed by the user. 
     102    </textFragment> 
     103  </defectDescription> 
     104   
     105  <defectDescription defectId="COOCCURENCE_PRECED" briefText="usual cooccurrence"> 
     106    <textFragment> 
     107      In 
     108    </textFragment> 
     109    <parameterFragment parameterName="ratio" /> 
     110    <textFragment> 
     111      % of all occurrences, the task 
     112    </textFragment> 
     113    <parameterFragment parameterName="task2" /> 
     114    <textFragment> 
     115      is preceded by 
     116    </textFragment> 
     117    <parameterFragment parameterName="task1" /> 
     118    <textFragment> 
     119      . This shows, that both tasks are likely used in combination. Please consider to support the 
     120      execution of both tasks in one user action, e.g., by providing an appropriate button, to 
     121      reduce the number of actions to be performed by the user. 
     122    </textFragment> 
     123  </defectDescription> 
     124   
     125  <defectDescription defectId="HIGH_TARGET_DISTANCE" briefText="long way to go"> 
     126    <textFragment> 
     127      For executing the task 
     128    </textFragment> 
    60129    <parameterFragment parameterName="task" /> 
    61130    <textFragment> 
    62       is started with a scroll. This should be prevented as scrolling decreases the efficiency of 
    63       the user and indicates, that not all required information is visible at once in the 
    64       respective view. However, scrolling for reading of texts is no problem. 
     131      , the user utilizes 
     132    </textFragment> 
     133    <parameterFragment parameterName="noOfGUIElements" /> 
     134    <textFragment> 
     135      GUI elements on average. As these GUI elements have a high distance to each other ( 
     136    </textFragment> 
     137    <parameterFragment parameterName="distance" /> 
     138    <textFragment> 
     139      on average ), they should be more colocated to ease the execution of the task for the user. 
    65140    </textFragment> 
    66141  </defectDescription> 
     142   
     143  <defectDescription defectId="MISSING_FEEDBACK" briefText="missing feedback"> 
     144    <textFragment> 
     145      A click on the button 
     146    </textFragment> 
     147    <parameterFragment parameterName="button" /> 
     148    <textFragment> 
     149      seems to be missing user feedback. In 
     150    </textFragment> 
     151    <parameterFragment parameterName="multipleClickCount" /> 
     152    <textFragment> 
     153      of 
     154    </textFragment> 
     155    <parameterFragment parameterName="allClickCount" /> 
     156    <textFragment> 
     157      uses, the button was clicked several times. The average waiting time between two subsequent 
     158      clicks is 
     159    </textFragment> 
     160    <parameterFragment parameterName="averageWaitingTime" /> 
     161    <textFragment> 
     162      seconds. This is typical user behavior if the user does not see progress following his 
     163      actions. Please consider showing the user some progress after he performed the 
     164      first click. This is especially important if the operation triggered with the click usually 
     165      takes longer than one second. This defect was observed based on task 
     166    </textFragment> 
     167    <parameterFragment parameterName="task" /> 
     168    <textFragment> 
     169      . 
     170    </textFragment> 
     171  </defectDescription> 
     172   
     173  <defectDescription defectId="UNUSED_GUI_ELEMENTS" briefText="unused GUI elements"> 
     174    <parameterFragment parameterName="ratio" /> 
     175    <textFragment> 
     176      % of the GUI elements ( 
     177    </textFragment> 
     178    <parameterFragment parameterName="noOfUnused" /> 
     179    <textFragment> 
     180      of 
     181    </textFragment> 
     182    <parameterFragment parameterName="noOfAll" /> 
     183    <textFragment> 
     184      ) are not used. This can have several reasons. Either they are not 
     185      visible to the user or they are not required. If they are important, they may not be 
     186      recognized by the user. This can be caused by visual design or because they are too hidden. 
     187      If they are less important, they can either be removed from the GUI or relocated to a less 
     188      prominent position. The unused GUI elements are: 
     189    </textFragment> 
     190    <parameterFragment parameterName="unusedGuiElements" /> 
     191  </defectDescription> 
    67192</defectDescriptions> 
Note: See TracChangeset for help on using the changeset viewer.