Re: [wtr-general] Unable to call ruby script multiple times!!

2010-11-12 Thread Željko Filipin
On Fri, Nov 12, 2010 at 7:35 AM, chethan sarathy chethan2...@yahoo.co.in
wrote:
   require 'Ft_001' # This is my script

Replace require with load and it will work.

More information:

http://stackoverflow.com/questions/4140749/watir-script-called-within-a-watir-script/4143205#4143205

Željko

-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com


Re: [wtr-general] Unable to call ruby script multiple times!!

2010-11-11 Thread chethan sarathy
here is my code

@i = 1

begin 

  require 'Ft_001' # This is my script
  sleep(10)
   
  @i = @i+1
   
 end while @i  10

Thanks,
Chethan

--- On Wed, 10/11/10, Željko Filipin zeljko.fili...@wa-research.ch wrote:

From: Željko Filipin zeljko.fili...@wa-research.ch
Subject: Re: [wtr-general] Unable to call ruby script multiple times!!
To: watir-general@googlegroups.com
Date: Wednesday, 10 November, 2010, 2:28 PM

On Wed, Nov 10, 2010 at 6:16 AM, Chethan chethan2...@gmail.com wrote:
 But I am unable to execute multiple times.

Show us the code.

Željko
--
watir.com - community manager


watirpodcast.com - host
testingpodcast.com - audio podcasts on software testing. all of them






-- 

Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

 

watir-general@googlegroups.com

http://groups.google.com/group/watir-general

watir-general+unsubscr...@googlegroups.com



-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com


Re: [wtr-general] Unable to call ruby script multiple times!!

2010-11-11 Thread karim rayani
require statement is use to include a library similar to the include
statement in C/C++ and not to execute the code

I believe we need to replace the require 'XYZ' with

system(ruby 'Ft_001.rb')



On 11/12/10, chethan sarathy chethan2...@yahoo.co.in wrote:
 here is my code

 @i = 1

 begin

   require 'Ft_001' # This is my script
   sleep(10)

   @i = @i+1

  end while @i  10

 Thanks,
 Chethan

 --- On Wed, 10/11/10, Željko Filipin zeljko.fili...@wa-research.ch wrote:

 From: Željko Filipin zeljko.fili...@wa-research.ch
 Subject: Re: [wtr-general] Unable to call ruby script multiple times!!
 To: watir-general@googlegroups.com
 Date: Wednesday, 10 November, 2010, 2:28 PM

 On Wed, Nov 10, 2010 at 6:16 AM, Chethan chethan2...@gmail.com wrote:
 But I am unable to execute multiple times.

 Show us the code.

 Željko
 --
 watir.com - community manager


 watirpodcast.com - host
 testingpodcast.com - audio podcasts on software testing. all of them






 --

 Before posting, please read http://watir.com/support. In short: search
 before you ask, be nice.



 watir-general@googlegroups.com

 http://groups.google.com/group/watir-general

 watir-general+unsubscr...@googlegroups.com



 --
 Before posting, please read http://watir.com/support. In short: search
 before you ask, be nice.

 watir-general@googlegroups.com
 http://groups.google.com/group/watir-general
 watir-general+unsubscr...@googlegroups.com


-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com


Re: [wtr-general] Unable to call ruby script multiple times!!

2010-11-10 Thread Željko Filipin
On Wed, Nov 10, 2010 at 6:16 AM, Chethan chethan2...@gmail.com wrote:
 But I am unable to execute multiple times.

Show us the code.

Željko
--
watir.com - community manager
watirpodcast.com - host
testingpodcast.com - audio podcasts on software testing. all of them

-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com