DEV Community

Bala Venkatesh
Bala Venkatesh

Posted on

Testing techniques_Task2(PAT)

1)Boundary value analysis
As name suggests this technique is based on testing boundary values of test data, which includes minimum value,minimum value+1,maximum value,maximum value -1 as valid inputs and minimum value-1,Maximum Value +1 as invalid inputs.

BVA falls under black box testing.

Example:
Eligibility age for attending particular exam is from 18 - 30, boundary values will be as follows.
Valid Values:
Minimum value - 18
Maximum value - 30
Minimum+1 - 19
Maximum-1 - 29

Invalid Values:
Minimum value-1 - 17
Maximum value+1 - 31

BVA

Main logic behind this technique is, if it works for boundary values it will definitely work for values between boundaries as well.

BVA is mainly applicable in places where function uses input values in any form.

2)Decision Table Testing:

It provides tabular view of input and also expected outcome of that.

Mainly to check how required function performs for different combination of inputs.

Example:

For appearing to particular security exam, there are certain conditions needs to satisified.

DT

above provided decision table clear depicts what all inputs are considered to be eligible for exam or not which also provided required combination in clear way and also ensuring test coverage.

3)Use case testing

Use case testing is based on user's perspective rather than system perspective, which ensures required user actions can be performed successfully and application is working as expected.

Example
Online payment
Action:User selects Online banking option as payment
System:Interacts with payment gateway and connects
Action:User completes payment
System:Responds with successful order details

4)Linear code sequence and jump
It is white box testing technique as testing is done on code level, where testing starts from one branch of code and jumps to next branch of code and by this all modules are tested and covered one by one .

Example

If developer completed login page module for application, he will test each branch or component involved in login like signup functionality code, login functionality code, forget password code.

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

Top comments (0)

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay