Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


How can you Open a Notepad and How can you write the test
Resuts in Notepad by Using QTP?

Answers were Sorted based on User's Feedback



How can you Open a Notepad and How can you write the test Resuts in Notepad by Using QTP?..

Answer / sushma

Result = "The test is passed"
Set a=createobject("Scripting.filesystemobject")
Set b=a.opentextfile("E:\raju\1.txt",2)
b.writeLine Result
b.close
Set a = Nothing
Set b = Nothing

Is This Answer Correct ?    7 Yes 2 No

How can you Open a Notepad and How can you write the test Resuts in Notepad by Using QTP?..

Answer / 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

How can you Open a Notepad and How can you write the test Resuts in Notepad by Using QTP?..

Answer / king

Set a=createobject("Scripting.filesystemobject")
Set b=a.opentextfile("E:\raju\1.txt",2) {1-reading mode, 2-
writing mode, 8- appending mode }
While b.atendofline<>true
y=b.readline ---- Read the line on particular
mentioned fine

b.writeline "I Love QTP" --- write the line on particular
mentioned file

Wend


i think it's working proerly, if u have any quarries plz
let me know
raju.gudla@gmail.com
9823257761

Is This Answer Correct ?    3 Yes 2 No

Post New Answer

More QTP Interview Questions

What expansion of "MIC" in MICPASS (TEST ReportPAGE)

11 Answers   TCS,


What is meant by virtual obj and Y do v need virtual obj configuration.

4 Answers  


What is the Risk Analysis? Waht types of risk analysis are there?

1 Answers  


How to handle Dynamically changing Objects in QTP?

4 Answers  


How to get Traceability matrix from TD?

0 Answers  


how can i add an action(external action) programmatically?

3 Answers   Ordain Solutions,


If we put all properties in mandatory and assistive list of Normal Identification, Do we still need Smart?

0 Answers  


How can i count the list box elements in QTP ?using script plz explain me (Chandana)

6 Answers   Wipro,


Inserting a Call to Action is not Importing all columns in Datatable of globalsheet. Why?

4 Answers   Accenture,


Hi, i have a string like "INDIA". I need to display this string vertically in Msgbox?

1 Answers  


Hi, Hope you viewers are doing fine with good health. What are the steps and connection parameters to connect to Oracle db ? Can you connect with just the Oracle client or Oracle XE ? Cheers!!

0 Answers   Infosys,


To which environments does quicktest professional supports?

0 Answers  


Categories