Software testing

  • 627 views
Uploaded on

 

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

Views

Total Views
627
On Slideshare
0
From Embeds
0
Number of Embeds
0

Actions

Shares
Downloads
19
Comments
0
Likes
0

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. Software TestingSoftware Engineering Yasril Syaf SHARING SESSION 30 Desember 2011
  • 2. Definition• Software testing is a formal process carried out by a specialized testing team in which a software unit, several integrated software units or an entire software package are examined by running the programs on a computer. All the associated tests are performed according to approved test procedures on approved test cases.• Software testing is the process of exercising a program with the specific intent of finding errors prior to delivery to the end user.
  • 3. Software Testing
  • 4. What Testing Shows• errors• requirements conformance• performance• an indication of quality
  • 5. Who Tests the Software?
  • 6. Software Testing StrategiesIncremental testing strategies– Bottom-up testing– Top-down testingBig bang testing– To test the software in its entirety, once the completed package is available.– Unless the program is very small and simple, application of big bang testing strategies displays severe disadvantages Identification of error becomes quite cumbersome with respect to immense quantities of software.
  • 7. Top-down vs. Bottom-upBottom-up– Relatively easy– Cannot observe the functions of the program until whole modules have been integrated.Top-down– Demonstrates the entire program functions shortly after the upper-level modules have been completed early identification of errors in analysis and design.– Sometimes it is difficult to create the stubs since it is complicated have to provide varieties of functions.
  • 8. Classification of Software TestingBlack Box• Testing that ignores the internal mechanism of the system or component and focuses solely on the outputs in response to selected inputs and execution conditions.• Testing conducted to evaluate the compliance of a system or component with specified functional requirements.White Box• Testing that takes into account the internal mechanism of a system or component.• Testing conducted to evaluate the correctness of a system or component by investigating the code structure (algorithm).
  • 9. Black Box Testing
  • 10. Black Box Testing• EC boundaries are defined by a single numeric or alphabetic value, a group of numeric or alphabetic values, a range of values, and so on.• Type of EC – Valid EC–An EC that contains only valid states – Invalid EC–An EC that contains only invalid states• In cases where a program’s input is provided by several variables, valid and invalid ECs should be defined for each variable.
  • 11. White Box Testing
  • 12. White box testing Path coverage vs. Line coveragePath Coverage• Path coverage of a test is measured by the percentage of all possible program paths included in planned testing.Line Coverage• Line coverage of a test is measured by the percentage of program code lines included in planned testing.
  • 13. Testing process
  • 14. Determining the test methodologyTesting strategy – Big-bang – Incremental • Top-down • Bottom-upWhich part using – White-box testing – Black-box testing
  • 15. Planning the test• What to test – Which modules, which integrations, priorities• Which sources – Real test case – Synthetic test case• Who performs – Integration/unit tests –generally by development team – System tests –usually by independent team – For large scale software –more than one team
  • 16. Planning the test (2)• Where to perform – Developer’s site – Consumer’s site – Independent site• When are tests terminated – The completed implementation route – The mathematical models application route – The error seeding (hidden) route – The dual independent testing teams route – Termination after resources have run out
  • 17. Designing test• Software test plan (STP) Contains the plan of testing – Scope – Testing environment – Test details – Test schedule• Software test descriptions (STD) – Contains the procedures of testing which consists of document test procedure and test case file.
  • 18. Test implementation• Running the test cases• Documenting the test’s results• Re-testing (regression test) to verify the correction of errors
  • 19. Terima Kasih• QA