Professional Documents
Culture Documents
Bug
Cost
Manual
Automate Testing Actual Situation
U
Why Automated Testing usually go wrong (B)
Reasons: Failure of using Automated Testing
•Using Automated Tools without reformation of work
regulation and work flow.
No strategy, only install automated tools
•Too much hope to Automated testing
Only automated tools doesn’t solves the problem
•Not enough training, Low capability of testers
Testers don’t know test itself.
•Wrong Test Tools
U
What kind of tools are easy to use
Tool Personal Group
Easy Effect Easy Effect
Static Analysis: Style Check XXX XXX X XXX
Static Analysis: Bug Detect XXX XXX X XXX
Code Metrics XX XX X XX
Test design/ Test case/ Executing: XX XXX X XX
Component Test supporting
Test Executing: Record/Replay XXX X XXX X
Test Executing: Record/Replay Web X XX X XX
Performance Testing: profile X XX X XX
Performance Testing: Record/Replay XXX XXX XXX XXX
Incident Management - - XX XXX
Test Case Management - - XXX XX
Configuration Management - - XXX XX
U
What kind of Tests are fit for Automated Testing
Type of Testing Good Bad
Smoke Testing X
Performance Testing X
Testing of API X
Regression Testing X? X?
Testing of GUI X? X?
Testing of fixed specification X
Testing in different environment X
Data driven Test ( Same operation, deferent data) X
U
Installation of eclipse plug-in (1)
Most plug-ins will have an update site, making it easy to add
and update plug-ins within Eclipse.
Step1: [Help]-[Install New Software…]
U
Installation of eclipse plug-in (2)
Step2: Adding new site [ Add…] Button
U
Installation of eclipse plug-in (3)
Step3: Input location of site
Plug-in Location
Checkstyle Plug-in http://eclipse-cs.sf.net/update/
FindBugs http://findbugs.cs.umd.edu/eclipse
Metrics plugin for Eclipse http://metrics.sourceforge.net/update
djUnit http://works.dgic.co.jp/djunit/update/3.5.x/site.xml
The Eclipse Web Tools http://download.eclipse.org/webtools/repository/helios
Platform (WTP)
U
Installation of eclipse plug-in (3)
Step3: Selecting the module and installation
U
Metrics plugin for Eclipse (1)
Step1: Enable Metrics: [Properties]
U
Metrics plugin for Eclipse (2)
Step1: Showing Metrics Windows
[Windows] – [Others…]
U
Metrics plugin for Eclipse
Metrics of Program
U
Metrics plugin for Eclipse
McCabe Cyclomatic Complexity
U
JUnit (1)
Step1: Making Test Class: [New]-[JUnit Test Case]
U
JUnit (2)
Step2: Defining Test Class
U
JUnit
JUnit generates framework of test program and
programmer add checking code.
package hoge;
public class Counter {
public int add(int num1, int num2) {
return num1 + num2;
}
public int subtract(int num1, int num2){
return num1 - num2;
}
}
Target Program
Deriver Program
generated by JUnit