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                      
Do you have a collection of Interview Questions and interested to share with us!!
Please send that collection to along with your userid / name. ThanQ
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 ?    1 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 ?    0 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 ?    0 Yes 0 No
Kavitha
 

 
 
 
Other QTP Interview Questions
 
  Question Asked @ Answers
 
Is there is any method how to connect remote desk throw QTP if yes please answer with a example? HP3
How To write script in QTP For Field Validation Example: password Field is accepting A range 8-20 characters only.How to write script?  2
can we use QTP for load testing instead of load runner?  3
What is the difference between functional spec. and Business requirement specification? Infor3
What is the difference between Call to Action and Copy Action? Satyam1
what's the difference in between function and sub and give some code as well Patni1
What is the difference between Normal mode and Fast mode ? AZTEC1
How u perform exception handling in QTp,what is other name for ths?  1
How will you load few objects in Active Screen?  1
What is Object Spy?  5
In my Script Firstly i have to parametrize the data then we import the data from c drive.suppose i have parametrize the Person name and company Name and i have enter one person name and one company name in the excel sheet now we import the sheet and the script is passed i want to ask one thing can we add more than one person name and more than one company name in the excel sheet suppose firstly we create person name "ADDy" and company nmae.'Wipro" and we set the current row in the script for this data and now we want run the script another set of data so how we can run the script with another set of data  2
Hi,How to write regular expression for inbox(10) {here 10 is changing while playback}.tell me the pettern.  3
what type of test cases tou will automate? Google2
I am not finding pages and links in object spy on web testing. I am only getting window and winobject. where is the problem? thanks  1
Hi,The question is write a script for the following scenario. scenario:in a job portal i entered QTP 3yrs testing then click search button.then it displays results like Test lead bangalore (here is a checkbox). Test lead hyderabad check box so on... question is if test lead position in bangalore then checkbox shld be enabled automatically.. Thatavarti-Technologies2
Can we Run the Tests developed in QTP 8.2 in advanced versions like 9.0, 9.1, 9.2...etc., ADP2
What is the need and applications of learning VB script for a automation(QTP) engineer ain Realtime ?  1
Differenece betwen Project and product ? when company need project or product? Accenture4
What is the Test Object model in QTP?  3
please clarify the question ................. i know how to open the notepad file ? but i don't know how to enter the data into opened notepad ? Ex: set a=createobject("wscript.shell") a.run "Notepad.exe" please give the replay. my mail id is raju.ippali@gmial.com, 9823257761  5
 
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