On Wed, Jul 6, 2011 at 6:01 AM, Murugesan Kandasamy
<kmuruge...@ventechsolutions.com> wrote:
> I have hundreds of similar scenarios and they are getting executed well and 
> working as expected with test harness. But my doubt is I am having hundreds 
> of .t files just with two lines of code i.e. loading the module, calling the 
> subroutine Load_and_execute with the xml file as input. Is it not just a 
> repetition/code duplication? But I need a way to test the whole suite with 
> multiple scenarios like this. Is any other way possible.

Maybe you need another level of abstraction.

Create a file that contains all your cases (what you would put in the
two-line .t file) and then have one .t file iterate through that file,
calling each case.

-- David

Reply via email to