Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Testing field visibility based on checkbox selection
#1
Not Solved
I have a page which will make input fields visible/invisible depending on the user type selected using checkboxes.

We currently have 13 different user types to select from and up to 12 fields for each user type.

In a nutshell, I would like to:
- Select user type A
- ensure all fields are present for that user
- Deselect user type A and select user type B.

I'm relatively new to QTP, so i'm looking for the best way to approach this problem. Should I use data tables, creating a column for each user type with field names in each corresponding row ?

Any help would be greatly appreciated, some code examples would be great.
Reply
#2
Not Solved
Hi,

It would be better if u use datasheet or separate .xls file which will handle all the different combinations required for ur application because in future if some changes come then it would be easier for u to handle the changes.But please code in such a way that if any extra field is added for a particular user then it should be handled in datasheet only not in ur code .,, ur code must be so generic.

Regards,
Sankalp
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Windows Application Custom Combo box selection change event not firing in uft RamUFT 0 959 02-06-2020, 08:10 AM
Last Post: RamUFT
  Help with Select checkbox from data table value jayraocourts 0 1,244 11-01-2019, 10:25 PM
Last Post: jayraocourts
Sad Click checkbox using its label name. venkatesh9032 1 3,182 08-10-2015, 10:33 PM
Last Post: kotaramamohana
  Childobject return wrong checkbox count.. VpnQTP 1 2,846 04-09-2015, 09:07 PM
Last Post: babu123
  How to select dynamic checkbox from web dropdown QA_Newbie 2 4,670 07-20-2014, 09:40 PM
Last Post: QA_Newbie

Forum Jump:


Users browsing this thread: 1 Guest(s)