Suppose there is a global variable called Counter.And there
is a user defined function called my_function.which does
not take in any parameters. How can a test engineer utilize
Counter inside my_function body?



Suppose there is a global variable called Counter.And there is a user defined function called my_f..

Answer / dibya

hi ...

U can use extern key word for that variable..
like-- extern counter ;

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More WinRunner Interview Questions

hi,i am sudha.i am married.i had done my BE in 2005.i learnt testing tools.i dont no how to tell about my self.please send me good answer about that infomation i gave.

8 Answers  


In an Interview on person asked me about WR frame work. in what way i have to explain and what is the answer?

2 Answers   Stag Computers,


When would you use 'set_window' and when would you use 'win_activate'?

0 Answers  


How do you load GUI map?

0 Answers  


What is the use of gui map?

0 Answers  


i get error "winrruner cannot identify object" and gives details like the physical description of object "windowsFor....378734a_11" has changed descritpion in GUI map new discription Description { { class:object class:object Msw_id:264896 Msw_id:918548 } } Below is a script of functionality where amount is transfered from users account ,first contact summary of user is opened then transfer button is available on which we click .on clicking transfer form opens and various details are entered like amount to be transfer,transfer type .line where i m getting error is obj_mouse_click ("WindowsForms10.Window.8.app have marked it with red in script .0.378734a", 164, 10, i would be very thankful if anyone can give help related to this problem. *SCRIPT IS BELOW:-* > # Shell_TrayWnd > set_window ("Shell_TrayWnd", 1); > toolbar_button_press ("ToolbarWindow32_1", "Contact summary - > Scheme: > SCHEME CARD PROGRAM (admin - Local - V.1.8.2.0000)"); # Button Number > 3; > > # Contact summary - Scheme: SCHEME CARD PROGRAM (admin - Local - > V.1.8.2.0000) > set_window ("Contact summary - Scheme: SCHEME CARD PROGRAM (admin - > Local - V.1.8.2.0000)", 1); > obj_mouse_click ("CommandBar1", 437, 15, LEFT); > > # Transfer (admin - Local - V.1.8.2.0000) > set_window ("Transfer (admin - Local - V.1.8.2.0000)", 1); > obj_mouse_click ("WindowsForms10.Window.8.app.0.378734a", 164, 10, > LEFT); > > # #32769 > set_window ("#32769", 0); > obj_mouse_click ("WindowsForms10.Window.8.app.0.378734a_0", 138, 9, > LEFT); > > # Transfer (admin - Local - V.1.8.2.0000) > set_window ("Transfer (admin - Local - V.1.8.2.0000)", 0); > obj_mouse_click ("WindowsForms10.Window.8.app.0.378734a_1", 166, > 13, LEFT); >

0 Answers  


How do you invoke a text file from winrunner?

6 Answers   BeBo Technologies,


How to automate testcases?what were the challanges that u had in automating win runner?

1 Answers   Wipro,


Explain the use of test director software?

0 Answers  


What is the usage of Test case Design Techniques,in Integration/System Testing?

0 Answers  


what sould come under "tell about ur self"? need tempelate

3 Answers  


Can anyone tell me the real usage of compiled modules and user defined functions stating real time example

1 Answers  


Categories