Sample Problems for Testing For “Program” Level Testing: –Triangle –Next Date –Sales Commission For “System” Level Testing: –ATM system –Currency conversion.

Slides:



Advertisements
Similar presentations
Context Diagram Yong Choi BPA CSUB.
Advertisements

GCSE ICT By the end of this session, you will be able to: Explain main features of ATM machines Identify features of credit cards, debit cards, smart cards.
Chapter 4: Requirements Engineering
Use Case & Use Case Diagram
Introduction to Software Testing Chapter 2.6 Graph Coverage for Use Cases Paul Ammann & Jeff Offutt
USE CASE – ATM EXAMPLE Actors: ATM Customer ATM Operator Use Cases: The customer can withdraw funds from a checking or savings account query the balance.
Your Keys To Financial Freedom And Long-Term Residual Income!
SWE 214 (071) Use Case Diagrams Slide 1 Use Case Diagrams Examples.
Functional Testing 1 CSCE 747 Fall 2013 CSCE 747 Software Testing and Quality Assurance Lecture 01 – Functional Testing.
Introduction to Software Testing Chapter 2.6 Graph Coverage for Use Cases Paul Ammann & Jeff Offutt
ATM – requirements Team B Tom Hastjarjanto Martijn Nijenhof Ales Sturala Paul van der Ende.
ATM User Interface V3. I/O Devices Input: Keyboardfor input, option select Keyboardfor input, option select Or Touch screen Or Touch screenOutput: Screenfor.
Sequence Diagrams. Introduction A Sequence diagram depicts the sequence of actions that occur in a system. The invocation of methods in each object, and.
© Thomson/South-WesternSlideCHAPTER 231 BANKING AND CREDIT 23.1Financial Institutions 23.2Checking Accounts 23.3Credit and Its Use Chapter 23.
Prepare a deposit slip Record entries in a check register
1 Classes. 2 Finding classes w Choosing classes is first step in defining essence of problem w If you can recognize an abstraction, you’ve found a candidate.
Chapter 12 ATM Case Study, Part 1: Object-Oriented Design with the UML
ATM User Interface Design. Requirements A bank customer is able to access his or her account using an automatic teller machine. To be able to use an ATM.
1.7.2.G1 Electronic/Online Banking & Bill Pay Take Charge of Your Finances.
January Ron McFadyen1 Ch 9. Use-case model: drawing System Sequence Diagrams Elaboration Iteration 1: a simple cash-only success scenario of.
Personal Finance Benchmark Demonstrate an understand that personal spending, saving, and credit decisions have significant implications for the.
Events & Messages Paul Ard Ales v2.0. Generic Exceptions  HardwareFail – the device does not respond  HardwareMalfunction – some part of the device.
{ How to Use An ATM A simple tutorial to teach how to use ATM Machines.
Electronic Payment. Amounts transferred through accounts Money transfer instructions Bank’s computer system Other banks / Businesses.
Banking: Checking Account What is a Checking Account? An account where money is deposited and kept for day-to-day expenses Also called demand deposit.
Banking:
Bank On It FDIC Money Smart for Young Adults Building: Knowledge, Security, Confidence.
Chapter 10 Money and Banking.
Merijn Benjamin Christina
30S Applied Math Mr. Knight – Killarney School Slide 1 Unit: Budgeting Lesson: Cheque Records & Deposit Slips Cheque Records & Deposit Slips Learning Outcome.
Use Case Diagram: Exercise 5 and 6 Yong Choi BPA CSUB.
Faculty of Computer & Information Software Engineering Third year
UML basics UML distilled, a brief guide to the standard Modeling language, by Martin Fowler, 2000.
ICT and Banks Banks use mainframe computers to maintain customer accounts. They store a record of each customer’s withdrawals and deposits. Each bank mainframe.
Sample Problems for Testing
SFWR ENG 3KO4 Software Development for Computer/Electrical Engineering Fall 2009 Instructor: Dr. Kamran Sartipi Software Requirement Specification (SRS)
Ch. 7: Banking Services 7.1 How Banks Work
Faculty of Computer & Information
Objective Teen Living Money Management.
January Ron McFadyen1 January 2004 Assignment 1 Due: Friday Jan 23, Implement the ProductSpecification and Payment classes in any OO.
1 Graph Coverage (6). Reading Assignment P. Ammann and J. Offutt “Introduction to Software Testing” ◦ Section
GOALS BUSINESS MATH© Thomson/South-WesternLesson 3.2Slide 1 3.2Electronic Banking Record electronic banking transactions Find account balance when banking.
Building: Knowledge, Security, Confidence Check It Out FDIC Money Smart for Young Adults.
Learning Intentions Explain what an ATM is and the facilities offered Identify the stages of withdrawing cash from an ATM List the advantages and disadvantages.
1 Requirements Engineering From System Goals to UML Models to Software Specifications Axel Van Lamsweerde.
Electronic Payment. Amounts transferred through accounts Money transfer instructions Bank’s computer system Other banks / Businesses.
Checking & Savings Accounts Economics What is a Checking Account?  Common financial service used by many consumers (a place to keep money)  Funds.
Computer Studies Today Chapter 2 1 » Payroll system » Mailing list system » Ticketing system » Point-of-sale system » Electronic funds transfer system.
UC Diagram & Scenario RKPL C & D. Using Use Case Diagram Use case diagrams are used to visualize, specify, construct, and document the (intended) behavior.
Daar is geen woord Chinees bij. Follows the push model, messages are not initiated by the software 2.
1 Case Study and Use Cases for Case Study Lecture # 28.
Teens 2 lesson six using banking services presentation slides 04/09.
Paul Ammann & Jeff Offutt
Take Charge of Your Finances
Take Charge of Your Finances
Electronic/Online Banking & Bill Pay
Dynamic Modeling of Banking System Case Study - I
SECURITY FEATURES OF ATM
Electronic Banking Electronic Fund Transfer (EFT)
How An ATM Work's Prepaid by, kakani Dinesh.
SAD ::: Spring 2018 Sabbir Muhammad Saleh
Paul Ammann & Jeff Offutt
Using Use Case Diagrams
using banking services
Chapter 10 Section 3 Banking Today
Teens 2 lesson six using banking services presentation slides 04/09.
using banking services
If you are using UTS Computers. SAVE ONTO USB (not desktop)!
Take Charge of Your Finances
Uses of Telecommunications & ICT
Presentation transcript:

Sample Problems for Testing For “Program” Level Testing: –Triangle –Next Date –Sales Commission For “System” Level Testing: –ATM system –Currency conversion –Windshield Wiper These 6 problems will be used throughout the remainder of the course as examples for different testing techniques

1. Triangle Problem Problem (Requirements) Statement: –Write me a program that will accept 3 numbers which represent the 3 sides of a triangle. evaluate the inputs and determine if –It is a triangle –an isosceles triangle –an equilateral triangle –a scalene triangle Output the answer Look at this requirement statement and identify areas of potential problem if you were writing the program anything more if you were testing this? (would you ensure that the outputs are tested via “partitioned” set?) Your textbook has an “improved” version of the requirement. Problem: relating a) inputs to b) outputs based on input validity & input relationship

2. Next Date Problem Problem (Requirements) Statement: –Write me a program that will accept 3 numbers which represent the day, month, and year of a calendar date evaluate the inputs and determine –The next day of the date represented by the input output the next day answer Look at this requirement statement and identify areas of potential problem if you were writing the program anything more if you were testing this? Problem: relating inputs to outputs based on input validity & input relationship & “complex” data relationships

3. Monthly Sales Commission Problem Problem (Requirements) Statement: –Write me a program that will accept 3 numbers which represent the number of locks, number of stocks, and number of barrels of a gun sold at each town during the month Will accept a number, -1, for locks to represent the “end” of monthly sales so sales commission can be computed evaluate the inputs and determine the monthly sales commission as follows: – each lock price is $45; each stock price is $30; and each barrel price is $25 –sales person is paid 10% of total sales for the first $1000; 15% on the next $800; and 20% in excess of $1800 output the sales commission Some sales “limitations” exist –Must sell one complete rifle –Monthly sales (production limit) must be: »# of locks <71 »# of stocks < 81 »# of barrels < 91 Look at this requirement statement and identify areas of potential problem if you were writing the program anything more if you were testing this? Problem: Input – store - compute -output

4. ATM System Problem Problem (Requirements) Statement: –Develop part (a component) of an automatic teller system that: Displays a “welcome screen” with a simple instruction to insert ATM card Validates the ATM card. If invalid keeps it (with a message); otherwise goes on Asks for and validates a personal id number ( only up to 3 times) If valid, three “activity” options are presented: –Check the account balance –Withdraw from the account –Deposit into the account Once the option is selected, the customer is presented with and asked to choose between a checking or a savings account For each of these 3 optional activities the customer account file is also updated with –Date of ATM access and –Increment the number of times this account is accessed through ATM

ATM System Problem (cont.) –Requirements (cont.) If account balance is requested then a new balance is printed and the customer is given a choice for more activities. For both withdrawal and deposit options, the customer is asked to key in the amount For withdrawal, the minimum increment is $10. The customer account will be updated, and the customer will be asked to take the cash from the dispenser. In the event there is insufficient funds, the customer is asked to re-key an amount For deposits, if the ATM terminal deposit is working (envelop exists and slot moves), then the customer is asked to place the deposit in an envelop and deposit through the ATM. Otherwise, the customer is told of the problem and given a choice of other options. When customer activities are complete, a new balance is printed on the receipt and a choice for more activities is given. If the customer chooses more activity, he is returned to the 3 choices of activities again. If the customer has no more activity then a message for customer to take both the receipt and the ATM card and the system ends. This testing would be closer to a component or system test, after each unit test is completed. How would divide the component into units for unit testing?

5. Currency Conversion Subsystem (pre-Euro) Problem (Requirements) Statement: –Develop a GUI based sub-system that will accept US currency and convert it to: –Brazilian currency –Canadian currency –United Kingdom currency –Japanese currency –Chinese currency –Italian currency (euro) use the exchange rate within the last 12 hours. Also allow the “reverse currency” computation Look at this requirement statement and identify areas of potential problem if you were writing the program anything more if you were testing this? Note: more currencies than the textbook

6. Embedded Windshield Wiper Controller Problem (Requirements) Statement: –Write me an “embedded” program that Controls the 4 speed settings of a windshield wiper: –Off –Intermittent –Low –High For “off”, the windshield wiper does not move For Intermittent setting, there are 3 “dial” sub-settings: –1 : wiper wipes 4 times per minute –2: wiper wipes 6 times per minute –3: wiper wipes 15 times per minute For Low, the wiper wipes 30 times per minute For High, the wiper wipes 70 times per minutes Look at this requirement statement and identify areas of potential problem if you were writing the program anything more if you were testing this? OFF -> Wiper does not move As a tester what needs to be considered? - if wiper is not moving, then ?