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 |
How many types of actions are there in quicktest professional?
How is recording done when a application is over lapping the QTP application it gives a message object not recorded
Give me brief idea about QTP automation object model?
how do you find the number of occurences of string QTP from the expression , " QTP+QTP=2QTP"
How can i select multiple items from a WebList bOX USING QTP
Hi, How to export the Checkpoints and Output values(Test area output values) from Object Repository to Excel
What is operator in VB Script?
Hi, My name is kishan. I have good Conceptual Knowledge on QTP. In order to Boost up my Confidence Level, I want to do a Project oriented Training only on QTP in Hyderabad. Kindly Let me know which is the Best QTP Project Training Institute in Hyderabad. Thanks in Advance kishan
how to make connection to a remote mysql database in qtp any one can please provid eme deatail steps.
Write a script to delete the a specific row (say 3rd) in a webtable.
We have 10 rows in datatable at runtime we get error at 3rd row ? what is the procedure for continuing same test from 4th row on wards?
Hi, I am new to QTP and vb.script.How to start to write vb.script in QTP? Please give me suggestions?