Week 4 Flashcards
What is Polling?
A method where a program repeatedly checks for new data or status at regular intervals
What are Events?
A method where a program waits for a signal or notification that something has happened
An object that contains information about a state change in a source
What is a quick comparison between Polling and Events?
Polling = Asking regularly.
Events = Waiting for a signal.
When would you use Events and Listeners?
Any situation where your program is waiting for something to happen but you cannot make it happen
What is a Source?
An object that generates an event
What is a Listener?
An object that is notified of an event occuring
An event listener has a different method for each type of event notification it is interested in
What is a Listener Interface?
To be notified of events a class must implement a Listener Interface
What is Integration Testing?
Where multiple components are grouped together (integrated) to form final system and tested
Unexpected behaviour arise at this point, which is checked for here
What is System Testing?
Testing the entire system as a whole
What is User Acceptance Testing?
User Acceptance Testing (UAT) is the final phase of the software testing process where actual software users test the software to ensure it can handle required tasks in real-world scenarios, according to specifications.
UAT is important because it ensures that the software meets the necessary requirements and is usable for the intended audience before it goes live.
What are advantages of the V model?
Highly structured, phases completed one at a time
Works well where all requirements are understood
Simple to understand
Easy to manage - each phase has a definite end with a review
What are disadvantages of the V model?
Once project is in the testing phase it is difficult to go back and change functionality
Not suitable for projects where requirements might change
No working software created until later in the cycle
What is Static Testing?
Static testing is a software testing method where the code is not executed.
Instead, it involves reviewing the code, documentation, and design to find errors
What is Dynamic Testing?
Testing that involves executing program code
eg. White box testing, black box testing etc.
What is White Box Testing?
Testing where the internals of the program are known, so can test explicit paths through the system (code coverage)
What is Black Box Testing?
Treats code as “black box”, and therefore is only concerned with functionality
What is Grey Box Testing?
Know both the required functionality and also some of the implementation concepts (and/ or access to data stores not user accessible in the live system) which can be used in test design, but not code base exposed)
What are the advantages of White Box?
Code can be seen so tests can be designed to test many paths through the program
What are disadvantages of White Box?
Knowledge of the internals will influence the testing - can lead to bias in test design
What are advantages of Black Box?
No knowledge of internals so no “programmer bias” - more likely to result in tests no expected by the programmer
What are disadvantages of Black Box?
High probability that tests will only test small number of paths through the program
What is the V model?
The V-Model is a straightforward software development method shaped like the letter “V.” It focuses on planning and testing.
Each step of creating the software (like designing and building) on the left side of the “V” is directly linked to a testing step on the right side.
This setup ensures that every stage of development is checked and verified, helping to catch errors early and make sure the final software works well and meets all requirements.
This model is especially good for projects where the requirements are clear from the start and quality is a top priority.