Can Any One Write How to Write the Script for Child Objects

Answer Posted / kanda

Here i am giving one example to create New file in New
Folder and to write a "Hello World" in that file

File System Object Model
----------------------------
set fso =createobject("scripting.filesystemobject")
set newfolder = fso.createfolder("C:\QTP",True)
Set newfile = newfolder.createtextfile("C:\QTP\Test1",True)
newfile.writeline("Hello World")
newfile.close


Try with tis..I hope it will work

Is This Answer Correct ?    1 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which recording modes need more memory?

819


What is object spy in quicktest professional (qtp)?

732


What is the Difference between test object and run time object?

838


How to check feasibility of the appliction?in automation testing?

1723


What is qtpro?

819


Will down time for server and content maintenance/upgrades be allowed? how much?

848


I am having major problems with some DB Table Checkpoints I add to my script. I 35 web based applications recorded and each has DB Table Checkpoints insert but only 1 script isn't recognizing the DB Table Checkpoints for some reason. I've checked the DB connections and the info in the Library Functions and still only this one script out of 35 doesn't recognize the DB Table Checkpoints. Can someone please help me figure out why only this one script out of 35 that's hitting the same database is having a problem.

1974


What is the registration process and examination fees?

777


What is the significance of “action 0” in qtp?

768


How to find operating system information using the qtp script?

821


What is expert view in qtp?

802


Explain how to use QTP to check broken links on a page?

778


why you have standardized functions? plzzz guys with real time exp. do answer

1640


how can we preform retesting(DATA driven test) using function please gine the code for loginpage

2521


• What type of testing questions will be asked for 2+ yrs exp people in interview?

1475