How do u insert an object during runtime in qtp?
Answers were Sorted based on User's Feedback
Answer / ravi
Where do you want to insert object ??
We can create object at runtime using createobject()
function in VBScript.
For ex:
Set con = createobject("ADODB.Connection")
The above statement creates connection object at runtime.
| Is This Answer Correct ? | 3 Yes | 1 No |
Answer / baji prasad ch
By Using the Flat files Parameterization we can insert
objects during runtime.
[Parameterization is the process of supplying multiple test
data. That means sometimes we are executing our test
scripts with multiple test data We can parameterize our
Test Scripts in different ways.]
VB script to retrieve values from flat files during runtime:
Set A=createobject("Scripting.filesystemobject")
Set B=A.opentextfile("C:\Documents and
Settings\baji.prasad\Desktop\baji.txt", "1",true)
While B.atendofline<>true
X=B.readline
Dialog("Gracenote® MusicID (CD)").Activate
Dialog("Gracenote® MusicID (CD)").Activate
Dialog("Gracenote® MusicID (CD)").WinEdit("TOC").Set X
Dialog("Gracenote® MusicID (CD)").WinButton("Lookup
TOC").Click
Dialog("Gracenote® MusicID (CD)").WinButton("Rip CD Tracks
and Add").Click
Wend
| Is This Answer Correct ? | 0 Yes | 1 No |
I want to check in the data table(Globalsheet) column exist or not through script .If column not exist only proceeded to next step Pls tell me how to proceeded?
Give me some scripts for 1). checking webpage links (counting links,opening web pages,counting child elements)
What is the significance of “action 0” in qtp?
diff between global variables and environment variables in qtp?
any body can you help me what is the script to automate an comand promt
Explain advantages and disadvantages of ddf?
1.what is test automation life cycle?
Hi guys pls any one send me the Qtp Licensed key of version 10.0 pls
What is Virtual Users?
i did B.Tech cse and i secured 76%. instead of siting at home ... i would like to do some course. can u suggest me in this.
Hi Friends, Im planning to do certifcation in mercury Automation Tool QTP.But I Didnt get any clear details regarding course syllabus, fees, where to approach, and which certification would be useful for the experienced testers? can any one send me the details?
In the QTP the snap shots obtained during the recording time will appear in the active screen, if we have to use the snapshots from where we have to access. in which memory location of QTP they will be stored?