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   SiteMap shows list of All Categories in this site.
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
How can you Open a Notepad and How can you write the test 
Resuts in Notepad by Using QTP?
 Question Submitted By :: Chennaprashanth
I also faced this Question!!     Rank Answer Posted By  
 
  Re: How can you Open a Notepad and How can you write the test Resuts in Notepad by Using QTP?
Answer
# 1
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 ?    2 Yes 0 No
King
 
  Re: How can you Open a Notepad and How can you write the test Resuts in Notepad by Using QTP?
Answer
# 2
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 ?    1 Yes 0 No
Sushma
 
 
 
  Re: How can you Open a Notepad and How can you write the test Resuts in Notepad by Using QTP?
Answer
# 3
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 ?    1 Yes 0 No
Kavitha
 

 
 
 
Other QTP Interview Questions
 
  Question Asked @ Answers
 
Hello friends can anybody tell me about the architecture of QTP with diagram of it.this architecture is same for any domain like ERP/Banking/CRM/Healthcare or it's different then please tell me.thanks Fidelity4
hi testers,one script has three actions , at the of running three actions are running , how to set run only perticular action and what is the use of split the action? when it will be useful? Syntel2
write vbscript on veb applications in qtp with exapmles?  1
While scripting do we use any reference. may be we have 2 0r more same objects that time how do we write scripts  2
Up to how much VB scripting knowledge and what type of VB script knowledge is required for a QTP test engineer for real time to work ?  2
with out using import sheet came is it possible to get the excel sheet ? Ordain-Solutions2
How to Parameterize Object repository in QTP?  1
Tell me about userdefined functions ?  1
We have 10 rows in datatable at runtime we get error at 3rd row ? what is the procedure for continuing same test from 4th row on wards?  9
i need to learn the descriptive programming very well so for that what to do am reading the qtp user mannual but it is not so any materials or links with examples i want please help me  1
i'm using QTP 8.2, How should i select(browse) object repository from desktop(or from local local drives like C:\,D:\)?. Note:- object repository to select(browse) is been sent by some other person who is using QTP 9.0  1
What is the difference between Normal mode and Fast mode ? AZTEC1
Which object model ur used in ur project Cap-Gemini2
After Creation of your QTp frame work, The folders are saved in VSS or Other. plz explain brifly? Infosys3
What r the diffrernt file extentions in QTP?  2
I want to run my qtp scipt on the system where qtp is not installed .I don't want to install qtp but i want that system should use the qtp from another system in lan just the qtp instance should be launched on that system without having qtp installed on it .I probably know the solution that it will be solved through RMI but how to get this problem solved plz help i anyone know the answer Cimcon3
need clear explanation of actions and functions in qtp with examples?can anyone suggest me gud site for that other than qtp manual?  1
In automation testing, while doing descriptive programing; how will u get the properties of the objects in what format, what type of a document, and by whom? Pls explain in detail. Thanks a lot Quest1
diff between winrunner and qtp Wipro1
Java add-in is need to work on java oriented project ?  3
 
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