[Wtr-general] SciTE Repeats Input Chars in IRB

2006-04-04 Thread Eli Smith












Greetings, Rubyists.

Ruby newbie here with an SciTE question.

How do I stop SciTE from repeating my
input chars in IRB?

I cant figure out which bit to flip
off but its got me crazed.

The suggestions at http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/143959
didnt solve it.



adTHANKSvance,

~Eli- 










___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] Validating all php generated html code?

2006-04-04 Thread jkohl
If you're looking at pure HTML validation, I'd look at doing this at the HTTP
layer. If I'm not mistaken, most web browsers (IE included) fill in missing
closing tags. You will probably see IE's version of the HTML, not necessarily
what the PHP scripts are actually generating.

Someone who knows more can correct me if I'm wrong. :-)

-Jonathan

Quoting Paatsch, Bernd [EMAIL PROTECTED]:

 Hello Watir team.
 
 I got a new interesting assignment, to validate all html code of all our
 products. Doing this manual would take me a very long time. Thus I seek an
 automated solution and wonder if anybody has done something similar? Here is
 what I think needs to be done:
 
 1.  Generate each html page possible (the html code is created by MySQL and
 php scripts). It would be great to have a web crawler clicking each link at
 the web-site and saving the generated html-file.
 2.  Validating all the html files
 
 Has anybody done something like this? Any ideas regarding what tools to use?
 Any recommendations, ideas, etc?
 
 Thanks for your help.
 Bernd
 
 
 




___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


Re: [Wtr-general] SciTE Repeats Input Chars in IRB

2006-04-04 Thread Paul Carvalho
Hello Eli, there's a lot of information you didn't offer to allow us to help you better.What version of Ruby are you using (so we know the version of SciTE)? What version of Watir?How are you executing the scripts? Which input chars are being echoed? Can you include a sample of your code and the corresponding annoying output?
Help us out a bit here. ;-)Cheers. Paul.On 04/04/06, Eli Smith [EMAIL PROTECTED]
 wrote:
















Greetings, Rubyists.

Ruby newbie here with an SciTE question.

How do I stop SciTE from repeating my
input chars in IRB?

I can't figure out which bit to flip
off but it's got me crazed.

The suggestions at 
http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/143959
didn't solve it.



adTHANKSvance,

~Eli- 












___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] SciTE Repeats Input Chars in IRB

2006-04-04 Thread Eli Smith








Fair enough, Paul. Lemme spill my guts.

Im using Ruby 1.8.2, Watir 1.4.1,
and SciTE 1.59 on a Winserver 2003 with SP1.

To see the problem:


 Start
 SciTE on Windows.
 Select
 Tools  Run irb from the menu system.
 Type
 into the command window provided.


Each character entered it displayed twice.
Guess what this is?

rreeqquuiirree ''wwaattiirr''



Makes you wanna start a command prompt!

Any known workarounds? I like the near-IDE
SciTE provides.



~Eli-











From:
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Paul Carvalho
Sent: Tuesday, April 04, 2006
12:34 PM
To: wtr-general@rubyforge.org
Subject: Re: [Wtr-general] SciTE
Repeats Input Chars in IRB





Hello Eli, there's a lot
of information you didn't offer to allow us to help you better.

What version of Ruby are you using (so we know the version of SciTE)?
What version of Watir?

How are you executing the scripts? Which input chars are
being echoed? Can you include a sample of your code and the corresponding
annoying output? 

Help us out a bit here. ;-)

Cheers. Paul.





On 04/04/06, Eli
Smith [EMAIL PROTECTED]
 wrote:









Greetings, Rubyists.

Ruby newbie here with an SciTE question.

How do I stop SciTE from repeating my input chars in IRB?

I can't figure out which bit to flip off but it's got me
crazed.

The suggestions at http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/143959
didn't solve it.



adTHANKSvance,

~Eli- 


















___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] SciTE Repeats Input Chars in IRB

2006-04-04 Thread Paul Carvalho
Ah, now I see. I am using Ruby 1.8.4-16 with SciTE 1.67. There is *no* Run irb under the Tools menu.I guess it didn't work so they took it out. Sorry. Looks like you'll have to CMD-prompt it to work around this problem.
Cheers. Paul.On 04/04/06, Eli Smith [EMAIL PROTECTED] wrote:














Fair enough, Paul. Lemme spill my guts.

I'm using Ruby 1.8.2, Watir 1.4.1,
and SciTE 1.59 on a Winserver 2003 with SP1.

To see the problem:


 Start
 SciTE on Windows.
 Select
 Tools  Run irb from the menu system.
 Type
 into the command window provided.


Each character entered it displayed twice.
Guess what this is?

rreeqquuiirree ''wwaattiirr''



Makes you wanna start a command prompt!

Any known workarounds? I like the near-IDE
SciTE provides.



~Eli-
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] SciTE Repeats Input Chars in IRB

2006-04-04 Thread Cain, Mark








You can type:



Cmd

Echo off

Cd \ruby\bin

Irb

Ruby code here



But this is just a command window inside
SciTE. It is a much better experience via a command window. If you
want an IRB window inside your editor, download the latest version if FreeRide
and it has one built in.









--Mark















From:
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Eli Smith
Sent: Tuesday, April 04, 2006
12:39 PM
To: wtr-general@rubyforge.org
Subject: Re: [Wtr-general] SciTE
Repeats Input Chars in IRB





Fair enough, Paul. Lemme spill my guts.

Im using Ruby 1.8.2, Watir 1.4.1,
and SciTE 1.59 on a Winserver 2003 with SP1.

To see the problem:


 Start
 SciTE on Windows.
 Select
 Tools  Run irb from the menu system.
 Type
 into the command window provided.


Each character entered it displayed twice.
Guess what this is?

rreeqquuiirree ''wwaattiirr''



Makes you wanna start a command prompt!

Any known workarounds? I like the near-IDE
SciTE provides.



~Eli-











From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On
Behalf Of Paul Carvalho
Sent: Tuesday, April 04, 2006
12:34 PM
To: wtr-general@rubyforge.org
Subject: Re: [Wtr-general] SciTE
Repeats Input Chars in IRB





Hello Eli, there's a lot
of information you didn't offer to allow us to help you better.

What version of Ruby are you using (so we know the version of SciTE)?
What version of Watir?

How are you executing the scripts? Which input chars are
being echoed? Can you include a sample of your code and the corresponding
annoying output? 

Help us out a bit here. ;-)

Cheers. Paul.



On 04/04/06, Eli
Smith [EMAIL PROTECTED]
 wrote:









Greetings, Rubyists.

Ruby newbie here with an SciTE question.

How do I stop SciTE from repeating my input chars in IRB?

I can't figure out which bit to flip off but it's got me
crazed.

The suggestions at http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/143959
didn't solve it.



adTHANKSvance,

~Eli- 


















___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] SciTE Repeats Input Chars in IRB

2006-04-04 Thread Paul Carvalho
Hi Eli, you can execute your scripts from within SciTE too. Just press [F8] to see the output pane and press [F5] to run the script. The output pane shows you the output that you would normally see in a command window. No need to run it separately.
Hope this helps. Paul.On 04/04/06, Eli Smith [EMAIL PROTECTED] wrote:















Thanks for the input, all. And I see your
point, Mark. I'll have to get more comfortable in Windows non-UNIX command
line. 

So it sounds like the preference is for editing
with SciTE (or editor of choice) and execution from the command line. I think
my environment needs some work.~Eli-
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] SciTE Repeats Input Chars in IRB

2006-04-04 Thread Bret Pettichord
I think this has been said before, but i bears repeating.The Ruby breakpoint package is a great debuggerWhat you do is add code like this: require 'breakpoint'; breakpointAnd then when that line is executed, you get dropped into IRB at that context.
Install breakpoint thus: gem install ruby-breakpointWhen you use this technique to definitely don't want to be using F5 to run your scripts in Scite.BretOn 4/4/06, 
Eli Smith [EMAIL PROTECTED] wrote:















Thanks for the input, all. And I see your
point, Mark. I'll have to get more comfortable in Windows non-UNIX command
line. 

So it sounds like the preference is for editing
with SciTE (or editor of choice) and execution from the command line. I think
my environment needs some work.



~Eli-











From:
[EMAIL PROTECTED] [mailto:
[EMAIL PROTECTED]] On Behalf Of Cain, Mark
Sent: Tuesday, April 04, 2006 3:07
PM
To: wtr-general@rubyforge.org
Subject: Re: [Wtr-general] SciTE
Repeats Input Chars in IRB





You can type:



Cmd

Echo off

Cd \ruby\bin

Irb

Ruby code here



But this is just a command window inside
SciTE. It is a much better experience via a command window. If you
want an IRB window inside your editor, download the latest version if FreeRide
and it has one built in.









--Mark















From: 
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On
Behalf Of Eli Smith
Sent: Tuesday, April 04, 2006
12:39 PM
To: wtr-general@rubyforge.org
Subject: Re: [Wtr-general] SciTE
Repeats Input Chars in IRB





Fair enough, Paul. Lemme spill my guts.

I'm using Ruby 1.8.2, Watir 1.4.1,
and SciTE 1.59 on a Winserver 2003 with SP1.

To see the problem:


 Start
 SciTE on Windows.
 Select
 Tools  Run irb from the menu system.
 Type
 into the command window provided.


Each character entered it displayed twice.
Guess what this is?

rreeqquuiirree ''wwaattiirr''



Makes you wanna start a command prompt!

Any known workarounds? I like the near-IDE
SciTE provides.



~Eli-











From:
[EMAIL PROTECTED] [mailto:
[EMAIL PROTECTED]] On Behalf Of Paul Carvalho
Sent: Tuesday, April 04, 2006
12:34 PM
To: wtr-general@rubyforge.org
Subject: Re: [Wtr-general] SciTE
Repeats Input Chars in IRB





Hello Eli, there's a lot
of information you didn't offer to allow us to help you better.

What version of Ruby are you using (so we know the version of SciTE)?
What version of Watir?

How are you executing the scripts? Which input chars are
being echoed? Can you include a sample of your code and the corresponding
annoying output? 

Help us out a bit here. ;-)

Cheers. Paul.



On 04/04/06, Eli
Smith [EMAIL PROTECTED]
 wrote:









Greetings, Rubyists.

Ruby newbie here with an SciTE question.

How do I stop SciTE from repeating my input chars in IRB?

I can't figure out which bit to flip off but it's got me
crazed.

The suggestions at 
http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/143959
didn't solve it.



adTHANKSvance,

~Eli- 



















___Wtr-general mailing listWtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] Validating all php generated html code?

2006-04-04 Thread Bret Pettichord
I agree. Watir is not the right tool for this.Perl's Mechanize or something similar in Ruby would probably be the thing to use.BretOn 4/4/06, 
[EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
If you're looking at pure HTML validation, I'd look at doing this at the HTTPlayer. If I'm not mistaken, most web browsers (IE included) fill in missingclosing tags. You will probably see IE's version of the HTML, not necessarily
what the PHP scripts are actually generating.Someone who knows more can correct me if I'm wrong. :-)-JonathanQuoting Paatsch, Bernd [EMAIL PROTECTED]
: Hello Watir team. I got a new interesting assignment, to validate all html code of all our products. Doing this manual would take me a very long time. Thus I seek an automated solution and wonder if anybody has done something similar? Here is
 what I think needs to be done: 1.Generate each html page possible (the html code is created by MySQL and php scripts). It would be great to have a web crawler clicking each link at the web-site and saving the generated html-file.
 2.Validating all the html files Has anybody done something like this? Any ideas regarding what tools to use? Any recommendations, ideas, etc? Thanks for your help. Bernd
___Wtr-general mailing listWtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] Files as argument when running a suite

2006-04-04 Thread Deepa Mallapareddy
Thanks a lot Bret ...This did not work   My problem was to :   Have a config file where in the user specifies few Global Variables like Username and pwd and the path which he wants to be tested and My requirement was to give the Config file as an argument coz User might want to test on different Config files but Require 'config.rb' dint work   Ihave found out a work arround I have stored the variables in a file and then   started reading them line by line and using them in my file ie Alltest.rb config.txt instead of writing config.rb Thought of sharing. I dont know whether it is appropriate way of doing but
 works  Bret Pettichord [EMAIL PROTECTED] wrote:  require 'config.rb'If that doesn't work, then you'll need to explain more what you want to do.Bret  On 3/31/06, Deepa Mallapareddy  [EMAIL PROTECTED] wrote:  Hi all,  I have to give a config file( file withvariables like username and pwd and URL ) as an argument when running a suite. and I should be able to use the variables in this entire test suite Im eunning. Can you please
 suggest Any input on this will be appreciated. Thanks in Advance!  Deepa Whatever you can do or dream you can, begin it. Boldness has genius, power, and magic in it. --Johann Wolfgang von Goethe     Deepa Mallapareddy, 4981,Catoctin Drive, Apt#15,San Diego CA - 92115  How low will we go? Check out Yahoo! Messenger's low PC-to-Phone call rates.   ___Wtr-general mailing listWtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general___Wtr-general mailing listWtr-general@rubyforge.orghttp://rubyforge.org/mailman/listinfo/wtr-general  Whatever you can do or dream you can, begin it. Boldness has genius, power, and magic in it.
 --Johann Wolfgang von Goethe   Deepa Mallapareddy, 4981,Catoctin Drive, Apt#15,San Diego CA - 92115
	
		Yahoo! Messenger with Voice. PC-to-Phone calls for ridiculously low rates.___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] Files as argument when running a suite

2006-04-04 Thread Sean Gallagher
Deepa,
Check out YAML --it's already included with Ruby. (and works really well!)

More info here
http://yaml4r.sourceforge.net/

including a good cookbook.
http://yaml4r.sourceforge.net/cookbook/

I am using YAML to solve a similar problem.

Good luck!

Sean

--
http://testmethods.net/



 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On Behalf Of Deepa 
 Mallapareddy
 Sent: Tuesday, April 04, 2006 5:22 PM
 To: wtr-general@rubyforge.org
 Subject: Re: [Wtr-general] Files as argument when running a suite
 
 Thanks a lot Bret ...
  
 This did not work 
  
  
 My problem was to : 
  Have a config file where in the user specifies few Global 
 Variables like Username and pwd and the path which he wants 
 to be tested 
  
 and My requirement was to give the Config file as an 
 argument coz User might want to test on different Config files 
  
 but Require 'config.rb' dint work 
  
  
 I have found out a work arround I have stored the variables 
 in a file and then started reading them line by line and 
 using them in my file 
  
 ie 
  
 Alltest.rb config.txt 
  
 instead of writing config.rb 
  
 Thought of sharing. I dont know whether it is appropriate way 
 of doing but works
 
 Bret Pettichord [EMAIL PROTECTED] wrote:
 
   require 'config.rb'
   
   If that doesn't work, then you'll need to explain more 
 what you want to do.
   
   Bret
   
   
   On 3/31/06, Deepa Mallapareddy  [EMAIL PROTECTED] 
 mailto:[EMAIL PROTECTED]  wrote: 
 
   Hi all, 

I have to give a config file( file with 
 variables like username and pwd and URL ) as an argument when 
 running a suite.  and I should be able to use the variables 
 in this entire test suite Im eunning. 

   Can you please suggest 

   Any input on this will be appreciated. 

   Thanks in Advance!
   Deepa 
 
 
   Whatever you can do or dream you can, begin it. 
 Boldness has genius, power, and magic in it. 
   --Johann Wolfgang von Goethe  
   
 --
 --
   
   Deepa Mallapareddy, 
   4981,Catoctin Drive, 
   Apt#15,San Diego 
   CA - 92115
   
 
 
   How low will we go? Check out Yahoo! 
 Messenger's low PC-to-Phone call rates. 
 http://us.rd.yahoo.com/mail_us/taglines/postman8/*http://us.r
d.yahoo.com/evt=39663/*http://voice.yahoo.com 
 
   ___
   Wtr-general mailing list
   Wtr-general@rubyforge.org 
   http://rubyforge.org/mailman/listinfo/wtr-general
   
   
 
 
   ___
   Wtr-general mailing list
   Wtr-general@rubyforge.org
   http://rubyforge.org/mailman/listinfo/wtr-general
 
 
 
 
 Whatever you can do or dream you can, begin it. Boldness has 
 genius, power, and magic in it. 
 --Johann Wolfgang von Goethe
 --
 --
 Deepa Mallapareddy,
 4981,Catoctin Drive,
 Apt#15,San Diego
 CA - 92115
 
 
 
 Yahoo! Messenger with Voice. 
 http://us.rd.yahoo.com/mail_us/taglines/postman3/*http://us.r
d.yahoo.com/evt=39666/*http://beta.messenger.yahoo.com  PC-to- Phone calls
for ridiculously low rates.
 
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general