I use ruby to do testing.
There are some scenario that look like this:
- Do some navigation in the web browser and do some operation in it
- run some command, especially telnet to another machine and then run
- operate the browser again
- run command in the telnet window again.
Now I use watir(Web application Testing in Ruby) to do navigation and
operations in the IE browser, the script look like this:
And what I need exactly is a similar ruby lib that I can use to write
the script like this style:
cmdWindow.InputCommand(“net user newUser /add”)
I know that I can use NET::Telnet if I want to do telnet related
operations, and when executing the local commands, may use system(cmd),
but I want to identify the specified command window, and run the
following commands in that window.
I wonder whether I have made the questiong clear.