Testcase Query Examples
From OLPC
Other ways to query for test cases than the query(s) on Test cases 8.2.0
Copy these to make your own.
Contents |
[edit] Basics
The basic query is
{{#ask: [[Category:Test cases]] [[Build stream::joyride|Any]] | 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.
See Inline query output formats.
[edit] Query counting each test case
There are 108 total test cases in Category:Test cases.
There are 24 test cases in Category:Test cases with Property:Build stream of Joyride.
There are 99 test cases in Category:Test cases with Property:Build stream of 8.2.
There are 46 test cases in Category:Test cases with category Activity.
[edit] 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. This can confuse editors, and it puts the page that uses it into any categories in the embedded pages!
The example below is limited to three results
Tests/Activity/Chat/Private chat
Test Case: Private Chat
How to report results
| Stream | 8.2, Any | ||
|---|---|---|---|
| Category | Activity | Sub-category | Chat |
| Component | Chat | ||
| Feature | Chat | ||
| Objective | Verify that users can start and participate in a private (invite-only) chat. | ||
| Tools | No test tools required. | ||
| Setup | At least two laptops running the same version of Chat, preferably the most recent. | ||
| Procedure | 1. On one XO, start up the Chat activity.
2. Switch to the Neighborhood view.
5. Select the "join" option or click on the icon to join the chat. | ||
| Expected Results and Pass Criteria | 1. On the Neighborhood view, there should be no Chat icon representing the host visible anywhere.
2. XOs can join the activity and chat reliably. | ||
| Comments | None. | ||
| Release | Stream | Build | Pass/Fail | Trac Ticket(s) | Comment(s) | Date of Test |
|---|---|---|---|---|---|---|
| Candidate | joyride | 2311 | Pass | No unexpected behavior. |
Tests/Activity/Chat/Public chat
Test Case: Public Chat
How to report results
| Stream | 8.2, Any | ||
|---|---|---|---|
| Category | Activity | Sub-category | Chat |
| Component | Chat | ||
| Feature | Chat | ||
| Objective | Verify that users can start and participate in a public (visible to the neighborhood) chat. | ||
| Tools | No test tools required. | ||
| Setup | At least two laptops running the same version of Chat, preferably the most recent. | ||
| Procedure | 1. Start up a Chat activity on one XO. Share it with the Neighborhood.
2. On the other XOs, go to the Neighborhood view and join the chat. | ||
| Expected Results and Pass Criteria | 1. When the XOs join the chat, the icon should appear with the colors of the host XO.
2. XOs can join the activity and chat reliably. | ||
| Comments | None. | ||
| Release | Stream | Build | Pass/Fail | Trac Ticket(s) | Comment(s) | Date of Test |
|---|---|---|---|---|---|---|
| Candidate | joyride | 2311 | Pass | No unexpected behavior. |
| |
| Candidate | 8.2 | 763 | Pass | chat-47 |
Tests/Activity/Record/Public photo sharing
Test Case: Public Photo Sharing
How to report results
| Stream | Any | ||
|---|---|---|---|
| Category | Activity | Sub-category | Record |
| Component | Record | ||
| Feature | |||
| Objective | Verify that users can take and share photos with their neighborhood. | ||
| Tools | No test tools needed. | ||
| Setup | At least two laptops running the same version of Record, preferably the latest. | ||
| Procedure | 1. On one XO, start up Record and set it to share with the neighborhood.
2. On the other XO(s), go to the Neighborhood view and join the activity. | ||
| Expected Results and Pass Criteria | 1. A Record icon representing the host appears in the Neighborhood view when the host sets the activity to be shared publicly.
2. XOs can join the activity and record/send photos reliably. | ||
| Comments | None. | ||
| Release | Stream | Build | Pass/Fail | Trac Ticket(s) | Comment(s) | Date of Test |
|---|---|---|---|---|---|---|
| Candidate | joyride | 2301 | Pass | No unexpected behavior encountered. |
| |
| Candidate | 8.2 | 763 | Pass | #8581 | record-58, not happy with journal saving... need to use 'keep' often |
[edit] 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 106

