Test cases 8.2.0

From OLPC
Jump to navigation Jump to search

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.
    • Top level categories: Boot, Network, Upgrades, Journal, SugarUI, SugarControlPanel, Peripherals, Activity, XS (school server)

The form has several fields for you to fill in. Here is what they are used for:

  • Name of the test case: What's the overall idea behind the test?
  • Stream: What stream of builds does this test belong to? Is it specific to Joyride? Update.1? Any stream?
  • Build: If this test is for a specific stream, what is the earliest build number that it applies to? (optional field)
  • Component being tested: What is the activity or feature of the XO that this test case is for?
  • Wiki link to the feature: The name of the wiki page that describes the feature for which the test case was created. Don't include the "http://wiki.laptop.org/go/" part of the URL.
  • Summary: A brief description describing what functionality the test case is intended to verify.
  • Tools: Do you need any special tools for the test? In most cases, the answer will be no.
  • Setup: Do you need the laptops to have specific builds or activities? Do the laptops explicitly need to be registered (or not) with a schoolserver?
  • Procedure: The steps the tester must take to finish the test case.
  • Expected results: What should happen if everything is working as expected? What must happen for a run-through of this test case to be considered a pass?
  • Notes: Anything else that doesn't fit in the other fields.

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

Query for all Category:Test cases that are in the Joyride or Any streams.

{{#ask: |any

 | ?Short name
 | ?Test objective
 | default=No articles found in Category:Test cases with Property:Stream of joyride or any?

}}

Edit this section to see the query's syntax. For other examples of queries, see Testcase Query Examples Comments at Semantic MediaWiki#Suggestions_for_test_cases.

Test results

This is a little tricky. Currently each test cast page has zero-to-many test results embedded in it, which means a test case can have multiple values for build number, pass/fail, etc. and these values are probably not tied to each other. See Semantic MediaWiki for alternative approaches.

Anyway, here's a query for any page with a Fail that also displaying some other values.

{{#ask:

 PassFail::Fail
 | ?PassFail
 | ?Build number
 | ?Trac bug number
 | default = No tests failing??

}}