[wtr-general] Re: Need to pick number from the text

2009-01-28 Thread rob

What about trying to use regex?

Use some regex to find 'Ref ID: ', then grab only the digits that
follow.  I'll try to give you a code example but don't have the time
at the moment.  Hope this helps get you started at least.

On Jan 28, 9:42 pm, vasu  wrote:
> Ref ID will be changing randomly please let me know i can't hard code
> that part
>
> On Jan 29, 10:32 am, sHiVa  wrote:
>
>
>
> > Hi Vasu, use this code;
>
> > #*
>
> > text="Ref ID: 12345"
> > num=text.split(":")
> > intnum=num[1].to_i
> > print intnum
>
> > #*
>
> > I hope this will help u . :)
>
> > On Jan 29, 9:56 am, vasu  wrote:
>
> > > Hi,
>
> > > Iam new to watir can anyone help me in this regard:
>
> > > "Your are registered as a Member, we will SMS you soon. Ref ID: 12345
>
> > > I want to Pick that 12345 from the the above output.
>
> > > Please helpme- Hide quoted text -
>
> - Show quoted text -
--~--~-~--~~~---~--~~
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: Need to pick number from the text

2009-01-28 Thread vasu

Ref ID will be changing randomly please let me know i can't hard code
that part

On Jan 29, 10:32 am, sHiVa  wrote:
> Hi Vasu, use this code;
>
> #*
>
> text="Ref ID: 12345"
> num=text.split(":")
> intnum=num[1].to_i
> print intnum
>
> #*
>
> I hope this will help u . :)
>
> On Jan 29, 9:56 am, vasu  wrote:
>
> > Hi,
>
> > Iam new to watir can anyone help me in this regard:
>
> > "Your are registered as a Member, we will SMS you soon. Ref ID: 12345
>
> > I want to Pick that 12345 from the the above output.
>
> > Please helpme
--~--~-~--~~~---~--~~
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: to string?

2009-01-28 Thread praveen k
You can use .text instead of .Value.
Here's some reference material for using ruby with excel:
http://rubyonwindows.blogspot.com/search/label/rubygarden

On Tue, Jan 27, 2009 at 12:26 AM,  wrote:

>
> Hello, I am using WatiR as webtesting tool and I have seperated the
> data onto a Excel file and I am using the following to connect the
> workbook with testdata to the Watir script:
>
>
> require 'win32ole'
>
> excel = WIN32OLE::new("excel.Application")
> workbook = excel.Workbooks.Open("C:\\Programfiler\\Ruby\\FPSdata.xls")
> worksheet = workbook.WorkSheets(1) # get first workbook
> value = worksheet.Range("b2").Value # get the value at cell b2 in
> worksheet.
>
> In the last line "b2" refers to a number in a Excel cell with a numer
> (1200).
>
> Executing the script this error message occurs:
>
>
> :/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/input_elements.rb:
> 390:in `limit_to_maxlength': undefined method `length' for
> 1200.0:Float (NoMethodError)
>
>
> It seems like
> "value = worksheet.Range("b2").Value"
> doesn't support the format in the Excel cell, because when I try to
> get another value that is a string  i.e. "John"
> it works fine.
>
> Do I need to convert to string?
>
> How would you write the code:
> "value = worksheet.Range("b2").Value"
> with the toString in Ruby to_s?
>
>
> I hope someone can help me!
>
>
> Cheers
>
> >
>

--~--~-~--~~~---~--~~
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: Need to pick number from the text

2009-01-28 Thread sHiVa

Hi Vasu, use this code;

#*

text="Ref ID: 12345"
num=text.split(":")
intnum=num[1].to_i
print intnum

#*

I hope this will help u . :)

On Jan 29, 9:56 am, vasu  wrote:
> Hi,
>
> Iam new to watir can anyone help me in this regard:
>
> "Your are registered as a Member, we will SMS you soon. Ref ID: 12345
>
> I want to Pick that 12345 from the the above output.
>
> Please helpme
--~--~-~--~~~---~--~~
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: Need to pick number from the text

2009-01-28 Thread praveen k
You can take a look at ruby's string class for a solution to your problem.
Here's the URL:
http://www.ruby-doc.org/core/classes/String.html


On Wed, Jan 28, 2009 at 8:56 PM, vasu  wrote:

>
> Hi,
>
> Iam new to watir can anyone help me in this regard:
>
> "Your are registered as a Member, we will SMS you soon. Ref ID: 12345
>
> I want to Pick that 12345 from the the above output.
>
> Please helpme
> >
>

--~--~-~--~~~---~--~~
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: require 'roo' giving Bad file descriptor error

2009-01-28 Thread sHiVa

I have installed roo using "gem install roo" and installation is
successful. after that while i am trying to include that package, it
is giving "Bad file descriptor error" error.Now i am desinging a
framework in RUBY Watir for automating my project. I have choosen roo,
because of its easy API.I am doubt about some dependecy pakages. Is
any other pakages required?. I have  installed watir 1.6.2 in my
machine. - thanks

On Jan 28, 8:18 pm, Gaurav Bansal  wrote:
> have you installed roo gem?
--~--~-~--~~~---~--~~
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] Need to pick number from the text

2009-01-28 Thread vasu

Hi,

Iam new to watir can anyone help me in this regard:

"Your are registered as a Member, we will SMS you soon. Ref ID: 12345

I want to Pick that 12345 from the the above output.

Please helpme
--~--~-~--~~~---~--~~
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: require 'roo' giving Bad file descriptor error

2009-01-28 Thread Gaurav Bansal
have you installed roo gem?

--~--~-~--~~~---~--~~
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] QA w/ Watir

2009-01-28 Thread Matt

If anyone is looking for a position, I have a client who has a need
for a QA Tester/Analyst who is experienced with Watir.  I have an
exclusive on this opportunity so if you, or someone you know is
interested, please call me asap.

Thanks

Matt

800 428 9073 x189
mrich...@eliassen.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: Need help with verifying if text exists!

2009-01-28 Thread Michael Hwee


Replace "if verify($ie.text.include?(searchedtext))==true"
with "if $ie.text.include?(searchedtext)"



- Original Message 
From: Margam 
To: Watir General 
Sent: Tuesday, January 27, 2009 11:16:06 AM
Subject: [wtr-general] Need help with verifying if text exists!


HI all,
I am trying to verify if particular text is present in the page using
verify method. And also output corresponding "passmessage" and
"failmessage". This is the code snippet I am using:
-
def verify_text(searchedtext,passmessage,failmessage)
if verify($ie.text.include?(searchedtext))==true
  puts passmessage
  else
  puts failmessage
  end
end
---

Note: all arguments for this function are passed from the main script.

The problem I am facing is, even if the "verify" passes, only the
"failmessage" is output. The "passmessage" is never output.

The reason I want to use "verify" instead of a simple
"$ie.text.inclue?" is, so that not only the failmessage is output but
also a failure is raised.

Hope I am clear.
Can someone tell me what the problem is?
Thank you

Margam

--~--~-~--~~~---~--~~
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: Integration with Rally

2009-01-28 Thread Richard Lawrence

Hi Aidy,

I had more of a desktop application in mind (though the idea isn't
very fleshed out yet). A wiki is a good idea, though. I'm interested
in seeing where it goes, but I don't have time to collaborate on it
right now.

Best,

Richard

On Tue, Jan 27, 2009 at 3:54 PM, aidy lewis  wrote:
>
> Hi Richard
>
> 2009/1/27 Richard Lawrence :
>>
>> A Cucumber editor is one of the things on my list of projects. I could
>> see that making Cucumber + Watir an easy sell for customer acceptance
>> tests. Not sure when I'll actually start on it, though.
>>
>> Richard
>
> I understand that you can use Cucumber with Writeboards and there may
> be a TextMate bundle and a VIM plug-in.
>
> Do you want to collaborate on a Watir Cucumber wiki?
>
> Aidy
>
> >
>

--~--~-~--~~~---~--~~
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] require 'roo' giving Bad file descriptor error

2009-01-28 Thread sHiVa

Hi all,

i am trying to use roo for reading Excel file.

When i am trying to invoke 'roo' package using
require 'roo'  the following  error is displayed. Plase help me in
this.-- Thanks

Errno::EBADF: Bad file descriptor
from c:/ruby/lib/ruby/gems/1.8/gems/parseexcel-0.5.2/lib/parseexcel/
format.rb:75:in `write'
from c:/ruby/lib/ruby/gems/1.8/gems/parseexcel-0.5.2/lib/parseexcel/
format.rb:75:in `warn'
from c:/ruby/lib/ruby/gems/1.8/gems/parseexcel-0.5.2/lib/parseexcel/
format.rb:75
from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`gem_original_require'
from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`require'
from c:/ruby/lib/ruby/gems/1.8/gems/parseexcel-0.5.2/lib/parseexcel/
parser.rb:28
from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`gem_original_require'
from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`require'
from c:/ruby/lib/ruby/gems/1.8/gems/parseexcel-0.5.2/lib/parseexcel/
parseexcel.rb:5
from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`gem_original_require'
from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`require'
from c:/ruby/lib/ruby/gems/1.8/gems/parseexcel-0.5.2/lib/
parseexcel.rb:4
from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`gem_original_require'
from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`require'
from c:/ruby/lib/ruby/gems/1.8/gems/roo-1.2.3/lib/roo/excel.rb:3
from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`gem_original_require'
from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`require'
from c:/ruby/lib/ruby/gems/1.8/gems/roo-1.2.3/lib/roo.rb:8
from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`gem_original_require'
from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`require'
from (irb):10
--~--~-~--~~~---~--~~
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: Page load time script

2009-01-28 Thread Natasha

Thanks John for sharing the information.

So I believe WATIR uses a thicker client compared to JMeter. Is this
right?



On Jan 28, 1:07 pm, JArkelen  wrote:
> What tooling you are going to use depends heavily on what the goal of
> your test is.
> Be aware that JMeter is testing on HTTP level and that Watir tests are
> on real browser level.
> Depending on the thickness of your client the response time of both
> tools will be different.
>
> Cheers,
> John
>
> On Jan 28, 1:49 pm, Natasha  wrote:
>
> > Thanks Aidy. I don't mind using these options. Just that both are
> > equally new to me. I am sure BadBoy would be simpler compared to
> > JMeter.
>
> > Let me go through it and understand the setup complexity. Also need to
> > understand the similarities/differences between Watir and these tools.
> > I will get back to you if I need help with these tools.
>
> > Regards,
> > Natasha
>
> > On Jan 28, 12:37 pm, aidy lewis  wrote:
>
> > > Natasha,
>
> > > There easiest way to do this is to use BadBoy and JMeter. If you need
> > > help with this drop me a mail off-line.
>
> > > Aidy
>
> > > On 28/01/2009, Natasha  wrote:
>
> > > >  Hello All,
>
> > > >  Am writing a script to find the load time for certain web pages.
>
> > > >  I tried it in a way that my watir script just has one line of code
> > > >  i.e. $browser.goto("www.google.com")
>
> > > >  But is there a simpler way to do it. Basically want to create a script
> > > >  to do that and run that script as a cron job.
> > > >  It may not use Watir. Not sure if Ruby by itself can be sufficient.
>
> > > >  Any pointers will be helpful.
>
> > > >  Thanks,
>
> > > > Natasha
--~--~-~--~~~---~--~~
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: Page load time script

2009-01-28 Thread JArkelen

What tooling you are going to use depends heavily on what the goal of
your test is.
Be aware that JMeter is testing on HTTP level and that Watir tests are
on real browser level.
Depending on the thickness of your client the response time of both
tools will be different.

Cheers,
John

On Jan 28, 1:49 pm, Natasha  wrote:
> Thanks Aidy. I don't mind using these options. Just that both are
> equally new to me. I am sure BadBoy would be simpler compared to
> JMeter.
>
> Let me go through it and understand the setup complexity. Also need to
> understand the similarities/differences between Watir and these tools.
> I will get back to you if I need help with these tools.
>
> Regards,
> Natasha
>
> On Jan 28, 12:37 pm, aidy lewis  wrote:
>
> > Natasha,
>
> > There easiest way to do this is to use BadBoy and JMeter. If you need
> > help with this drop me a mail off-line.
>
> > Aidy
>
> > On 28/01/2009, Natasha  wrote:
>
> > >  Hello All,
>
> > >  Am writing a script to find the load time for certain web pages.
>
> > >  I tried it in a way that my watir script just has one line of code
> > >  i.e. $browser.goto("www.google.com")
>
> > >  But is there a simpler way to do it. Basically want to create a script
> > >  to do that and run that script as a cron job.
> > >  It may not use Watir. Not sure if Ruby by itself can be sufficient.
>
> > >  Any pointers will be helpful.
>
> > >  Thanks,
>
> > > Natasha
--~--~-~--~~~---~--~~
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: Page load time script

2009-01-28 Thread Natasha

Thanks Aidy. I don't mind using these options. Just that both are
equally new to me. I am sure BadBoy would be simpler compared to
JMeter.

Let me go through it and understand the setup complexity. Also need to
understand the similarities/differences between Watir and these tools.
I will get back to you if I need help with these tools.

Regards,
Natasha

On Jan 28, 12:37 pm, aidy lewis  wrote:
> Natasha,
>
> There easiest way to do this is to use BadBoy and JMeter. If you need
> help with this drop me a mail off-line.
>
> Aidy
>
> On 28/01/2009, Natasha  wrote:
>
>
>
> >  Hello All,
>
> >  Am writing a script to find the load time for certain web pages.
>
> >  I tried it in a way that my watir script just has one line of code
> >  i.e. $browser.goto("www.google.com")
>
> >  But is there a simpler way to do it. Basically want to create a script
> >  to do that and run that script as a cron job.
> >  It may not use Watir. Not sure if Ruby by itself can be sufficient.
>
> >  Any pointers will be helpful.
>
> >  Thanks,
>
> > Natasha
--~--~-~--~~~---~--~~
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: Page load time script

2009-01-28 Thread aidy lewis

Natasha,

There easiest way to do this is to use BadBoy and JMeter. If you need
help with this drop me a mail off-line.

Aidy





On 28/01/2009, Natasha  wrote:
>
>  Hello All,
>
>  Am writing a script to find the load time for certain web pages.
>
>  I tried it in a way that my watir script just has one line of code
>  i.e. $browser.goto("www.google.com")
>
>  But is there a simpler way to do it. Basically want to create a script
>  to do that and run that script as a cron job.
>  It may not use Watir. Not sure if Ruby by itself can be sufficient.
>
>  Any pointers will be helpful.
>
>  Thanks,
>
> Natasha
>  >
>

--~--~-~--~~~---~--~~
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] Page load time script

2009-01-28 Thread Natasha

Hello All,

Am writing a script to find the load time for certain web pages.

I tried it in a way that my watir script just has one line of code
i.e. $browser.goto("www.google.com")

But is there a simpler way to do it. Basically want to create a script
to do that and run that script as a cron job.
It may not use Watir. Not sure if Ruby by itself can be sufficient.

Any pointers will be helpful.

Thanks,
Natasha
--~--~-~--~~~---~--~~
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] WIN32OLE::new("excel.Application") can Open() method takes relative path?

2009-01-28 Thread sHiVa

Hi all,

When i use this code with relative path, i am getting an error, but
not if i use absolute path.
As a part of my Watir framework, i need to use relative path. Please
help me in this. - Thanks


excel = WIN32OLE::new("excel.Application")
workbook = excel.Workbooks.Open("..\\Test Data\\Test Data.xls")

**
Error:

ReadingEXCEL.rb:5:in `method_missing': Open (WIN32OLERuntimeError)
OLE error code:800A03EC in Microsoft Office Excel
  'c:\Test Data\Test Data.xls' could not be found. Check the
spelling of the file name, and verify that the file location is
correct.

If you are trying to open the file from your list of most recently
used files on the File menu, make sure that the file has not been
renamed, moved, or deleted.
HRESULT error code:0x80020009
  Exception occurred.   from ReadingEXCEL.rb:5
--~--~-~--~~~---~--~~
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] Factors affecting UI testability

2009-01-28 Thread sai

I know this is not the right forum to ask this question but there are
so many people here who are experienced and have faced this issue as
myself. So here it goes...

I have been thinking about the points which affect UI testability for
sometime. When it comes to unit testing there are specific points like
Dependency Injection, usage of Singletons as factors which affect it.

Similarly it must be possible to get a set of points which we must be
able to do or avoid to help UI testability. I need your help in
collecting these points so that it will help us while we think about
design for testability at UI level.

Some points to get started

1) Building custom controls like grids or tables either from scratch
or from available controls. Sometimes I have seen people drawing their
own controls which makes testing extremely difficult
2) Auto generation of UI code. Most of the time it leaves us with
randomly generated locators
3) Not using normal locators like id, name which makes testing
complex.
4) Using technologies which don't have testability in built like
Javafx.
5) Highly asynchronous process.

Please let me know about your thoughts and challenges you faced in UI
testability.

Regards,
Sai

http://code.google.com/p/chrome-watir
--~--~-~--~~~---~--~~
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: Watir doesn't work under cygwin

2009-01-28 Thread sai

Not sure how many have tried Watir with Cygwin but your problem seems
to be a permission one.
Can you try to change the permission by doing a chmod and check if it
is working?

Also has anyone faced any problems in using Watir with PowerShell?

Regards,
Sai

On Jan 27, 6:19 pm, Arco  wrote:
> Watir doesn't work for me.  Sadly ironic, for a regression test
> tool...
>
> Platform: WinXP / Cygwin
> Ruby: ruby 1.8.7 (2008-08-11 patchlevel 72) [i386-cygwin]
> Watir 1.6.2
>
> Here's what I do:
> - gem install watir
> - irb
>
> >> require 'watir'
> => true
> >> x = Watir::IE.new
>
> LoadError: Permission denied - /usr/lib/ruby/gems/1.8/gems/watir-1.6.2/
> lib/watir
> /win32ole/win32ole.so
>         from /usr/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/
> win32ole/win32ole
> .so
>         from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
> 31:in `requi
> re'
>         from /usr/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/
> win32ole.rb:5
>         from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
> 31:in `gem_o
> riginal_require'
>         from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
> 31:in `requi
> re'
>         from /usr/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie.rb:
> 38
>         from (irb):2
>
>
--~--~-~--~~~---~--~~
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: Problem installing watir gem

2009-01-28 Thread malar

hi,
i have added HTTP_PROXY  with ip address and port number in system
variable.
but no use of it.
still i am getting errors.

C:\wat>gem install watir
ERROR:  http://gems.rubyforge.org/ does not appear to be a repository
ERROR:  could not find watir locally or in a repository

What is the problem?

Thanks
malar



--~--~-~--~~~---~--~~
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 doesn't work under cygwin

2009-01-28 Thread Arco

Watir doesn't work for me.  Sadly ironic, for a regression test
tool...

Platform: WinXP / Cygwin
Ruby: ruby 1.8.7 (2008-08-11 patchlevel 72) [i386-cygwin]
Watir 1.6.2

Here's what I do:
- gem install watir
- irb

>> require 'watir'
=> true
>> x = Watir::IE.new
LoadError: Permission denied - /usr/lib/ruby/gems/1.8/gems/watir-1.6.2/
lib/watir
/win32ole/win32ole.so
from /usr/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/
win32ole/win32ole
.so
from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
31:in `requi
re'
from /usr/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/
win32ole.rb:5
from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
31:in `gem_o
riginal_require'
from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
31:in `requi
re'
from /usr/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie.rb:
38
from (irb):2
>>

--~--~-~--~~~---~--~~
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] Can't run Watir

2009-01-28 Thread Arco

I am unable to run watir.

I searched for a solution, and discussed the issue in IRC, but wasn't
able to find a solution.

Platform: WinXP / Cygwin

Here is the text of my error message - http://pastie.org/372148

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