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
how to read log file using QTP??
 Question Submitted By :: Radhika
I also faced this Question!!     Rank Answer Posted By  
 
  Re: how to read log file using QTP??
Answer
# 1
Log files is nothing but *.txt & *.xls files

How to read log file *.txt:
1). for ex file name is raju.txt.

set a=createobject("scripting.filesystemobject")
set b=a.opentextfile("File path",1) (1 for Reading,2 for 
Writing,8 for Appending)
while b.atendofline <>true
c=b.readline
msgbox c
wend

2). for ex file name is raju.xls
datatable.importsheet "file path", Sourcesheet, destination 
sheet.
msgbox datatable(column no, sheet name)


 i think this is working properly
if u have any quarries please call me 
9823257761, my mail id is raju.ippali@gmail.com
 
Is This Answer Correct ?    2 Yes 0 No
Raju
 
  Re: how to read log file using QTP??
Answer
# 2
Note:- Bu Using Import as well as export Method
Give path for .xls file on Root Directory in datatable 
parameter as below.
p_strFile=jayant.xls
p_strFile1=jayant1.xls

strFile=DataTable("p_strFile",dtGlobalsheet)
	
strFile1=DataTable("p_strFile1",dtGlobalsheet)
	
			DataTable.ImportSheet  
strFile ,1 ,"acn_Dummy" 
			DataTable.ExportSheet  strFile1 ,3

		iTotalRows  = DataTable.GetSheet
("acn_Dummy").GetRowCount 

		For i = 1 to iTotalRows

               
		DataTable.GetSheet
("acn_Dummy").SetCurrentRow(i)

	   
        strMenuNm = trim(DataTable.GetSheet
("acn_Dummy").GetParameter("No").Value)
        strAction = trim(DataTable.GetSheet
("acn_Dummy").GetParameter("name").Value)
		
        
	Next
 
Is This Answer Correct ?    1 Yes 0 No
Jayant Naikwade
 
 
 

 
 
 
Other QTP Interview Questions
 
  Question Asked @ Answers
 
Use of Debug Viewer?  1
Please tell me the steps to record the test in Analog recording mode in QTP version 9.2???  2
pls tell me how will you write the vb script in QTP for DataDriven test from Excel sheet for multiple userid and password explain with example Ordain-Solutions4
what is input pramater out output pramater ?i want the decrepation..?how to use in QTP? Infinite-Computer-Solutions2
Can we do Load Testing with QTP?  4
How u prepare Test result summary in QTp? CGI4
What is the differnce between action & script Lehman-Brothers2
your doing one project testing then how u know itis wheather web based application or windows based application?  2
WHAT IS ENVIRONMENT VARIABLES? Ordain-Solutions4
Explain about Standard output value, Text output value, database o/p value, Xml O/p value, Xm o/p Value TCS1
Hi cud you plz answer my question.. what is the size of Object Repository? TCS8
Once the Actions are splitted , is there any way to merge them  3
how to open Excel sheet & write in it & save it? InTech1
What exactly is the difference among all the three recording modes. Accenture5
HOW to invoke any recorded script in QTP with out using RECORD & PLAYBACK CONCEPT?  1
3.How to record a word doc using qtp i.e open a word doc,type something and save the doc can someone send me the code.  2
how would you go for testing a web application like any jobsite?(using manual n qtp)..pls frnds its very urgent ..i need realtime answers...thanks in advance Wipro2
What are the details steps to connect a remote mysql database in QTP Verizon1
i want know iam working 2+ exp in QTP can i do performence testing (eg:loadrunner) yes r no? IBM6
How u perform exception handling in QTp,what is other name for ths?  1
 
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