Testcase Query Examples

From OLPC

Jump to: navigation, search

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.
3. Find the other XO(s) being used for the test in the Neighborhood view and invite them to the chat by hovering the mouse cursor over their XO symbol and selecting the option with the appropriately-colored Chat icon.
4. On the other XO(s), a Chat icon with the colors of the first XO should appear in the frame.

  • In pre-8.2.0 builds, this icon will appear in the activity tray on the bottom of the screen in the home view or on the frame.
  • In joyride, 8.2.0 and beyond, this icon will flash once or twice in the top-left corner and then will stay in the top part of the frame in the list of active activities until the invitation is declined or the activity is stopped.

5. Select the "join" option or click on the icon to join the chat.
6. Chat.
7. Have one of the joining XOs leave the chat, then reinvite them from the host XO.
8. Join the chat again.
9. Leave the chat again on one of the XOs that joined the chat, then reinvite them from the host XO.
10. Have the other XOs (if any, including the host) leave the chat activity before the reinvited XO rejoins 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.
3. If an XO declines an invite or leaves the chat, they can still be reinvited back to the chat.
4. If the chat ends before an invited XO joins, the invitation should disappear.

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.
3. Send messages to the chat from all of the XOs.
4. Have one or more of the XOs (not the host) leave the chat for a few minutes, then rejoin.
5. Chat some more.
6. Have one of the non-host XOs leave the chat again.
7. Have the rest of the XOs (host included) leave 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.
3. If the chat ends (everyone leaves), the icon should disappear from the Neighborhood view.

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.
3. Take pictures on all of the involved laptops and view them.
4. On one of the non-host XOs, leave the activity for a minute or two and then join it again.
5. Take some more pictures and view them.
6. Leave the activity on one of the non-host XOs.
7. Leave the activity on the other XOs.

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.
3. If an XO leaves the activity, they can still be rejoin the activity later.
4. If the activity ends, the icon on the Neighborhood view should disappear.

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
… further results

[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

Personal tools
  • Log in / create account
About OLPC
About the XO
Projects
OLPC wiki
Toolbox