Home /
Expert Answers /
Computer Science /
q-6-a-explain-the-significance-of-data-flow-based-testing-obtain-the-test-cases-generated-using-pa612
(Solved):
Q.6(a) Explain the significance of data flow-based testing? Obtain the test cases generated using ...
Q.6(a) Explain the significance of data flow-based testing? Obtain the test cases generated using 'adup' strategy for variable \( i \) and \( j \) for the code fragment following using its control flow graph. (8) \( \begin{array}{ll}1 & \text { int } \mathrm{i}, \mathrm{j}, \mathrm{k} ; \\ 2 & \mathrm{i}=2 ; \mathrm{j}=1 ; \mathrm{k}=\mathrm{i}+\mathrm{j} ; \\ 3 & \text { while }(\mathrm{l}>\mathrm{a}) \\ 4 & \{\quad \mathrm{j}=1 ; \\ 5 & \quad \text { while }(\mathrm{j}<\mathrm{b}) \\ 6 & \{\quad \mathrm{k++} ; \mathrm{j}++;\} \\ 7 & \mathrm{i}--; \\ 8 & \} \quad \\ 9 & \mathrm{k}=\mathrm{i}+\mathrm{j} ;\end{array} \) (b) Using schematic diagrams explain the idea of (i) top- down, (ii) bottom-up and (iii) hybrid testing. Also explain your understanding of system-level testing.