Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
QTP test script for MS Excel spread sheet
#1
Solved: 11 Years, 4 Months ago Rolleyes 
Hello,

I am a QTP Beginner. I am trying to create a automated test scripts using QTP 9.0 on MS Excel spread sheet. In the script I am trying to change the Font and Font color for some text I have entered in some of the cells. When I try to run my recorded script it fails. As per my understanding there is some problem in class definition. Not sure how to fix this.

Could anyone please help?

I have attached the script and the error I am receiving.

Your help will be highly appreciated.

Regards,
Mintu


Attached Files
.doc   Excel.doc (Size: 99.5 KB / Downloads: 136)
Reply
#2
Solved: 11 Years, 4 Months ago
Hi

You have recorded actions on Excel using QTP

This is not good approach to automate Excel.

We have Excel Object Model available in Internet.

Pls go through and try in that approach. Then you can do any thing in Excel.


-VENKATA REDDY
Reply
#3
Solved: 11 Years, 4 Months ago
Thanks Venkatareddy!

May I ask you how Excel Object Model will help me recording excel test script? I am not very clear on that. Can you please explain more on that?

Also I tried to find out on the internet but couldn't find anything.

Thanks, Mintu
Reply
#4
Solved: 11 Years, 4 Months ago
Check Quick Test Code Sample plus and you will find sample code on how to create and use Excel Object.
It comes with QTP installation for 9.x.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Reading data from excel sheet serenediva 1 9,620 03-03-2017, 10:07 AM
Last Post: vinod123
  VB Script to separate upper & small Letters from a string and store in excel pradeep537 1 2,214 08-05-2016, 12:26 AM
Last Post: Ankur
  UFT taking different script execution timings while comparing 2 excel files. sudheer 0 2,355 06-26-2015, 03:28 PM
Last Post: sudheer
  Calling a function in a Test Script from a function library anupam4j 3 6,127 06-26-2015, 12:31 AM
Last Post: babu123
  On Saving Script in QTP 11 my Global Data Sheet data is removed M Adnan Iftikhar 0 2,177 06-02-2015, 09:19 PM
Last Post: M Adnan Iftikhar

Forum Jump:


Users browsing this thread: 1 Guest(s)