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

Answers were Sorted based on User's Feedback



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

Answer / 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

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

Answer / raghu

this can be done by FILE OBJECT SYSTEM.

Is This Answer Correct ?    3 Yes 2 No

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

Answer / guest

Check Test Settings..

Is This Answer Correct ?    1 Yes 1 No

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

Answer / 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

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

Answer / suneel

Script is working fine.
But when I am executing the script it ran for 5 time.
what should i do if i want to read only once

Is This Answer Correct ?    0 Yes 4 No

Post New Answer

More QTP Interview Questions

How many scripts did you have?

0 Answers  


Gmail application is there.On that Inbox so many mails are there including naukari mails. On that mails i can select the only naukri mail checkboxes. plz tell the descriptive code for the above..

2 Answers   Impetus,


what are pretesting activities

0 Answers  


What is the main difference between QTP 8.0& QTP 9.2.And what r the features and benefits of QTP.

1 Answers   HCL,


if the excel sheet specified in script is not there,we get run time error how to handle the error ,please anybody explain me in detail

2 Answers   Quinnox,






What should we say if interviewer asks "What is ur project architecture?".......Can any one help me with clear information.?????????

0 Answers   Infotech,


How to handle the exceptions using recovery scenario manager in QTP?

1 Answers   Crea,


What is Virtual object wizard in QTP?

4 Answers  


Subj: realtime example of Database check point, Can any one please detail on how the Database check point is utilized/implemented in a real time project. I already know how to make one by creating DSN/ODBC and writing the required query manually and other steps...I wanted the actual concept of implementation...couple of live examples will be highly appreciated. Thank you in advance

0 Answers  


How can you capture(Read) the values from a Table?

1 Answers  


What are the two types of repositories available, explain them?

0 Answers  


How can we import a Open Office excel file in QTP

4 Answers  


Categories