Difference between control flow testing and basis path testing

General Tech QA/Testing 2 years ago

0 2 0 0 0 tuteeHUB earn credit +10 pts

5 Star Rating 1 Rating

Posted on 16 Aug 2022, this text provides information on QA/Testing related to General Tech. Please note that while accuracy is prioritized, the data presented might not be entirely correct or up-to-date. This information is offered for general knowledge and informational purposes only, and should not be considered as a substitute for professional advice.

Take Quiz To Earn Credits!

Turn Your Knowledge into Earnings.

tuteehub_quiz

Answers (2)

Post Answer
profilepic.png
manpreet Tuteehub forum best answer Best Answer 2 years ago

We are studying various testing techniques in Software Quality Assurance course and i got confused when came across "basis path testing" and "control flow testing". Both these techniques apparently look same even their steps are also almost same but i need to find some concrete difference among them. I am unable to differentiate them. Any help in this regard would be appreciated.

profilepic.png
manpreet 2 years ago

 

Basis Path testing just ensures the coverage of all the paths in the program but control flow testing test the conditions as well.

So for a simple example, if there is a decision node in the program as:

if( x >= 2 )

Here, in this case there would be two paths - 1. x >= 2 2. x < 2

But in control flow there would be three combinations, as following:

  1. x > 2
  2. x = 2
  3. x < 2

It was a very basic example, I hope that helps.


0 views   0 shares

No matter what stage you're at in your education or career, TuteeHub will help you reach the next level that you're aiming for. Simply,Choose a subject/topic and get started in self-paced practice sessions to improve your knowledge and scores.