You are testing software that will be used in nuclear power plants. The particular piece of code you are testing has been classified as SIL 2. The following section of code falls under this classification:
If ((A > B) or (C > D)) and (E = F) then print A
Endif
Which of the following sets of test data would supply the minimum tests needed to achieve the "highly recommended" level of coverage?
In software testing, especially within contexts like nuclear power plants, achieving a 'highly recommended' level of coverage often requires strategic test case selection to verify all logical conditions are accurately assessed. For the condition 'If ((A > B) or (C > D)) and (E = F) then print A', the critical tests involve evaluating the boolean logic.
Test Case Analysis: Test Set 1 is selected because it should ideally include scenarios where:
Both conditions (A > B) and (C > D) are true, and (E = F) is true to ensure the print statement executes.
One of the conditions (A > B) or (C > D) is false while the other is true, combined with (E = F) being true, to test the OR logic.
Both conditions (A > B) and (C > D) are false with (E = F) being true, which should not trigger the print statement, testing the AND logic.
Condition where (E != F), irrespective of other conditions, to confirm that the print statement does not execute.
Dorothy
2 months agoXenia
3 months agoDorothy
3 months agoJamey
3 months agoElza
3 months agoGermaine
3 months agoXenia
3 months agoMyra
4 months agoSophia
2 months agoSherman
2 months agoDominga
3 months agoLevi
4 months agoMickie
3 months agoHolley
3 months agoAlton
3 months agoCasandra
3 months ago