Dou,
   There are a lot of libraries for Ruby that you can use along with
the Watir libraries for other pieces of your testing. If you're
looking for telnet for example you might want to take a look at Ruby's
builtin net/telnet documentation:
http://www.ruby-doc.org/stdlib/libdoc/net/telnet/rdoc/index.html
Running system commands locally can be done with system or exec. Take
a look at the docs, run ri at the command prompt:

ri Kernel#system

-Charley

On 11/21/06, Dou Yifan <[EMAIL PROTECTED]> wrote:
> I don't know whether it's suitable to ask this question here.
> Watir is good tool for web testing, but during testing, usually there are a
> lot more things to do other than operating the web browser. It may be telnet
> to another machine to execute some commands, or just exec some command on
> the local machine.
>
> Some person mentioned about application
> map(http://www.mail-archive.com/[email protected]/msg03439.html),
> and that's exactly what I want the test to be.
>
> the test table will look something like this
>
> test,       win         object            Action             Arg
>                #header
>
> T,    googlewin,  SearchField,      set,             "PickAxe"
> T,    googlewin,  SearchButon,     click
> T,    cmdwin,      cmdwin             execCmd    "net user newUser /add"
>
> For operations on the IE browser, it's easy to implement this kind of
> testing, since there is already a class Watir::IE in the Watir lib, but for
> the command window, I don't know whether there is a class that can represent
> this, or how to implement such a class.
>
>  ________________________________
> Do You Yahoo!?
>  捇誥轎煤G蚘眊ㄜ笢弊菴珨橈拸嶼僵蚘璃玊閉湮蚘眊
>
>
> _______________________________________________
> Wtr-general mailing list
> [email protected]
> http://rubyforge.org/mailman/listinfo/wtr-general
>
>
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to