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

whaht is the difference between CLASS & OBJECT?

3 Answers   Accenture,


suppose in the middle of the project QTP will not work properly, then what do u do? and ur team?

0 Answers  


Explain script generated after applying database check point?

2 Answers  


Hi! Using Descriptive Programming How do we get Parent object for an object by writing script(DP). Say, i want to get a parent object for a "Link" in a web page by writing script in Descriptive Programming.

0 Answers  


Can u tell me example for virtual objects?

2 Answers   Value Labs,






Hi, When iam trying to import sheet to the QTP Global data table at the run time using the Importsheet method.It is able to import the sheet but no data is present after the import due to which the test is failing.Could anyone suggest what should be done. When I open the actual excel sheet data is present and is not corrupted.

2 Answers  


i'm using the qtp to test to vb appliction,i wanted to get the new application's title.i didn't want to use the winAPI to get it ,i 'd like to know whether a QTP function can do it. Eg: SystemUtil.Run "C:\Program Files\.....","","","" 'run an application, and misure the application is activating,then how to get the hwn wihtout using windowns api

0 Answers  


How to capture data from images in QTP and produce them in Excel sheet ?

4 Answers   iFlex, QA InfoTech,


i need qtp tutorial. pls send it to sridhar.k151@g mail.com

0 Answers  


Are u place all QTP Framework folders in VSS?

4 Answers   TCS,


write a script for get the following result: username password frm the string1="A=username" string2="B=password"

3 Answers   Oracle,


What is the purpose of loading qtp add-ins?

0 Answers  


Categories