InstallationTestCases
Introduction
This specification should outline both test cases for installation completion but also for expected failures such as low memory and under size HDD scenarios where the installation is not a possibility. This specification only outlines test cases concerned with the installation completing successfully, and not logical functionality of the installer itself, which is covered in the state transition testcases.
Approval
Author |
|
|
Dan Chapman |
Ubuntu Member |
|
Approved By |
|
|
<name> |
< lp profile > |
< position > |
|
|
|
Related Documents
Ref # |
Document Name |
Link |
01 |
Installer Design - Ubuntu Installation Process |
|
02 |
Test Analysis and Specification for Ubiquity |
|
03 |
Ubiquity Test Plan |
|
04 |
State Transition Test Cases |
Contents
- Introduction
- Approval
- Related Documents
- Considerations
-
Installation Test Cases
- Install Scenario 1 - Less Than System Requirements
- Install Scenario 2 - Default Installation
- Install Scenario 3 - LVM installation
- Install Scenario 4 - LVM with Encryption Installation
- Install Scenario 5 - Custom/Manual Partition installation
- Install Scenario 6 - Auto-Resize Installation
- Install Scenario 7 - Manual-Resize installation
- Install Scenario 8 - Erase & Re-Install
- Install Scenario 9 - Upgrade Installation
- Install Scenario 10 - Re-Install Re-Using Home Installation
- Install Scenario 11 - OEM Installation
- Install Scenario 12 - Free Software Only Installation
Considerations
There are many factors that need to be taken into account for creation of these test cases,
Installation Type |
Default options |
Connectivity |
Ethernet |
Memory |
Less Than Min Req |
Hard Drive Size |
Less Than Min Req |
Power Source |
Connected |
Localisation |
Different language choices |
File System Format |
ext2 |
The combination of all these factors results in 1000’s of possible test cases, so we need to decide on a subset of scenarios.
In the next section I propose some 168 initial test case scenarios we should try and aim to achieve. A lot of the test cases are similar and will only need one or two arguments changing in the actual autopilot test case or the test case runner, so although there does seem a lot, in reality it won’t require too much extra effort to reach this initial goal.
Installation Test Cases
Test case names are in the format of
“InstallScenario-InstalledOS-Connectivity-TestCaseNumber”
Installed OS codes are as follows
F |
*buntu flavor |
W |
Windows OS |
M |
Mac OS |
X |
No OS / Empty HDD |
L |
Other linux distro |
And Connectivity,
Eth |
Ethernet |
WF |
Wi-Fi |
NN |
No Network |
The different connectivity options will only be used on test cases where we have an empty HDD, to test every scenario against each connection type is not very practical and basically triples our test case amount for every OS already installed on the HDD.
Install Scenario 1 - Less Than System Requirements
We should test that we cannot install with less than the system requirements.
Test Cases |
Details |
IS1-X-Eth-TC1 |
less than required memory |
IS1-X-Eth-TC2 |
less than required memory |
IS1-X-Eth-TC3 |
greater than or equal required memory |
Install Scenario 2 - Default Installation
Test Cases |
Details |
IS2-X-Eth-TC1 |
English install |
IS2-X-Eth-TC4 |
Non-English install |
IS2-X-Eth-TC7 |
English install |
IS2-X-Eth-TC10 |
Non-English install |
Install Scenario 3 - LVM installation
Test Cases |
Details |
IS3-X-Eth-TC1 |
English install |
IS3-X-Eth-TC4 |
Non-English install |
IS3-X-Eth-TC7 |
English install |
IS3-X-Eth-TC10 |
Non-English install |
Install Scenario 4 - LVM with Encryption Installation
Test Cases |
Details |
IS4-X-Eth-TC1 |
English install |
IS4-X-Eth-TC4 |
Non-English install |
IS4-X-Eth-TC7 |
English install |
IS4-X-Eth-TC10 |
Non-English install |
Install Scenario 5 - Custom/Manual Partition installation
With there being a mass amount of partitioning layout and file system formats we should try a subset of layouts and each FS type at least once, now i’m not sure that they should all be tested at the same time or continue with how the current tests are implemented. Which currently selects a random predefined configuration during each test run, this way at some point all the FS types will get tested and we have tried various layouts. The current configurations can be seen here, the majority of them naively assume we always have the default 12GB of space to play with. It would ideally be better to have seperate configurations for the minimum system requirements test cases, which the test cases below assume this to be true.
This has been difficult to implement in non-english languages with autopilot due to relying on label values to navigate this section. But there are test cases for it to be implemented in the future should it become easier
Test Cases |
Details |
IS5-X-Eth-TC1 |
English install |
IS5-X-Eth-TC4 |
Non-English install |
IS5-X-Eth-TC7 |
English install |
IS5-X-Eth-TC10 |
Non-English install |
Install Scenario 6 - Auto-Resize Installation
a) Using Default
Test Cases |
Details |
IS6a-F-Eth-TC1 |
English install |
IS6a-F-Eth-TC5 |
Non-English install |
IS6a-F-Eth-TC9 |
English install |
IS6a-F-Eth-TC13 |
Non-English install |
b) Using LVM
Test Cases |
Details |
IS6b-F-Eth-TC1 |
English install |
IS6b-F-Eth-TC5 |
Non-English install |
IS6b-F-Eth-TC9 |
English install |
IS6b-F-Eth-TC13 |
Non-English install |
c) Using LVM with Encryption
Test Cases |
Details |
IS6b-F-Eth-TC1 |
English install |
IS6b-F-Eth-TC5 |
Non-English install |
IS6b-F-Eth-TC9 |
English install |
IS6b-F-Eth-TC13 |
Non-English install |
Install Scenario 7 - Manual-Resize installation
We can use the same configs used in the custom partition page tests, we just need to resize to make enough space first.
Test Cases |
Details |
IS7-F-Eth-TC1 |
English install |
IS7-F-Eth-TC5 |
Non-English install |
IS7-F-Eth-TC9 |
English install |
IS7-F-Eth-TC13 |
Non-English install |
Install Scenario 8 - Erase & Re-Install
a) Using Default
Test Cases |
Details |
IS8a-F-Eth-TC1 |
English install |
IS8a-F-Eth-TC5 |
Non-English install |
IS8a-F-Eth-TC9 |
English install |
IS8a-F-Eth-TC13 |
Non-English install |
b) Using LVM
Test Cases |
Details |
IS8b-F-Eth-TC1 |
English install |
IS8b-F-Eth-TC5 |
Non-English install |
IS8b-F-Eth-TC9 |
English install |
IS8b-F-Eth-TC13 |
Non-English install |
c) Using LVM with Encryption
Test Cases |
Details |
IS8c-F-Eth-TC1 |
English install |
IS8c-F-Eth-TC5 |
Non-English install |
IS8c-F-Eth-TC9 |
English install |
IS8c-F-Eth-TC13 |
Non-English install |
Install Scenario 9 - Upgrade Installation
Test Cases |
Details |
IS9-F-Eth-TC1 |
English upgrade |
IS9-F-Eth-TC2 |
Non-English upgrade |
IS9-F-Eth-TC3 |
English upgrade |
IS9-F-Eth-TC4 |
Non-English upgrade |
Install Scenario 10 - Re-Install Re-Using Home Installation
Todo at later date
Install Scenario 11 - OEM Installation
Todo at later date
Install Scenario 12 - Free Software Only Installation
Todo at later date
QATeam/AutomatedTesting/InstallationTestCases (last edited 2014-01-03 17:37:57 by 89-168-6-168)