[qmtest] Class: command.ExecTest

Stefan Seefeld seefeld at sympatico.ca
Wed May 30 14:49:13 UTC 2007


sanjoy wrote:
> Hi Sir,
> 
> I am using command.ExecTest class to test one executable.
> We need to give expected stdout, expected stderr and exit code in this
> case.I want to ignore expected stdout, expected stderr.I mean whatever
> may be the stdout or stderr , testcase will pass or fail depending on
> the exit code only.
> 
> Can you please tell me , how can customize qmtest to the above
> requirement? In which .py file i need to comment out those checks?

You may provide your own test class (deriving from command.ExecTest)
that provides an empty ValidateOutput() method (returning []).

See ExecTest.ValidateOutput() in qm/test/classes/command.py.

Regards,
		Stefan

-- 

      ...ich hab' noch einen Koffer in Berlin...



More information about the qmtest mailing list