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 the structure for the data driven framework
wht is Manual Testing Frame work. Pls anybody can give appropriate answers
QTP 10.0 is not identifying web objects for IE 8.it is identifying like winObject.I installed HP patch QTPWEB_00037.Still getting issue
How do I get the QTP scripts result in xml format by using vb script function?
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?
When Recovery scenario actually starts while testing the application?
how to do the batch testing in test director using manual testing procedure?
What is QTP’s model for test creation?
How to handle dynamic objects in quicktest professional?
What is the process of synchronizing qtp and aut?
How to use the object spy in quicktest professional (qtp) 8.0 version?
Will down time for server and content maintenance/upgrades be allowed? how much?
i have two questions for regular expression :- Q1. I have date pattern eg-29/11/2011 29-11-2011 29.11.2011 Que- if any separator is there between date,month and year pattern should match else it should not match eg- pattern should not match in case of 2911-2011 Q2. let say i have a string and there is a number in between of that string eg.-Amount 30002.234 successfully credited to your account . now i have to match this pattern in such a way that even if decimal is not there pattern should match ,how i will do this using regular expression
What are the methods used in UFT to handle exceptions or run-time errors?
How many add-ins comes by default with quicktest professional (qtp)?