Re: [Wtr-general] Supporting IE 7

2007-05-16 Thread Lillis, Dara
I'm strongly in favor of supporting both if possible.

I got around http://jira.openqa.org/browse/WTR-115 by patching my own
method with hard coded strings to match the IE 7 values. I didn't spend
much time trying to figure out my own how to support IE 6 and IE 7.

This issue doesn't seem to affect WinClicker from what I have seen.

-D

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Paul Rogers
Sent: Wednesday, May 16, 2007 2:55 PM
To: wtr-general@rubyforge.org
Subject: Re: [Wtr-general] Supporting IE 7


I think its important to support both at the moment, as Im sure many
people still havent upgraded.

Id seen these problems, but Im using 1.4 and I cant remember if I did
something to make it work on both ie6 and 7 or just stuck with 6.

Paul


- Original Message -
From: Bret Pettichord [EMAIL PROTECTED]
Date: Wednesday, May 16, 2007 12:36 pm
Subject: [Wtr-general] Supporting IE 7

 I have recently started using IE  on both my personal laptop and my 
 company machine. And i've noticed that some of the Watir tests were 
 failing because they were looking for IE 6.
 
 Specifically IE 6 windows are Microsoft Internet Explorer and IE
 7 are
 called Windows Internet Explorer.
 
 The simple fix was to just change the string, which will make the code

 work with IE7, but it will now break with IE6. Making it work with 
 both is more complicated.
 
 Frankly, I was surprised that I hadn't heard more complaints about 
 this.
 Is any one besides me actually using IE7? Does any one care about 
 retaining support for IE6?
 
 This issue really only affects our support for popup windows and the 
 like -- which is already pretty broken anyway. Maybe no one is using 
 it, which is why i've seen no complaints?
 
 Please share your thoughts on this topic?
 
 This issue is being tracked under this ticket.
 http://jira.openqa.org/browse/WTR-125
 ___
 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
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


Re: [Wtr-general] watir faqs

2007-03-22 Thread Lillis, Dara
That's not my understanding. I thought http://www.openqa.org/watir/ was
now the main site for everything Watir-y.

I see two things that have not been migrated from
http://wtr.rubyforge.org/: the tutorial, and the sample test. If those
were moved, it would make sense to me that the old sites be deprecated
and the URL http://wtr.rubyforge.org/ forwarded to
http://www.openqa.org/watir/

Am I wrong?

-D

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
[EMAIL PROTECTED]
Sent: Wednesday, March 21, 2007 5:29 PM
To: wtr-general@rubyforge.org
Subject: Re: [Wtr-general] watir faqs





Hello,

My understanding is that Rubyforge site is not deprecated.  The site
wtr.rubyforge.org is the main release site for WATIR, which is the
current home to WATIR 1.4  When WATIR 1.5 goes live the release code
and supporting documentation will be placed here.

The openqa site is intended to be the development site.  This site
allows teams to use the latest WATIR methods, documentation, submit
defects, vote on features etc...; however, I believe at this point this
is not considered a stable release candidate.

I hope this helps.  If I am wrong I am sure Charlie and Bret will
quickly correct these statements.  :0)

Carl




 

 aidy lewis

 [EMAIL PROTECTED]

 email.com
To 
 Sent by:  wtr-general@rubyforge.org

 wtr-general-bounc
cc 
 [EMAIL PROTECTED]

 
Subject 
   Re: [Wtr-general] watir faqs

 03/21/2007 04:18

 PM

 

 

 Please respond to

 [EMAIL PROTECTED]

 orge.org

 

 





 http://wiki.openqa.org/display/WTR/FAQ ?

Is this a deprecated site then

http://wtr.rubyforge.org/  ?

with a faq url of:

http://wtr.rubyforge.org/wiki/wiki.pl?

cheers

aidy
___
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
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


Re: [Wtr-general] watir faqs

2007-03-22 Thread Lillis, Dara
if you're going to keep http://wtr.rubyforge.org/ site up, I'd suggest
including a link to the openqa site somewhere prominent.
 
for new users who end up at wtr.rubyforge.org, there is currently no
indication that the openqa site exists, and the faq and wiki links are
dead.
 
my suggestion would be to keep a bare-bones site at
http://wtr.rubyforge.org/ http://wtr.rubyforge.org/  which would
auto-forward to http://www.openqa.org/watir/
 
I'd be happy to help with this if you want to do it.
 
-D



From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Charley Baker
Sent: Thursday, March 22, 2007 12:02 PM
To: wtr-general@rubyforge.org
Subject: Re: [Wtr-general] watir faqs


The openqa site is the main site right now. We're keeping the RubyForge
site up as well since that's often the first site that people hit when
searching for Watir, and connects us to the ruby community to some
extent. Otherwise, as you can see, openqa is more current and where most
of the information for the project is stored. 

-Charley


On 3/22/07, Lillis, Dara [EMAIL PROTECTED] wrote: 

That's not my understanding. I thought
http://www.openqa.org/watir/ was
now the main site for everything Watir-y.

I see two things that have not been migrated from
http://wtr.rubyforge.org/: the tutorial, and the sample test. If
those
were moved, it would make sense to me that the old sites be
deprecated
and the URL http://wtr.rubyforge.org/ forwarded to
http://www.openqa.org/watir/

Am I wrong?

-D

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
[EMAIL PROTECTED] 
Sent: Wednesday, March 21, 2007 5:29 PM
To: wtr-general@rubyforge.org
Subject: Re: [Wtr-general] watir faqs





Hello,

My understanding is that Rubyforge site is not deprecated.  The
site 
wtr.rubyforge.org is the main release site for WATIR, which is
the
current home to WATIR 1.4  When WATIR 1.5 goes live the
release code
and supporting documentation will be placed here. 

The openqa site is intended to be the development site.  This
site
allows teams to use the latest WATIR methods, documentation,
submit
defects, vote on features etc...; however, I believe at this
point this
is not considered a stable release candidate.

I hope this helps.  If I am wrong I am sure Charlie and Bret
will
quickly correct these statements.  :0)

Carl






 aidy lewis 

 [EMAIL PROTECTED]

 email.com
To
 Sent by:  wtr-general@rubyforge.org


 wtr-general-bounc
cc
 [EMAIL PROTECTED]


Subject
   Re: [Wtr-general] watir
faqs

 03/21/2007 04:18 

 PM





 Please respond to

 [EMAIL PROTECTED]

 orge.org









 http://wiki.openqa.org/display/WTR/FAQ ?

Is this a deprecated site then

http://wtr.rubyforge.org/  ?

with a faq url of: 

http://wtr.rubyforge.org/wiki/wiki.pl?

cheers

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

Re: [Wtr-general] modal dialogs and remote desktop

2006-12-15 Thread Lillis, Dara
Nathan,

This problem ONLY happens with the modal dialog code. Other tests that
don't use modal dialog code do not have this problem. Do any of your
tests use modal dialog? If not, then you wouldn't see my problem.

All test code running is on the local machine. The test runs fine on the
console.

So, the problem is only with modal dialog code, and only with a
minimized/closed remote desktop session.

thanks,

-Dara

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Nathan
Sent: Friday, December 15, 2006 3:28 PM
To: wtr-general@rubyforge.org
Subject: Re: [Wtr-general] modal dialogs and remote desktop

Hi Dara, this doesn't seem right. We use remote desktop often to start
tests on various machines at my company, and they never hang or break
when we close the remote desktop connection (or minimize it).  Have you
attempted to run the test by going to the physical machine you are
trying to run it on? It may help to know whether or not it runs without
using remote desktop.

Are you doing anything unusual like trying to access tests across a
network, or something else like that?

thanks,

Nathan
-
Posted via Jive Forums
http://forums.openqa.org/thread.jspa?threadID=5789messageID=16249#16249
___
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


[Wtr-general] modal dialogs and remote desktop

2006-12-14 Thread Lillis, Dara

I have a strange problem with using the modal dialog code (I'm using
watir development gem 1.5.1.1017) while running tests on a remote
machine via remote desktop.

When I am rdesktop-ed to a machine and run some code that uses modal
dialogs (see below for code), it works fine when I am looking at the
remote desktop, but if I minimise the remote desktop or close it and
leave the program running, my test hangs and never clicks on the modal
dialog.

here's the code I am using:

 browser.link(:text, link_text).click_no_wait
 dialog = Watir::Dialog.new
 dialog.exists?
 dialog.button(dialog_text).click


any ideas?




Dara Lillis * Testing - Team Lead * SunGard * Kiodex * 628 Broadway,
Suite 501, New York, NY 10012
Tel 646-437-2627 * Fax 646-437-3910 * http://www.sungard.com/Kiodex

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

Re: [Wtr-general] Grouping Test Cases

2006-11-13 Thread Lillis, Dara
I figured this out...after a colleague pointed me at Andy Sipe's blog:

http://zbarzone.blogspot.com/2006/04/getting-xml-test-results-from-rails
_06.html

the relevant code I needed to add:

require 'test/unit/collector/objectspace'

#replace class def for the suite with one line
suite = Test::Unit::Collector::ObjectSpace.new().collect()

#generate the output
Test::Unit::UI::Reporter.run(suite, 'C:/TestOutput/Sample')
 
Thanks to Andy!

-Dara

-Original Message-
From: Lillis, Dara 
Sent: Monday, November 13, 2006 2:01 PM
To: 'wtr-general@rubyforge.org'
Subject: RE: [Wtr-general] Grouping Test Cases

[resurrecting an old thread]

the code Chris supplies below is useful in that I can use it to run all
tests in a given directory.

I've been struggling with how to package these tests into suites so I
can produce output with Test::Unit::Reporter

That is, I want to replace code like this with something more general:

require 'test/unit/ui/console/testrunner'
require 'test/unit/ui/reporter'

require 'TC_TestCase'

class TS_Suite
  def self.suite
suite = Test::Unit::TestSuite.new('A Test Suite')
  suite  TC_TestCase.suite
return suite
  end
end

Test::Unit::UI::Reporter.run(TS_Suite, 'C:/TestOutput/Sample')

Any ideas?


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Chris McMahon
Sent: Wednesday, May 24, 2006 12:51 PM
To: wtr-general@rubyforge.org
Subject: Re: [Wtr-general] Grouping Test Cases

On 5/24/06, Adrian Rutter [EMAIL PROTECTED] wrote:

 Could anyone tell me how they are grouping test cases and running 
 suites within Watir?


#run_suite.rb
topdir = File.join(File.dirname(__FILE__)) Dir.chdir topdir do
  tests = Dir[test*]
  tests.each{|x| require x}
end

___
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


Re: [Wtr-general] modal dialogs in IE 7.0

2006-11-08 Thread Lillis, Dara
[sorry for the long delay, I cleverly sent the last email just before
going on vacation]

I am using dialog rather than winClicker, but it was fairly obvious from
your example what change I needed to make. line 32 of watir\dialog.rb

OLD
 unless name_pattern =~ autoit.WinGetText(Microsoft Internet Explorer,
)

NEW
 unless name_pattern =~ autoit.WinGetText(Windows Internet Explorer,
)

My code works now. I would assume that to be correctly updated for IE
7.0 all instances of Microsoft Internet Explorer in dialog.rb (there
are 4) should be updated to read Windows Internet Explorer, but it
works if you only change the one I mention above.

Thanks,

-Dara


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Cain, Mark
Sent: Thursday, October 26, 2006 10:02 AM
To: wtr-general@rubyforge.org
Subject: Re: [Wtr-general] modal dialogs in IE 7.0

Dara, I had the same problem, when I started using IE7 a few months ago,
and I am pretty sure I know exactly what is wrong.  MS changed the
popups title bar text in IE7 from 'Microsoft Internet Explorer' to
'Windows Internet Explorer'.  So in watir\WinCLicker.rb you will need to
change lines 113 and 144:

OLD:
clickWindowsButton(Microsoft Internet Explorer , button )

NEW:
clickWindowsButton(Windows Internet Explorer , button )

Hope this helps,

--Mark

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Lillis, Dara
Sent: Thursday, October 26, 2006 12:48 AM
To: wtr-general@rubyforge.org
Subject: [Wtr-general] modal dialogs in IE 7.0

I'm testing IE 7.0. I have run into one problem with modal dialogs. A
test that runs fine in IE 6.0, clicking on a modal dialog, hangs in IE
7.0.

Here's the offending code:

browser.link(:text, 'DELETE').click_no_wait
dialog = Watir::Dialog.new
dialog.exists?
dialog.button('ok').click
browser.wait

Sorry but I don't have html to post, the html is extremely complex and I
can't figure out a simple example.

This code works fine with IE 6.0, just hangs (no error message or
anything) with IE 7.0

Anyone run into this, or got suggestions?

Thanks,

-Dara
___
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
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


Re: [Wtr-general] modal dialogs in IE 7.0

2006-11-08 Thread Lillis, Dara
already done:
http://jira.openqa.org/browse/WTR-115


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Charley Baker
Sent: Wednesday, November 08, 2006 4:09 PM
To: wtr-general@rubyforge.org
Subject: Re: [Wtr-general] modal dialogs in IE 7.0

Hi Dara,

  Could you make sure to add this to the defect list in Jira so that we
can keep track of it? http://jira.openqa.org/browse/WTR

Thanks,
Charley

On 11/8/06, Lillis, Dara [EMAIL PROTECTED] wrote:
 [sorry for the long delay, I cleverly sent the last email just before 
 going on vacation]

 I am using dialog rather than winClicker, but it was fairly obvious 
 from your example what change I needed to make. line 32 of 
 watir\dialog.rb

 OLD
  unless name_pattern =~ autoit.WinGetText(Microsoft Internet 
 Explorer,
 )

 NEW
  unless name_pattern =~ autoit.WinGetText(Windows Internet Explorer,
 )

 My code works now. I would assume that to be correctly updated for IE 
 7.0 all instances of Microsoft Internet Explorer in dialog.rb (there

 are 4) should be updated to read Windows Internet Explorer, but it 
 works if you only change the one I mention above.

 Thanks,

 -Dara


 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On Behalf Of Cain, Mark
 Sent: Thursday, October 26, 2006 10:02 AM
 To: wtr-general@rubyforge.org
 Subject: Re: [Wtr-general] modal dialogs in IE 7.0

 Dara, I had the same problem, when I started using IE7 a few months 
 ago, and I am pretty sure I know exactly what is wrong.  MS changed 
 the popups title bar text in IE7 from 'Microsoft Internet Explorer' to

 'Windows Internet Explorer'.  So in watir\WinCLicker.rb you will need 
 to change lines 113 and 144:

 OLD:
 clickWindowsButton(Microsoft Internet Explorer , button )

 NEW:
 clickWindowsButton(Windows Internet Explorer , button )

 Hope this helps,

 --Mark

 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On Behalf Of Lillis, Dara
 Sent: Thursday, October 26, 2006 12:48 AM
 To: wtr-general@rubyforge.org
 Subject: [Wtr-general] modal dialogs in IE 7.0

 I'm testing IE 7.0. I have run into one problem with modal dialogs. A 
 test that runs fine in IE 6.0, clicking on a modal dialog, hangs in IE

 7.0.

 Here's the offending code:

 browser.link(:text, 'DELETE').click_no_wait
 dialog = Watir::Dialog.new
 dialog.exists?
 dialog.button('ok').click
 browser.wait

 Sorry but I don't have html to post, the html is extremely complex and

 I can't figure out a simple example.

 This code works fine with IE 6.0, just hangs (no error message or
 anything) with IE 7.0

 Anyone run into this, or got suggestions?

 Thanks,

 -Dara
 ___
 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
 ___
 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
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


[Wtr-general] Modal Dialogs via Remote Desktop on Win XP

2006-08-24 Thread Lillis, Dara
I run my Watir tests on remote pc's. I would like to manage the remote
pc's using Remote Desktop, but encounter the following problem:

When running tests that click on Modal Dialogs, tests that run fine
(i.e. click successfully on modal dialogs) on my local pc and when
managing the remote pc via netmeeting, hang forever when using Remote
Destkop, at the point where the modal dialog appears.

Anyone else had this problem? Anyone got a solution?

Thanks,

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


Re: [Wtr-general] Problem: tests running in parallel

2006-08-09 Thread Lillis, Dara



try renaming the "test_the_page" method to something that 
doesn't begin with "test_", you are probably causing confusion for 
Test::Unit


From: [EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED] On Behalf Of Jamie 
CzuySent: Monday, August 07, 2006 11:03 PMTo: 
wtr-general@rubyforge.orgSubject: [Wtr-general] Problem: tests 
running in parallel


I have test code like the 
following:

 def 
test_datapage
 
login
 
test_the_page
 
end

where login and test_the_page are 
other methods in the TestCase class. When I run this it seems the login method 
and the test_the_page method are run in parallel. I cannot figure out how to 
make the test_the_page method wait for the login method to 
finish.

BTW I am a beginner to both Ruby and 
Watir.
Thanks in 
advance,
Jamie



CONFIDENTIALITY: This email (including any attachments) may contain confidential, proprietary and privileged information, and unauthorized disclosure or use is prohibited. If you received this email in error, please notify the sender and delete this email from your system. Thank you.   
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] Drop Down Lists (li)

2006-06-14 Thread Lillis, Dara



this html doesn't look like a drop down list, it looks like 
a bunch of straightforward links (to me at least). maybe your html is 
incomplete?

if you're really dealing with a drop-down list, I'm 
guessing you're dealing with what watir calls select lists

http://wtr.rubyforge.org/rdoc/classes/Watir/SelectList.html


From: [EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED] On Behalf Of Andy 
CaseSent: Tuesday, June 13, 2006 10:21 PMTo: 
wtr-general@rubyforge.orgSubject: [Wtr-general] Drop Down Lists 
(li)


I am new to 
WATIR/RUBY and have run into difficulty with a drop down list, example HTML 
below.
The example 
documentation doesn't seem to cover this.

Can anyone suggest 
how I would use WATIR to select the drop down options?

 div 
id="nav1" a 
name="nav1"/a ul id="udm" 
class="udm" 
li a 
class="nohref"Registration/a 
ul 
style="width:190%" 
lia style="white-space:nowrap" 
href=""List Learning 
Accounts/a/li 
lia style="white-space:nowrap" 
href=""Search Learning 
Accounts/a/li 
lia style="white-space:nowrap" 
href=""Register Individual 
Learner/a/li 
lia style="white-space:nowrap" 
href=""Register Multiple 
Learners/a/li 
lia style="white-space:nowrap" 
href=""Enrol Individual 
Learner/a/li 
lia style="white-space:nowrap" 
href=""Manage Multiple 
ILOs/a/li 
/ul 
/li 
li a 
class="nohref"Banking of 
Credits/a 
ul 
style="width:135%" 
lia style="white-space:nowrap" 
href=""List Learning 
Accounts/a/li 
lia style="white-space:nowrap" 
href=""Search Learning 
Accounts/a/li 
lia style="white-space:nowrap" 
href=""Manage 
Courses/a/li 
/ul 
/li
cheers
Andy~~
This email (including any attached files) is for the intended 
recipient(s) only. If you received this email by mistake, please, 
as a courtesy, tell the sender, then delete this email.

The views and opinions are the originator's and do not necessarily 
reflect those of the Queensland Studies Authority. All reasonable 
precautions have been taken to ensure that this email contained no 
viruses at the time it was sent.
CONFIDENTIALITY: This email (including any attachments) may contain confidential, proprietary and privileged information, and unauthorized disclosure or use is prohibited. If you received this email in error, please notify the sender and delete this email from your system. Thank you.   
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] RPC Server unavailable

2006-06-09 Thread Lillis, Dara




Sorry,beenmeaningtoreplyonthis, 
I don't think this method 
exists in my version of watir (1.5.1.1017)
attempting to call the method results in 
"undefined method `persist_ole_connection' for 
#Watir::IE:0x2a9a520 (NoMethodError)"
A search on the 
contents of all files in my "c:\ruby" directory returned no instances of 
"persist_ole_connection"
I solved my 
problem by adding "sleep 2" before calling IE.new. I don't open new IE 
windows so frequently during testing that this is a performance problem for 
me.


From: [EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED] On Behalf Of Bret 
PettichordSent: Thursday, June 01, 2006 12:10 PM

"1. Add time delays between the ie.close 
  and ie.new or ie.start. This will give a 
  chance for the ie.close to really close. 2. 
  Don't close IE -- just reuse the existing client between tests. 
  3. Create an additional IE. As long as this lives, 
  the IE server will continue to live and you 
  can close and create IE windows without worry. 

  
  Good question.Option 3 was causing problems when it was enabled 
  by default, so i turned it off. You can turn it back on with  
  Watir::IE.persist_ole_connection = trueThis is 
an as yet undocumented feature.Please let us know whether this helps. Or 
whether it creates other problems. I wish i remember the exact problems that 
lead me to turn it off. BretCONFIDENTIALITY: This email (including any attachments) may contain confidential, proprietary and privileged information, and unauthorized disclosure or use is prohibited. If you received this email in error, please notify the sender and delete this email from your system. Thank you.   
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] RPC Server unavailable

2006-06-09 Thread Lillis, Dara



I 
actually had tried IE.persist_ole_connection = true as well.

it didn't work either. Slightly different error 
message, but the same general idea:

"undefined method `persist_ole_connection=' for 
Watir::IE:Class (NoMethodError)"

here is the code I ran to generate the 
above error message:

require_gem 'watir', 
"1.5.1.1017"include WatirIE.persist_ole_connection = 
true

is there another require 
required?


 From: [EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED] On Behalf Of Bret 
PettichordThis is a class method, not an 
instance method. So you DON'T do: ie = IE.new 
ie.persist_ole_connection = true But rather 
IE.persist_ole_connection = trueIf you search for "def 
self.persist_ole_connection" you should find it in your version of 
watir.


  
  
  
  I solved my problem by adding 
  "sleep 2" before calling IE.new. I don't open new IE windows so frequently 
  during testing that this is a performance problem for 
  me.
That works too. On my main development machine, it takes 90 seconds to 
start a new IE window after all of them have closed, whether i start it with 
Watir or manually. It's otherwise a fast machine. So i just make sure i never 
close that last IE window. CONFIDENTIALITY: This email (including any attachments) may contain confidential, proprietary and privileged information, and unauthorized disclosure or use is prohibited. If you received this email in error, please notify the sender and delete this email from your system. Thank you.   
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] Test::Unit Reports?

2006-06-08 Thread Lillis, Dara
two obvious problems: 

you need to require reporter:
require 'test/unit/ui/reporter' 

and you should require (and add to the suite) the class TC_1, not the
test method tc_1

as an aside, you can create your directory without requiring fileutils
using this single line:
Dir.mkdir('build/report')

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Adrian Rutter
Sent: Thursday, June 08, 2006 10:33 AM
To: wtr-general@rubyforge.org
Subject: Re: [Wtr-general] Test::Unit Reports?


Hi,

Please forgive my ignorance of unit test suites

I have successfully installed Test::Unit::Reporter in my Ruby folder

 ruby setup.rb config
 ruby setup.rb install

I have created two unit tests that are exactly the same apart from their
class and method name class TC_1  def test_tc_1 class TC_2  def
test_tc_2

require 'test/unit'

class TC_1  Test::Unit::TestCase
def test_tc_1
  start_browser('http://gbahevm07l15:9081/wps/portal')
  assert($ie.contains_text('Welcome'))
  $ie.close
end

end


This is an attempt to create a unit test suite

require 'test/unit'
require 'tc_1'
require 'tc_2'

 class TS_MyTests
  suite = Test::Unit::TestSuite.new

   suite  tc_1.suite
   suite  tc_2.suite

   require 'fileutils'
   FileUtils.mkdir_p 'build/report'
   Test::Unit::UI::Reporter.run(suite, 'build/report')  end

 The errors I am receiving are:

 undefined local variable or method `tc_1' for TS_MyTests:Class
(NameError)
 uninitialized constant Test::Unit::UI::Reporter (NameError)

 Can anyone please point me in the right direction?

 Thank You
 Aidy




---
This message and any attachment are confidential and may be privileged
or otherwise protected from disclosure. 
If you are not the intended recipient, please telephone or email the
sender and delete this message and any attachment from your system.  
If you are not the intended recipient you must not copy this message or
attachment or disclose the contents to any other person.

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


Re: [Wtr-general] Test::Unit Reports?

2006-06-08 Thread Lillis, Dara
oops, forgot to mention you also need this require:

require 'test/unit/ui/console/testrunner' 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Lillis, Dara
Sent: Thursday, June 08, 2006 10:51 AM
To: wtr-general@rubyforge.org
Subject: Re: [Wtr-general] Test::Unit Reports?

two obvious problems: 

you need to require reporter:
require 'test/unit/ui/reporter' 

and you should require (and add to the suite) the class TC_1, not the
test method tc_1

as an aside, you can create your directory without requiring fileutils
using this single line:
Dir.mkdir('build/report')

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Adrian Rutter
Sent: Thursday, June 08, 2006 10:33 AM
To: wtr-general@rubyforge.org
Subject: Re: [Wtr-general] Test::Unit Reports?


Hi,

Please forgive my ignorance of unit test suites

I have successfully installed Test::Unit::Reporter in my Ruby folder

 ruby setup.rb config
 ruby setup.rb install

I have created two unit tests that are exactly the same apart from their
class and method name class TC_1  def test_tc_1 class TC_2  def
test_tc_2

require 'test/unit'

class TC_1  Test::Unit::TestCase
def test_tc_1
  start_browser('http://gbahevm07l15:9081/wps/portal')
  assert($ie.contains_text('Welcome'))
  $ie.close
end

end


This is an attempt to create a unit test suite

require 'test/unit'
require 'tc_1'
require 'tc_2'

 class TS_MyTests
  suite = Test::Unit::TestSuite.new

   suite  tc_1.suite
   suite  tc_2.suite

   require 'fileutils'
   FileUtils.mkdir_p 'build/report'
   Test::Unit::UI::Reporter.run(suite, 'build/report')  end

 The errors I am receiving are:

 undefined local variable or method `tc_1' for TS_MyTests:Class
(NameError)
 uninitialized constant Test::Unit::UI::Reporter (NameError)

 Can anyone please point me in the right direction?

 Thank You
 Aidy




---
This message and any attachment are confidential and may be privileged
or otherwise protected from disclosure. 
If you are not the intended recipient, please telephone or email the
sender and delete this message and any attachment from your system.  
If you are not the intended recipient you must not copy this message or
attachment or disclose the contents to any other person.

---
___
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
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


Re: [Wtr-general] Automation annoyingness

2006-06-07 Thread Lillis, Dara
This is not an unusually complex problem. Testing real web applications,
you are likely to run into many similar (and more difficult) issues.

Is your wait hack a simple wait (i.e. a specified number of seconds)
or does it have some logic to it?

Below is a simple example of a wait that will wait as long as it takes
for the link to appear (polling every half second). If you're looking
for something more elegant than this, I'm not sure what you want. You
could take the logic below and make a method out of it (say
click_wait_for_text). That is what I would do if I needed to do this a
lot.

require 'Watir'
include Watir

$ie=IE.new
$ie.methods
$ie.goto(http://www.quinert.com/test.html;)
$ie.link(:text,First).click

while not ($ie.link(:text,Second).exists?)
  sleep 0.5
end

$ie.link(:text,Second).click 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Jared Quinert
Sent: Wednesday, June 07, 2006 6:14 AM
To: wtr-general@rubyforge.org; [EMAIL PROTECTED]
Subject: [Wtr-general] Automation annoyingness

I have an issue which I suspect can only be solved elegantly by getting
our dev team to make some changes to our application.  I suspect that
the issue I'm having would be a general one with *any* tool attempting
to automate a browser (hence my crossposting).

The issue is that there is javascript attached to the 'next page' link.

This script takes some time to run before advancing to the next page.  
Watir sensibly waits for IE to not be busy after a control is clicked,
however, because the script is running, it looks like IE is not busy.  
As a result, the script clicks on the link, then immediately checks for
the elements on the next page.  They're not there, but Watir is tricked
into progressing because IE is not loading a page.

You can see the issue by running the script below.  I naively assumed
that my script would click the link to proceed then wait until the next
page had loaded.

My question is, is this a problem that is encountered frequently?  I can
imagine a few solutions -

- Have the javascript set some visible state indicator on the webpage so
that my script can wait for the state indicator to change.
- Similarly, just poll until the next page appears to be loaded, or
- Have the javascript somehow put IE into a busy/loading state
immediately.  Does anyone know if this is possible?
- Add a wait into my script, or into the click method of links (which is
my current hack).

Would love to hear suggestions.  It seems an interesting problem, and I
am sure someone else must have encountered something similar (in Watir
or some other automation effort). 

I also don't think this is something that we might reasonably expect
Watir to handle automatically, but am happy to be corrected.

Jared


require 'Watir'
include Watir

$ie=IE.new
$ie.methods
$ie.goto(http://www.quinert.com/test.html;)
$ie.link(:text,First).click
$ie.link(:text,Second).click
___
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


Re: [Wtr-general] Proposal for supporting multiple attributes

2006-06-07 Thread Lillis, Dara



Disclaimer: I am not familiar with the background 
discussions so please let me know if I'm completely missing the point. 
but...

it would make sense to me to aim to have everything default 
to 0-based indexing. Ruby has 0-based indexing (for arrays at least). 
I forget enough things already,so I'd prefer to not have to remember when 
I need to use which indexing.



From: [EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED] On Behalf Of Bret 
PettichordSent: Wednesday, June 07, 2006 10:57 AMTo: 
wtr-general@rubyforge.orgSubject: Re: [Wtr-general] Proposal for 
supporting multiple attributes
On 6/7/06, Zeljko Filipin [EMAIL PROTECTED] wrote:


  Are you going to make :index 0 based? I remember there was a discussion 
  about it. 
I think it would be nice to offer the option of 0 or 1 based indexing. 
The 1 based indexing is particularly awkward when working with tables. But i 
have no immediate plans to do this. Comments? CONFIDENTIALITY: This email (including any attachments) may contain confidential, proprietary and privileged information, and unauthorized disclosure or use is prohibited. If you received this email in error, please notify the sender and delete this email from your system. Thank you.   
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] Test::Unit Reports?

2006-06-07 Thread Lillis, Dara
Indeed there is. Reporter

http://rubyforge.org/projects/test-report/ 

Gives you junit-like output.

I think you need to require 'stringio' for it to work, but aside from
that it's pretty straightforwad.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Adrian Rutter
Sent: Wednesday, June 07, 2006 12:24 PM
To: wtr-general@rubyforge.org
Subject: [Wtr-general] Test::Unit Reports?


Hi,

Is there anything about that sits on top of Test::Unit to produce - for
example - html reports, or would it be better to log to XML, then XSLT
it?

Thank You

Aidy




---
This message and any attachment are confidential and may be privileged
or otherwise protected from disclosure. 
If you are not the intended recipient, please telephone or email the
sender and delete this message and any attachment from your system.  
If you are not the intended recipient you must not copy this message or
attachment or disclose the contents to any other person.

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


[Wtr-general] RPC Server unavailable

2006-06-01 Thread Lillis, Dara
Title: RPC Server unavailable






Yesterday I spent a bunch of time getting my watir and ruby versions synchronized on the various machines I use for developing and running tests. I am now using:

Ruby 1.8.2-15 Stable Release

watir-1.5.1.1017 


Is this the right (or at least a good) Ruby version to use with the latest Watir? I scoured watir.com and the wiki for recommendations on this but couldn't find any.

Anway, I am now receiving the RPC Server unavailable message intermittently when running tests. I found an old discussion on this (http://rubyforge.org/pipermail/wtr-general/2006-January/004634.html) where Bret recommends:

1. Add time delays between the ie.close and ie.new or ie.start. This will

give a chance for the ie.close to really close.

2. Don't close IE -- just reuse the existing client between tests.

3. Create an additional IE. As long as this lives, the IE server will

continue to live and you can close and create IE windows without worry.


I presume you are using Watir 1.4. The watir library in HEAD uses option 3

to avoid this problem.


Am I seeing a different problem since I'm using watir-1.5? Or is it the same thing? If it is the same thing, how do I do #3?

Dara Lillis  Software Testing  SunGard  Kiodex  628 Broadway, Suite 501, New York, NY 10012
Tel 646-437-2627  Fax 646-437-3910  http://www.sungard.com/Kiodex



CONFIDENTIALITY: This email (including any attachments) may contain confidential, proprietary and privileged information, and unauthorized disclosure or use is prohibited. If you received this email in error, please notify the sender and delete this email from your system. Thank you.   
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] [question] Javascript security alert popup?

2006-05-23 Thread Lillis, Dara
The code below worked for me when I needed to deal with that.

Another option (potentially, depending on your setup) is to install the
ssl certificate for the secure site.

To do that, manually navigate to https://mysite and when you get the
security popup, click view certificate and follow the steps to install
the certificate. Future visits to the secure site should not then prompt
you with the security popup. You would need to install the certificate
for each client machine that runs your tests.

here's the code:

require 'watir/WindowHelper'

require 'watir'
include Watir

  ie = IE.new

  a = Thread.new {
ie.goto(https://mysite)
 }
  b = Thread.new {
helper = WindowHelper.new
helper.push_security_alert_yes
  }
  a.join
  b.join


  
 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Gavazn Vahshi
Sent: Tuesday, May 23, 2006 1:32 PM
To: wtr-general@rubyforge.org
Subject: [Wtr-general] [question] Javascript security alert popup?

Hello everyone,

What's the best approach to deal with javascript security alert popups?
Is autoit a good choice?

I get the popup when I try http://mysite and the link is forwarded to
https://mysite waiting for user confirmation.

I'm kind of new to this, but I did go through a few months of threads
and was not able to find a solution in autoit.

Thanks,
  -G

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.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


Re: [Wtr-general] need help with radio button

2006-05-18 Thread Lillis, Dara
can you tell us what happens? (that is, elaborate on not working)

do you get an error message/exception?

I have encountered radio buttons where I needed to use radio.focus
rather than radio.set to get them to work correctly, but I can't tell if
that is the same problem you're having. might be worth a try...


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Jassi Akkal
Sent: Thursday, May 18, 2006 2:28 PM
To: Wtr-general@rubyforge.org
Subject: [Wtr-general] need help with radio button

Hi,

I am very new to the watir and i have been struggling with not being
able to select the radio button. My HTML code is listed below


 
input type=radio
name=selectionids
value='8bf19f48-9462-4285-90ef-241f4fd5f7f7'

I used ie.radio(:name,
selectionids,'8bf19f48-9462-4285-90ef-241f4fd5f7f7').set,
but it is not working for me.

I will appreciate any help.

Thanks

Jassi Akkal


jassi akkal
[EMAIL PROTECTED]

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.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


Re: [Wtr-general] [question] How to click two buttons that are not buttons...

2006-05-18 Thread Lillis, Dara
Title: [Wtr-general] need help with radio button



here is one way:

ie.link(:text,'Acepto').click
ie.link(:text, 'No Acepto').click


From: [EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED] On Behalf Of Rodrigo Julian 
MartinSent: Thursday, May 18, 2006 2:51 PMTo: 
wtr-general@rubyforge.orgSubject: [question] How to click two buttons 
that are not buttons...


Hello Everybody, i'm trying to click two buttons that are not 
regular buttons...

This is the code for them:

  tr
td
  table border="0" cellpadding="0" cellspacing="2"
tbodytr width="90"
  td align="center" bgcolor="#110a7c" nowrap="nowrap" valign="center"
div class="but" onmousedown='this.className="butdwn"' onmouseout='this.className="but"' onmouseup='this.className="but"'a href="_javascript_:window.document.frmAdult.submit();" class="buttxt" onmousedown='this.className="buttxt"' onmouseout='this.className="buttxt"' onmouseup='this.className="buttxt"' font color="#ff"Acepto/font /a/div
  /td
/tr
  /tbody/table
/td
td
  table border="0" cellpadding="0" cellspacing="2"
tbodytr width="90"
  td align="center" bgcolor="#110a7c" nowrap="nowrap" valign="center"
div class="but" onmousedown='this.className="butdwn"' onmouseout='this.className="but"' onmouseup='this.className="but"'a href="http://www.mercadolibre.com.ar/" class="buttxt" onmousedown='this.className="buttxt"' onmouseout='this.className="buttxt"' onmouseup='this.className="buttxt"' No Acepto /a/div
  /td
/tr
  /tbody/table
/td
  /tr
Any help would be really appreciated!

Thanks in advance
Rodrigo Julian Martin
CONFIDENTIALITY: This email (including any attachments) may contain confidential, proprietary and privileged information, and unauthorized disclosure or use is prohibited. If you received this email in error, please notify the sender and delete this email from your system. Thank you.   
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] need help with radio button

2006-05-18 Thread Lillis, Dara
are you sure you're using the name attribute?

the ruby code you include in your first message says you're using
ie.radio(:name, ... but the exception suggests you are using
ie.radio(:id, ...

I can't see anything else obvious.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Jassi Akkal
Sent: Thursday, May 18, 2006 3:39 PM
To: wtr-general@rubyforge.org
Subject: Re: [Wtr-general] need help with radio button

I get following exception
c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:1928:in
`assert_exists': Unable to locat
e object, using id and selectionids
(Watir::Exception::UnknownObjectException)
from
c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:3145:in `set'
from C:/SmokeTest/login_test.rb:31

I also tried radio.focus but it did not worked.

Thanks

Jassi Akkal


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


Re: [Wtr-general] How do I set the end of a string to a variable?

2006-05-16 Thread Lillis, Dara



I think what you want is String.split
This splits a string into an array based on a delimeter (in 
your case, a comma followed by a space)

here is a simple example:

text = 'Good morning, Jamaican Bobsled Team'split_array 
= text.split(', ')name = split_array[1]puts name


From: [EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED] On Behalf Of Paul 
CarvalhoSent: Tuesday, May 16, 2006 2:07 PMTo: 
wtr-general@rubyforge.orgSubject: [Wtr-general] How do I set the end 
of a string to a variable?
Okay. I know that I should know this, but knowing that doesn't 
mean that I know it. arrrg. This is a Ruby string manipulation question, 
not really a Watir question.I have this label on a web page - we'll call 
it PageHeadingLabel - and the contents change based on selected user. I 
need to know how to capture the *last* part of that string to a variable. 
Here's the code that calls up the text: 
$main_frame.span(:id, /PageHeadingLabel/).textAnd the output is 
something like: "Good Morning, user name"e.g. "Good Morning, Bob" or 
"Good Morning, Jamaican Bobsled Team" or whatever. I *need* to capture 
the user name to a variable (let's call it 'user_name')- I have 
looked through all the String class methods, but I haven't found anything 
straightforward that will help me output the last part of a random-length 
string. I managed to get the Element Reference [] to spit out what I need 
but it's kind of gross-looking (mostly because I don't want to work with 
intermediate variables). I browsed through the Regular _expression_ stuff, 
but I still haven't had a chance to read up on it. My amateur re commands 
keep returning true, false, nil, etc. but not actual strings.Does anyone 
know of a simple way to set a variable to something like this:  
user_name = $main_frame.span(:id, /PageHeadingLabel/).text (from ', ' to the 
end)?help. please.
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general