
Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!

While testing large collections of files, as in a project’s developing baseline, it is important to start testing those files which depend on no others in the set. Next, test only those that depend only on already tested files, and repeat until all files are tested. This ensures that when we need to make changes based on problems we find in test, we don’t need to change any already tested files, e.g., we don’t want to keep retesting the same file over and over because we made changes to things it depends on. There is one problem with this scenario, and that is mutually dependent files. They must be tested together as a unit, since changing any one of them requires retesting all. In this project you will build a tool that allows you to discover good test sequences based on dependency analysis like you did on Project #1. First you build a dependency graph for all the files in the set, then evaluate its strong components – that identifies groups of mutually dependent files. Next you build a condensed graph that has one node for each strong component and an edge from a source node to a target node only if there is a dependency of at least one file in the source strong component to a least one file in the target strong component. This yields an acyclic graph. Finally you do a topological sort of the condensed graph to get a sorted condensed graph that gives a best test sequence for the given set of files.
Your TestGen program:
Is this test sequence unique? Why or why not? Is the condensed graph acyclic? Why or why not? (^1) Please use the Warshall Algorithm to do that.