Software Testing 101

  • 2,625 views
Uploaded on

A presentation to explain the goals and methods of testing to a variety of colleagues who help with testing on certain projects...

A presentation to explain the goals and methods of testing to a variety of colleagues who help with testing on certain projects...

More in: Technology
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
No Downloads

Views

Total Views
2,625
On Slideshare
0
From Embeds
0
Number of Embeds
1

Actions

Shares
Downloads
53
Comments
0
Likes
1

Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide

Transcript

  • 1. Or… how to find and kill bugs!
  • 2. Software Testing is NOT:
    • Just clicking around!
    • To prove that the program is error free
    • To establish with confidence that the software performs its functions correctly and does its job fully
    • Designer/Developer bashing
    • Ever completely finished…
  • 3. Software Testing IS… the task of locating, clearly defining and correcting errors.
    • Without a proper definition of testing, the leader might describe a successful test run as one which proves the program is error free and describe an unsuccessful test as one which found errors. As is the case with the testers themselves, this mind-set is actually counter-productive to the testing process.
  • 4. Eight Basic Testing Principles
    • Define the expected output or result.
    • Don't test your own programs.
    • Inspect the results of each test completely.
    • Include test cases for invalid or unexpected conditions.
    • Test the program to see if it does what it is not supposed to do as well as what it is supposed to do.
    • Avoid disposable test cases unless the program itself is disposable.
    • Do not plan tests assuming that no errors will be found.
    • The probability of locating more errors in any one module is directly proportional to the number of errors already found in that module.
    List courtesy of: http :// software-quality-testing.blogspot.com/2006/11/eight-basic-principles-of-testing.html
  • 5. Positive and Negative Testing
    • To satisfy its definition, testing must accomplish the following goals:
    • 1. POSITIVE TESTING: Do ‘normal’ user actions, and find cases where the program does not do what it is supposed to do.
    • 2. NEGATIVE TESTING: Do ‘abnormal’ actions to find cases where the program does things it is not supposed to do.
  • 6. Basic Test Plans
    • Outline provided in test plan template… trying to standardize this information!
    • This meets the “defining expected results” principle, which is #1 for a reason.
    • Start writing these test plans BEFORE coding is done.
    • You are the people most familiar with these products – you know how they should work.
    • Test plans also help capture the current state and can just be modified when future changes are made.
    • Test plans MUST include negative cases (principle #4).
    • Make them as re-usable as possible (principle #6).
  • 7. Example 1:
    • Detailed test plan, with notes and data entries – note the expected results and reasons for failure, and that normal testing includes positive and negative cases.
  • 8. Example 2:
    • Sometimes you need a less detailed plan that highlights positive tests. This can be more of an outline, with specific areas where there are a lot of issues stepped out more clearly.
  • 9. Bugs Everywhere!
    • FACT: Some test cases must fail, or you are not testing correctly! (principle #7)
    • A computer bug is an error, flaw, mistake, failure, or fault in a computer program that prevents it from working correctly or produces an incorrect result.
    • ANYTHING that does not work as expected is a bug – from capitalizations to run-time errors.
    • It is NOT up to the tester to decide how important a bug is, so every one must be documented.
    • Some bugs will be rejected (never fixed) so don’t get too attached to them…
    • But do fight for the ones that you think are showstoppers.
  • 10. What happens when I meet a bug?
    • FREEZE! Take a screen shot
    • if possible, and immediately
    • recollect any information you
    • just entered.
    • You should be writing or
    • repeating test plan steps, so make
    • sure you are in the right spot and steps up to that point are noted.
    • If the program crashes, restart it. If not, try IMMEDIATELY to make the bug happen again and document the steps clearly.
    • Try to a reasonable length to replicate the bug, if you can’t then still track it but tag it “not replicable”.
    • Note the bug on the test plan and track it…
  • 11. Tracking Bugs
    • If some test cases must fail, then keeping track of the bugs is essential!
    • We are working on a system to keep track of all bugs, for now we will be using Pivotal Tracker.
    • After this meeting, I’ll send you a blank test plan and invitation to use this software.
    • Quick walkthrough…