QA/Fennec1.0/TestStrategy: Difference between revisions

From MozillaWiki
< QA
Jump to navigation Jump to search
Line 236: Line 236:
== Regression Tests ==
== Regression Tests ==


Regression Tests are constantly executed over the course of a release.  The purposes of these tests are to plant cross-platform overlapping tests, to ensure stability and reliability of the builds post nightly checkins.  The QA Tiger Team was formed for this reason, to ensure nothing is easily missed.  See the detailed description and schedule [http://wiki.mozilla.org/MozillaQualityAssurance:Home_Page:Firefox_3.0_TestPlan:Fx3_QA_Daily_Smoketest#Tiger_Team_Testing_Squad Here].
Fennec is so new that we don't have a need for Regression Tests.  As the product matures and the QA team grows, we will start doing this.  With that said, a lot of the Litmus and automated cases are regressions for Firefox and shared code (xulrunner).
 
=== Manual Tests ===
Manual Regression tests are ran weekly and at every milestone marker.  The majority of the test cases are recorded in litmus and available for anyone to execute.  The QA Tiger team has been executing weekly test runs on Smoketests, BFTs, and focused areas.  Any of these tests can be publicly executed and reported against Litmus.
 
;Manual framework:
* [http://litmus.mozilla.org/show_test.cgi?searchType=by_category&product_id=1&branch_id=15&testgroup_id=54&subgroup_id= Smoketests] - A subset of litmus tests ran to ensure the quality of a nightly build.  Executed daily.
* [http://litmus.mozilla.org/show_test.cgi?searchType=by_category&product_id=1&branch_id=15&testgroup_id=55&subgroup_id= Basic Functional Tests] - A more comprehensive subset of litmus tests that cover more regression than smoketests, but not a full suite.  Executed once a week.
* [http://litmus.mozilla.org/show_test.cgi?searchType=by_category&product_id=1&branch_id=15&testgroup_id=56&subgroup_id= Full Functional Tests] - A thorough set of litmus tests that cover each and every test case that is created to cover full functional regression and feature functionality.  Executed at least once per release.
* Eggplant Cases - An automated independent tool that takes the smoketests across all platforms and executes them on demand. 
* Focused feature areas across supported Firefox platforms
* Feature review of nightly checkins found on tinderboxen. see [http://bonsai.mozilla.org/cvsquery.cgi?treeid=default&module=all&branch=HEAD&branchtype=match&dir=&file=&filetype=match&who=&whotype=match&sortby=Date&hours=2&date=day&mindate=&maxdate=&cvsroot=%2Fcvsroot Bonsai Query].
 
=== Automation Tests ===
Both Daily and triggered automation cases exist in different frameworks that run a suite of cases like security, performance, and API level test cases. 
 
;Automation Framework:
* Buildbot
* Mochitests
* Reftests
* Browser Chrome
* XPCShell
* Performance tests
* Automated Memory Leaks (rob sayer's unit cases)
 
Results are recorded on tinderboxen.  Many of these tests are run automatically on nightly checkins, and will flash orange if tests have failed.


== Community Involvement ==
== Community Involvement ==

Revision as of 21:39, 9 January 2009

« QA/Fennec1.0

In Progress - Right now a copy from Firefox Strategy

QA Test Strategy – Fennec

Overview

This is a tracking document that outlines the test strategy that Mozilla QA will follow regarding a thorough test pass of Fennec 1.0. It will follow the general plan on steps and process that QA will take to accomplish a "sign off" to the release strategy. Mozilla QA strives to uphold quality software, and a successful pass corresponds to no blocking issues, 'Green'-colored test pass on test cases in both execution and automation, and a thorough bug verification window of all Blocking bugs and Critical bugs.

NOTE: Updates to this document continue to change as Mozilla continues to refine development process.

Areas Covered

Areas not Covered

  • Feature Unit Tests
    • These are normally covered by feature developers, not QA. We are open to discussion about what we could do in QA to increase Unit Tests other than what automation currently exists. Need more definition here on what QA/Dev should own.
  • String Localization Tests
    • Localized builds are a nice to have and will be minimal for the 1.0 release. See more in the L10n Test Deliverable section.
  • In depth functionality of Plugins, Extensions, and Themes
    • Many extensions are hosted on AMO, but are not developed and tested by mozilla. We rely on our volunteers to manage these third party extensions. Mozilla QA will focus on high level Addon management, error handling, and a few top extensions supported. But extension functionality will not be covered by Mozilla QA.

Schedule

The release schedule is broken up by milestones, determined by the Fennec team. Each milestone will contain feature enhancements, bug fixes, and updates. Most testing of focused areas and regression areas will come in the latter half of the schedule, during the latter parts of alpha up until the final release candidate. The following test schedule - TODO depicts how QA will be breaking down the test cycles.

Questions: Are there plans to branch? If so, what would the schedule look like?

Test Tools

This is ongoing set of Test Tools used by the QA team for automation and execution of the Fennec Product. Some of these tools are developed in-house, and are only accessible within the internal Mozilla network. The following list of tools shown here contain a short description of the tool, as well as further explanation on how the relevant tools are used for specific Test Areas below.

  • Litmus Test Case Manger -
    • Manages a suite of test cases used for smoketests, BFTs, FFTs, regression, and functional areas. Public usage.
  • Talos - Performance Testing Project
    • Talos is a performance testing project. With a framework written in Python it runs Ts (startup test) and Tp (page load test) while monitoring memory and cpu usage. Ts is a simple Javascript web page that times the loading and then exits. Tp consists of a Javascript web page that cycles through a set of locally served web pages. The web page set is a collection of the top 500 web pages as listed by Alexa; they have been 'cleaned' so that all of their content is locally served.
  • BuildBot -
    • test system for building. owned by Robcee. client / server interaction. Client requests execution activities. Server sets tests up, run results. (eg. parallel make system for builds. able to build pieces independently and can piece it together later) Like a next-gen tinderbox.
  • Reftests -
    • Unit test framework, easy to run in the browser, easy to write. The testcases don't rely on external files. Mainly useful for layout tests, only.
  • MochiTests -
    • Built on the Mochikit platform. Main developer - robert sayer. unit test framework, easy way to run the browser. Scripting actions to quickly create test cases and tie to executables using JavaScript. Also supports accessibility layers.


Test Tools Not Used For Fennec 1.0

  • JS Test Suite -
    • JavaScript project engine. Code name: Spidermonkey. Owned by Bob Clary and written in JavaScript, used to test different javascript API's and functions.
  • Security Test library -
    • Bob Clary finds ways to test security issues: automates ways to throw noise at "fuzz testers"; triggers randomness to hit edge cases. The way we use it, we target security issues. (eg. take HTML structure of webpage, look at tags in HTML, and find cases to execute within the tags.) Ways to exploit memory, leaks, execution. Tries to automate crashing tests by generating HTML and js code to crash the browser.
  • Download Checker -
    • Bob Clary again. Takes a huge list of locales and OS installs. highly error prone. Script will go to webpage, download each build, installs, runs a test, and closes it. fully automated. This is executed only after we go live. (all.html - "other system and languages")
  • Eggplant -
    • Graphical replay; Tracy owns it. Litmus smoke tests on it. Identify a spot, string a list of actions, and play back.
  • Minotaur -
    • Minotaur is a testing framework that can automatically check the preferences, search settings, bookmarks, extensions, and update channels for a Firefox build. These settings are vetted against a previous gold standard of settings and/or verification files. This is used to simplify and reduce the manual testing currently required for Localization and Partner builds of Firefox.

Categories

Feature Tests

Summary

There are very few new features inside of Fennec. With this said, any major work item (port from firefox to fennec, port to new platform, new UI piece and new features) will have a test plan and a tester who owns that area.

Planning & Scheduling

The Fennec dev team has a great online [tool] to track features by milestone. We will work off this list as a starting point for what we focus on for each release. We will create a basic test plan outlining our major focus areas, how we will test and the test cases. These will live at TODO TODO

The expectation is that the major features are well tested during the Alpha phase or maybe B1 at the latest. Then testing during later betas is focused on verifying bug fixes, testing additional edge cases that are identified (polish testing), and regression testing using smoke tests, BFTs, FFTs and automated runs.

Test Framework

Automation:

  • Mochitest
  • Reftests
  • Crashtests
  • Mochitest Chrome
  • XPCShell

Execution:

  • Litmus (BFTs, FFTs, smoketests)
  • Test cases within Bugzilla Bugs - some testcases are written and executed within feature bugs that are done manually.
Results

Test Results for executed test cases will be tracked within the litmus tests. For automation results, we are still working with build to get them running in Tinderbox. For the time being, we will post the results [here]

Web Compatibility Tests

Summary

The Web Compatibility Tests focuses on regression and compatibility with popular websites and web applications.

Planning & Scheduling

We will be taking our initial list of web sites from the Firefox tests as well as some of the more popular mobile websites. These will all be entered as test cases in litmus by the RC of Beta1.

Test Framework
  • Top Sites - coverage of a few popular sites that drives most user traffic
  • Protocol handling - regression of a popular list of protocols supported on the web. (eg. mailto://, https://, ftp://) Ties into litmus content handling test cases.
Results

Test results are tracked in execution of FFTs, BFTs, and smoketests in Litmus.

User Performance Tests

Summary

The User Performance Tests are not to be confused with Browser performance tests that are run with automation. Instead, we will concentrate on day to day usage of Fennec and any performance issues that we see. These would includes areas like startup, downloading, idling, and other common usage cases.

Planning & Scheduling

We will generate these test cases in litmus. The testcases will be added by the beta1 candidate and will be tested on beta1 and subsequent releases.

Results

Test cases will exist in litmus and the public wiki. Any issues found will be tracked in Bugzilla.

Configurations Tests

Summary

Configuration tests for Firefox are not necessary in Fennec. What we will do for Fennec is very that on all supported platforms we pass the smoketests as defined in litmus.

Planning & Scheduling

For Beta1, we will have a list of all platforms we support (versions of maemo, windows mobile, symbian). This list will include the different OS options available (in Windows Mobile, each device has unique OS components which could affect dependencies of Fennec) that we will officially support. These will be outlined in a wiki table and possibly inside of litmus. Limitations will be on available hardware and open bugs.

Results

Issues found will be tracked in Bugzilla, and test results will be recorded in Litmus.

Security Tests

Summary

Security tests are critical for catching external attacks through Fennec to the user. Mozilla is constantly finding and issuing fixes to malware, leaks, and identity attacks to assure the user of the safeguard of Fennec. The goal of these tests are to attempt to catch as many new attacks as possible, as well as regress past security issues that have been fixed but broken again.

Planning & Scheduling

We will use many of the security testing tools that we do on Firefox. Currently a lot of the tools do not work on Fennec and we will identify the tools we plan to use by Beta1.

Test Framework for Firefox
  • Browser Security tests at Scanit
  • Bob Clary's security tests - Javascript cases created and automated on Eggplant.
  • Platforms with anti virus software, firewalls, global passwords, vista parental controls
  • Jesse’s Fuzzer Tools - jsparsefuzz.js
  • Security bugs in Bugzilla
Results

There are a few security tests also tracked in litmus to be ran manually. Also a handful of security bugs in Bugzilla have test cases to be run independently. (Example: Bug 389106)

Accessibility Tests

Summary

TODO - research requirement for Ally on mobile devices.

Planning & Scheduling

TODO - For Beta1 have a list of Ally tests we will test with

Firefox Ally (current Draft)

Test Framework
  • Accessibility areas against new features
  • Regression of areas, manual/ automation
Results

We will include any Ally test cases in litmus and report the results through there.

Bug Verifications

Summary

Verifying fixed bugs in Buzilla gives us additional testing on specific bugs that were fixed.

Planning & Scheduling

To prioritize and narrow the list of bugs, QA will focus primarily on Fennec bugs that represent highest severity, and carry the "blocking" flag. This is more so a "goal" to verify every blocking and priority 1 bug, and will be the benchmark to "ship" or "stop" the release. Starting Beta1, test will focus more on bug verification and creating test cases (litmus or automated) for missing areas.

Results

Bugs will be marked verified or reactivated for regression. All results tracked in Bugzilla.

Distribution Tests

This is not an area that we need to test in Fennec for the 1.0 release. In the future we might have private builds or specialized versions that we need to test.

L10N Tests

Summary

As it stands, Fennec will have limited L10N support for the 1.0 release. As there are no official languages, we do not have a schedule and localizers lined up. For the 1.0 release, we will have >1 language available which could then start us down the path of increasing our languages similar to Firefox.

The L10N Tests will prepare a set of standard Firefox testing requirements. Its purpose is to ensure that third party localizers are properly checking the validity of the build before checking in to the tree. It also will provide a quick automated check of configurations and values, and report results.

Planning & Scheduling

There is no schedule for localizing a Fennec build. By Beta1 we should have an idea of what locales to expect as well as a general set of litmus cases to verify a localized build.


TODO: - what is this tool, do we use SmartWare? Will it work for Fennec? Test Automation will be running through a tool that will effectly validate customizations and configurations.

A third party company, SmartWare, is also contracted to verify strings and spotchecks on selected locales. The localizer is also responsible for unit tests prior to checkin. Click to see the existing L10N Test Plan.


Test Framework

Execution

  • Standard litmus test suite for localizer to run
  • Work with 3rd party Smartware to identify test cases
  • Spot checks
Results

Test results are tracked in different forms. The localizer will track their unit cases and litmus for the custom l10n test suite. Test execution team will report results in Litmus.

Install/Updates Tests

Summary

As we are releasing a 1.0 release, there is not a previous release to update from. We will have Alpha and Beta releases in the field which will require some method of updating. Fennec installs will be different than installing on a normal PC which means our install and update testing will be very different from Firefox.

Planning & Scheduling - TODO

We will do a similar test as we do for Firefox. There is still a lot to determine right now such as what servers will host the bits and will we have different update channels. By the release of Beta1, we will have a plan in place documented on the Wiki outlining how the update process will work and what we will test.

Test Framework
  • Installs (normal, failed)
  • Beta -> 1.0 updates (normal, failed)
  • 1.0 -> Future updates (normal, failed)
  • Spot Checks, Configurations
Results

Results are reported via wiki and email.

Collecting Feedback

Our main goal here is to make sure we document and test the feedback channels. For Fennec we will not have the community and tools built up as Firefox does.

Reporting tools

Regression Tests

Fennec is so new that we don't have a need for Regression Tests. As the product matures and the QA team grows, we will start doing this. With that said, a lot of the Litmus and automated cases are regressions for Firefox and shared code (xulrunner).

Community Involvement

The goal is to actively involve more community members in testing Minefield, Gran Paradiso, and ultimately Firefox 3 as it moves into beta and to final release.

There are many active participants in the community that are enthusiastic about Firefox and want to contribute to our quality assurance efforts. However, getting them involved and maximizing the value of their time and effort requires a lot of coordination, planning, and enforcing of the correct processes and procedures. Since such activities create constant challenges for our QA team, we are working on a new strategy to promote more community involvement.

Current avenues of community involvement include:

  • Friday Test Days
    • increased the frequency of these events to allow people to show up each week to try out new features and help us run through test cases. Activities include triaging unconfirmed bugs, running tests in Litmus with trunk builds (and alphas/betas), Q&A/Help sessions. We will be focusing on a new Firefox 3 feature/component every week.
  • Tuesday Bug Days
    • a full day each week dedicated to working with various bug lists in Bugzilla. Activities will rotate between unconfirmed bug triage, bug verifications, test case writing, and reproducing crash bugs.
  • QMO - quality.mozilla.org
    • Using the website to promote news and articles on what the Mozilla QA team is working on
    • Provide events and forums for the community to get involved.
    • Create closer relationships with regular contributors and help them become leaders for our events and projects.
    • Promote the QA Extension to get more people connected to our tools and processes. We will be setting up a "product page" on QMO and start the process for getting it polished enough for AMO.
    • Update/migrate outdated QA pages on mozilla.org and showcase them on QMO
  • Campus Evangelism - Mozilla University
    • Leverage the Campus Reps program to reach out to students and professors at schools.
    • Reach out to folks interested in open source and help them discover Mozilla project and get involved in Firefox development and testing.
  • Better "Beta" product pages and programs
    • Update Minefield and Gran Paradiso pages to direct folks to QMO and other useful channels for getting involved and providing feedback.
    • Coordinate community testing with marketing/pr plans for Firefox 3 Beta release