Explain about opening notepad in QTP and writing of test
result in notepad?

Answer Posted / ajreddy

set fso = createobject("scripting.filesytemobject")

file_path = "c:\ajreddy.txt"

set notepad = fso.createtextfile(file_path,forwriting)
notepad.writeline "hi ajreddy"
notepad.writeline "this is created on "& now
notepad.close

set notepad = fso.opentextfile(file_path,forreading)
for notepad.atendofstream
n = notepad.readline
msgbox n
Next

Is This Answer Correct ?    3 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can UFT be connected to Quality Center? If ‘Yes’ brief the process or steps.

837


What are the different kinds of test steps?

793


Object repositories types, which and when to use?

820


How will you check that your test cases covered all the requirements?

783


Hi friends I need to know about jubula automation tool. Is anybody know in bangalore where jubula tanning class is going on do let me know. Its urgent for me to learn that tool please help.

3109


Does QTP run in any environment?

817


Can we call qtp test from another test using scripting. Suppose there are 4 tests and I want to call these tests in a main script. Is this possible in qtp?

851


How to run a test using quicktest professional?

722


Can we write winrunner language i.e TSL in QTP tool?

1701


What are the data types in qtp?

856


Name the properties you would use for identifying a browser and page when using descriptive programming?

749


Explain about the test fusion report of quicktest professional?

742


hi, FOR 3+ QTP INTERVIEW, FOR EXAMPLE WE PUT ONLINE BANKING SYSTEM PROJECT IN OUR RESUME, IN PROJECT MANAGER ROUND...WHAT R THE MAJOR QUESTIONS ARE ASKED IN P.M? PLS TELL ME ATLEAST 10 QUESTIONS?.....AND IF POSSIBLE POST ANSWERS ALSO....

2670


Explain about datafile/verification of date file when file is not available in local system?

2475


What are the key elements available in test result window?

874