Meaningless Drivel is fun!*
The moose likes Testing and the fly likes Which test automation software is able to handle change of HTML control? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Testing
Bookmark "Which test automation software is able to handle change of HTML control?" Watch "Which test automation software is able to handle change of HTML control?" New topic
Author

Which test automation software is able to handle change of HTML control?

kilp bob pol
Greenhorn

Joined: Mar 05, 2008
Posts: 5
Hi guys,

I am currently evaluating test automation software (eg canoo etc). Just a simple question :-

If the controls in my webapp html form changes, for example, from a dropdown to a radio button, is there a test program that I do not need to change the test script when that control changes ?

Currently my form switches between dropdown and radio button depending on the number of items presented to the user. The control is dynamic in this sense :- if 3 or less items, a radio button is presented, otherwise, a dropdown is presented. This is to lessen clutter on the page. Do I need to change my test script if that changes ? Or, I *have* to change the script ?

Which test automation software is able to do that ?

Thanks for the answer in advance.
[ March 05, 2008: Message edited by: kilp bob pol ]
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
How often do you switch a component's type and how long does it take to update the affected tests?


Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
kilp bob pol
Greenhorn

Joined: Mar 05, 2008
Posts: 5
Koskela, thanks for replying. Answer: Very often. Because we have many such dynamic controls, it will take a long time and very tedious if we need to change the test script every time the control type changes. In fact, we never know when it will be a radio and when it will be a dropdown as it is dynamic based on the number of items and those items are actually data from database. So, the type of UI control used changes as dynamically as the data in the database.
[ March 05, 2008: Message edited by: kilp bob pol ]
Misha Ver
Ranch Hand

Joined: Mar 03, 2008
Posts: 470
Originally posted by kilp bob pol:
In fact, we never know when it will be a radio and when it will be a dropdown as it is dynamic based on the number of items and those items are actually data from database. So, the type of UI control used changes as dynamically as the data in the database.


What do you mean by you don't know about type of control if you read data from database? Read data from database with test script if if 3 or less items call test script for radio button, otherwise for dropdown.
kilp bob pol
Greenhorn

Joined: Mar 05, 2008
Posts: 5
The test team that runs automated tests does not and should not have access to the DB. Thanks for all replies.
kilp bob pol
Greenhorn

Joined: Mar 05, 2008
Posts: 5
If there are no automated test tools of today that are able to free me from changing the test script when the HTML controls change.... I would like to know that fact too. Thanks again.
Misha Ver
Ranch Hand

Joined: Mar 03, 2008
Posts: 470
kilp bob pol, first of all I'm surprised that test team has no access to DB. As for test tool, you have to develop automation friendly web application. In your case unique names should be used for various objects, so your scripts would able to identify if dropdown or radio button present on web page.
Gavin D'mello
Greenhorn

Joined: Apr 05, 2008
Posts: 1
Have you tried Selenium?
Ilja Preuss
author
Sheriff

Joined: Jul 11, 2001
Posts: 14112
Originally posted by kilp bob pol:
The test team that runs automated tests does not and should not have access to the DB.


In fact I would argue that the test team *should* have its very own DB with test data under its control.


The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
Misha Ver
Ranch Hand

Joined: Mar 03, 2008
Posts: 470
Originally posted by Gavin D'mello:
Have you tried Selenium?


Gavin, how would Selenium help with requirement such as
we never know when it will be a radio and when it will be a dropdown
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Which test automation software is able to handle change of HTML control?