How to read a text file from QC using QTP.

I would like to do something like this. But instead read a
file from QC and NOT from my local drive.

Set fso = CreateObject("Scripting.FileSystemObject")

Set InputFile = fso.OpenTextFile("C:\test.txt", ForReading)

Thanks


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More QTP Interview Questions

Why qtp the best testing tool?

0 Answers  


Suppose I want to use Index value of "WinEdit" in my script .But it is showing None in "Ordinal identifier" value of Testobject Details in the Object Repository.How to enable Ordinal Identifiers to capture the Index value of that particular WinEdit. I have selected "index" and clicked "OK" from Tools-> Object Identification Again I added same WinEdit to the Object repository But I did not get Index value..Please any one help me.How to enable Ordinal indentifiers

1 Answers  


Please help me by providing the License key for QTP 9.2, at guru_aarya@yahoo.co.in Best Regards Gururaj.B

0 Answers  


how to reverse a string with out using string or predefined function,ex:string is " i love india". the output should be like this "i evol aidni"

3 Answers   Aspire,


Who is the best faculty for QTP in Hyderabad? Is it Mr. G.C.Reddy, some are referring his name?

21 Answers  






What is ‘object spy’ and what is the function of object spy in qtp?

0 Answers  


I have a list box which contains duplicate values e.g. A,A,A,B,B,B,C,C,C.Now write a code in qtp to test the list box . Scenario #1 : I have to check whether any values are there? Scenario #2 : If duplicate values are there,then how many time it is getting duplicated? Svenario #3 : how can I test presence of items in list box ommiting duplicate values?

6 Answers   NIIT,


In the website, the protocol has been changed http: to https what you will do? Tell me your approach?

0 Answers  


What are the different ways to invoke an application using QTP?

0 Answers  


what is automation(qtp)bug pls giv me one ex?

1 Answers  


How to pass parameters into an action.Please explain me with examples

5 Answers  


What is the use of low level recording? How does it useful?

1 Answers  


Categories