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

write a test script in QTP to test the text that written in an image(i.e jpg)of a web page???

0 Answers  


how do find current links in webpage for ex: in yahoowebsite today mainpage is having 50 links and next day same page is having 60 links. if i run same programe it should display total links in webpage ?

4 Answers   CTS,


Please have a look at this: a = Browser("Travel Boutique Online").Page("Travel Boutique Online_2").webelement("innerhtml:=2622").getroproperty("y") a=a+9 msgbox a Browser("Travel Boutique Online").Page("Travel Boutique Online_2").image("alt:=check","y:=a").click Now please let me explain. As clear from code I am trying to enter value of variable 'a' as Property y. But each time QTP AND MY SYSTEM stops responding when this line is execcuted. But When i enter some number in place of 'a' in the last line. it works fine. Please let me know what I am doing wrong at time of entering the variable in last line. Thanks a lot

3 Answers  


I want to capture data(using keyword) from msdos application using QTP?... Below is little work i could do on it... /* Set app=CreateObject("Wscript.shell") SystemUtil.run ("C:\Users\Agent\Desktop\pumpsim\PUMPSIM.EXE") Window(“PUMPSIM.EXE”).Activate wait(3) app.sendkeys "N" */ Thanks in advance...!!!

0 Answers  


How to capture dynamic values in load runner and how Each of the captured values are to be written to a text file (c:\temp\LoadRunner1.txt)

0 Answers   TCS,






Hi Friends ,I want to Know name of the Site for the QTP Help and the Best Book through that I can start the QTP Practice here also whare can I download the QTP Users Guide I search I was Unable .

4 Answers  


what is meant by Implicit and explicit requirements?

0 Answers  


Why divide a test into three action calls?

1 Answers  


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

0 Answers   CTS,


what is recovery manager and recovey scenerio?

2 Answers   BirlaSoft,


With out using the task manager,how to close the application using vbscript and what is the statement?

1 Answers  


What is action required by QTP if a popup message is coming in exsisting script and now it is not coming. The script is having code to deal with popup message now when we run the script now the popup i snot coming according to new build, instead of changing the code what we can do?

7 Answers   Verizon,


Categories