Design a site like this with WordPress.com
Get started

Strategies to writing re-usable test cases

There are two strategies when it comes down to writing reusable test cases:

  • Modularization

Modularization is a function-based method of test design where testers categorize functionality to be tested into reusable modules. Testers break down test caes into logical, manageable functions, or modules. These modules are isolated to create independent tests that can then be recombined or reused to make larger master test cases to achieve complex end-to-end testing scenarios.

source: https://dzone.com/articles/adopt-a-modular-approach-to-test-case-design-in-ji

  • Parameterization

Parameterization is when you replace hard-coded input values that are hard to change with paramters. Test parameterization allows you to use modules to run the same test over and over again using different values, making it easy to share modules between multiple test cases.

source: https://dzone.com/articles/adopt-a-modular-approach-to-test-case-design-in-ji

Advertisement

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: