- display test group and subgroup in testcases header

Misc:
- don't display testcase config info when running tests
This commit is contained in:
ccooper%deadsquid.com 2006-02-07 21:34:28 +00:00
parent b96ada8fdf
commit 46ce57fc9d
3 changed files with 11 additions and 7 deletions

View File

@ -88,7 +88,7 @@
<div class="sec_head"> <div class="sec_head">
<table cellspacing="0" cellpadding="0"> <table cellspacing="0" cellpadding="0">
<tr> <tr>
<td class="l">Testcases</td> <td class="l">Testcases - <a href="run_tests.cgi?product=[% sysconfig.product.productid %]&amp;defaulttestgroup=[% tests.list.0.testgroup.testgroupid %]&amp;continuetesting=1" title="Click here to return to the Test Group selection page">[% tests.list.0.testgroup.name | html %]</a>: [% tests.list.0.subgroup.name | html %]</td>
<td class="r"> <td class="r">
<div class="nav"><a id="top_all" href="#" onclick="allStretch.showAll('height'); return false;">Show All</a></div> <div class="nav"><a id="top_all" href="#" onclick="allStretch.showAll('height'); return false;">Show All</a></div>
</td> </td>

View File

@ -59,7 +59,7 @@
<input name="id" type="hidden" value="[% test.testid | html %]"> <input name="id" type="hidden" value="[% test.testid | html %]">
<div class="testcase-content"> <div class="testcase-content">
[% INCLUDE test/test.html.tmpl test=test results=results showedit=show_admin %] [% INCLUDE test/test.html.tmpl test=test results=results showedit=show_admin show_config=1 %]
</div> </div>
</div> </div>
</div> </div>

View File

@ -26,15 +26,18 @@
#%] #%]
[%# INTERFACE: [%# INTERFACE:
# $test - the test object to show # $test - the testcase object to show
# @results - the list of all possible test results # @results - the list of all possible test results
# $showedit (optional) - include UI to edit the test? # $showedit (optional) - include UI to edit the testcase?
# for this to work, you must include the # for this to work, you must include the
# required scripts in the head # required scripts in the head
# $show_config - display the config options (testgroup, subgroup, etc.)
# for a given testcase
#%] #%]
[% PROCESS global/selects.none.tmpl %] [% PROCESS global/selects.none.tmpl %]
[% IF show_config %]
<table cellspacing="0" cellpadding="0" class="tcm"> <table cellspacing="0" cellpadding="0" class="tcm">
<tr> <tr>
<td width="20%"><b>Product:</b></td> <td width="20%"><b>Product:</b></td>
@ -78,6 +81,7 @@
</table> </table>
<br clear="all" /> <br clear="all" />
[% END %]
<table cellspacing="0" cellpadding="0" class="tcm"> <table cellspacing="0" cellpadding="0" class="tcm">
<tr> <tr>