Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
kilp bob pol
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How often do you switch a component's type and how long does it take to update the affected tests?
 
kilp bob pol
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 470
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 470
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you tried Selenium?
 
Ilja Preuss
author
Sheriff
Posts: 14112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Misha Ver
Ranch Hand
Posts: 470
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic