please clarify the question .................
i know how to open the notepad file ?
but i don't know how to enter the data into opened notepad ?
Ex: set a=createobject("wscript.shell")
a.run "Notepad.exe"
please give the replay.
my mail id is raju.ippali@gmial.com, 9823257761
Answer Posted / kamal
set fso=createobject("scripting.filesystmeobject")
set fptr=opentextfile("c:\sample.txt",2,true)
fptr.writeline("this is sample program")
set fptr=nothing
in this 2 for write mode and true for if file doesn't
exist, it can create a new file sample.txt, if we give
false, it can open the file sample.txt which is already
exists.
Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
What should we say if interviewer asks "What is ur project architecture?".......Can any one help me with clear information.?????????
Hi any body pls help me for QTP 11.0 software free demo version. i have to practice. Kindly send the link.or where i have to download.
What are the different kinds of test steps?
When we r doing data driven test with chkpts, i want to insert formulae in data sheet but i didn't get. How we wil do that plz. explain in detail.
How will you report the bug and explain the defect tracking sheet you handled?
Hi Sudhananda, plz send me the QTP framework with any diagram and PPTS . I want to switch to automatio, I done QTP from professional person, but he does not give me his knowledge properly. so pls help me Thaks send me on following address mirajkar.akash@gmail.com
I have many listboxes in my application. I have to check whether the contents inside the listboxes are in sorted order or not..can anyone please send the code as early as possible
What are the trigger events in qtp?
How do you know the location Id of an object if you know its index id?
I am facing an issue of object identification with the dropdown element of DHTML grid. When I tried to recognize these different dropdown objects, QTP identifies only one object for all the dropdowns. Hence, selection of different data from different dropdowns list is an issue. To overcome this problem, i have used Descriptive Programming technique by creating different object descriptions which have all the other properties same but differ only in one property i.e. ‘X’ location of the element on the screen. Hence, i have created distinct object descriptions that would allow us to select values in different dropdowns. The code is given below. But still I am unable to identify distinct dropdown objects. ‘Object Description for Dropdown Cell Status Set objCellStatus = Description.Create objCellStatus("micclass").value = "WebList" objCellStatus("name").value = "select" objCellStatus("x").value = 219 ------ ‘X’ Axis value for cell status drop down ‘Object Description for Dropdown Sub Segment Set objSubSegment = Description.Create objSubSegment("micclass").value = "WebList" objSubSegment("name").value = "select" objSubSegment("x").value = "319" ------ ‘X’ Axis value for sub segment drop down Please help... This is specific to DTML grid(Drop down object)
Hi All, How to Compare two strings character by character in QTP
How to create scenario selector
When and why to use descriptive programming?
Hi Friends... By using QTP , can we test .net products...and that product supports different languages.. thanx in advance..
How to check bitmap output value?