How can you Open a Notepad and How can you write the test
Resuts in Notepad by Using QTP?
Answer Posted / kavitha
dim fso,f,x,y
Set fso=createobject("Scripting.filesystemobject")
Set f=fso.opentextfile("path of the file",1/2/8) {1-reading
mode, 2-writing mode, 8- read and write mode }
While f.atendofline<>true
x=f.readline 'it reads the value
In notepad file u have to put the data and attached to this
program to run the file morethan one time.
| Is This Answer Correct ? | 3 Yes | 1 No |
Post New Answer View All Answers
Where to use function or action?
What are the ways you can synchronize?
How can i test an application like Google Earth.In my application data will be fetched from a oracle database based upon which graphs are generated..so these all are dynamic..how can i use qtp here..alongwith that how can i test the map generated by a satellite just like google earth..
How to do the scripting. Is there any inbuilt functions in qtp as in qtp-s. What's the difference between them? How to handle script issues?
How to make qtp understand the difference amongst the same type of objects .suppose there are 5 check boxes in a page and I have to choose the 2nd one, how to do that through script?
What is the extension of the qtp local repository? If it is .mtr then what is .bdb extension stands for?
What are the methods used in UFT to handle exceptions or run-time errors?
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
How to sendKeys in QTP? Diff b/w sendkeys and device replay? Diff b/w function and Sub? Diff b/w Array and List Different Types of running Keys other than Fast, slow,Normal mode Regular expression for http://newtours.demoaut.com Difference between \w and \W How to generate script button Recording Types Different Types of Actions? Using DP performance degrades, If Yes why? How to close all the opened browsers? Diff b/w SystemUtil.Run and invoke application? If qtp not recognized the combo box How to select values from drop down?
What is the difference between run time object and test object in QTP?
what r the verstions from 1st to present (verstions) of mercury tools (like winrunner,QTP,Loadrunner) ? Chandana
What are benefits of qtp?
What are the things(properties, and other details) will be recorded while recording an object using normal recording?
can anyone tell me what to say in interview when interviewer asks about "tell me about your framework in your project"?
To which environments does quicktest professional supports?