Test Path Examples and Calculator

Last modified on May 26th, 2018 at 2:06 pm

Test Path Examples and Calculator


Enter all the nodes in text box one by one separated with comas:






[insert_php] if(isset($_POST[‘submit’]))
{
$numbers=$_POST [‘number’];

$numbers=explode(‘,’, $numbers);
$arrlength=count($numbers);
echo “Values Entered : “;

for ($i=0; $i <$arrlength ; $i++) { echo "$numbers[$i]". " | "; } echo "
“;
echo “total number of nodes are : “;
echo $arrlength;
echo “
“;
echo “

Possible node visited for entered numbers

“;

for($x=0;$x> ” . $numbers[$x+1].”
” ;
}

echo “
“;
echo “

Total number of possible edges are :

“;
echo $arrlength-1 .” as given above.”;
echo “
“;
echo “
“;
echo “

NOTE : A valid test path should start from ” .$numbers[0].” and end at “.$numbers[$i-1]. “

“;
echo “
“;

echo “

Possible test paths can be
(Refresh page to check more test paths .):

“;
echo “
“;
for ($i=0; $i <$arrlength ; $i++) { echo "$numbers[$i]". " ==>> “;

shuffle ($numbers);
echo “

“;

}
echo “


“;
for ($i=0; $i <$arrlength ; $i++) { echo "$numbers[$i]". " ==>> “;

shuffle ($numbers);
echo “

“;

}
echo “


“;
for ($i=0; $i <$arrlength ; $i++) { echo "$numbers[$i]". " ==>> “;

shuffle ($numbers);
echo “

“;

}
echo “


“;
for ($i=0; $i <$arrlength ; $i++) { echo "$numbers[$i]". " ==>> “;

shuffle ($numbers);
echo “

“;

}
echo “


“;
for ($i=0; $i <$arrlength ; $i++) { echo "$numbers[$i]". " ==>> “;

shuffle ($numbers);
echo “

“;

}
echo “


“;
for ($i=0; $i <$arrlength ; $i++) { echo "$numbers[$i]". " ==>> “;

shuffle ($numbers);
echo “

“;

}
echo “


“;
for ($i=0; $i <$arrlength ; $i++) { echo "$numbers[$i]". " ==>> “;

shuffle ($numbers);
echo “

“;

}
echo “


“;
for ($i=0; $i <$arrlength ; $i++) { echo "$numbers[$i]". " ==>> “;

shuffle ($numbers);
echo “

“;

}
echo “


“;
for ($i=0; $i <$arrlength ; $i++) { echo "$numbers[$i]". " ==>> “;

shuffle ($numbers);
echo “

“;

}
echo “


“;
for ($i=0; $i <$arrlength ; $i++) { echo "$numbers[$i]". " ==>> “;

shuffle ($numbers);
echo “

“;

}

}

[/insert_php]

Examples of Test Paths

1 – Values entered = 1,2,3,4;

Total nodes = 4;

Total edges = 3;

Total possible testpaths :

1,2,3,4

1,3,2,4

1,2,2,4

1,1,3,4


2 – Values entered = 5,6,7,8;
Total nodes = 4;
Total edges = 3;
Total possible testpaths :
5,6,7,8
5,7,6,8
5,7,8,6
6,5,6,8

Prof. Fazal Rehman Shamil
Researcher, Publisher of International Journal Of Software Technology & Science ISSN: 2616-5325
Instructor, SEO Expert, Web Programmer and poet.
Feel free to contact.