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

can u explain the keyword driven framework with an example clearly how to create all the files and how to attach to main test.

5084


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

639


What are the differences between quicktest professional and winrunner?

533


I have some real time based question.. 1.what are the challenges you have faced in your current project. 2.what are the bugs you found in your current project. 3.what are the strategies you follow to convert manual test cases into automation test cases. 4.how QTP identify two different browsers. 5. When you create a function library and share object repository what are the problems you have faced 6. How to solve the tool tip problem 7.what are the interesting bug you have found in your current project. 8.what is your daily work as a automation test engg. 9. how to create a weekly status report. 10. how many test cases you write,review and execute per day. 11.what are the uses of SQL in automation. 12.How to retrieve the data in html through vb script. 13.If application is very slow how to test the application in qtp.

3558


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

648






What is action?

567


Suppose I want fail that check point? How can you do that?

592


What are the different types of recovery operation?

543


What are advantages of test automation?

653


write a script to verify links on any web page by using descriptive method by creating a description object (give a filter condition only link) ... need to verify expected like name by reading

1476


Hi. I have completed B.TECH(CS) , But I will go to "SECURITY CONSOLE OPERATING" [C.C CAMERA abservation]. IF interviwer asks " Why you choose this job ?" What we will say? urgent.........................urgent...........

1433


How to customize qtp?

601


What is the use of defining a newobject in the object repository "Define New TestOject". How to use this further. If we define new testobject, how can it recognizes the objects properties of any application.

1491


What is fragmentation and paging?

1582


What is Unicode Compatibility?

1444