A test oracle is a mechanism or principle that can be used to determine whether the observed behavior or output of a system under test is correct or not1. A test oracle can be based on various sources of expected results, such as specifications, user expectations, previous versions, comparable systems, etc2. Reference: ISTQB Certified Tester Foundation Level (CTFL) v4.0 Syllabus, Section 1.2.1, Page 91; ISTQB Glossary of Testing Terms, Version 4.0, Page 332.
Question 47
For each of the test cases to be executed, the following table specifies the priority order and dependencies on other test cases Which of the following test execution schedules is compatible with the logical dependencies and allows executing the test cases in priority order?
Correct Answer: D
This answer is correct because it follows the logical dependencies and allows executing the test cases in priority order. TC4, TC3, and TC2 are executed first because they have the highest priority. TC6 is executed next because it has a logical dependency on TC2. TC1 is executed next because it has a logical dependency on TC5. Finally, TC5 is executed last because it has the lowest priority. References: ISTQB Certified Tester Foundation Level (CTFL) v4.0 documents
Question 48
A program is used to control a manufacturing line (turn machines on and off. start and stop conveyer belts, add raw materials to the flow. etc.). Not all actions are possible at all times. For example, there are certain manufacturing stages that cannot be stopped - unless there is an emergency. A tester attempts to evaluate if all such cases (where a specific action is not allowed) are covered by the tests. Which coverage metric will provide the needed information for this analysis?
Correct Answer: D
Branch coverage is a type of structural coverage metric that measures the percentage of branches or decision outcomes that are executed by the test cases. A branch is a point in the code where the control flow can take two or more alternative paths based on a condition. For example, an if-else statement is a branch that can execute either the if-block or the else-block depending on the evaluation of the condition. Branch coverage ensures that each branch is taken at least once by the test cases, and thus reveals the behavior of the software under different scenarios. Branch coverage is also known as decision coverage or all-edges coverage. Branch coverage is suitable for testing the cases where a specific action is not allowed, because it can verify that the test cases cover all the possible outcomes of the conditions that determine the action. For example, if the program has a condition that checks if the manufacturing stage can be stopped, then branch coverage can ensure that the test cases cover both the cases where the stage can be stopped and where it cannot be stopped. This way, branch coverage can help identify any missing or incorrect branches that may lead to undesired or unsafe actions. The other options are not correct because they are not suitable for testing the cases where a specific action is not allowed. Code coverage is a general term that encompasses various types of coverage metrics, such as statement coverage, branch coverage, data flow coverage, etc. Code coverage does not specify which type of coverage metric is used for the analysis. Data flow coverage is a type of structural coverage metric that measures the percentage of data flow paths that are executed by the test cases. A data flow path is a sequence of statements that define, use, or kill a variable. Data flow coverage is useful for testing the correctness and completeness of the data manipulation in the software, but not for testing the conditions that determine the actions. Statement coverage is a type of structural coverage metric that measures the percentage of statements or lines of code that are executed by the test cases. Statement coverage ensures that each statement is executed at least once by the test cases, but it does not reveal the behavior of the software under different scenarios. Statement coverage is a weaker criterion than branch coverage, because it does not account for the branches or decision outcomes in the code. Reference = ISTQB Certified Tester Foundation Level (CTFL) v4.0 syllabus, Chapter 4: Test Techniques, Section 4.3: Structural Testing Techniques, Pages 51-54.
Question 49
Which ONE of the following activities TYPICALLY belongs to the planning phase of the review process?
Correct Answer: C
Theplanning phase of the review process(C) includes defining thereview's purpose, scope, and exit criteriato ensure alignment.Option Ais part of the defect management phase,Bhappens during individual preparation, andDtakes place in the review meeting. Reference:ISTQB CTFL v4.0 Syllabus, Section 3.2.2 - Review Process
Question 50
Which of the following statements about checklist-based testing is true?
Correct Answer: B
Checklist-based testing, as defined in the ISTQB CTFL syllabus, is indeed a review technique used within formal review processes. During these reviews, reviewers individually inspect work products to identify defects based on predefined checklists. These checklists serve as guidelines to ensure thorough examination and to cover important aspects consistently. The other options do not accurately describe the checklist-based testing technique. Option A describes a technique for managing review meetings rather than the checklist-based testing itself. Option C incorrectly emphasizes the level of detail in checklists as a factor in reproducibility of test cases, which is not the primary focus of checklist-based testing. Option D, while true about the necessity of periodic review, is not the core aspect of the checklist-based testing technique itself.