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
Answer / Sonu Kumar
To read a text file from QC using QTP, you can use the built-in Test Library's `FileSystemObject` and `CreateTextFile` methods. However, it's important to note that these methods are not designed for reading files directly from QC; instead, you should first download the required file to your local machine and then read it using the following code:nnSet fso = CreateObject('Scripting.FileSystemObject')nSet InputFile = fso.OpenTextFile(file_path, ForReading)n...
| Is This Answer Correct ? | 0 Yes | 0 No |
if there r 10 windows open in QTP write a command to close all 10 windows at a time ?
In an(AUT) web application their are two frames as fraMain and fraFooter. Both the frames contain link which needs to be retrieved at a single step. I tried it using "Regular Expression" as fra.* but QTP doesn't recognize the object. So Plz help me out to get resolve the problem:-)
Hi Guys, I tried to install java add-in for QTP 9.5 after the whole installation but it didn't install but then i also found in documentation saying that winrunner7.6 patch for java plugin would work fine with QTP. But when i tried to install from winrunner7.6 it asks me for the path of winrunner So my question is are we supposed to install winrunner for java add in to work on QTP. Please suggest me
which type of testing process are you following in ur company? how to recognize a qtp page?
How To write script in QTP For Field Validation Example: password Field is accepting A range 8-20 characters only.How to write script?
Anybody can tell me what are the common roles and responsibilites of a Automation Test engineer
suppose there r 10 action in a test i want to execute action 5 to 10 how would i do that
hi guys, pls tell me for testing institution training hub, hitech city is best or not?
what is frame work?
Hi Guys, here I am posting one question. Wen u r working with Notepad. If it is not responding in the middle of TEst...what u will do.
pls help me with scripting,right from the beginning in QTP
How to create an instance in QTP?