Test cases 8.2.0: Difference between revisions
(→Query for test cases: query for appropriate stream) |
(→Query for test cases: try different formats) |
||
Line 25: | Line 25: | ||
: No test cases written yet |
: No test cases written yet |
||
== |
== Test: Queries for test cases == |
||
Some tests are using [[Template:Test case]] that creates semantic annotations, |
|||
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. |
|||
⚫ | |||
⚫ | |||
⚫ | |||
details of queries at http://semantic-mediawiki.org/wiki/Help:Inline_queries |
|||
⚫ | |||
⚫ | |||
<nowiki>{{#ask: [[Category:Test cases]] [[Stream::Joyride]] </nowiki> | ''additional options'' }} |
|||
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: |
|||
[[Category:Test cases]] [[Stream::Joyride]] |
|||
| ?Name |
|||
| ?Objective |
|||
| ?Category |
|||
| default=No articles found in [[:Category:Test cases]] with [[Property:Stream]] of [[Joyride]]? |
|||
}} |
|||
=== Query displaying each test case === |
|||
If the pages you are including are small, you can embed them. This is like transcluding a page with <nowiki>{{Title of page}}</nowiki>, but dynamic. |
|||
{{#ask: |
{{#ask: |
||
Line 36: | Line 58: | ||
| ?Name |
| ?Name |
||
| ?Objective |
| ?Objective |
||
| format=embedded |
|||
| embedformat=h4 |
|||
| ?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]]? |
Revision as of 03:37, 2 August 2008
Sugar UI Test Cases
- Tests/Home_view
- Tests/100_laptops - update chat, read, and add write, browse, and record
- Battery_Results - need new battery life tests for 8.2
- Use_Cases
Sugar Control Panel
About Me:
About my XO:
Date & Time:
Frame:
Language:
Network:
Power:
- No test cases written yet
Software Updates:
- No test cases written yet
Test: Queries for test cases
Some tests are using Template:Test case that creates semantic annotations, 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
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.
Query displaying certain properties
Let's display Objective and Category
{{#ask: Stream::Joyride
| ?Name | ?Objective | ?Category | default=No articles found in Category:Test cases with Property:Stream of Joyride?
}}
Query displaying each test case
If the pages you are including are small, you can embed them. This is like transcluding a page with {{Title of page}}, but dynamic.
{{#ask: Stream::Joyride
| ?Name | ?Objective | format=embedded | embedformat=h4 | ?Category | default=No articles found in Category:Test cases with Property:Stream of Joyride?
}}