.

A quick QTP tip that may improve the performance of your scripts (for a web based app)

While working on a web applications using QTP, you may have noticed most of the time QTP runs too fast in comparison to the application. Moreover QTP would not perform any operation on a particular page unless that page has loaded completely (100%). You may wonder in bewilderment about what to do to make the application (web page) load faster.

Here I would like to give you a simple tip to alleviate your pain (and waiting time) a bit.

If you will notice carefully, most of the times text on a web page renders very quickly. It is the images that creates problem and increases the web page loading time. What if we can stop the images from loading altogether?

All browsers provides this facility whereby you can stop pictures from showing. To do this in IE6, go to Tools > Internet Options > Advanced tab. Scroll down to ‘Multimedia’ section and uncheck ‘Show pictures‘.

uncheck-show-pictures

To do this in Firefox, go to Tools > Options > Content. Uncheck ‘Load Images automatically

ff-uncheck-load-images

Run your script now and let us know if this tip helped you. [For obvious reasons, this tip won't be of any use when you have to work on image/bitmap checkpoints.]

Related: 10 Tips to enhance the performance of QTP scripts

Have you downloaded the FREE Optimizing QTP eBook yet? Get It Now!

If you want to keep track of further articles on QTP. I recommend you to subscribe via RSS feed. You can also subscribe by Email and have new QTP articles sent directly to your inbox.

Related posts:

  1. Database Checkpoint and QTP Part2 – Using Scripts
  2. Web Services and QTP – Part 2: Web Service Testing Wizard
  3. Web Services and QTP- Part 3: Adding Web Service Test Object
  4. Web Services and QTP – Part 1: Testing Web Services Key Concepts
  5. Web Services and QTP- Part4: Testing without Web Services Add-in

8 comments ↓

#1 Uday on 06.16.09 at 05:56

Thanks for the tip. Can we change the setting via the QTP script itself ?

#2 she on 06.17.09 at 21:03

Cool!
Why I can’t think this solution before you?

#3 Jenny on 06.23.09 at 19:07

Pretty nice post. I just found your blog and wanted to say
that I have really enjoyed reading your blog posts. In any case
I’ll be subscribing to your feed and I hope you post again soon!

#4 Navin on 07.07.09 at 02:59

Thx a lot for sharing information

#5 karthik on 07.15.09 at 09:31

I must say, you are providing great services to qtp users.

Can u discuss abt qtp 10, and its features

I anticipate the reply from u..

Thanks

#6 to_saswati on 09.21.09 at 21:13

I am getting tdclient.dll initialization issue while launching the QC from QTP.Anyone can help me?

#7 Prabir on 04.15.10 at 21:44

While excuting the script for a longer duration, my system is getting locked. Is there any way to keep the system unlocked whle executing the script. I do not want to violate any security policy. Can anyone suggest me a solution?

#8 Thirupathi Gangula on 05.18.10 at 18:44

You can use below script
Before the script
SystemUtil.BlockInput

End of the Script
SystemUtil.UnBlockInput
System can not unlocked .

Leave a Comment