How to retrieve value (data) from notepad using QTP ?

Answer Posted / dinesh

Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objFile = objFSO.OpenTextFile("C:\Documents and
Settings\xxxx.txt", 1)
Do Until objFile.AtEndOfStream
strLine = objFile.ReadLine
msgbox( strLine)
Loop
objFile.Close

Is This Answer Correct ?    20 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to perform cross platform testing and cross browser testing using qtp? Can you explain giving some example?

546


we use a file extension .properties why is it used and where do we use it plz help me out with detailed explanation and navigation of how to use on the QTP 8.2?

1636


Why bpt?

595


An action has both shared and local OR associated with it and both have the same object in them. In the test which one will be considered?

578


can any boby tell me what is method or steps to connect the remote desk top by using QTP 9.2 version?

1625






How to call a test from another test?

686


How does you test a weblink which is changing dynamically?

558


iam have done mba(finance)in 2008. in 2008 one reputed consultancy came off campus interview our institution. i got job as "manual test engineer". now iam working as "manual testing engineer". now my problem is when iam going interview the interviewer asking like " ur mba gradute how can u get job in test engineer." this question i have faced every interview. iam explaining how iam getting job. but they are not trust me". pls tell me answer how i am giving relavent ans.. this is my mail id y.ramana84@gmail.com

1402


if numbers are always changing write a script for that

3406


What is the Command used to start the QTP

1533


hi, can u tell me the QTP TEsting process in present real time companies?(beware of this... now a days Recording is not using,, only DP) and don't tell note book answers like step 1 spep2....like this .......post answer with professional skills in simple english words) thank u

1338


what QTP Options do you know?

2928


what is the latest version of QTP? Main difference between 9.2 and 10 version

1556


what kind of frame work you used in your last project?

1825


Qtp has been installed on my pc but recently ON opening it is giving this error PLEASE REPLY IT IS URGENT IT WAS WORKKING FINE QTPRO.EX THE instruction at "0x7.. ...". referenced memory at "0000....The memory could not be read... Awaiting QTP XPERTS REPly URGENT

2059