Can anybody explain me branch/decision coverage with a
example.
Answer / nitin
Branch Coverage reveals, if all branches were executed. (For example, an if-instruction has two branches, the then-branch and the else-branch.)
Decision Coverage reveals, if all decisions evaluated to both true and false. (For example, the decision of an if-instruction is what is between the parentheses.)
if (x > y)
print (x)
else if (x < y)
print (y)
else
print (x,y)
in the above example there are three decisions and 5 branches.
stmt 1 if two branches true or false
stmt 3 else if teo branches true or false
stmt 5 else one branch
so pass values like
x = 2,1,2
y = 1,2,2
so that all three decisions and 5 branches are covered.
| Is This Answer Correct ? | 14 Yes | 4 No |
What is the difference between Developer and programmer?
Do you know any kind of matrix ?
Which is not present in formal review? a.)Facilitator b.)Auditor c.)Author d.)Recorder
What if requirement document is unclear?
In my application there are 5 modules. In every module there are 8-9 sub-modules. Preview, Print & Download options are there on every sub-module screen. My Question is - Should I have to write that much test cases for Preview, Print & Download options???????? Please reply soon.
Who Prepare the Master Test Plan? Who Prepare the Test Plan?
Is Software Testing categorized as a technical or Non-technical job???
How many are the types of Black Box testing ?
What are the different cost elements involved in implementing a process in an organization?
As a tester I found a show stopper(critical defect) this evening whereas the project is going to be delivered to the client tomorrow morning so there is no time left.I reported the same to my test manager but he is not ready to convinced with me moreover he wants to close the matter as it is....in this senario wat will u do???
why do u want to become a software tester?
password is having 6 digit alphanumerics then what r the possible input conditions?
6 Answers Logica CMG, Visual Soft,