Trusted answers to developer questions
Trusted Answers to Developer Questions

Related Tags

implementation
testing
communitycreator

What is implementation-based testing?

Saad Akbar

Grokking Modern System Design Interview for Engineers & Managers

Ace your System Design Interview and take your career to the next level. Learn to handle the design of applications like Netflix, Quora, Facebook, Uber, and many more in a 45-min interview. Learn the RESHADED framework for architecting web-scale applications by determining requirements, constraints, and assumptions before diving into a step-by-step design process.

Answers Code

Testing implementation is a common practice that is used to organize and prioritize tests. It is a process of deciding how to test a particular flow and when to test that flow. Each test has the following three parameters:

  • Test input
  • Expected output
  • Actual output

Implementation based testing precautions:

The following precautions are the measures that must be taken by testers to ensure accurate testing:

  1. We must ensure that the testing environment is perfect for testing.

  2. Every test case must be documented and reviewed by someone other than the person testing the flow.

  3. Testing must be done against the explicit and implicit data.

  4. Code acceptance test must be performed by running code in the test environment.

How is the testing done?

Like every test, implementation-based testing is done in three steps.

  • It takes a sample input and then process it according to the flow.

  • Then, it then takes the output.

  • The output that the flow gives according to the testing flow is then compared with the expected output.

If the output is different, the steps are repeated. Otherwise, the input is changed and verified again. It is a good practice to verify and pass a particular test against four different inputs falling in different ranges and two from the boundary ranges.

What is a boundary range?

Boundary range is a range that is surrounded with testing boundaries. For example, a flow returns true if a number is less than 100 and more than zero. The two boundary ranges will be numbers more and less than zero and numbers less and more than 100.

Testing Diagram

The following diagram explains how a testing flow looks:

g Input Input Process Process Input->Process Actual_Output Actual_Output Process->Actual_Output Comparison Comparison Actual_Output->Comparison True True Comparison->True False False Comparison->False Expected_Output Expected_Output Expected_Output->Comparison Success Success True->Success Failure Failure False->Failure

RELATED TAGS

implementation
testing
communitycreator

Grokking Modern System Design Interview for Engineers & Managers

Ace your System Design Interview and take your career to the next level. Learn to handle the design of applications like Netflix, Quora, Facebook, Uber, and many more in a 45-min interview. Learn the RESHADED framework for architecting web-scale applications by determining requirements, constraints, and assumptions before diving into a step-by-step design process.

Answers Code
Keep Exploring