Professional Documents
Culture Documents
Automated Testing Environment by Bugzilla, Testopia and Jenkins
Automated Testing Environment by Bugzilla, Testopia and Jenkins
Outline
Bugzilla
Testopia
Jenkins
Automated Testing Environment (Hypervisor
Testing as an example)
Automated Testing Process
Example
References
2
Bugzilla Introduction
Bugzilla is a Defect Tracking System and it is
server software designed to help you manage
software development
Bugzilla Features
Excellent security to protect confidentiality
Optimized database structure for increased
performance and scalability
Integrated email capabilities
Comprehensive permissions system
Editable user profiles and comprehensive email
preferences
Proven under fire as Mozilla's bug tracking
system
4
Bugzilla Requirements
Hardware
CPU : 3 GHz
RAM : 4 GB or more recommended
Hard Disk : 50 GB of free space is large enough
MySQL Installation
Step 1. Update
Step 2. Install MySQL
MySQL Configuration
Step 5. Create an user for Bugzilla
Apache Configuration
Step 1. Install Apache2
Step 2. Modify Apache2 configuration file
10
Bugzilla Installation
Step 1. Download Bugzilla : http://www.bugzilla.org/
Step 2. Decompress the file to /var/www/
11
12
13
15
16
17
18
Testopia Introduction
Testopia is a test case management extension for
Bugzilla
Testopia Requirements
Bugzilla
MySQL or PostgreSQL
Mozilla compatible browser
Additional Perl Modules
Testopia Architecture
Test Plans
Test Cases
Test Runs
19
20
Component
A Bugzilla component
An attribute of a product
21
Product
The product name belong to Bugzilla
22
Milestone
A Bugzilla object
Testopia builds are associated with milestones
23
Test Plan
At the top of the Testopia hierarchy are Test Plans. Before you can do anything else in
Testopia, you need a Test Plan
Test plan will serve as the storage point for all related Test Cases and Test Runs and it will
act as the Dashboard for your testing
24
Test Case
Test Cases are the heart of all testing
Test Cases spell out what steps to take while running a test and what outcomes to expect
Test Cases are associated with one or more Test Plans and with zero or more Test Runs
25
Test Run
Once you have defined a set of Test Cases, you are ready to run through those tests in a
Test Run
Each run is associated with a single Test Plan and can consist of any number of Test
Cases from that plan
26
Build
Software development is usually an iterative affair. In Testopia, each iteration is called a build
In software testing, a string denoting the compiled results of a period of development
Builds are often associated with milestones of the project. This is reflected in the build's
relationship to Bugzilla's target milestones object
27
Case Run
A Test Case-Run is the record of how a particular Test Case fared in a particular run for a given
Build in a given Environment
28
Category
A property of a product that is used to classify Test Cases
29
Environment
A list of the surrounding conditions that a test run is performed in
30
31
32
Testopia Installation
Step 1. Download Testopia
http://www.mozilla.org/projects/testopia/
33
Access to Testopia
Step 4. Re-run checksetup.pl
34
Jenkins Introduction
Jenkins is an open source continuous integration
tool written in Java
Jenkins provides a web-based user interface
35
Jenkins Features
Easy installation
Easy configuration
Change set support
E-mail integration
Test reporting
Plugin support
36
Jenkins Installation
Step 1. Install Jenkins
37
38
39
40
2.
Jenkins 1.5
1.
Testopia
Bugzilla 4.4
Ubuntu 13.10
Test Controller
41
Jenkins 1.5
Guest
VM
Testopia
Guest
VM
Guest
VM
4.
Bugzilla 4.4
3.
Ubuntu 13.10
Test Controller
Test Target
42
5.
Jenkins 1.5
Guest
VM
Testopia
Guest
VM
Guest
VM
Bugzilla 4.4
Ubuntu 13.10
Test Controller
Test Target
43
6.
Jenkins 1.5
Guest
VM
Testopia
Guest
VM
Guest
VM
Bugzilla 4.4
Ubuntu 13.10
Test Controller
Test Target
44
7.
Jenkins 1.5
Testopia
Bugzilla 4.4
Ubuntu 13.10
Test Controller
45
Jenkins 1.5
8.
Testopia
Bugzilla 4.4
Ubuntu 13.10
Test Controller
46
47
48
Plan Name
Test Plan name
49
Product
Bugzilla product name
50
Product Type
The testing type for this Test Plan
51
Product Version
The Bugzilla product version
52
Plan Document
This is document that spells out the type of testing and testing methods
used for this plan
53
54
Product Version
The Bugzilla product version
55
Run Manager
The user in charge of this Test Run
56
Build
The default product build
58
Environment
The environment in use for this Test Run
59
Summary
A short description of this Test Run
61
Notes
This field is a place to make notes and observations about this run
62
Summary
A short description of the Test Case
64
Default Tester
The person is assigned to this Test Case
65
Alias
A unique string that uses to identify test result
66
Priority
The level of testing
67
Category
The product category
68
Estimated Time
The estimated time that this Test Case should take to complete
69
Bugs
You can attach bugs to your Test Cases
70
Blocks
If this Test Case prevents others from being run their ID numbers will appear
here
71
Add Tags
A user defined string used to classify Test Cases
73
Requirements
The requirement number or URL to a document containing the requirement
this Test Case is designed to test
74
Automated
Automatic Test Cases are run by a script
75
Scripts
The name of the script that runs this Test Case
76
Arguments
The specific arguments sent to the script
77
Add to Run
Entering a run ID here will include this Test Case in a Test Run if it is not
already included
78
Depends On
If this Test Case requires other Test Cases be run before this one, their case
numbers should appear here
79
Action
This field lists the steps of testing
80
Expected Results
This details the expected outcomes of a test
81
Configure
2.
4.
1.
Testopia
1 . Retrieve Test Script
Contents :
1. Parameters
2. Functions
3.
Start
1. Clean Environment
2. Check Image
3. Launch Test Script
82
Test Script
1. Login to Host
2. Start VM
3. Ping Host
4. Turn off VM
5. Return Result
83
Testopia Version
The version name of Testopia
84
Test Run ID
The Test Run ID of Testopia
85
Success contents
Fail contents
89
90
Jenkins Console
Step 9. Monitor the shell scripts
91
Jenkins Result
92
93
Question
Mail:walkerchang@iii.org.tw
94
References
http://www.bugzilla.org/
https://developer.mozilla.org/enUS/docs/Mozilla/Bugzilla/Testopia#Requirements
http://blog.codylab.com/testcase-managementusing-testopia/
https://wiki.jenkinsci.org/display/JENKINS/Testopia+Plugin
http://testanything.org/
https://wiki.jenkinsci.org/display/JENKINS/Meet+Jenkins
95