we have a link in a website or webtable How can we record
link in that table or site? link is not static we don't
know exact location of that link? how ? if u know pls give
reply with script also?

Answer Posted / naaz

Descriptive programming will solve this problem. You have
to write the property name and you can assign the dynamic
value of that property. The problem with descriptive
programming is, if you are using descriptive programming
for the top level object you have to use the descriptive
programing for the child objects also. But if you are using
it for child objects you dont neet to use for parent
objects.

Example of Descriptive Programming:
JavaWindow("title:="&Value12).Activate

here title is the Object Property. And Value12 is its
value. you can use dataTable also for the value

Example:
JavaWindow("title:="&DataTable
("Value",dtLocalSheet)).Activate

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to get Traceability matrix from TD?

663


What are the Application Functions available in QTP?

1469


What is the meaning Work bench?

1756


How to start recording using quicktest professional (qtp)?

591


What are the different recording modes?

555






Is QTP supports Unix. If yes, then how the test automation is done?

1720


Can any one send me the QTP Basic Coding Samples?

1607


I AM TRYING PORT CODE FROM WINRUNNER TO QTP AND DON'T KNOW TO HOW TO CHECK THE ERRORS. IN WINRUNNER FUNCTION RETURNS EIGHER 0 OR -1 AGAINST WHICH RESULT CAN BE MADE PASS OR FAIL BUT IN QTP I DON'T SEE FUNCTIONS RETURNING ANY VALUE. APPRECIATE IF ANYONE COULD HELP ME CONVERTING FOLLWOING WINRUNNER CODE TO QTP. set_window("Customer Service"); rc = web_obj_get_text("Summary","#2","#4",ssn,""," ",1); if (rc != E_OK) { report_msg("[GetSubscriberSummary] Could Not get subscriber SSN; rc = "&rc); myRC = rc; } else { ssn = StripBlank(ssn); if (DEBUG) report_msg ("[GetSubscriberSummary] SSN: "&ssn); }

1679


Thanks....But can u tell me how i use the QTP for GIS with one Example...

1423


What are the types of object repository?

574


What are the features and benefits of quick test pro (qtp 8.0)?

591


What we are looking for is to load properties of object dynamically as for our application the global repository will pretty huge. It will be really helpful to us if something similar to following functions of Winrunner is available in QTP. #Define descriptor auto strDesc; #set property in the descriptor Gui_desc_set_attr(strDesc,?Class?,?Edit?); --- put other properties #Add Edit box to GUI Map Gui_add(? ?,strWindowName,strEditboxName,strDesc);

3483


desribe a situation where u faced a stressful situation and how did u cope with it

1402


How can i initiate the objects to find uniquely in OR

1458


is there any addin for remedy user application

1738