Explain abt the File System Object in QTP with ex

Answers were Sorted based on User's Feedback



Explain abt the File System Object in QTP with ex..

Answer / mittal

the above should be
y.writeline "welcome" instead of x.writeline

Is This Answer Correct ?    7 Yes 0 No

Explain abt the File System Object in QTP with ex..

Answer / rico

The FileSystem Object is the object that is used to
manipulate the filesystem in Active Server. Moving files,
opening and reading text files, and looking at drive space
are a few of the many functions of the FileSystem Object.
The FileSystem Object actually contains five objects: the
main Filesystem object, the Drive object, the Folder
object, the File object, and the TextStream object.

Is This Answer Correct ?    6 Yes 0 No

Explain abt the File System Object in QTP with ex..

Answer / suresh

---Create Instances of Object---
set x= CreateObject(Scripting.FileSystemObject)
set y=x.CreateTextFile("c:\a.xls",true)
x.writeline "welcome"
Used for creating xls/notepad/doc instances, with which we
can store data into it.

Is This Answer Correct ?    2 Yes 5 No

Post New Answer

More QTP Interview Questions

In order to select an automation tool for automating ur application, what r the things u need to consider? For eg i will go for automation; 1) When there is a lot of retesting and regression testing. 2) Return on investments. 3) Whether the tool supports the appln. 4)--------------, etc. Pls give me more number of points because my answer did not satisfy the interviewer. Very urgent pls

1 Answers  


Object Repositories types, which & when to use?

3 Answers   Crea,


what are the cases in which we use XML and accessibility check points.

2 Answers  


How you can find length of array in qtp?

1 Answers  


In qtp is it possible to check broken links of a page?

1 Answers  


How to identify 2 versions of browsers based on regular expression

1 Answers   Cognizant,


How to add a runtime parameter to a datasheet?

1 Answers   Crea,


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

1 Answers  


we have 5 default properties we want add more Default property in Object Repository how to add the property

2 Answers   Nous,


in qtp how i can retrive from a browser how many links are there.means total no of links used in a browser

4 Answers   Verizon,


How to Map network drive in QTP

3 Answers  


Hi Friends, Im planning to do certifcation in mercury Automation Tool QTP.But I Didnt get any clear details regarding course syllabus, fees, where to approach, and which certification would be useful for the experienced testers? can any one send me the details?

1 Answers  


Categories