Hi All,

I am a newbie of Watir. I have been using Watir for the past 10
months. I have created so many individual scripts and i run all those
by using Scite editor and my scripts update the test results in Excel
sheet, going good no issues in it. If any error occurs in the test run
i can easily capture it in Scite editor so i can correct my script.

I usually run my batch script by using Vbscript by using below code.

Set oAutoIt = WScript.CreateObject("AutoItX3.Control")
Set WshShell = WScript.CreateObject("WScript.Shell")

oAutoIt.Sleep 5000
WshShell.Run "E:\DATA\Prince\WatIR\iComet\Tests\StoresAndSpares
\Stores&Spares_Masters.RB"
oAutoIt.Sleep 5000
i = 0
Do Until i=10
  If oAutoIt.WinExists("c:\ruby\bin\ruby.exe") Then
    oAutoIt.Sleep 30000
    else
    i = i + 1
  End If
Loop

WshShell.Run "E:\DATA\Prince\WatIR\iComet\Tests\StoresAndSpares
\RolesRights_S&S.RB"
oAutoIt.Sleep 5000
i = 0
Do Until i=10
  If oAutoIt.WinExists("c:\ruby\bin\ruby.exe") Then
    oAutoIt.Sleep 30000
    else
    i = i + 1
  End If
Loop

WshShell.Run "E:\DATA\Prince\WatIR\iComet\Tests\StoresAndSpares
\BPT_S&S.RB"


Above code working good and it runs the ruby files in command prompt ,
but unfortunately any error occurs in the middle of the execution
suddenly Ruby closes the current test and starts the next test. So i
couldn't collect the error details. So if any methods available in
Watir to collect the error log details please tell me.

Since am a new user of Watir i couldn't use it extensively so if any
easy methods or libraries are available please post it.


Thanks,
Prince3105

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~----------~----~----~----~------~----~------~--~---

Reply via email to