Write ready-to-go test cases titles with pairwise tests generation tool

TL;DR

If you put as a dataset for pairwise online tool not only pairs, but also the words in between, then you can get ready-to-go titles for checklist or your test cases:

Screenshot from SQA Mate online pairwise test case generation tool

Details of the approach

Current situation

Almost everyone uses pairwise test generation tools only as the tools for all-pairs generation. I mean users get to the tool (online or offline), enter their dataset, generate pairs, get those generated pairs and disappear.

For example in SQA Mate online pairwise test case generation tool, users enter their input dataset:

Chrome, Firefox, Safari
Windows, Linux, MacOS

enter their exclude-pairs dataset:

Safari, Windows
Safari, Linux

and press “Generate pairs” button.

As a result they get the following pairs dataset:

Firefox, Windows
Chrome, Linux
Safari, MacOS

Probably, then they go and write their manual or automated test cases based on those generated pairs.

What can we do better

What if we started to form our test cases titles right in the pairwise tool? It is possible, because:

  • if we do not use comma separator, then parameter is considered as a single one even if it has spaces;
  • single parameter participates in every pair;

And this gives us the following thing: if we ask a pairwise testing tool to write sentences for us, it will do.

Watch. We’d wanted to test, that:

Web page is displayed correctly

Ok. Where?

In Firefox on Windows web page is displayed correctly

Ok! Looks like parameters “browser” and “OS” are introduced, right?

In Firefox, Chrome, Safari on Windows, MacOS, Linux web page is displayed correctly

Let’s make line breaks to outline dataset from other words of the sentence:

In
Firefox, Chrome, Safari
on
Windows, MacOS, Linux
web page is displayed correctly

See? What will happen, if we put this as a dataset for pairwise testing tool
Take a look:

Screenshot from https://sqamate.com/tools/pairwise SQA Mate online pairwise test case generation tool

If you skip commas in the resulting dataset, then you get nice and complete pairwise sentences — so you could go and test with them already!

Add there exclude pairs:

Safari, Windows
Safari, Linux

and you’ll get 3 pairwise tests:

Screenshot from https://sqamate.com/tools/pairwise SQA Mate online pairwise test case generation tool

And if you get rid of commas in that resulting sentences, magic will happen:

In Firefox on Windows web page is displayed correctly
In Chrome on Linux web page is displayed correctly
In Safari on MacOS web page is displayed correctly

And this is a complete ready-to-go pairwise testing sentences! Not “just pairs”:

Firefox, Windows
Chrome, Linux
Safari, MacOS

Much better, right? Ignore this approach on your own peril!

--

--

--

Only things that really matter in Software Testing

Recommended from Medium

Productivity: What are the SLA, SLO, and SLI?

DATA SCIENCE

AscendEX event with 12,000-USDT rewards.

MSRDT Algorithm To prioritize ugs

Exemplifying software

Event Storming applied to distributed task management

Build Video Player in iOS I — AVPlayer

Deep Dive Test Automation: Testing Quadrants model

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Alexey Sotskov

Alexey Sotskov

I write about practical and effective techniques that help me and my colleagues in everyday software development and testing.

More from Medium

The Test Pyramid: Greatest Wonder of the (Software Testing) World

Best Bugs: VoIP meets it’s Kryptonite — a Rotary Phone

German Rotary Telephone

How Software Testers Perform Exploratory Testing: The Role of Testing Charters

Two illustrated explorers prepare to use a testing charter to exploratory test. The iillustrations are brightly colored, and the background includes doodles.

Working from home — tips and tricks for the testing community