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

Answer Posted / harshitha

Set f2=f.OpenTextFile("c:\text.txt")
While f2.AtEndOfStream <>true
f3=f2.readline
x=Split(f3, "")
msgbox x(0)
msgbox x(1)
WEnd

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Both static and dynamic arrays are handled by the vb script. Is it true?

664


Hi Friends, Im planning to do certifcation in mercury Automation Tool QTP.But I Didnt get any clear details regarding course syllabus, fees, where to approach, and which certification would be useful for the experienced testers? can any one send me the details?

1613


How you can write contexts to text file in qtp?

675


What is object spy in quicktest professional?

708


When Recovery scenario actually starts while testing the application?

1648






how u will evaluate the tool for test automation?

1459


Whether qtp 9.0 supports Test director8.0

2224


How many types of parameters are available in quicktest professional (qtp)?

674


Hi, my requirement is to make a query in SQL using QTP. And i have to get the results of that query and i have to use those results for future testing. I created a driver but i dont know the code for using this Driver. please help me by providing the solution for y requorement

1736


what are the issues we will get when there is migration from QTP 8.2 to QTP 10.0? Is there any problem in executing scripts of 8.2 on 10.0?

1542


Explain the checkpoint in qtp?

704


Your roles and responsibilities and daily tasks? (As automation tester)

2678


Can any body please tell me the steps of keyword driven frame work in qtp. My mail is saswat445@gmail.com please send some materials on keyword driven testing in qtp. thanks a lot...

1891


If we put all properties in mandatory and assistive list of Normal Identification, Do we still need Smart?

663


www.icici.com after this home page wll came, in this page what r the items we r going to test for manual and what the element we r test for QTP... explian clearly with example

1596