WinRunner: How to Change physical description?

WinRunner: How to Change physical description?

[problem: the application containes defferent objects , But the location property is different/changing. 

Suppose for example : there is one html table and it contains objects and it\'s phisical properties,

for one object.

{

class : object,

MSW_class: html_text_link,

html_name: \"View/Edit\"

location:0

}

and for other objects.

{

class: object,

MSW_class: html_text_link,

html_name: \"View/Edit\"

location : 1

}

When record the scripts its gives viwe/edit as logical name,

Code : web_image_click(\"view/edit\", 11, 7);

When run the script win runner cannot identifies which object to click and it gives an error Msg.

P.S. WinRunner 7.5 with Java and web addins on Windows XP operating system and IE 6.0 browser(SP2).

Answer1 :

In dynamically changing the name of the html_table, we have to interchange the physical description. while recording the clicked name inside the table will be the name of the html_table in GUI Map. Change the logical name alone in GUI map. then in coding using the methods in gui_ get the logical name of this html_table.get its physical description.delete the Object thru coding from the Gui map.Then with the logical name and physical description we got previously , add these description using Gui_add methods.

Answer2 :

Just change the logical names to unique names.

winrunner will recognize each object separately using the physical name and the location property.

An

ode> = 0;

web_link_click(\"{ class: object, MSW_class: html_text_link, html_name: \"View/Edit\", location:\" & i & \"}\";

i = 1;

web_link_click(\"{ class: object, MSW_class: html_text_link, html_name: \"View/Eocation; i & \"}\";

[problem: the application containes defferent objects , But the location property is different/changing. Suppose for example : there is one html table and it contains objects and it\'s phisical properties,for one object.{class : object,MSW_class: html_text_link,html_name: \"View/Edit\"location:0}and for other objects.{class: object,MSW_class: html_text_link,html_name: \"View/Edit\"location : 1}When record the scripts its gives viwe/edit as logical name,Code : web_image_click(\"view/edit\", 11, 7);When run the script win runner cannot identifies which object to click and it gives an error Msg.P.S. WinRunner 7.5 with Java and web addins on Windows XP operating system and IE 6.0 browser(SP2).Answer1 :In dynamically changing the name of the html_table, we have to interchange the physical description. while recording the clicked name inside the table will be the name of the html_table in GUI Map. Change the logical name alone in GUI map. then in coding using the methods in gui_ get the logical name of this html_table.get its physical description.delete the Object thru coding from the Gui map.Then with the logical name and physical description we got previously , add these description using Gui_add methods.Answer2 :Just change the logical names to unique names.winrunner will recognize each object separately using the physical name and the location property.Answer3 :i = 0;web_link_click(\"{ class: object, MSW_class: html_text_link, html_name: \"View/Edit\", location:\" & i & \"}\";i = 1;web_link_click(\"{ class: object, MSW_class: html_text_link, html_name: \"View/Edit\", location:\" & i & \"}\";

By:UMANG
Date:2002-02-09 00:00:00

Post Your Answers


User Email:

User Name:
Answers:

Related TESTING Subjective Links

TESTING Subjective interview questions and answers for experienced and fresher