Answer Posted / 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 |
Post New Answer View All Answers
what is vmodel?advantages and disadvantages of vmodel?
How to use Environment parameterization? Explain with an example.
How many types of actions are there in quicktest professional (qtp)?
when to start the automation?
What is the difference between rational rose and QTP?
HOw to add the recovery file at runtime to the test file .
Can anyone pls tell me in realtime (descriptive programming) how will the properties of the object be given to the test team. R they given in an excel sheet and is the same sheet also given to the development team and by whom is this given? Thanks a lot.
can any one say that where we can download the QTP trail version ??????????
What are the different types of recovery operation?
In qtp, how you can exit for loop?
What is output value? How many types of output values are there in qtp?
What VBScript operators, functions, and statements do you use in QuickTest Professional?
What is the difference in testing a client-server application and a web application?
can u explain the keyword driven framework with an example clearly how to create all the files and how to attach to main test.
RECENTLY I PLACED IN QTP..HOW TO IMPROVE VB SCRIPTS KNOWLEDGE? IAM STRUGGING TO WRITE THE AUTOMATION SCRIPTS? ANY BODY TELL HOW TO IMPROVE QTP SCRIPT SKILLS?