in Service Discovery by
What is the difference between Mock & Stub?

1 Answer

0 votes
by

A Mock is generally a dummy object where certain features are set into it initially. Its behavior mainly depends on these features, which are then tested. 

A Stub is an object that helps in running the test. It functions in a fixed manner under certain conditions. This hard-coded behavior helps the stub to run the test.

Related questions

0 votes
asked Aug 28, 2020 in Service Now by RShastri
0 votes
asked Apr 13, 2020 in QuickTest Professional (QTP) by amita rallin
+1 vote
asked Jun 25, 2019 in Dot Net by Venkatshastri
...