14. How many test cases are necessary to cover all the possible sequences of
statements (paths) for the following program fragment? Assume that the two
conditions are independent of each other : -
…………
if (Condition 1)
then statement 1
else statement 2
fi
if (Condition 2)
www.istqb.guru
then statement 3
a. 2 Test Cases
b. 3 Test Cases
c. 4 Test Cases
d. Not achievable
Please explain this how to solve?
Answer Posted / suchita mulkalwar
2 test cases are required. for this
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Do you write test plan and test case?
Explain which test cases are written first black boxes or white boxes?
Write test cases to test a browser app
Write a test case for a car, which has been, recently launch in a market to check its durability, fuel efficiency and its optimum speed.
Requirement from Market “Alice is talking to Bob. Bob thinks that Alice should talk to Chris for more information. Currently, Bob will pass on the directory number of Chris to Alice; Alice/Bob will disconnect the call and then Alice will initiate a new call to Chris. What we need need, Bob should be able to transfer the call to Chris, without Alice making another call.” Implementation done by Unified CM Development Team When a basic call is connected, a new softkey “Transfer” will be displayed on the IP Phone. User (say, Bob) can press that and dial a target (say, Chris). Bob has two options (1) wait for Chris to answer and then tell Chris about call from Alice and then press “transfer” again to complete transfer (2) press “Transfer” immediately; when Chris answers he will be connected to Alice Please come up with test cases thinking from a user perspective, let’s say from a Bank (there could be users such as receptionists, accountants, managers etc.) – in what all scenarios transfer can happen, any negative scenarios (cases where we don’t get a positive response always). If you think you need an enhancement to the feature, please go ahead and suggest that as well.
how to write test cases for smart meter for gas and electricty
I want 100 test scenario for gmail
I need GUI test case for home page?
please give me different test scenario for uploading whatsapp status from gallery and camera
Explain the concept of semi-random test cases?
150 integration testing scenarios for gmail
Write Test cases for the below scenario? scenario 1: Replace the current CSS software with TML software. Scenario 2: Provide the same reports for business as currently provided by CSS software. Not: CSS and TML are customized software.
Can someone help to write testcase for the scenario as early as possible.: 1. Complaint logged since one week 2. complaint info sent to supervisor with high priorit mail 3. 10 users logged into website , performance could not be degraded ( response within 5 seconds) 4. site should be user protected. 5. it should be work with IE 6 IE 7 6. complaint log should be generated more than one week
In a log in page what will be test procedure, test scenario, test description & test steps?
Test a file replication service that copies files from one net location to another