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

Pls can anyone give me the entire code for the Keyword driven framework with respect to he Flight Reservation Window in detail with explanation. Pls explain in detail stepwise. Thanks a lot. Pls very urgent?.

0 Answers   Logix,


can anyone tell me from where i can download qtp demo or crack version

0 Answers  


Explain types of output values?

0 Answers  


hi in QTP 8.2 in the edit box has text like "raju want married" . i want to check "want" is their in the text or not ?

16 Answers   Syntel,


What are they Advantages and Disadvantages in QTP 9.2?

1 Answers   Infotech,






can any body tell me all of the release dates of QTP?????..... thanks in adv!

3 Answers  


I want two test two agents login for the flight website. Here is the scenario: I want to go through 1-3 rows for one user login and other user login I want to go though 3-5 rows. How would you set this up in qtp. Thank You

0 Answers   IBM,


i have written some lines of code today..tommorow some lines of code deleted in middle of that code..how to handle this type of script

1 Answers  


what is flag=0 in qtp tool.. i am strugglin to use flag function , exactly when it is used , any real time expert pls explain clearly?

1 Answers  


how will load the object during runtime?

0 Answers  


Hi, I got some difficulties in automating a web check box in a peoplesoft application. Let me explain the scenario, When clicked on a look up button in the application, it navigates to a new page with check boxes and respective options. Below is the source code for one check box and its option. <input type='checkbox' name='H1AU_BUNDLE_WRK_H1AU_SELECT_CH$2' id='H1AU_BUNDLE_WRK_H1AU_SELECT_CH$2' tabindex='34' value="Y" onclick="this.form.H1AU_BUNDLE_WRK_H1AU_SELECT_CH$chk$2.valu e=(this.checked?'Y':'N');submitAction_win0 (this.form,this.name);" /> </td> <td align='left' class='PSLEVEL1GRIDODDROW' > <span class='PSEDITBOX_DISPONLY' >$29 - $29 Cap with FREE Mobile</span> I want to parametrize using "$29 - $29 Cap with FREE Mobile". I am not aware of how to parametrize this. Currently I am parametrizing with 'H1AU_BUNDLE_WRK_H1AU_SELECT_CH$2' Can any one please help me out with this??/

0 Answers  


How can we parameterize our test, values in flat file. Ex:- Values in notepad, with that values i want to parameterize the test.

3 Answers   Ordain Solutions,


Categories