ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip   To Refer this Site to Your Friends   Click Here
Google
 
Categories  >>  Software  >>  Testing  >>  Automation Testing  >>  QTP
 
 


 

 
 WinRunner interview questions  WinRunner Interview Questions
 Load Runner interview questions  Load Runner Interview Questions
 QTP interview questions  QTP Interview Questions
 Test Director interview questions  Test Director Interview Questions
 Rational TestSuite interview questions  Rational TestSuite Interview Questions
 Silk Test interview questions  Silk Test Interview Questions
 Automation Testing AllOther interview questions  Automation Testing AllOther Interview Questions
Question
what is a file system object in QTP
 Question Submitted By :: Sreeprasad
I also faced this Question!!     Rank Answer Posted By  
 
  Re: what is a file system object in QTP
Answer
# 1
File System is used to create file through scripting.We can

read, write and save data in txt file and use it after

wards during testing. Here is example of creating txt file

through FSO

Const ForReading = 1, ForWriting = 2

Dim fso, MyFile

Set fso = CreateObject("Scripting.FileSystemObject")

Set MyFile = fso.OpenTextFile("c:testfile.txt",

ForWriting, True)

MyFile.WriteLine "Hello world!"

MyFile.WriteLine "The quick brown fox"

MyFile.Close

Set MyFile = fso.OpenTextFile("c:testfile.txt",

ForReading)

ReadLineTextFile = MyFile.ReadLine ' Returns "Hello

world!"

It will create testfile.txt and enter "This is a test" in

that text file. You can later read that line "This is a

test" from this file while using

MyFile.ReadLine

We can save variables data during testing and then use that

data in future instances of testing and then delete that

file.
 
Is This Answer Correct ?    4 Yes 0 No
Sreeprasad
 
  Re: what is a file system object in QTP
Answer
# 2
In simple terms "Filesystemobject" is an object model which 
is used to handle the drives, folders, and files of a 
system or server. 

If an user needs to work Driver, Folder, Files properties, 
methods or events then the first step he need to setup is 
filesystemobject.

Hope this helps. Let me know if you need an example.
 
Is This Answer Correct ?    3 Yes 1 No
Bala
 
 
 
  Re: what is a file system object in QTP
Answer
# 3
Hai Bala,

Just now i read ur defination on File system object.
well, it would be more specific ,if u could explain with an 
example...
I appreciate,if u can do that now.
Thx.
 
Is This Answer Correct ?    0 Yes 0 No
Prashanthkumar
 

 
 
 
Other QTP Interview Questions
 
  Question Asked @ Answers
 
How to handle recovery scenario for a application crash.write script for this. Polaris2
hello...any one tell me , where can i get company email id.. actually i am searching on testing... in my CV i put 3+ exp.. but all companies are asked company email id.. please provide solution for that... thanx in advance... HDFC6
In QTP , Test Director combination . what is the role of Test Director? How QTP Launching QTP in T.D ? If it is Winrunner possible. but QTP How it is possible? TCS1
Please any on explain usage of "on error resume next","On error goto 0" with sample code....Thankyou......... when a tester is asked to execute 100 scripts in a short time..(the server will be down in another 10 min)..how he has to run those scripts? Datamatics2
What is the Maximum syncronization timeout in seconds in QTP 9.5 Polaris4
Is it possible to test Flat file using QTP? I have two file- first file is Input file and second file is output file. Input file has Format like first 2 field is record type, next 10 field is Description. Output file also has format. I want to check this file format using QTP. Is it possible?? please reply with example. Wipro2
what is object repository size? ITC-Infotech22
Among all the check points what is the most important checkpoint?  1
How can we encrypt the username using recording mode in login window? There is 2 encrypted types what are it TCS1
how to use import and export sheet methods in qtp  1
Using Object Repository is a advantage or disadvantage? Wipro5
When there is descriptive programming, why do we go for Object repository for desigining scripts.?? why cant we use descriptive programming instead of using the Object repository..?? DST-Global-Solutions2
How can i get QTP 9.2 software or any webside where i can download ? can anyone help me out , i want to be expert in QTP ,but i don't have the software  2
how i can delete the excel process for the task manager using QTP  2
Are You using any frame work? What is that? Explain about that. Wipro4
write vbscript on veb applications in qtp with exapmles?  1
does automation replace manual testing?  2
I am trying to read the rediffmail usign the below code. But facing problem, while i user to get the link of the mail, i am getting all the link of the page, While i just want to get only mail name - link (not all the link of an page) so that i able to read the mail message by clcking on them in qtp. Dim Lnk,Webcheckbox Set Lnk= Description. Create '********* To count and display the webcheckbox Lnk("micclass" ).value=" Link" set LinkName= Browser("Welcome to Rediffmail:" ).Page("Welcome to Rediffmail:" ).ChildObjects( Lnk) LinkCount=LinkName. Count msgbox LinkCount For i=1-1 to LinkCount-1 DataTable.SetCurren tRow(i) DataTable.Value( "Name",1) =LinkName( i).GetRoProperty ("name") Next Waiting for the reply Praveen Saini  1
How do you create a library file  1
What is data driven testing in QTP? Agile-Software6
 
For more QTP Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com