Test cases 8.2.0: Difference between revisions

From OLPC
Jump to navigation Jump to search
m (→‎Test Cases: fix query to match lowercase "joyride")
Line 25: Line 25:


{{#ask:
{{#ask:
[[Category:Test cases]] [[Stream::Joyride]]
[[Category:Test cases]] [[Stream::joyride]]
| ?Name
| ?Name
| ?Objective
| ?Objective
| ?Category
| ?Category
| default=No articles found in [[:Category:Test cases]] with [[Property:Stream]] of [[Joyride]]?
| default=No articles found in [[:Category:Test cases]] with [[Property:Stream]] of [[joyride]]?
}}
}}


Line 36: Line 36:
details of queries at http://semantic-mediawiki.org/wiki/Help:Inline_queries
details of queries at http://semantic-mediawiki.org/wiki/Help:Inline_queries


For other examples of queries, click here: [[Testcase Query Examples]]
For other examples of queries, see [[Testcase Query Examples]]

Revision as of 07:45, 4 August 2008

Create New Test Cases

To add a new test case, click here: New Test Case

  • Use /Tests/<category>/<sub-category/ as the name of the new test case
  • Try to use categories and sub-categories that already exist before creating new ones.

General (older) Test Cases

This is a list of test cases that existed before the test case template. Once these have been moved into the template, this section can go away.

Test Cases

Test cases should use Template:Test case so they can be queried and reported automatically.

Here is a test query that lists all the test cases. Edit this page to see the syntax. We want to ask for all test cases that apply to 8.2.0. There is a Property:Stream, so let's ask for all Category:Test cases that are in the Joyride stream. The basic query is

 {{#ask: [[Category:Test cases]] [[Stream::Joyride]]  | additional options }}

One option you should always add is |default=Query for xyz found nothing?!, otherwise you'll have no indication a page has a query that isn't working.


{{#ask: Stream::joyride

 | ?Name
 | ?Objective
 | ?Category
 | default=No articles found in Category:Test cases with Property:Stream of joyride?

}}


Comments at Semantic MediaWiki#Suggestions_for_test_cases; details of queries at http://semantic-mediawiki.org/wiki/Help:Inline_queries

For other examples of queries, see Testcase Query Examples