group-icon
Software Testing Squad
All About Software Testing In One Place!
133 Members
Join this group to post and comment.
Archana Priyadarshini
Archana Priyadarshini
Computer Science
10 Feb 2019

What is assertion testing?

Explain assertion testing.

What are its benefits and limitations?

Shruthi Pillai
Shruthi Pillai
Information Technology
3mos ago

An assertion is a boolean expression at a specific point in a program which will be true unless there is a bug in the program. A test assertion is defined as an expression, which encapsulates some testable logic specified about a target under test. 

Advantages

  • It is used to detect subtle errors which might go unnoticed.

  • It is used to detect errors sooner after they occur.

  • Make a statement about the effects of the code that is guaranteed to be true.

Aswini Vi
Aswini Vi
Computer Science
3mos ago

A test assertion is a statement that describes the logic if the system under test.The biggest plus of assertions is that they are used to detect issues of the product under test.

Benefits:

  1. The possibility to discover bugs that can be missed.
  2. The opportunity to find issues as soon as they appear.
  3. The possibility to make conclusions about the code work that should be proper.

But despite these advantages,the assertions may contain errors too.If during web testing or mobile testing there will be bugs in the assertion,then it will lead to certain difficulties and troubles. 

Limitations of Assertion:

  1. The procedure of error reporting will be failed.
  2. The tester may report the issue that actually does not occur.
  3. The improper assertion may cause some side effects.
  4. The time spent for checking will bring no results.