T11 - JUnit Flashcards
Explain what is to Valid Software
AIM: Check specification against user needs, Validation occurs at multiple stages
• User needs against use case diagram and system execution
• Check GUI design (looking at different Dialogs (GUI elements))
Explain what is to verify software
AIM: Check whether the system is working properly and meeting specifications
• Verify the code
• Verify using test cases
Where the different Level of testing
Level of testing Level 1
> Black and White box testing
Level 2 (Alpha Phrase): Program is used within a simulated environment
o Checking for differences between expected and actual output
o Checking input boundaries
Level 3 (Beta Phrase): Program is used within a real environment
o Checking for performance issues (response and execution times)
o Checking for reliability (recovery from errors).
o Handling of large data
Explain what is Black box testing
To test the external behaviour and test the performance of the software
Explain what is white box testing
To test the internal behaviour and test the quality of construction
Using Test Cases
> Test Cases are built around the code
> Test are built around stakeholder requirements
Explain what is Unit testing
To test an individual class (isolated from other classes)
Explain what is integration testing
Integration testing AIM: To test a group of classes. Grouped based on a diagram
o Use case requires multiple classes
o Sequence diagram
o Data management: Classes that uses the same application
Explain what is Sub system testing
Sub - system: Testing USE CASES (each use case can have multiple classes) that share the same persistent data
Explain what is System testing /regression testing
System Testing (regression testing): Any significant changes will require the test to be re-run to ensure no functionality is broken
Identify and explain the different elements of creating a test case
GOAL: Description of the situation CONTEXT: The state or situation that must be setup before the testing PROBE: Execute the test case PREDICTION: Expected output ACTUAL: Actual output
Explain the process of a test driven development and benefit to coders
AIM: application code is written in response to test code
> test cases are built using requirement analysis
> test cases are built before coding