Performance Testing, LoadRunner Tips&Tricks

This site is moving to a bigger space @ LoadRunner TnT

The Windows Internet (WinInet) application programming interface (API) enables applications to interact with Gopher, FTP, and HTTP protocols to access Internet resources. As standards evolve, these functions handle the changes in underlying protocols, enabling them to maintain consistent behavior. More information can be found at Microsoft.

Whereas for Socket Level, it is a proprietary API that Mercury/HP LoadRunner implements. So what does it mean by setting the recording level in Port Mapping of the Recording Options and replay for RTS (Runtime Settings)?

By configuring Vugen record at WinINet level, simply means to instruct Vugen to record using the WinINet API. Vice versa, by configuring the Socket level, you are instructing Vugen to record using the proprietary API. By default, it is Socket level.

For replay, the principle applies were WinINet will be replaying using WinINet API else it will be replaying via the default Socket level API. There is a small description of "What is "WinINet instead of Sockets" for" at the support website that reiterates the above but worth taking a look. A valid account will be required to login to access the article.

When do you configure WinINet or Socket? Sometimes web applications may be designed in WinINet while sometimes it does not require WinINet as often and Socket level will be sufficient. This is a little tricky here but it will most probably end up trial-and-error. When an application fail in recording, you can try by switching between the two modes. Whereas when the application fails in replay, try switching the modes also.

For replay failure, you can try the suggested solution in Protocols: Working with Web (HTTP/HTML) where there is a section on the switching of the replay mode.

Take note that IE browser API may change over time due to the upgrade of versions (e.g. IE 6 to IE 7) which may inherently cause the replay to be successful or fail.

Labels: , , , , , , , , , ,

Bookmark this article now! AddThis Social Bookmark Button

technorati reddit digg

2 Responses to “Protocols: Working with Web (HTTP/HTML) II - Difference between WinINet and Socket Level”

  1. # Anonymous Anonymous

    "What is "WinINet instead of Sockets" for"
    This link give "invalid session" error  

  2. # Blogger Hs

    The link provided belongs to Mercury/HP support webiste and this requires login with a valid account. From the "invalid session", it meant that you are not login into the website. As such, apply an account at then reaccess the article again. :)  

Post a Comment

Powered by Google

Enter your email address:

Delivered by FeedBurner

Add to Technorati Favorites


Powered by Blogger

make money online blogger templates

Powered by FeedBurner

Blog Directory

Top Blogs

Software Blogs -  Blog Catalog Blog Directory

© 2007 Performance Testing, LoadRunner Tips&Tricks | Blogger Templates by GeckoandFly.
No part of the content or the blog may be reproduced without prior written permission.
Learn how to make money online | First Aid and Health Information at Medical Health