Changeset 1912

Show
Ignore:
Timestamp:
07/26/07 13:19:33 (17 months ago)
Author:
jukka.viitala@…
Message:

Test suite id (on which case was run) added to results table.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/763_ATF_PID/src/com/itmill/toolkit/ATF/Controller/TestCasesView.java

    r1874 r1912  
    11package com.itmill.toolkit.ATF.Controller; 
    22 
    3 import java.io.IOException; 
    4 import java.net.MalformedURLException; 
    5 import java.net.URL; 
    6 import java.net.URLConnection; 
    73import java.sql.SQLException; 
    84 
     
    139import com.itmill.toolkit.ui.Button; 
    1410import com.itmill.toolkit.ui.CustomComponent; 
    15 import com.itmill.toolkit.ui.Label; 
    1611import com.itmill.toolkit.ui.OrderedLayout; 
    1712import com.itmill.toolkit.ui.TabSheet; 
     
    4742    private void initUI() { 
    4843        setCompositionRoot(this.mainLayout = new OrderedLayout()); 
    49          
    50         mainLayout.addComponent(new Label("<h2>ATF Controller</h2>", Label.CONTENT_XHTML)); 
    5144        mainLayout.addComponent(table); 
    5245        OrderedLayout buttons = new OrderedLayout(OrderedLayout.ORIENTATION_HORIZONTAL); 
     
    195188        try { 
    196189            QueryContainer qc = new QueryContainer( 
    197                     "SELECT ID, RESULT, MESSAGE FROM testresult WHERE IDTESTCASE = '" + scriptID 
     190                    "SELECT ID, IDTESTSUITE, RESULT, MESSAGE FROM testresult WHERE IDTESTCASE = '" + scriptID 
    198191                            + "'", db.getConnection()); 
    199192            resultsTable.setContainerDataSource(qc); 
     
    202195        } 
    203196        // define which columns should be visible on Table component 
    204         resultsTable.setVisibleColumns(new Object[] { "ID", "RESULT", "MESSAGE" }); 
     197        resultsTable.setVisibleColumns(new Object[] { "ID", "IDTESTSUITE", "RESULT", "MESSAGE" }); 
    205198        resultsTable.setItemCaptionPropertyId("ID"); 
    206199    }