In QTP whether is it possible to call a function from one
action to another action?
Answer Posted / sandeep
Do more simple thing.
Store any function in any .vbs file.
Either link that .vbs file as a Resouce to QTP.
Or
Dynamically link .vbs file with QTP usign
ExecuteFile <file path >
Once either of the step is done then you can call any
function stored in .vbs file
| Is This Answer Correct ? | 2 Yes | 2 No |
Post New Answer View All Answers
How to run an integrated test scenario using Multiple Actions? How to use the QTP Step Generator?
Have you faced any problems with object repository?
In qtp, how you can use xpath to identify objects?
what is the difference between modular framework & datadriven framework
How to execute a winrunner script in quicktest professional?
Can an action have 2 shared object repositories associated with them? In that case, if two of them contain the same object, which one will be considered?
how to evalute defects in QTP script?
i am looking job in perfomance testing using Loadrunner any one help me a project plz......?(Chandana) chs_29@rediffmail.com
when I try to run below script in QTP "totalPages" value is 2. But i am getting error message (Type mismatch: 'totalPages' Line (): "For i=1 to totalPages".) totalPages=Browser("Name:=User").Page("Title:=User").WebElem ent("innertext:=of.*").GetROProperty("InnerText") msgbox totalPages For i=1 to totalPages rnum=Browser("Name:=User").Page("Title:=User").WebTa ble("column names:=User Name;ID;Last Name;First Name").GetRowWithCellText("store4") If rnum>0 Then r=rnum Exit for End If Browser("Name:=User").Page("Title:=User").WebElement ("html tag:=A","x:=471").Click MsgBox "Exit" Next
Mention the different actions types of qtp.
in qtp if we record a object and we record the object using virtual wizard then by which way the object is recognized that means recorded
how do we know whether all objects are stored in the object repository or not? how can we know if a particular object is not stored in the repository?
In a flight window we have to enter the name and meal request for every passenger.In that window if we give Total passengers=1 then the Psngr1 name field and psngr1 meal request field will reflects.if we give Total passengers=2 then Psngr1 name field and psngr1 meal request field,Psngr2 name field and psngr2 meal request field will reflects and so on.if total psngrs=100 then will we capture all the fields for the psngrs to Automate the app how we can handle this scenerio thru Descriptive programming?
what are the frame work models of qtp?which frame work you follow in your company?and explain it process?
What is the syntax to call one script from another?