For Programmers: Free Programming Magazines  


Home > Archive > Software Testing > October 2005 > random testing using Rational Robot









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author random testing using Rational Robot
KOWAL

2005-09-21, 7:58 am

Hi
I've got to create a robot that does random operations on the website.
The website (aplication) is on BeaWeblogic and is written in Java.
It has to click on links, write some text into edit boxes and so on and
so on.

My idea is to divide all the objects from the web into groups (arrays)
like: editbox, combobox, link etc

My question is: how can I get an array that contains all the items from
the website?

please help, couse i can't find any function that does it

Thanks.

Wojciech Pajak

2005-09-21, 7:58 am

Try WATIR (http://wtr.rubyforge.org/). I use it for web applications and
it's great.


"KOWAL" <psmith@o2.pl> wrote in message
news:1127294039.191320.265780@g49g2000cwa.googlegroups.com...
> Hi
> I've got to create a robot that does random operations on the website.
> The website (aplication) is on BeaWeblogic and is written in Java.
> It has to click on links, write some text into edit boxes and so on and
> so on.
>
> My idea is to divide all the objects from the web into groups (arrays)
> like: editbox, combobox, link etc
>
> My question is: how can I get an array that contains all the items from
> the website?
>
> please help, couse i can't find any function that does it
>
> Thanks.
>



.

2005-09-23, 7:03 pm

On Wed, 21 Sep 2005, KOWAL wrote:

> Hi
> I've got to create a robot that does random operations on the website.
> The website (aplication) is on BeaWeblogic and is written in Java.
> It has to click on links, write some text into edit boxes and so on and
> so on.
>
> My idea is to divide all the objects from the web into groups (arrays)
> like: editbox, combobox, link etc
>
> My question is: how can I get an array that contains all the items from
> the website?


It has been a few years since I used Rational Robot but there is a set of
SQA Basic commands that will let you get all the information about an
object. Search the online help for GetProperty or GetProperties. Something
like that. If used correctly you should be able to get the list of all
items in say a combobox then use the random number function to pick from
the list randomly.

> please help, couse i can't find any function that does it
>
> Thanks.
>
>


--
Send e-mail to: darrell dot grainger at utoronto dot ca

2005-10-03, 7:05 pm

I think SQAGetChildren method will solve u r problem
SQAGetChildren will give u an array of all child objects
Write u r own procedure to place Editboxes,Links in seperate arrays


------------------------------------------------------------------------
IT Interview Questions : [url]http://www.ginterview.com[/url] <br> Tutorials and Articles : [url]http://www.garticles.com[/url] <br> Free Training : http://www.exforsys.com
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com