<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>LoadRunner TnT &#187; Script</title>
	<atom:link href="http://www.loadrunnertnt.com/tag/script/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.loadrunnertnt.com</link>
	<description>Performance Testing, LoadRunner Tips &#38; Tricks</description>
	<lastBuildDate>Mon, 08 Mar 2010 07:57:02 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Difference between WinINet and Socket Level</title>
		<link>http://www.loadrunnertnt.com/concepts/difference-between-wininet-and-socket-level/</link>
		<comments>http://www.loadrunnertnt.com/concepts/difference-between-wininet-and-socket-level/#comments</comments>
		<pubDate>Tue, 22 Apr 2008 04:30:56 +0000</pubDate>
		<dc:creator>TnT Admin</dc:creator>
				<category><![CDATA[Concepts]]></category>
		<category><![CDATA[HTTP/HTML]]></category>
		<category><![CDATA[Script]]></category>
		<category><![CDATA[Socket]]></category>
		<category><![CDATA[WinINet]]></category>

		<guid isPermaLink="false">http://www.loadrunnertnt.com/?p=260</guid>
		<description><![CDATA[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. If you want detailed information on the APIs of WinInet, you can find them in the [...]]]></description>
			<content:encoded><![CDATA[<p>The <span style="font-weight: bold;">Windows Internet (WinInet)</span> application programming interface (API) enables applications to interact with <span style="font-weight: bold;">Gopher</span>, <span style="font-weight: bold;">FTP</span>, and <span style="font-weight: bold;">HTTP</span> protocols to access Internet resources. As standards evolve, these functions handle the changes in underlying protocols, enabling them to maintain consistent behavior. If you want detailed information on the APIs of WinInet, you can find them in the article, <a href="http://msdn2.microsoft.com/en-us/library/aa383630.aspx" target="_blank"><span style="text-decoration: underline;"><span style="color: #0066cc;">“About WinINet”</span></span></a> at Microsoft. Whereas for <span style="font-weight: bold;">Socket Level</span>, it is a proprietary API that Mercury/HP LoadRunner implements.<span id="more-260"></span></p>
<p>So what’s the difference between the two in LoadRunner context? And what does it mean by setting the recording level in Port Mapping of the Recording Options and replay for RTS (Runtime Settings)?</p>
<p>By configuring Vugen record at WinINet level, simply means to instruct <span style="font-weight: bold;">Vugen</span> 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.</p>
<p>When the recording level is configured to record at WinINet API, LoadRunner records traffic that is generated by the application which uses the WinINet API to communicate to the servers; meaning it attempts to capture traffice at the WinINet level. For Socket, <span style="font-weight: bold;">LoadRunner</span>, attempts to capture the traffic on the socket-level at a specified port, bypassing any WinINet API (if there is any).</p>
<p>For replay, the principle applies where WinINet will be replaying using WinINet API else it will be replaying via the default Socket level API; meaning defining the WinINet replay, instructs <span style="font-weight: bold;">Vugen</span> to replay the script passing through the WinINet API while the default Socket replay will be bypasing the WinINet API. There is a small description of <a href="http://support.openview.hp.com/selfsolve/document/KM169568" target="_blank"><span style="text-decoration: underline;"><span style="color: #0066cc;">Document ID 10735 &#8211; What is “WinINet instead of Sockets” for</span></span></a> at the <a href="http://support.openview.hp.com/" target="_blank"><span style="text-decoration: underline;"><span style="color: #0066cc;">support website</span></span></a> that reiterates the above but worth taking a look. A valid account will be required to login to access the article.</p>
<p>So, when do you configure <span style="font-weight: bold;">WinINet</span> or <span style="font-weight: bold;">Socket-level</span>? Sometimes web applications maybe designed in WinINet while at times it does not require WinINet as often and Socket level will be sufficient. How do we know which option to choose then? This will be a little tricky here but it will most probably end up in a series of trial-and-error. When an application fail in recording and replaying you can try by switching between the two modes which was also documented as part of the recording solution in <a title="Quick-and-Dirty Recording Techniques for Web (HTTP/HTML)" href="http://www.loadrunnertnt.com/?p=104" target="_blank">&#8220;Quick-and-Dirty Recording Techniques for Web (HTTP/HTML)&#8221;</a>.</p>
<p style="float: right; margin-right: 8px;">
<p>Lastly, a point to note that <span style="font-weight: bold;">Internet Explorer</span> browser&#8217;s API may change over time due to version upgrades (e.g. <span style="font-weight: bold;">IE 6</span> to <span style="font-weight: bold;">IE 7</span>) which may inherently cause the replay to be successful or fail. As mentioned, try switching the modes (after getting the necessary patches for IE7 if applicable) when you encountered problems in recording or replaying.</p>
<p>Hope all the above are sufficient for you to understand the WinINet and Socket-level recording and replaying in <span style="font-weight: bold;">LoadRunner</span> context.</p>
<p><span><br />
</span></p>
<p><!-- Additional Items for the post:Start --><!-- Additional Items for the post:End --><!-- Social Networks --></p>
]]></content:encoded>
			<wfw:commentRss>http://www.loadrunnertnt.com/concepts/difference-between-wininet-and-socket-level/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
