Want to be a testing guru? Use reachability graphs (Part 6)


Continuing with our exploration of reachability graphs, the graph below shows another very interesting bug in Chrome’s PDF viewer.

The beauty of reachability graphs is that it is remarkably easy to follow the abstract states to recreate bugs, and it is impossible to make mistakes in doing so.

Go ahead and follow the abstract states to recreate the bug!

 

Reachability graph reporting bugs in Chrome's PDF viewer

Reachability graph reporting bugs in Chrome’s PDF viewer

 

 

 

 

The images below show an example of the bug when following the reachability graph above.

Step 1: search for any string in any PDF viewed via Chrome.

Step 1 of bug recreate for Chrome's PDF Viewer

Step 1 of bug recreate for Chrome’s PDF Viewer

 

 

Step 2: remove the head character of the string.

Step 2 of bug recreate for Chrome's PDF Viewer

Step 2 of bug recreate for Chrome’s PDF Viewer

 

 

Step 3: re-add the head character to the string.

Step 3 of bug recreate for Chrome's PDF Viewer

Step 3 of bug recreate for Chrome’s PDF Viewer

 

 

As you can see, the images show what happens at a very high-level with a specific example. However, as opposed to images and common bug reports, reachability graphs give so much more information than traditional bug reporting methods, and they do so in a more concise manner.