HOW TO IMPROVE THE EFFICIENCY OF DEVELOP THE WATIR CODE

8 views
Skip to first unread message

bugs apple

unread,
Oct 4, 2008, 1:36:56 AM10/4/08
to watir-...@googlegroups.com
hi, everyone,
 
At recently days, we decided to make use of watir to implement the regession test, instead of the QTP(Quick Test Profesional, produced in HP company), which is the namest and strong bussiness automated test tool for web. Althrough the QTP bring us more benefits, we always look the future and work along with the agile script. The watir is best one choice. Comparing the Object spy tool and the object repositry and its manage in QTP, it seemed to us develop the watir code is very slowly. Especially, the developer have to spend much more time to spy the objects on page. For example, If the objects is placed in the container, such as the nested frames, the coder need to reseach into the object hierarchy and see more the object tree map via the MS UI develop tool. Obviously, it is bad thing when we meet more container and it takes more time.
 
So, i want to consult with your guys,
 
Have any soluations to improve the developing  efficiency?
 
If I provide the properties for the object like its unique name,  will the watir throw the object hierarchy and generated the script automatically?
 
Someone can share your experiences, or related technology ideas?
thanks in advance
 
-Wiston

aidy lewis

unread,
Oct 4, 2008, 6:33:28 AM10/4/08
to watir-...@googlegroups.com
Hi,

On 03/10/2008, bugs apple <appl...@gmail.com> wrote:
>
> hi, everyone,
>
> At recently days, we decided to make use of watir to implement the regession
> test, instead of the QTP(Quick Test Profesional, produced in HP company),

This is probably one of the best decisions you have made in your life.

> which is the namest and strong bussiness automated test tool for web.

No it is not: It is a heavyweight, resource hungry tool with the best
results gotten from ignoring all its 'features' and writing in pure
vbscript files
that you attach to your project.


> Althrough the QTP bring us more benefits,

Could you please explain?

>. The watir is best one choice. Comparing the
> Object spy tool and the object repositry and its manage in QTP, it seemed to
> us develop the watir code is very slowly.

Once you build up a framework with an application map, things will speed up.

> Especially, the developer have to spend much more time to spy the objects on page.

You could write some Ruby code that iterates through the objects in
your page and throws them out somewhere.
An example is here:http://wiki.openqa.org/display/WTR/RSpec+example+with+dynamic+object+repository.


Aidy

bugs apple

unread,
Oct 7, 2008, 8:28:25 AM10/7/08
to watir-...@googlegroups.com

aidy, thanks a lot.
 
 
I am very interesting in your code for learning the objects in discovery.rb, but it does not work in my machine, and it work well in firewatir.
Have you the similar method code for the IE watir  to discovery the objects on page? Or could you please provide some suggestion so that I can modify it for work.
 
 
Regards,
-Wiston
 
 

 
2008/10/4 aidy lewis <aidy....@googlemail.com>

aidy lewis

unread,
Oct 7, 2008, 10:36:39 AM10/7/08
to watir-...@googlegroups.com
On 07/10/2008, bugs apple <appl...@gmail.com> wrote:
>
> I am very interesting in your code for learning the objects in discovery.rb,
> but it does not work in my machine, and it work well in firewatir.
> Have you the similar method code for the IE watir to discovery the objects
> on page? Or could you please provide some suggestion so that I can modify it
> for work.
>

I didn't write this; I forgot who did!

But why not leave a comment here

http://90kts.com/blog/2008/just-another-framework-for-developing-watir-test-cases/
?

Aidy

bugs apple

unread,
Oct 7, 2008, 9:51:24 PM10/7/08
to watir-...@googlegroups.com
Even if I go through the JAF code, but the discoveryobject.rb still does not work in Watir Environment, maybe it was banded in FireWatir.
 
Have you any other suggestions?
 
Thanks
-Wiston.
 


 
2008/10/7 aidy lewis <aidy....@googlemail.com>

aidy lewis

unread,
Oct 8, 2008, 4:00:00 AM10/8/08
to watir-...@googlegroups.com
Hi,

On 08/10/2008, bugs apple <appl...@gmail.com> wrote:
>
> Even if I go through the JAF code, but the discoveryobject.rb still does not
> work in Watir Environment, maybe it was banded in FireWatir.
>

I will write something at weekend and put it on the wiki.

Aidy

Tim Koopmans

unread,
Oct 8, 2008, 7:40:03 AM10/8/08
to Watir General


I wrote that code on 90kts and subsequently posted on wiki. Yes it was
only written for firewatir as i wrote it on a rails camp where we had
no internet and only my macbook =) it wouldn't be too hard to convert
to watir, although doing things in a qtp like fashion didn't work out
for me. I find irb and firebug much more quicker to develop scripts
with ... Good luck with it!

Regards,
Tim Koopmans


On Oct 8, 1:36 am, "aidy lewis" <aidy.le...@googlemail.com> wrote:
> http://90kts.com/blog/2008/just-another-framework-for-developing-wati...
> ?
>
> Aidy

bugs apple

unread,
Oct 8, 2008, 7:51:15 AM10/8/08
to watir-...@googlegroups.com
aidy, and Tim
 
I am very appreciate that.
Pls keep update for me, and inform me of the wiki URL when your article is available.
 
 
Thanks in advance.
-Wiston.
 


 
2008/10/8 Tim Koopmans <tim....@gmail.com>
Reply all
Reply to author
Forward
0 new messages