[ Date Prev][ Date Next][ Thread Prev][ Thread Next][ Date Index][ Thread Index]
Re: [qmtest] Class: command.ExecTest
- To: sanjoy <sanjoy.pal@xxxxxxxxxxxx>
- Subject: Re: [qmtest] Class: command.ExecTest
- From: Stefan Seefeld <seefeld@xxxxxxxxxxxx>
- Date: Wed, 30 May 2007 10:49:13 -0400
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...
|