OPening of notedpad in QTP to write and execute the coding?
Answer Posted / nanda
set fso = createobject("scripting.filesytemobject")
file_path = "c:\nanda.txt"
forwriting =2
forreading = 1
set notepad = fso.createtextfile(file_path,forwriting)
notepad.writeline "this is created by Nanda"
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
this script will create a notepad and write data and read
data in that file.
If any queries...
nanda.dreddy@gmail.com
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
Is any limitation to xml checkpoints?
Differences between text and test area checkpoints?
how can we preform retesting(DATA driven test) using function please gine the code for loginpage
Consider one application is open, clicking one menu will open another application in another browser. QTP does not catch the URL of the second browser(second application). can we capture it ?
I created 3 actions in test suppose I want to run action 1 in single time, action 2 is 4 time what I do?
how to idetfy which test cases are automated?who will deside that plz tell me
can any body tell me how i create a simple script and apply output value on it .pls send me a step by step process
How to find array size in qtp?
An action has both shared and local OR associated with it and both have the same object in them. In the test which one will be considered?
What is the latest version of qtp?
hi all here i have tab named "Workbench" By clicking on "workbench" tab.it displays 4 tabs like below workbench common cargo commercial charter "common" tab have 10tabs inside,"cargo" tab also haveing 15 tabs inside and remaining two tabs also having few tabs inside. when clicked on "common" tab.it displaying the script like tab("workbench").select"common" if i clicked on "cargo".it displaying the script like tab"workbench_2").select"cargo" if i clicked on "commercial".it displaying the script like tab"workbench_3").select"commercial" if i clicked on "charter".it displaying the script like tab"workbench_4").select"charter" I have used a "FOR LOOP" for common,commercial,cargo,charter tabs.it was stopped at second tab SO, CAN I RECOGNIZE "WORKBENCH_2,_3,_4" AS A SINGLE VARIABLE if not, can anyone plese help me to solve this
when to start the automation?
What is keyword view in qtp?
What is recovery scenario manager? When you go for recovery scenario manager? Tell me one scenario were your used recovery scenario in your project?
Without integrating QC/Testdirector with QTP, is it possible to keep track of the defects?If yes how? How to export QTP results to an excel sheet?