[wtr-general] Re: Question about execute the scripts in background

2010-02-24 Thread Sai Venkat
Try running the tests in multithreaded mode. You should be able to run
concurrent scripts. Or if you are adventurous it is possible to use
something like EventMachine to run parallel tests async..

Regards,
Sai

On Feb 24, 10:02 am, Moises Siles moises.si...@gmail.com wrote:
 well, I'm trying with celerity and jruby and I think it is working, I will
 do more tests with that things to see if I can run at least 100 users at
 same time

 thanks,

 On Tue, Feb 23, 2010 at 4:41 PM, Moises Siles moises.si...@gmail.comwrote:

  Hi Michael, do you mean this

  ie = Watir::Browser.new_process

  Thanks

  On Tue, Feb 23, 2010 at 11:45 AM, Michael Hwee 
  michael_h...@yahoo.comwrote:

  Are you using new_process()?

  That will explain.

  --
  *From:* Moises Siles moises.si...@gmail.com
  *To:* watir-general@googlegroups.com
  *Sent:* Mon, February 22, 2010 2:45:57 PM
  *Subject:* Re: [wtr-general] Re: Question about execute the scripts in
  background

  Tiffany, I ran the script using the -b parameter but I saw the browser
  any idea?

  On Mon, Feb 22, 2010 at 3:59 PM, Moises Siles 
  moises.si...@gmail.comwrote:

  Thanks Tiffany, I will try. One more question I running the scripts in
  Mac, if I add that command it will support 100 users?

  Thanks

  On Mon, Feb 22, 2010 at 3:42 PM, Tiffany Fodor tcfo...@comcast.netwrote:

  Hi Moises!

  You can use the -b switch to run your tests in background mode:

  ruby my_watir_framework.rb -b

  Hope this helps!

  -Tiffany

  On Feb 22, 2:12 pm, Moises Siles moises.si...@gmail.com wrote:
   Hi all,

   I'm newbie in Watir, I want to know if there is a way to execute the
  scripts
   in background, I want to execute my script using 100 users but I don't
  want
   to have 100 firefox, safari instances.

   Thanks in advance.

  --
  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.comwatir-general%2bunsubscr...@googlegroups.com
  For more options, visit this group at
 http://groups.google.com/group/watir-general

   --
  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.comwatir-general%2bunsubscr...@googlegroups.com
  For more options, visit this group at
 http://groups.google.com/group/watir-general

  --
  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.comwatir-general%2bunsubscr...@googlegroups.com
  For more options, visit this group at
 http://groups.google.com/group/watir-general

-- 
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


[wtr-general] Re: unable to install watir on JP XP

2010-02-24 Thread Sai Venkat
For building native extensions in Windows you need nmake in path.
Install nmake and try to access it from shell.

Regards,
Sai

On Feb 23, 11:33 pm, robert reisin...@gmail.com wrote:
 I am not sure of root cause of my problem.

 A workaround: Installing watir while logged into the English MUI.

 -Robert

 On Feb 2, 1:05 pm, robert reisin...@gmail.com wrote:

  I am unable to install watir on a XP ProJapanesesystem.
  Any suggestions?

  Note, the rspec gem will install.

  cmd line data:

  C:\Documents and Settings\Administratorgem install watir
  Building native extensions.  This could take a while...
  ERROR:  Error installing watir:
  ERROR: Failed to build gem native extension.

  C:/Ruby/bin/ruby.exe extconf.rb
  checking for strncpy_s()... no
  creating Makefile

  make
  'make' は、内部コマンドまたは外部コマンド、
  操作可能なプログラムまたはバッチ ファイルとして認識されていません。

  Gem files will remain installed in C:/Ruby/lib/ruby/gems/1.8/gems/
  win32-api-1.4.
  5 for inspection.
  Results logged to C:/Ruby/lib/ruby/gems/1.8/gems/win32-api-1.4.5/ext/
  gem_make.out

-- 
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


Re: [wtr-general] Re: how to run watirscript in background

2010-02-05 Thread venkat
Thanks for all your answers. Actually my intention was to run my scripts for
concurrent browsers. I thought if I run the scripts visible:false or (0),
which was not the solution.
Anyways, I can see my scripts pass but failed at the IE.attach function. I
can see my scripts passed if it is a single iteration, if they are with
concurrent users running with that script then it fails. I tried with
another script which does not have IE.attach(:title, 'Google'), the script
passed. If I try with IE.attach function then the script failed..

Note: The error message seems to vary from time to time. I have also gotten
the following errors:
  1) Error:
testEJS(TestSuite):
Watir::Exception::NoMatchingWindowFoundException: Unable to locate a window
with title of E * Justice : : Notifications Lookup
C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.5/lib/watir/ie-class.rb:297:in
`attach_browser_window'
C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.5/lib/watir/ie-class.rb:149:in
`_attach_init'
C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.5/lib/watir/ie-class.rb:143:in
`attach'
./searchN1.rb:49:in `testEJS'


  1) Error:
testEJS(TestSuite):
WIN32OLERuntimeError: unknown property or method: `value'
HRESULT error code:0x80070005
  Access is denied.

C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.5/lib/watir/input_elements.rb:374:in
`method_missing'

C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.5/lib/watir/input_elements.rb:374:in
`type_by_character'

C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.5/lib/watir/input_elements.rb:387:in
`characters_in'

C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.5/lib/watir/input_elements.rb:372:in
`type_by_character'

C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.5/lib/watir/input_elements.rb:338:in
`set'
./searchN1.rb:51:in `testEJS'

  1) Error:
testEJS(TestSuite):
WIN32OLERuntimeError: stop
OLE error code:8000 in Unknown
  No Description
HRESULT error code:0x80020009
  Exception occurred.
C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.5/lib/watir/ie-class.rb:400:in
`method_missing'
C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.5/lib/watir/ie-class.rb:400:in
`close'
./searchN1.rb:63:in `testEJS'

  1) Error:
testEJS(TestSuite):
WIN32OLERuntimeError: unknown property or method `fireEvent'
HRESULT error code:0x80070005
  Access is denied.

C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.5/lib/watir/input_elements.rb:339:in
`method_missing'

C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.5/lib/watir/input_elements.rb:339:in
`set'
./searchN1.rb:51:in `testEJS'

  1) Error:
testEJS(TestSuite):
WIN32OLERuntimeError: unknown property or method `click'
HRESULT error code:0x80070005
  Access is denied.
C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.5/lib/watir/element.rb:236:in
`method_missing'
C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.5/lib/watir/element.rb:236:in
`click!'
C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.5/lib/watir/element.rb:219:in
`click'
./searchN1.rb:54:in `testEJS'


WIN32OLERuntimeError: unknown property or method `document'
 HRESULT error code:0x800706b5

  WIN32OLERuntimeError: unknown property or method `document'
 HRESULT error code:0x80010108
   The object invoked has disconnected from its clients.

 WIN32OLERuntimeError: unknown property or method `document'
 HRESULT error code:0x800706ba
Please help me if how can I ensure my scripts pass when they run with
concurrent users/browers sessions using fork and spawn.

thanks,
venkat

On Fri, Feb 5, 2010 at 7:34 AM, Wesley Chen cjq@gmail.com wrote:

 I think that's not what he want.


 Wesley.
 For life, the easier, the better.



 On Fri, Feb 5, 2010 at 4:16 AM, AR reed.a...@gmail.com wrote:

 You can also set visible:false in the the options.yml file if you
 don't want to do it on a script by script basis.

 More details here: http://wiki.openqa.org/display/WTR/Browser.new

 On Feb 4, 11:37 am, orde ohil...@gmail.com wrote:
  You can set the browser as invisible after launching the browser
  (fromhttp://wtr.rubyforge.org/rdoc/1.6.5/classes/Watir/IE.html#M000266
 ):
  
  browser = Watir::Browser.new
  browser.visible=(0)
 
  Not sure if that's what you're looking for, tho.  Hope it helps.
 
  orde
 
  On Feb 4, 12:14 am, venkat greet.ven...@gmail.com wrote:
 
   Thanks in advance if anybody answers my query here it is:
 
   i have my watir script named login.rb which checks the functionality
 of
   Login, go to Inbox then Logout from Gmail website.
   If I run this login.rb using google loadtest example, it fails with
 multiple
   users (#5), multiple iterations(5). Hence I want run these tests in
 the
   background process without seeing on the functional GUI navigation on
   windows.
 
   Would there be any solution to run my tests for load in the backgound?
 One
   of my friend's friend gave me clue that it can be done using
   Fork...Spawn...with parent process/ child process even in windows
 too...
 
   Please help me
   venkat

 --
 You received this message because you are subscribed

[wtr-general] Re: how to run watirscript in background

2010-02-05 Thread venkat
Added more info. for better understanding my problem...

again ran the script, following are the errors:
 1) Error:
testMasters_All(TestSuite):
WIN32OLERuntimeError:
OLE error code:0 in Unknown
  No Description
HRESULT error code:0x80070005
  Access is denied.

C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.5/lib/watir/input_elements.rb:75:in
`method_missing'

C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.5/lib/watir/input_elements.rb:75:in
`select_item_in_select_list'

C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.5/lib/watir/input_elements.rb:69:in
`each'

C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.5/lib/watir/input_elements.rb:69:in
`select_item_in_select_list'

C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.5/lib/watir/input_elements.rb:46:in
`set'
./CrimeCogTest_AllMasters.rb:414:in `gangSearch'
./CrimeCogTest_AllMasters.rb:408:in `each'
./CrimeCogTest_AllMasters.rb:408:in `gangSearch'
./CrimeCogTest_AllMasters.rb:89:in `testMasters_All'


 1) Error:
testMasters_All(TestSuite):
WIN32OLERuntimeError: unknown property or method `document'
HRESULT error code:0x80010108
  The object invoked has disconnected from its clients.
C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.5/lib/watir/ie-class.rb:460:in
`method_missing'
C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.5/lib/watir/ie-class.rb:460:in
`document'
C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.5/lib/watir/locator.rb:44:in
`each_element'
C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.5/lib/watir/locator.rb:51:in
`locate'
C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.5/lib/watir/container.rb:811:in
`locate_tagged_element'
C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.5/lib/watir/image.rb:20:in
`locate'
C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.5/lib/watir/element.rb:53:in
`assert_exists'
C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.5/lib/watir/element.rb:288:in
`enabled?'
C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.5/lib/watir/element.rb:60:in
`assert_enabled'
C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.5/lib/watir/element.rb:233:in
`click!'
C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.5/lib/watir/element.rb:219:in
`click'
./CrimeCogTest_AllMasters.rb:430:in `gangSearch'
./CrimeCogTest_AllMasters.rb:89:in `testMasters_All'

thanks

On Thu, Feb 4, 2010 at 1:44 PM, venkat greet.ven...@gmail.com wrote:

 Thanks in advance if anybody answers my query here it is:

 i have my watir script named login.rb which checks the functionality of
 Login, go to Inbox then Logout from Gmail website.
 If I run this login.rb using google loadtest example, it fails with
 multiple users (#5), multiple iterations(5). Hence I want run these tests in
 the background process without seeing on the functional GUI navigation on
 windows.

 Would there be any solution to run my tests for load in the backgound? One
 of my friend's friend gave me clue that it can be done using
 Fork...Spawn...with parent process/ child process even in windows too...

 Please help me
 venkat


-- 
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


[wtr-general] how to run watirscript in background

2010-02-04 Thread venkat
Thanks in advance if anybody answers my query here it is:

i have my watir script named login.rb which checks the functionality of
Login, go to Inbox then Logout from Gmail website.
If I run this login.rb using google loadtest example, it fails with multiple
users (#5), multiple iterations(5). Hence I want run these tests in the
background process without seeing on the functional GUI navigation on
windows.

Would there be any solution to run my tests for load in the backgound? One
of my friend's friend gave me clue that it can be done using
Fork...Spawn...with parent process/ child process even in windows too...

Please help me
venkat

-- 
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


[wtr-general] watir ExampleTestHarness.rb help

2009-12-21 Thread venkat
Thankful to you if anybody helps me in watir coding.

Using Xls Class in the WatirTestHarnessExample, we can run testcases like..
If $runTests[testcase_01] == Yes
  testcase($xxx)

but I want to run the testcases when the Proejct == Yes  Module_01 == Yes.

Following is my testdata:
  *Project* * * *Module* * * *Testcase* *Run?* *Project_Name* Yes *
Module_01* Yes TestCase_001 Yes   TestCase_002 Yes   TestCase_003 Yes  *
Module_02* Yes TestCase_001 Yes   TestCase_002 No   TestCase_003 Yes

Thanks in advance...
venkat

-- 
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

[wtr-general] help me in using Excel DataDrivenTestHarnessExample

2009-12-08 Thread venkat
 Can any one please help me out in getting the multi row data from a column
using watir xls interface class.

I have taken the DataDrivenTestHarnessExample as my source from Watir
OpenQA.

I have added test data into a sheet Sheet4
Sheet4 has columns with data as follows.

AB   C
D  E
Type   Priority  Select_Users
Remove_Users  Yes
 Information High  User1
User1 No
 Medium
User2  User2
  Low  User3
User4
User5


I have to select the
   Type as INFORMATIONAL
If Priority as Urgent then Select_Users = all
(6rows)
   else Priority is other than 'urgent then only 2
records from column Select_Users .

I am using the following syntax to get a row of record.
$addNotification = xlFile.getRowRecords(A2:E6, Sheet4)
but apart from getting the row, i need to get all records from the column
'Select_Users'.

Thanking you very much in adavance.


Venky

-- 
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

Re: [wtr-general] Re: help me in using Excel DataDrivenTestHarnessExample

2009-12-08 Thread venkat
Hi Tiffany,
thanks and no confusion, we are on the same page.

$addNotification = xlFile.getRowRecords(A1:E6, Sheet4)

$addNotification.each do |notification|
 if notification['Priority'] == 'Urgent'
   $ie.select_list( :name , tusers).select(record[Select_Users]) # here
it gets only 1row but i want it to get all rows, can you please provide me
the syntax.
   $ie.button(:name,select).click

thanks

On Wed, Dec 9, 2009 at 9:54 AM, Tiffany Fodor tcfo...@comcast.net wrote:

 Hi Venky,

 The formatting on your example data was lost, so it's hard to see
 exactly what you mean.  It seems you're trying to gather the data
 conditionally based on the priority.  I'd suggest grabbing all the
 data - make your range A1:E6 - and then deal with the data in your
 code.  The headings in row 1 will be the hash keys you use to get at
 the data in each cell of the subsequent rows.

 $addNotification = xlFile.getRowRecords(A1:E6, Sheet4)

 $addNotification.each do |notification|
  if notification['Priority'] == 'Urgent'
#do whatever you need to with 'Urgent' priority users
  elsif notification['Priority'] == 'High'
#do whatever you need to with 'High' priority users
  else
#do whatever you need to with other users
 end

 Hope this helps!

 -Tiffany


 On Dec 8, 6:39 am, venkat greet.ven...@gmail.com wrote:
   Can any one please help me out in getting the multi row data from a
 column
  using watir xls interface class.
 
  I have taken the DataDrivenTestHarnessExample as my source from Watir
  OpenQA.
 
  I have added test data into a sheet Sheet4
  Sheet4 has columns with data as follows.
 
  AB   C
  D  E
  Type   Priority  Select_Users
  Remove_Users  Yes
   Information High  User1
  User1 No
   Medium
  User2  User2
Low  User3
  User4
  User5
 
  I have to select the
 Type as INFORMATIONAL
  If Priority as Urgent then Select_Users = all
  (6rows)
 else Priority is other than 'urgent then only
 2
  records from column Select_Users .
 
  I am using the following syntax to get a row of record.
  $addNotification = xlFile.getRowRecords(A2:E6, Sheet4)
  but apart from getting the row, i need to get all records from the column
  'Select_Users'.
 
  Thanking you very much in adavance.
 
  Venky

 --
 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

-- 
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

[wtr-general] Re: Chrome-Watir

2009-12-02 Thread Sai Venkat
The working core is there. Still work is done for building the API on
top of it. You can watch the project from Github 
http://github.com/saivenkat/chromewatir.

--Sai

On Dec 2, 12:42 pm, shradha_Dalvi kshradh...@gmail.com wrote:
 Hi sai,
            Have you done with Chrome watir updation?

-- 
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


[wtr-general] Re: help required - Re-usable framework watir sql server/oracle database

2009-11-25 Thread venkat
thanks Tiffany for providing the url for ref. still i am trouble with the
following error in my script execution.

C:/build/ruby-oci8-2.0.3/ext/oci8/stmt.c:306:in oci8lib.so: ORA-00942: table
or view does not exist (OCIError)
 from
C:/Ruby/lib/ruby/gems/1.8/gems/ruby-oci8-2.0.3-x86-mswin32-60/lib/oci8/oci8.rb:287:in
`exec'
 from test3.rb:13
 from test3.rb:10:in `times'
 from test3.rb:10
my script is:

require 'oci8'
conn = OCI8.new('lup', 'es104', '//192.168.2.3:1521/ORCL')
i=10
cursor = conn.parse('insert into temp values (:id,:name)')
100.times {
  cursor.bind_param(':id',i)
  cursor.bind_param(':name',Name #{i})
  cursor.exec
  i +=1
}
cursor.close
conn.commit

cursor = conn.exec('SELECT id,name from TEMP');
while r = cursor.fetch
  puts  ID: #{r[0]} = #{r[1]}
 end
cursor.close
conn.logoff

MY script details:
Watir
Oci8
functionality: login to my application (login_id and login_password are
variables)
my oracle table contains users table with column names login_id,
login_password
i am trying insert the login, password field to temp table and binding as
strings to pass the variable to my login script.
I appreciate if anyone corrects the script to make it pass.
thanks,
venky
On Tue, Nov 24, 2009 at 8:44 PM, Tiffany Fodor tcfo...@comcast.net wrote:


 Hi Venky!

 If you were looking at my example Test::Unit harness:


 http://wiki.openqa.org/display/WTR/Test+Unit+Excel+Data+Driven+Framework+with+Database+Verifications

 DataVerification.rb connects to SQL and Oracle, retrieves value using
 select statements and verifies then against an expected value.  You
 could also use this to retrieve test data once it's populated in your
 database.

 If this doesn't do what you need it to, you may want to look into
 using the ActiveRecord class.  Note that ActiveRecord is it's own Ruby
 project, not part or Watir.  I'm moving that way myself, as
 ActiveRecord seems more solid than the DBI class.

 Hope this helps!

 -Tiffany

 On Nov 24, 2:44 am, venkat greet.ven...@gmail.com wrote:
  Hi,
 
  I am venkat, started using watir for the last 3 to 4 weeks. I understand
  basic watir scripting since opening of the browser to navigating pages by
  identifying the elements etc. and I feel WATiR is an excellent tool. Also
 I
  have gone through the datadriven framework with excel data examples.
 
  I have searched in google for examples, blogs, code snippets for a
 framework
  that built using watir with sql server or watir with oracle but failed to
  get it. I can see the test code to establish connections from watir to
 sql
  dbi or oracle but further details are not much.
 
  At this point I request you to please help me out in finding a good
  framework that uses watir with sql or oracle database that can be
 re-usable
  with modifications kind of.
 
  I appreciate if any one helps.
 
  Thanks and hope to see your mail.
 
  Regards,
  Venky
  


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



[wtr-general] unable to get db fields ...pls. help me

2009-11-24 Thread venkat
Hi,
I have started using watir for the last few weeks and understanding the
scripting.

now it's time for me to define framework using watir with sql server or
oracle

I have to login the application with login id, password variables which
their values are stored in db.

my watir login scripts works fine and also the script which connects sql
server 2005 from watir too works fine individually (login/ password
hardcoded). but if i want every field or data should be accessed from
database.

I need to initialize and get/set the instance variables as the following but
i am unable to understand here.

def test(aAtxt)
strAppName=aAtxt.instance_variable_get(:@appName)
  strLocation=aAtxt.instance_variable_get(:@locCode)
  strUserName=aAtxt.instance_variable_get(:@login)
  strPassword=aAtxt.instance_variable_get(:@password)
  strURL=aAtxt.instance_variable_get(:@url)
  strApplId=aAtxt.instance_variable_get(:@applId)
  strLocId=aAtxt.instance_variable_get(:@locId)


could any of you please help me out by providng the script sample.

Following is my script:
require 'rubygems'
require 'watir'
require 'test/unit'
require 'watir/screen_capture'
module login
class Ejslogin  Test::Unit::TestCase
include Watir
include Watir::ScreenCapture
  def setup
test_site = url
@ie = Watir::IE.new
@ie.set_fast_speed
@ie.maximize()
@ie.goto test_site
  end
  def test_login(userName=venky, password=Tester12345)

#assert_equal(@ie.title, AppLogin)
@ie.text_field(:name, userName).set #{userName}
@ie.text_field(:name, password).set #{password}
@ie.button(:value, Log in).click

@ie = Watir::IE.attach(:title, 'AppJris')

#assert(@ie.select_list(:name,jurisdiction).exists?)
@ie.select_list( :name , jris).select(Development)

@ie.button(:name, btn1).click
puts ' '
  end

   def teardown
@ie.close()
  end
end

require 'oci8'

conn = OCI8.new('id', 'pwd', '//IP Address/orcl')
num_rows = conn.exec(SELECT LOGIN_ID, LOGIN_PASSWORD FROM Aj_USERS
WHERE LOGIN_ID='venky') do |r|
   puts r.join(',')
 end
 puts num_rows.to_s + ' rows were processed.'
 conn.logoff


Please help me out ...it is urgent for me to update on this...


thanks in advance,
venky

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



[wtr-general] Code Swarm visualization of Watir project

2009-11-12 Thread Sai Venkat

Did a pretty cool code swarm visualization of Watir project. Check out
the blog @ 
http://developer-in-test.blogspot.com/2009/11/code-swarm-visualization-of-watir.html
or video @ http://www.vimeo.com/7567626

--Sai
Fork me @ http://github.com/saivenkat

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



[wtr-general] Re: Script on select list item, clickon btn1 and Logoutfunction()

2009-10-08 Thread venkat
Hi Bill,
The select element is not present as per the error message.
So after troubleshooting what i understood is

when i clicked on login button, the next page is opening up in a new window
rather than opening in the same window, so my script is not verifying the
elements in the newly opened window which has the SELECT element.

To go to that page I too have to handle that in my watir script that if i
click on LOGIN button the my watir script should go to the next of the login
functionality which has select element.

i have written the script like this to go to the 'next to login' page which
is opening in a new window with url contains .(here i have not mentioned the
sessionid after /Managejurisdictions.do/sessionid_.)
ie.goto(http://mysite/EJusticeWeb_trunk/ManageJurisdictions.do;)

but it fails becos the 'next to login' page has url with some dynamic
sessionid included so that page is breakingi don't know how to redirect
to that 'next to login' page by wrinting watir script.


Please help me.

thanks,
venky





On Thu, Oct 8, 2009 at 2:54 PM, Bill Agee billa...@gmail.com wrote:

 Is the error still happening when locating the select list?  It seems to
 work for me with the HTML you pasted - maybe something else is amiss.

 ie.select_list(:name , jurisdiction).select(Development)

 What happens when you run this?

 ie.select_list(:name , jurisdiction).exists?



 On Wed, Oct 7, 2009 at 10:42 PM, venkat greet.ven...@gmail.com wrote:

 I can't figure it out, could you please help me. Following is the html for
 Select list item.

 select id=jurisdiction name=jurisdiction tabindex=

 option value=345
 Calhoun County, MI
 /option

 option value=346

 selected=true
 Development
 /option

 option value=344
 Midland County Test, MI
 /option

 option value=351
 Montgomery County, TX
 /option

 /select

 and this is the html for SELECT BUTTON
 tr
  td valign=top align=leftinput
 name=btn1 type=button class=Button75 onclick=gotoAction();
 onmouseover=this.className='Button75 Button75_over'
 onmouseout=this.className='Button75' value=Select //td
/tr

 THANKS

On Tue, Oct 6, 2009 at 10:39 PM, Bill Agee billa...@gmail.com wrote:

 The exception from Watir indicates the problem is this line:

  ie.select_list( :name , jurisdiction).select(Development)

 As the error says, there's no select list found with the name
 jurisdiction.  The HTML for that element should show the way to fix the
 problem - if you can't figure it out just post the HTML for that one
 element.

 Thanks
 Bill



 On Tue, Oct 6, 2009 at 2:53 AM, venkat greet.ven...@gmail.com wrote:

  Hi,

 Thanks for responding back, actually my application is running fine.

 Exactly Error shown is the following:

 ruby y.rb


 C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.5.rc1/lib/watir/element.rb:56:in 
 `assert_exists': Unable to locate element, using :name, jurisdiction 
 (Watir::Exception::UnknownObjectException)


 from 
 C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.5.rc1/lib/watir/input_elements.rb:62:in
  `select_item_in_select_list'


 from 
 C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.5.rc1/lib/watir/input_elements.rb:46:in
  `select'

 from y.rb:23

 Exit code: 1



 My watir script y.rb is the following:



 require 'rubygems'

  require watir

  require 'test/unit'

  require 'win32ole'

  require 'watir/contrib/ie-new-process'

  test_site = http://xyz/home.do;

  ie = Watir::IE.new_process

  ie.set_fast_speed

   ie.goto test_site

   ie.text_field(:name, 'userName').set('darin')

   ie.text_field(:name, 'password').set('Tester123')

   ie.button(:value, 'Log in').click

   sleep (20)

   ie.goto('http://xyz/ManageJurisdictions.do')

   sleep (20)

   ie.select_list( :name , jurisdiction).select(Development)

   sleep (20)

   ie.button(:value, 'btn1').click

   sleep (20)

   ie.link(:text,LogOut).click

   ie.close()



 I want to perform 3 actions in the page.

 Select item from the drop down list box -- development

 Click on SELECT button

 Click on Logout

 (FYI: Logout has the following properties:

 Name  - Value

 Href   -  xyz.

 OnClick - logOutFunction()

 OnClick - gotoActionUrl('Login.do?dispatchto=logout')



 Please help me



 thanks,

 venky


 On Mon, Oct 5, 2009 at 6:04 PM, Anna Gabutero a...@lavabit.com wrote:


 On Mon, Oct 05, 2009 at 05:46:10PM +0530, venkat wrote:
  Hi,
  I got the following error and my script fails to identify the list
 item,
  can't click the Select button and Logout too fails. Can anyone please
 help
  me.
 
  HTTP Status 500 -
 

 This is a problem with the application you're testing, not a problem
 with Watir.  Read this for more information:
 http://www.w3.org/Protocols/rfc2616

[wtr-general] Re: Script on select list item, clickon btn1 and Logoutfunction()

2009-10-08 Thread venkat
Hi Bill and all,
Many many thanks, i have tried meanwhile I recieve this reply, it works fine
now.

Thanks very much for sparing your time.
venky

On Thu, Oct 8, 2009 at 10:21 PM, Bill Agee billa...@gmail.com wrote:

 Ah, so after you browse to the main test page, a new window is opened that
 contains the content you need to access?

 In that case you are entering the world of popups and attaching. :)  See
 more info here:

 http://wiki.openqa.org/display/WTR/Pop+Ups

 In short, you can use Watir::Browser.attach (or Watir::IE.attach if you are
 only using IE) to attach to the new window and interact with it.

 Thanks
 Bill



 On Thu, Oct 8, 2009 at 4:26 AM, venkat greet.ven...@gmail.com wrote:

 Hi Bill,
 The select element is not present as per the error message.
 So after troubleshooting what i understood is

 when i clicked on login button, the next page is opening up in a new
 window rather than opening in the same window, so my script is not verifying
 the elements in the newly opened window which has the SELECT element.

 To go to that page I too have to handle that in my watir script that if i
 click on LOGIN button the my watir script should go to the next of the login
 functionality which has select element.

 i have written the script like this to go to the 'next to login' page
 which is opening in a new window with url contains .(here i have not
 mentioned the sessionid after /Managejurisdictions.do/sessionid_.)
 ie.goto(http://mysite/EJusticeWeb_trunk/ManageJurisdictions.do;)

 but it fails becos the 'next to login' page has url with some dynamic
 sessionid included so that page is breakingi don't know how to redirect
 to that 'next to login' page by wrinting watir script.


 Please help me.

 thanks,
 venky





   On Thu, Oct 8, 2009 at 2:54 PM, Bill Agee billa...@gmail.com wrote:

 Is the error still happening when locating the select list?  It seems to
 work for me with the HTML you pasted - maybe something else is amiss.

 ie.select_list(:name , jurisdiction).select(Development)

 What happens when you run this?

 ie.select_list(:name , jurisdiction).exists?



 On Wed, Oct 7, 2009 at 10:42 PM, venkat greet.ven...@gmail.com wrote:

 I can't figure it out, could you please help me. Following is the html
 for Select list item.

 select id=jurisdiction name=jurisdiction tabindex=

 option value=345
 Calhoun County, MI
 /option

 option value=346

 selected=true
 Development
 /option

 option value=344
 Midland County Test, MI
 /option

 option value=351
 Montgomery County, TX
 /option

 /select

 and this is the html for SELECT BUTTON
 tr
  td valign=top align=leftinput
 name=btn1 type=button class=Button75 onclick=gotoAction();
 onmouseover=this.className='Button75 Button75_over'
 onmouseout=this.className='Button75' value=Select //td
/tr

 THANKS

On Tue, Oct 6, 2009 at 10:39 PM, Bill Agee billa...@gmail.comwrote:

 The exception from Watir indicates the problem is this line:

  ie.select_list( :name , jurisdiction).select(Development)

 As the error says, there's no select list found with the name
 jurisdiction.  The HTML for that element should show the way to fix the
 problem - if you can't figure it out just post the HTML for that one
 element.

 Thanks
 Bill



 On Tue, Oct 6, 2009 at 2:53 AM, venkat greet.ven...@gmail.com wrote:

  Hi,

 Thanks for responding back, actually my application is running fine.

 Exactly Error shown is the following:

 ruby y.rb


 C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.5.rc1/lib/watir/element.rb:56:in
  `assert_exists': Unable to locate element, using :name, jurisdiction 
 (Watir::Exception::UnknownObjectException)


 from 
 C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.5.rc1/lib/watir/input_elements.rb:62:in
  `select_item_in_select_list'


 from 
 C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.5.rc1/lib/watir/input_elements.rb:46:in
  `select'

 from y.rb:23

 Exit code: 1



 My watir script y.rb is the following:



 require 'rubygems'

  require watir

  require 'test/unit'

  require 'win32ole'

  require 'watir/contrib/ie-new-process'

  test_site = http://xyz/home.do;

  ie = Watir::IE.new_process

  ie.set_fast_speed

   ie.goto test_site

   ie.text_field(:name, 'userName').set('darin')

   ie.text_field(:name, 'password').set('Tester123')

   ie.button(:value, 'Log in').click

   sleep (20)

   ie.goto('http://xyz/ManageJurisdictions.do')

   sleep (20)

   ie.select_list( :name , jurisdiction).select(Development)

   sleep (20)

   ie.button(:value, 'btn1').click

   sleep (20)

   ie.link(:text,LogOut).click

   ie.close()



 I want to perform 3 actions in the page.

 Select item from the drop down list box -- development

[wtr-general] Re: Script on select list item, clickon btn1 and Logoutfunction()

2009-10-07 Thread venkat
I can't figure it out, could you please help me. Following is the html for
Select list item.

select id=jurisdiction name=jurisdiction tabindex=

option value=345
Calhoun County, MI
/option

option value=346

selected=true
Development
/option

option value=344
Midland County Test, MI
/option

option value=351
Montgomery County, TX
/option

/select

and this is the html for SELECT BUTTON
tr
 td valign=top align=leftinput
name=btn1 type=button class=Button75 onclick=gotoAction();
onmouseover=this.className='Button75 Button75_over'
onmouseout=this.className='Button75' value=Select //td
   /tr

THANKS

On Tue, Oct 6, 2009 at 10:39 PM, Bill Agee billa...@gmail.com wrote:

 The exception from Watir indicates the problem is this line:

  ie.select_list( :name , jurisdiction).select(Development)

 As the error says, there's no select list found with the name
 jurisdiction.  The HTML for that element should show the way to fix the
 problem - if you can't figure it out just post the HTML for that one
 element.

 Thanks
 Bill



 On Tue, Oct 6, 2009 at 2:53 AM, venkat greet.ven...@gmail.com wrote:

  Hi,

 Thanks for responding back, actually my application is running fine.

 Exactly Error shown is the following:

 ruby y.rb


 C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.5.rc1/lib/watir/element.rb:56:in 
 `assert_exists': Unable to locate element, using :name, jurisdiction 
 (Watir::Exception::UnknownObjectException)


 from 
 C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.5.rc1/lib/watir/input_elements.rb:62:in
  `select_item_in_select_list'


 from 
 C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.5.rc1/lib/watir/input_elements.rb:46:in
  `select'

 from y.rb:23

 Exit code: 1



 My watir script y.rb is the following:



 require 'rubygems'

  require watir

  require 'test/unit'

  require 'win32ole'

  require 'watir/contrib/ie-new-process'

  test_site = http://xyz/home.do;

  ie = Watir::IE.new_process

  ie.set_fast_speed

   ie.goto test_site

   ie.text_field(:name, 'userName').set('darin')

   ie.text_field(:name, 'password').set('Tester123')

   ie.button(:value, 'Log in').click

   sleep (20)

   ie.goto('http://xyz/ManageJurisdictions.do')

   sleep (20)

   ie.select_list( :name , jurisdiction).select(Development)

   sleep (20)

   ie.button(:value, 'btn1').click

   sleep (20)

   ie.link(:text,LogOut).click

   ie.close()



 I want to perform 3 actions in the page.

 Select item from the drop down list box -- development

 Click on SELECT button

 Click on Logout

 (FYI: Logout has the following properties:

 Name  - Value

 Href   -  xyz.

 OnClick - logOutFunction()

 OnClick - gotoActionUrl('Login.do?dispatchto=logout')



 Please help me



 thanks,

 venky


 On Mon, Oct 5, 2009 at 6:04 PM, Anna Gabutero a...@lavabit.com wrote:


 On Mon, Oct 05, 2009 at 05:46:10PM +0530, venkat wrote:
  Hi,
  I got the following error and my script fails to identify the list
 item,
  can't click the Select button and Logout too fails. Can anyone please
 help
  me.
 
  HTTP Status 500 -
 

 This is a problem with the application you're testing, not a problem
 with Watir.  Read this for more information:
 http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html


 - Anna







 


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



[wtr-general] Re: Script on select list item, clickon btn1 and Logoutfunction()

2009-10-06 Thread venkat
Hi,

Thanks for responding back, actually my application is running fine.

Exactly Error shown is the following:

ruby y.rb

C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.5.rc1/lib/watir/element.rb:56:in
`assert_exists': Unable to locate element, using :name, jurisdiction
(Watir::Exception::UnknownObjectException)

from 
C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.5.rc1/lib/watir/input_elements.rb:62:in
`select_item_in_select_list'

from 
C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.5.rc1/lib/watir/input_elements.rb:46:in
`select'

from y.rb:23

Exit code: 1



My watir script y.rb is the following:



require 'rubygems'

 require watir

 require 'test/unit'

 require 'win32ole'

 require 'watir/contrib/ie-new-process'

 test_site = http://xyz/home.do;

 ie = Watir::IE.new_process

 ie.set_fast_speed

  ie.goto test_site

  ie.text_field(:name, 'userName').set('darin')

  ie.text_field(:name, 'password').set('Tester123')

  ie.button(:value, 'Log in').click

  sleep (20)

  ie.goto('http://xyz/ManageJurisdictions.do')

  sleep (20)

  ie.select_list( :name , jurisdiction).select(Development)

  sleep (20)

  ie.button(:value, 'btn1').click

  sleep (20)

  ie.link(:text,LogOut).click

  ie.close()



I want to perform 3 actions in the page.

Select item from the drop down list box -- development

Click on SELECT button

Click on Logout

(FYI: Logout has the following properties:

Name  - Value

Href   -  xyz.

OnClick - logOutFunction()

OnClick - gotoActionUrl('Login.do?dispatchto=logout')



Please help me



thanks,

venky


On Mon, Oct 5, 2009 at 6:04 PM, Anna Gabutero a...@lavabit.com wrote:


 On Mon, Oct 05, 2009 at 05:46:10PM +0530, venkat wrote:
  Hi,
  I got the following error and my script fails to identify the list item,
  can't click the Select button and Logout too fails. Can anyone please
 help
  me.
 
  HTTP Status 500 -
 

 This is a problem with the application you're testing, not a problem
 with Watir.  Read this for more information:
 http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html


 - Anna


 


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



[wtr-general] Script on select list item, clickon btn1 and Logoutfunction()

2009-10-05 Thread venkat
Hi,
I got the following error and my script fails to identify the list item,
can't click the Select button and Logout too fails. Can anyone please help
me.

HTTP Status 500 -



type Exception report

message

description The server encountered an internal error () that prevented it
from fulfilling this request.

exception

javax.servlet.ServletException: Request[/ManageJurisdictions] does not
contain handler parameter named 'dispatchto'.  This may be caused by
whitespace in the label text.
 org.apache.struts.actions.DispatchAction.unspecified(DispatchAction.java:197)
 
org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAction.java:245)
 org.apache.struts.actions.DispatchAction.execute(DispatchAction.java:170)
 
com.ejustice.rms.actions.BaseDispatchAction.execute(BaseDispatchAction.java:110)
 
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:425)
 org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:228)
 org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
 org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:449)
 javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
 javax.servlet.http.HttpServlet.service(HttpServlet.java:717)




My screen has
a  list box with items
test field 1
test field 2
test field 3

after selecting an item in the above I have to click on a Select button
then followed by a Logout  button to click.

List box contains the id: juris, name: juris, iQuery1254742851156
Select Button contains the name: btn1
Logout Link contains: href:  Onclick:  LogoutFunction()

Following are the functions in my script for the above actions:
ie.select_list( :name , jurisdiction).select(test field 3)
 ie.button(:value, 'btn1').click
ie.link(:text,LogOut).click

thanks in advance,
Venky

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



[wtr-general] Re: Load Testing with WATIR configuration settings - USERS/ Concurrency/ Rampup

2009-10-03 Thread venkat
Hi Darryl,
Thank you very much for providing the crystal clear steps on this.
I am able to run the scripts now, thank a lot.

rgrds,
venky

On Fri, Oct 2, 2009 at 6:51 AM, Darryl Brown d-l-br...@roadrunner.comwrote:


 Hello Venky,

 Are you trying to run the googleSearch.rb exactly as it is on the
 wiki.
 I'm not seeing a require 'watir' at line 14.

 Something to try -
 1) Start an irb session a the command prompt.
 2) At the irb prompt, - require 'watir' enter
 3) If you have Waitr installed you will see true returned.
 4) At the irb prompt -  ie = Watir::IE.new enter
 5) At the irb prompt - ie.goto 'www.google.com'

 You should now be at google.com



 This is what you'll see at the console:

 C:\irb
 irb(main):001:0 require 'watir'
 = true
 irb(main):002:0 ie = Watir::IE.new
 (there will be a lot of output to the console)
 irb(main):003:0 ie.goto 'www.google.com'
 = 0.797

 ##You should now be at google.com
 # Continue on and check load path

 irb(main):004:0 a = $:
 (there will be a lot of output
 irb(main):005:0 puts a
 c:/ruby/lib/ruby/site_ruby/1.8
 c:/ruby/lib/ruby/site_ruby/1.8/i386-msvcrt
 c:/ruby/lib/ruby/site_ruby
 c:/ruby/lib/ruby/1.8
 c:/ruby/lib/ruby/1.8/i386-mswin32

 You should now be at google.com

 If it;s not working for you, please post your console
 output.


 Regards,
 Darryl

 On Oct 1, 5:38 am, Željko Filipin zeljko.fili...@wa-research.ch
 wrote:
   On Thu, Oct 1, 2009 at 11:32 AM, venkat greet.ven...@gmail.com wrote:
   I got the following message attached file that confirms Watir
 installation
 
  successfully, after that I have executed the same Test.rb file and again
 saw
  the same error and and also executed the google_search.rb example script
  again got to see to see the Require - LoadError...
 
  What happens if you add this to the top of the script?
 
  require rubygems
 
  If that does not help, I would:
  - make sure I am logged in as administrator
  - uninstall ruby
  - install ruby
  - install watir
  - try the script one more time
 
  Željko
  --http://watirpodcast.com/
 


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



[wtr-general] Re: Load Testing with WATIR configuration settings - USERS/ Concurrency/ Rampup

2009-09-30 Thread venkat
Thanks for your response Raveendran,

I have executed the sample script as the following but got the error like
...

C:\RubyScripts/test.rb:15:in 'require' : no such file to load -- watir
(LoadError)

 from C:/RubyScripts/test.rb:15

test.rb file contains the following sample code.


require 'rubgems'
require 'watir'
require 'watir/contrib/ie-new-process'
ie = Watir::IE.new_process
ie.goto('google.com')

Could you please help me out how to resolve and run the sample scripts.


Thanks,
Venky
On Wed, Sep 30, 2009 at 10:03 AM, Raveendran P jazzezr...@gmail.com wrote:

 Hi,

 I hope you will get the sample code from here --
 http://wiki.openqa.org/display/WTR/Re-Usable+Load+Testing+Example

 Do you need to run this sample code in your local machine ? it means do u
 need help to install the dependencies ?

 Thanks


 On Tue, Sep 29, 2009 at 7:23 PM, venky greet.ven...@gmail.com wrote:


 Hi,
 Could anybody help me on how/ where to configure the users/ load/
 other settings in WATIR for load/stress/performance testing.

 Thanks,
 venky




 --
 Regards,
 P.Raveendran
 http://raveendran.wordpress.com


 


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



[wtr-general] Re: Load Testing with WATIR

2009-09-30 Thread venkat
but it is thwowing the below error while executing, can you please give some
tips for successfull execution of these scripts.


c:\ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
'gem_original_require': no such file to load -- watir (LoadError)

thanks
venky

On Tue, Sep 29, 2009 at 7:24 PM, Željko Filipin 
zeljko.fili...@wa-research.ch wrote:

 On Tue, Sep 29, 2009 at 3:50 PM, venky greet.ven...@gmail.com wrote:
  test the load/performance of the application using
  WATIR tool

 We have an example on the wiki:

 http://wiki.openqa.org/display/WTR/Re-Usable+Load+Testing+Example

 Željko
 --
 http://watirpodcast.com/


 


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



[wtr-general] accessing modal dialog in 'silent' mode execution with '-b' flag for ruby via Windows batch file

2009-07-22 Thread Venkat

Hi,
I have been successful in accessing the modal dialog contents via the
Watir::IE's modal_dialog method. However, when I try to run my script
by calling ruby via command line with the argument '-b' to run the
Watir script in 'quiet' mode (without launching the IE browser), the
test script fails at the point where it expects to find the modal
dialog. Perhaps, it expects the modal dialog to be visible when it is
not.

Has anyone else encountered this problem? I searched the posts here
but was not able to see other posts relating to this topic.

Thanks in advance for your help.
Venkat
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



[wtr-general] Re: Any else having problem with click_no_wait method.?

2009-06-12 Thread Venkat

Hi Satish,
Thanks for your research and help.
I am running vista and have the issue that has been reported here and
in other forums - that of 'click_no_wait' simply highlights the
element without actually 'clicking' on the screen element. And yes, I
am running Ruby version 1.8.6-27. I had difficulty uninstalling Ruby
and re-installing Watir earlier separately - i.e. without using the
windows 'one-click' installer. So before I go through that pain again,
wanted to check if you are running vista (and IE7)? And if that is the
true, then I can spend time in reverting to 1.8.6.26 version of Ruby.

Thanks again.
Venkat

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



[wtr-general] Re: asset_enabled error to click a button

2009-05-31 Thread Venkat

Hi Wesley,

Thanks for reply.
I did try ie.element_by_xpath(//butt...@id='action_button']/).click
in my test case. Now I don't get any errors, but still It does not
click the action_button.
I did went through the xpath discussion on watir general group  and
tried other work arounds like
ie.element_by_xpath(//button[contains(text(),'Start
Scan']/).click  .But still not success.

Also I thought that execution of watir testcase and loading of page is
not is sync. So I did add ie.wait just to figure out if that was a
problem shown below
ie.button(:name, _form_action).click
ie.wait
ie.element_by_xpath(//butt...@id='action_button']/).click

But still not success.

I am new to watir, Is their any requirement in watir that button
should have compulsorily have name ??

I did try other parts for website by entering id into testcase instead
of name. It works fine. I dont know whats the problem with this
button ??

Any other steps for troubleshooting are highly appreciated.

Thanks
Venkatesh


On May 30, 6:28 pm, Wesley Chen cjq@gmail.com wrote:
 I think it is not a common button, but defined in the css.
 You may try the xpath solution as below:
 ie.element_by_xpath(//butt...@id='action_button']/).click

 In fact, when you search in the Watir General, there are many discussion and
 solution about XPATH deal with, of course, if you are interested in it.

 Thanks.
 Wesley Chen.

 On Sat, May 30, 2009 at 3:32 PM, Venkat venkateshla...@gmail.com wrote:

  I wrote a code to click on button
  ie.button(:id, action_button).click

  But I am getting following errors:
  C:\Documents and Settings\\Desktopruby two-minute.rb
  C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/element.rb:57:in
  `assert_e
  abled': object id and action_button is disabled
  (Watir::Exception::ObjectDisabl
  dException)
         from C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/
  element.rb:22
  :in `click!'
         from C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/
  element.rb:21
  :in `click'
         from two-minute.rb:18

  HTML Source code of the button

  div id=mid_row/div
         div id=bot_row
           button type=button class=button id=action_button/
  button
         /div

  My guess is my syntax is right but still its not clicking on button. I
  am not sure why?
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



[wtr-general] asset_enabled error to click a button

2009-05-30 Thread Venkat

I wrote a code to click on button
ie.button(:id, action_button).click

But I am getting following errors:
C:\Documents and Settings\\Desktopruby two-minute.rb
C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/element.rb:57:in
`assert_e
abled': object id and action_button is disabled
(Watir::Exception::ObjectDisabl
dException)
from C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/
element.rb:22
:in `click!'
from C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/
element.rb:21
:in `click'
from two-minute.rb:18

HTML Source code of the button

div id=mid_row/div
div id=bot_row
  button type=button class=button id=action_button/
button
/div

My guess is my syntax is right but still its not clicking on button. I
am not sure why?



--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---