Process and StreamReader in ATEasy
Roy D.
Tel Aviv,

Aug 20, 2013
1 Post

Process and StreamReader in ATEasy

hello,
i'm building a testing software in ATEasy
where i need to open cmd send a command, and read the result
then verify whether the result is ok

i wrote these steps in c#, using the Process class
and the StandardOutput property to read the response from cmd.exe

i'm getting a hard time doing the same this in ATEasy
the closest i got is with the WinExec procedure, but i don't get a stream reader with it.

i tried to use .NET assemblies in order to use C# classes in ATEasy
but i get runtime exeptions

thank you

Solution Available
DrATEasy (Ron Y.)
Mission Viejo,

Aug 20, 2013
235 Posts

Re: Process and StreamReader in ATEasy

Take a look at the StdIoProcess example (test 1) provided with ATEasy 8. It shows how to capture and output data from/to the command prompt:

append "\r\nTest Results:\r\n"
StdIOProcess Execute("cmd.exe", "", "Dir\r\nExit\r\n")
append  StdIOProcess Get StdOutput()
append "Process Exit Code="; StdIOProcess Get ExitCode();"\r\n"



Please Note
You need to have a M@GIC account to participate in the Forums.
Not yet registered on our website? Click here to register today!

All content, information and opinions presented on the Marvin Test Solutions User Forums are those of the authors of the posts and messages and not Marvin Test Solutions'. All attachments and files are downloaded at your own risk. [Read More]