Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

how to read log file using QTP??

Answer Posted / raju

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 ?    4 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

terminal services client

2238


What is CMMP and CMMH?

1163


In the website, the protocol has been changed http: to https what you will do? Tell me your approach?

1003


what is defenetion of kiran can u tell me plz CVS, SVN

2032


how many maximum number of virtual users we can create?

2136


How to do the scripting. Are there any inbuilt functions in QTP? What is the difference between them? How to handle script issues?

1141


what is the latest version of QTP? Main difference between 9.2 and 10 version

2139


What is the extension of the qtp local repository? If it is .mtr then what is .bdb extension stands for?

1037


What is quicktest professional window?

991


This is Karthic and my mail id is karthic.venkitapathi@gmail.com, please give me an idea to crack qtp 10

1999


what you mean by artifact,milestone...

1975


What is ObjectParamater?

1997


why should we give deliver good quality software?

2113


banking domain description for software tester for interview

3914


What is active screen?

976