Test cases 8.2.0: Difference between revisions

From OLPC
Jump to navigation Jump to search
No edit summary
Line 5: Line 5:
* Use /Tests/<category>/<sub-category/ as the name of the 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.
* Try to use categories and sub-categories that already exist before creating new ones.

== Sugar Control Panel ==
'''About Me:'''
: [[Tests/Sugar_Control_Panel/About_Me/Color_Change|Color Change]]
: [[Tests/Sugar_Control_Panel/About_Me/Name_Change|Name Change]]
'''About my XO:'''
: [[Tests/Sugar_Control_Panel/About_my_XO|Checking XO Information]]
'''Date & Time:'''
: [[Tests/Sugar_Control_Panel/Date_&_Time|Change Timezone]]
'''Frame:'''
: [[Tests/Sugar_Control_Panel/Frame/Corner_Activation|Corner Activation]]
: [[Tests/Sugar_Control_Panel/Frame/Edge_Activation|Edge Activation]]
'''Language:'''
: [[Tests/Sugar_Control_Panel/Language|Change Default Language]]
'''Network:'''
: [[Tests/Sugar_Control_Panel/Network/Radio_Activation|Radio Activation]]
'''Power:'''
: No test cases written yet
'''Software Updates:'''
: No test cases written yet


== General (older) Test Cases ==
== General (older) Test Cases ==
Line 34: Line 14:
* [[Use_Cases]]
* [[Use_Cases]]


== Test: Queries for test cases ==
== Test Cases ==
Some tests are using [[Template:Test case]] that creates semantic annotations,
Test cases should use [[Template:Test case]] so they can be queried and reported automatically.
so we can query for these tests as an alternative to manually keeping pages up-to-date.

Here are some test queries. Edit this page to see the syntax.
Comments at [[Semantic MediaWiki#Suggestions_for_test_cases]];
details of queries at http://semantic-mediawiki.org/wiki/Help:Inline_queries


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.
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
There is a [[Property:Stream]], so let's ask for all [[:Category:Test cases]] that are in the [[Joyride]] stream. The basic query is
Line 47: Line 23:
One option you should always add is <tt>|default=Query for xyz found nothing?!</tt>, otherwise you'll have no indication a page has a query that isn't working.
One option you should always add is <tt>|default=Query for xyz found nothing?!</tt>, otherwise you'll have no indication a page has a query that isn't working.


=== Query displaying certain properties ===

Let's display Objective and Category


{{#ask:
{{#ask:
Line 59: Line 32:
}}
}}


Comments at [[Semantic MediaWiki#Suggestions_for_test_cases]];
=== Query displaying each test case ===
details of queries at http://semantic-mediawiki.org/wiki/Help:Inline_queries


For other examples of queries, click here: [[Testcase Query Examples]]
If the pages you are including are small, you can embed them. This is like transcluding each page with <nowiki>{{:Title of page}} {{:Another page}} ...</nowiki>, but dynamic.

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

Revision as of 13:12, 3 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, click here: Testcase Query Examples