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
2 months agoDorothy
2 months agoJamey
2 months agoElza
2 months agoGermaine
2 months agoXenia
3 months agoMyra
3 months agoSophia
1 months agoSherman
1 months agoDominga
2 months agoLevi
3 months agoMickie
2 months agoHolley
2 months agoAlton
2 months agoCasandra
2 months ago