Testcase Query Examples: Difference between revisions

From OLPC
Jump to navigation Jump to search
No edit summary
Line 7: Line 7:
There are
There are
{{#ask:
{{#ask:
[[Category:Test cases]] [[Stream::joyride]]
[[Category:Test cases]] [[Build stream::joyride]]
| format=count
| format=count
| default=No articles found in [[:Category:Test cases]] with [[Property:Stream]] of [[Joyride]]?
| default=No articles found in [[:Category:Test cases]] with [[Property:Build stream]] of [[Joyride]]?
}} ''<== automatically generated!'' test cases in [[:Category:Test cases]] with [[Property:Stream]] of Joyride.
}} ''<== automatically generated!'' test cases in [[:Category:Test cases]] with [[Property:Build stream]] of Joyride.


=== Query displaying each test case ===
=== Query displaying each test case ===
Line 17: Line 17:


{{#ask:
{{#ask:
[[Category:Test cases]] [[Stream::joyride]]
[[Category:Test cases]] [[Build stream::joyride]]
| format=embedded
| format=embedded
| embedformat=h4
| embedformat=h4
| default=No articles found in [[:Category:Test cases]] with [[Property:Stream]] of [[Joyride]]?
| default=No articles found in [[:Category:Test cases]] with [[Property:Build stream]] of [[Joyride]]?
}}
}}


=== Bug: query for a disallowed value sometimes still works ===
=== Bug: query for a disallowed value sometimes still works ===


''Bug: if I query for a bogus value, it counts all of them.'' A query for Stream==BADVALUE returns a count of
''Bug: if I query for a bogus value, it counts all of them.'' A query for Build stream==BADVALUE returns a count of
{{#ask:
{{#ask:
[[Category:Test cases]] [[Stream::BOGUS VALUE]]
[[Category:Test cases]] [[Build stream::BOGUS VALUE]]
| format=count
| format=count
| default=No articles found in [[:Category:Test cases]] with [[Property:Stream]] of [[BOGUS VALUE]]?
| default=No articles found in [[:Category:Test cases]] with [[Property:Build stream]] of [[BOGUS VALUE]]?
}}
}}



Revision as of 21:04, 4 August 2008

Other ways to query for test cases than the query(s) on Test cases 8.2.0

See Inline query output formats.

Query counting each test case

There are {{#ask: Build stream::joyride

 | format=count
 | default=No articles found in Category:Test cases with Property:Build stream of Joyride?

}} <== automatically generated! test cases in Category:Test cases with Property:Build stream of Joyride.

Query displaying each test case

If the pages you are including are small, you can embed them with format=embedded. This is like transcluding each page with {{:Title of page}} {{:Another page}} ..., but dynamic.

{{#ask: Build stream::joyride

 | format=embedded 
 | embedformat=h4
 | default=No articles found in Category:Test cases with Property:Build stream of Joyride?

}}

Bug: query for a disallowed value sometimes still works

Bug: if I query for a bogus value, it counts all of them. A query for Build stream==BADVALUE returns a count of {{#ask: Build stream::BOGUS VALUE

 | format=count
 | default=No articles found in Category:Test cases with Property:Build stream of BOGUS VALUE?

}}