N
Navya Amerineni
--0-201793164-1142832597=:79909
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable
Hi all,
I am running a test case and need it capture the output it gives me.
require 'stringio'
old_stdout =3D $stdout
$stdout =3D StringIO.new
............
@reqout =3D $stdout.string
$stdout =3D old_stdout
the above code captures the stdout if something written explicily (like p=
uts).
but it doesnot capture the output or running a testcase.
i want to capture the results if the testcases.
is there a way it could be done.
Thanks,
Navya.
=09
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable
Hi all,
I am running a test case and need it capture the output it gives me.
require 'stringio'
old_stdout =3D $stdout
$stdout =3D StringIO.new
............
@reqout =3D $stdout.string
$stdout =3D old_stdout
the above code captures the stdout if something written explicily (like p=
uts).
but it doesnot capture the output or running a testcase.
i want to capture the results if the testcases.
is there a way it could be done.
Thanks,
Navya.
=09