Warning: count(): Parameter must be an array or an object that implements Countable in /var/www/html/live/searchResponsive.php on line 43
Warning: include(./views/auth.php): failed to open stream: Permission denied in /var/www/html/live/loginRightSlider.php on line 18
Warning: include(): Failed opening './views/auth.php' for inclusion (include_path='.:/usr/share/php') in /var/www/html/live/loginRightSlider.php on line 18
Tests should be independent – This is the basic principle, there should not be any dependency among the test cases. This is important because one test case result should not impact subsequent cases.
In automation, we should make sure that there is no dependency such as environment setting, creating instances of shared resources and cleaning up the same.
Tests should be deterministic – A test should either pass or fail all the time. The worst test is the one that passes some of the time. We should always have a definite reason if the test fails and when correcting that, the test should always pass.
Tests should hold good for pass/fail cases – By this, I mean that a test should fail when it meant to fail. Put assertions carefully and run the test for a fail condition also.
Tests should be self-validating – This means that the test should itself determine that the output is expected or not. There should not be any manual interpretation.
Repeatable – Test should produce the same output every time it runs. This can be accomplished by making them isolated and independent.
How unit testing is performed
SSC
Defence
TET
Write a comment...
Warning: count(): Parameter must be an array or an object that implements Countable in /var/www/html/live/article.php on line 1535
Warning: include(./views/article/relatedPost.php): failed to open stream: Permission denied in /var/www/html/live/article.php on line 1692
Warning: include(): Failed opening './views/article/relatedPost.php' for inclusion (include_path='.:/usr/share/php') in /var/www/html/live/article.php on line 1692
The Taj Mahal is one of the seven wonders of the world and is considered to be the most popular tourist attraction in the country. A symbol of love, the Taj was built by Mughal Emperor Shah Jahan for his queen Mumtaz. Tagore described the Taj as a "teardrop on the cheek of eternity". The monument at