EGENTING BUG HUNT 2015 An Overview. eGENTING BUG HUNT 2015 Agenda 1.What’s New 2.How to improve...
-
Upload
robyn-welch -
Category
Documents
-
view
213 -
download
0
Transcript of EGENTING BUG HUNT 2015 An Overview. eGENTING BUG HUNT 2015 Agenda 1.What’s New 2.How to improve...
eGENTING BUG HUNT 2015
An Overview
eGENTING BUG HUNT 2015
Agenda1. What’s New2. How to improve your chances @EGenting3. Sample format4. Marking Scheme
eGENTING BUG HUNT 2015
eGENTING BUG HUNT 2015
1. What’s newa. In line with eGenting Programming Competition
a. 10 am – 6 pmb. Single round (One test, One shot) c. Open bookd. Hand – Written (paper based only, no electronic
devices allowed)e. Auditorium, Wisma Genting
eGENTING BUG HUNT 2015
2. How to improve your chances @EGentinga. Understanding of the question
Thoroughly read the specification provided, if you have any doubts, ask.
eGENTING BUG HUNT 2015
2. How to improve your chances @EGentingb. Test procedure management
Write test procedures that are easy to understand.
A basic structure of the pro-forma shall be discussed later.
eGENTING BUG HUNT 2015
2. How to improve your chances @EGentingc. Test Design Techniques
Incorporate test cases based on i. Black box ii. White box
eGENTING BUG HUNT 2015
Sample Specification:The XYZ Company would like to have a program that receives an employee's details, calculates the employee's total annual cost of employment, and then stores the employee details as well as the total cost in a database. In addition to the employee's salary, the total cost of employment includes such costs as the employer's contribution to the EPF, insurance, and software licenses.The Cost of Employment Calculator must receive the following information in an Employee Profile Creation form:1. employee number;2. employee name;3. employee designation;4. monthly salary.
eGENTING BUG HUNT 2015
Sample Specification (contd…):The Employee Profile Creation form should look like Figure 1 below:
eGENTING BUG HUNT 2015
Sample Specification (contd…):The valid data types and ranges for the received information are in Table 1 below:
Table 1 – Data types and ranges
Field Type Range Compulsory?
Employee Number Integer 1 - 9999 Yes
Name Alphanumeric 40 characters Yes
Designation Short Drop down box with enumerated values:MANAGER=0EXECUTIVE=1UNKNOWN=2
Yes
Monthly Salary Integer 1-2,147,483,647 Yes
eGENTING BUG HUNT 2015
Sample Specification (contd…):The employee number for each employee must be unique. The employee number range from 8000 to 9999 must be reserved for Managers.The Cost of Employment Calculator must calculate the employee's annual total cost of employment from the above entered information. The formula used to calculate the total cost of employment is:Total cost = (12*monthly_salary) + paid_leave + insurance + epf_contribution + licence_costwhere:
monthly_salary: is the employee's monthly salary. paid_leave: is the cost of the employee's annual paid leave as per Table 2
below:
Table 2 - Cost of Annual Paid Leave by Employee Designation
Employee Designation Cost of Annual Paid Leave
Executive 18 * daily salary
Manager 21 * daily salary
eGENTING BUG HUNT 2015
Sample Specification (contd…):Insurance: is the cost of the employee's insurance policy. The cost is 5.3% of the employee's annual salary.epf_contribution: is the cost of the employer's contribution to the employee's EPF account, as per Table 3 below:
Table 3 - Cost of EPF Contribution by Employee Designationlicense cost: is the cost of the license for the specialised software that the employee uses. Only managers use this software at a cost of RM 1,200 per license. Non-managers do not use the software and have a licensing cost of 0.
Employee Designation Cost of EPF Contribution
Executive 13% of annual salary
Manager 12% of annual salary
eGENTING BUG HUNT 2015
Sample Specification (contd…):When the 'Submit' button is clicked, the Cost of Employment Calculator must calculate the employee's annual total cost of employment and display it in a Confirmation of Creation page which must show the following information:1. employee number;2. employee name;3. designation;4. monthly salary;5. annual total cost of employment.
eGENTING BUG HUNT 2015
Sample Specification (contd…):The Confirmation of Creation page should look like Figure 2 below:
When the 'Back' button is clicked, the Cost of Employment Calculator must close the Confirmation of Creation page and return to the Employee Profile Creation page.
eGENTING BUG HUNT 2015
Sample Specification (contd…):When the 'Confirm' button is clicked, the Cost of Employment Calculator must verify that the employee's annual total cost of employment does not exceed the maximum annual total cost of employment as per Table 4:
Table 4 - Maximum annual total cost of employment by employee designation
If the employee's annual total cost of employment does not exceed the maximum values allowed, the Cost of Employment Calculator must insert the employee record into the database.
Employee Designation Maximum annual total cost of employment
Manager 300,000
Executive 150,000
eGENTING BUG HUNT 2015
Spec: The system must have an employee profile creation page
# Test Cases Expected Output Result1 Initialise the system The “Employee Profile
Creation” form must be displayed
Pass/Fail
eGENTING BUG HUNT 2015
Spec: The employee profile creation form should look like Figure 1
# Test Cases Expected Output Result1 Examine “The employee profile
creation” formThe look and feel of the employee profile creation page should resemble Figure 1 displayed in the specification.
Pass/Fail
eGENTING BUG HUNT 2015
Spec: The system must receive the following information…
# Test Cases Expected Output Result1 Examine the fields in the
employee profile creation formThe employee profile creation form must have the following fields:1. Employee Number2. Name3. Designation4. Monthly salary5. Submit button
Pass/Fail
eGENTING BUG HUNT 2015
Spec: The employee number for each employee must be unique
# Test Cases Expected Output Result1 Submit the form with an
employee number for which a record exists. Eg: 1000
The system must reject the form submission
Pass/Fail
eGENTING BUG HUNT 2015
Spec: The Cost of Employment Calculator must calculate the employee's annual total cost of employment from the above entered information.
# Test Cases Expected Output Result1 Submit the form with:
i. Employee number = 8000ii. Name = Blueiii. Designation = Manageriv. Monthly Salary = 1000
The annual cost of employment must be equal to 16096(Reference formula: Total cost = (12*1000) + (21*(1000/30)) + (5.3% * 12*1000) + (12%* 12000) + 1200
Pass/Fail
eGENTING BUG HUNT 2015Field verification: Employee Number
Value Accepted Technique
-10 No Equivalence Partitioning
0 No Boundary Value
1 Yes Boundary Value
2 Yes Boundary Value
1000 Yes Equivalence Partitioning
7999 Yes Equivalence Partitioning
9998 Yes Boundary Value
9999 Yes Boundary Value
10000 No Boundary Value
Junk characters No
Alphanumeric No
Floating numbers No
eGENTING BUG HUNT 2015
Spec: The employee number range from 8000 to 9999 must be reserved for Managers.
# Test Cases Expected Output Result1 Submit the form with:
i. Employee number = 8000ii. Name = Blueiii. Designation = Manageriv. Monthly Salary = 1000
The system must proceed to the confirmation page
Pass/Fail
Range Manager Executive
1 – 7999 Accept Accept
8000 – 9999 Accept Reject
eGENTING BUG HUNT 2015
Spec: The employee number range from 8000 to 9999 must be reserved for Managers.
# Test Cases Expected Output Result1 Submit the form with:
i. Employee number = 8000ii. Name = Blueiii. Designation = Executiveiv. Monthly Salary = 1000
The system must reject the form submission
Pass/Fail
eGENTING BUG HUNT 2015
Decision Table: Employee Number & Designation
Range Manager Executive
1 – 7999 Accept Accept
8000 – 9999 Accept Reject
eGENTING BUG HUNT 2015
Sample Source Code:
int salary, costEmployment; // Salary and cost of employment
// Validate ID and designation
if (empID >= 8000 && empID <= 9999) if (designation != MANAGER)
Reject (SPECIAL_RESERVE_ERR);else if (empID >= 1 && empID < 8000)
if (designation == MANAGER) Reject (SPECIAL_RESERVE_ERR);
eGENTING BUG HUNT 2015
Sample Source Code (contd…):
// Calculate annual cost of employment costEmployement = 0.0;
switch (designation){ case MANAGER:
// Salaries + paid leave + insurance + EPF contribution + software licensecostEmployment = 12 * salary + 21 * salary / 261 + 0.053 * salary * 12 + 0.13 * salary * 12
+ 1200;break;
case STAFF:// Salaries + paid leave + insurance + EPF contributioncostEmployment += 12 * salary + 21 * salary / 261 + 5.3 * salary * 12 + 0.12 * salary * 12;
default:costEmployment = salary * 0.0;break;
}……..
eGENTING BUG HUNT 2015
Sample Source Code (contd…):
// Confirmedif ((costEmployment >= 300000 && designation == MANAGER) ||
(costEmployement > 150000 && designation == EXECUTIVE))Reject (OVER_BUDGET_ERR);
// Insert record into the database……..
eGENTING BUG HUNT 2015
2. How to improve your chances @EGentingc. Test Design Techniques
ii. White box: Statement testing and coverage (Executable
statements)
if (empID >= 8000 && empID <= 9999) if (designation != MANAGER)
Reject (SPECIAL_RESERVE_ERR);
Tip: Revise your basic skills of C++ and Java.# Test Cases Expected Output Result1 Submit the form with:
i. Employee number = 8500ii. Name = Steveniii. Designation = Executive
The form submission must be rejected
Pass/Fail
eGENTING BUG HUNT 2015
2. How to improve your chances @EGentingc. Test Design Techniques
ii. White box: Decision testing and coverage (Conditional statements)
if ((costEmployment >= 300000 && designation == MANAGER) || (costEmployement > 150000 && designation == EXECUTIVE))
Reject (OVER_BUDGET_ERR);
Tip: Revise your basic skills of C++ and Java.
# Test Cases Expected Output Result1 Submit the form with:
i. Designation = Executiveii. Annual cost of
employment = 150000
Form should be successfully submitted
Pass/Fail
eGENTING BUG HUNT 2015
2. How to improve your chances @EGentingc. Test Design Techniques
ii. White box: Decision testing and coverage (Conditional statements) if ((costEmployment >= 300000 && designation == MANAGER) || (costEmployment > 150000 && designation == EXECUTIVE))
Reject (OVER_BUDGET_ERR);
Cost of employment Manager Executive
<=150000 Accept Accept
>150000 && <300000 Accept Reject
>=300000 Reject Reject
eGENTING BUG HUNT 2015
2. How to improve your chances @EGentingd. Test case alignment with test objective
Group test cases of similar nature under the same test objective.
Objective: To verify the user interface
Objective: To verify the database
eGENTING BUG HUNT 2015
2. How to improve your chances @EGentinge. Time management - specification coverage and
documentation
While detailed documentation could assist the evaluator to understand what / how you intended to test, it is equally important that a balance is drawn, between covering sections of the specification and documentation.
eGENTING BUG HUNT 2015
2. How to improve your chances @EGentingf. Creative thinking
While its always safe to play by the book, sometimes you can score brownies for creative thinking as well.Understand the nature of the product that is intended to be tested. Is there anything else, that is not part of the specification but could possibly lead to a bug?
eGENTING BUG HUNT 2015
2. How to improve your chances @EGentingf. Handwriting
A clear and clean work won’t give you brownies but would help evaluators to read and understand what you wrote.
Help us to give you the best possible evaluation.
eGENTING BUG HUNT 2015
3. Sample pro-forma– The sample pro-forma is what it says, “sample”.– You are free to discard it / use it as it is / change
any part of it / remove any part from it
eGENTING BUG HUNT 2015
3. Sample pro-formaa. Test cases
A. Objective: To verify the user interface
# Test Cases Expected Output Result1 Verify the available options in
the “Designation” drop down field
Only the following options must be present:1. Manager2. Executive3. Unknown
Pass/FAIL
eGENTING BUG HUNT 2015
4. Marking SchemeA. Efficient test cases
Are the resources spent to execute test case optimum enough to find a bug?
B. Effective test casesIs the test case effective enough to find a
probable bug?
How well the test case verify that the system satisfy the specification?
eGENTING BUG HUNT 2015
5. Useful linksA. https://www.facebook.com/egentingbhB. http://egbh.rwgenting.com/C. http://www.istqb.org/downloads/e-books.html
eGENTING BUG HUNT 2015
EGenting Bug Hunt 2015
November 15, 201510:00 – 18:00Auditorium, Wisma Genting, Kuala Lumpur
Thank you.