How do i relate the checkbox properties with webelement
when checkbox properties are changing on every login to the
application



How do i relate the checkbox properties with webelement when checkbox properties are changing on e..

Answer / tvs ramakrishna chowdary

we can solve this by using regular expression and setto pro
perty method
------------------------------------------------------------
1)by or
-------
1)go to or
2)select webcheckbox object
3)goto object properties pane
4)select the name property
5)in the value portion click 'configure value' buttton
6)replace constant with *.*
7)selct check box Regular expression ON
8)click ok
9)close or
10)now u run ur script

2nd way
----------
' by using setto property method we can change the property
value dynamically as follows....

newval=oh.link("linkname").getroproperty("name")
objectheirarchy.link("link name").setto
property "name","newval"

'here first we r getting dynamic changing link object
pro "name" by getro prop in to the variable...
'then we are make using that variable to set into or

Is This Answer Correct ?    3 Yes 1 No

Post New Answer

More QTP Interview Questions

how to recall a function in QTP?

3 Answers   Ordain Solutions,


Login to flight app, in window flight reservation set the date field and select flyfrom as Frankfurt and verify whether flyto list box has the item FrankFurt, log the results.

1 Answers   Cap Gemini,


how to capture data from images in QTP and produce them in excel sheet?

3 Answers  


can i change the runtime properties of an object ? How can i check if a parameter exists in database ?

0 Answers  


How you are maintaining shared object repository in your team or your project?help me plz

1 Answers   CTS,






when there is a task that gets repeated in multiple scripts what do you do in QTP?

2 Answers   Ordain Solutions,


How to differentiate the webedit field like user name and password? Please tell any other best answer is ther

3 Answers   Navis,


hai, i am doing QTP by own. So, i am confident in checkpts,synchronization, data driven test, recovery scenarioe manager etc. but actually i don't know how all these we wil implement while we r writting code manually. when we r doing practice, while recording code is automatically generated but in real time i heard that we have to write the script.But i don't know how it is? How to write descriptive prog.? plz. tel me what r the basic things we have to know? explain how to write descriptive prog.? explain me with an example pls.......

2 Answers   Vertex,


1. Pls can anyone give me the descriptive programing script to find the number of edit boxes in a login window in flights reservation (windows application only not web). 2. Using descriptive programing, how do you handle changing URLs. Pls anyone, very urgent

2 Answers   Infotech,


how can i sent QTP results to the Html, notefile ,xl file give me the code using g mail login page

0 Answers  


What are the main features we have to compulsory test by using qtp in an web based application

1 Answers  


What is the difference between a Test and a Business Component? Is it necessary to use Business Component while testing an application in the real time?

2 Answers  


Categories