[%# The contents of this file are subject to the Mozilla Public # License Version 1.1 (the "License"); you may not use this file # except in compliance with the License. You may obtain a copy of # the License at http://www.mozilla.org/MPL/ # # Software distributed under the License is distributed on an "AS # IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or # implied. See the License for the specific language governing # rights and limitations under the License. # # The Original Code is Litmus. # # The Initial Developer of the Original Code is Netscape Communications # Corporation. Portions created by Netscape are # Copyright (C) 1998 Netscape Communications Corporation. All # Rights Reserved. # # Contributor(s): Zach Lipton #%] [%# INTERFACE: # $test - the test object to display # @results - the list of all possible test results # $showallresults (optional) - if true, then all test results # will be shown # #%] [% PROCESS global/selects.none.tmpl %] [% script = ['edittestsscript'] %] [% INCLUDE global/header.html.tmpl title = "Testcase $test.testid - $test.summary" script=script includeselects=1 %]

Test [% test.testid %] - [% test.summary %]

Current Status: [% INCLUDE platformtable test=test %]
[% INCLUDE test/test.html.tmpl test=test results=results showedit=1 %]


[% # by default, we show only recent results and the last # three non-recent results. the showallresults switch # causes us to show all results: %] [% nonrecentcount = 0 %] [% FOREACH curresult = test.testresults %] [% UNLESS showallresults %] [% IF curresult.isrecent == 0 && nonrecentcount >= 3 %] [% NEXT %] [% ELSIF curresult.isrecent == 0 %] [% nonrecentcount = nonrecentcount+1 %] [% END %] [% END %] [% END %]
------- Test Result From [% curresult.user.email FILTER html %] [% curresult.timestamp FILTER html %] -------
Result: [% curresult.result.name FILTER html %]

Product:
[% INCLUDE product_to_img product=curresult.testid.product %]
Platform:
[% INCLUDE platform_to_img platform=curresult.platform %]
Opsys:
[% IF curresult.opsys %][% curresult.opsys.name FILTER html %][% ELSE %]Unknown[% END %]
Branch:
[% curresult.branch.name FILTER html %]
Build ID:
[% curresult.buildid FILTER html %]

[% IF curresult.note %] Note: [% curresult.note FILTER html %] [% END %]
Show all results
[% INCLUDE global/footer.html.tmpl %]