Template:Test results: Difference between revisions

From OLPC
Jump to navigation Jump to search
No edit summary
m (think this works)
 
(17 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<noinclude>
<noinclude>

This is the 'Test Results' template.
[[Form:Test case]] lets you add one or many of these to a [[:Category:Test cases|test case]].
It should be called with the following parameters:

[[{{FULLPAGENAME}}]] should be called in the following format:
<pre>
<pre>
{{Test_results
{{Test Results
|testresult_testcase=wiki page of a test case
|testresult_release=
|testresult_release=
|testresult_stream=
|testresult_stream=
|testresult_build=a number
|testresult_build=a number
|testresult_passfail=Pass or Fail]
|testresult_passfail=Pass or Fail
|testresult_tickets=comma-separated Trac numbers
|testresult_tickets=comma-separated Trac numbers
|testresult_comments=
|testresult_comments=
|testresult_date=
}}
}}
</pre>
</pre>
Edit the page and preview to see the template text.
Edit the page to see the template text.

It makes semantic annotations for these fields, see e.g. [[Property:PassFail]].
It makes semantic annotations for these fields, see e.g. [[Property:PassFail]].


Line 20: Line 21:
</noinclude>
</noinclude>
|-
|-
| [[Test case::{{{testresult_testcase|}}}]]
| [[Software release::{{{testresult_release|}}}]]
| [[Software release::{{{testresult_release|}}}]]
| [[Build stream::{{{testresult_stream|}}}]]
| [[Build stream::{{{testresult_stream|}}}]]
| [[Build number::{{{testresult_build|}}}]]
| [[Build number::{{{testresult_build|}}}]]
| [[PassFail::{{{testresult_passfail|}}}]]
| [[PassFail::{{{testresult_passfail|}}}]]
| {{#arraymap:{{{testresult_tickets|}}}|,|x|[[Trac bug number::x]]}}
| {{#arraymap:{{{testresult_tickets|}}}|,|x|[[Trac bug number::x| ]] [http://dev.laptop.org/ticket/x #x]}}
| [[Comments::{{{testresult_comments|}}}]]
| [[Comments::{{{testresult_comments|}}}]]
| [[Created::{{{testresult_date|}}}]]
<noinclude>
<noinclude>
|}
|}
Line 33: Line 34:


[[Special:AddPage/Test_Results]] prompts you to fill in a form that will add one of these to a page, however because the template has to sit inside a table, that seems to garble the page.
[[Special:AddPage/Test_Results]] prompts you to fill in a form that will add one of these to a page, however because the template has to sit inside a table, that seems to garble the page.

[[Category:Semantic infrastructure]]
</noinclude>
</noinclude>

Latest revision as of 07:43, 28 December 2008


Form:Test case lets you add one or many of these to a test case.

Template:Test results should be called in the following format:

{{Test_results
|testresult_release=
|testresult_stream=
|testresult_build=a number
|testresult_passfail=Pass or Fail
|testresult_tickets=comma-separated Trac numbers
|testresult_comments=
|testresult_date=
}}

Edit the page to see the template text. It makes semantic annotations for these fields, see e.g. Property:PassFail.

Software release:: Build stream:: Build number:: PassFail:: ,|x| #x}} Comments:: Created::

This template creates the wiki markup text for a row in a table, so the page invoking it must surround it with wiki markup for table top and bottom; see e.g. TestResults 8.2.0.

Special:AddPage/Test_Results prompts you to fill in a form that will add one of these to a page, however because the template has to sit inside a table, that seems to garble the page.