tag:blogger.com,1999:blog-30286760561330064362024-03-17T20:03:48.733-07:00Performance Testing OnlyThis is the Discussion Forum for all IT Queries Related to Performance Testing..So Don't Stay with your doubts..get it resolved with Our experts.Lalit K Garghttp://www.blogger.com/profile/17892760700891484757noreply@blogger.comBlogger42125tag:blogger.com,1999:blog-3028676056133006436.post-30127417388475876342020-10-12T02:50:00.001-07:002020-10-12T02:50:38.932-07:00HTTP 419 Page Expire Issue in Jmeter due to multipart request or Webkitformbounday <p>While working on the POST request , we re encountering HTTP 419 and Page expiration response in the response of request </p><p>This is the most common issue that we encountered during many of our assignment where we have to upload a file or where there is content type of multipart or <span style="color: #242729; font-family: Arial, Helvetica Neue, Helvetica, sans-serif;"><span style="background-color: white; font-size: 15px;">webkitformboundary</span></span></p><p>So below are the possible steps to remove the issue</p><p>1. Select the Follow redirect(If redirection are there) , Use Multipart/form-data </p><p><table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto;"><tbody><tr><td style="text-align: center;"><span style="margin-left: auto; margin-right: auto;"><img alt="" data-original-height="531" data-original-width="1316" height="255" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhojZAXeM08ykki6AXSO6Py4wfSfWdLMhUK9xwDZXmu1XSXTzO9czNuf1Ja_iF3TC1F1LyyCi2GX0S2vOA0wsxW52zXSM6ifw-cbylJaqb4RE5jCKq1q-afZGfjEq6eFDuTipQrc6IWhu4/w633-h255/image.png" width="633" /></span></td></tr><tr><td class="tr-caption" style="text-align: center;"><br /></td></tr></tbody></table><br /><br /><br />2. Delete the Content- Type header from the request headers </p><p></p><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjlthN1_4CGF-2g-jvNpy82-SHPgUG67N7vTaWEVptXNeK58xf7wQPHvXuz1-KLU2f1eVJicxZzPpD6XX0KjjwGJwVVZaV5s_U_H8hgB9_1lDXiEN1qEFLNV3oKLhO6yOg9-KqnEN8pa2A/" style="margin-left: 1em; margin-right: 1em;"><img alt="" data-original-height="372" data-original-width="972" height="245" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjlthN1_4CGF-2g-jvNpy82-SHPgUG67N7vTaWEVptXNeK58xf7wQPHvXuz1-KLU2f1eVJicxZzPpD6XX0KjjwGJwVVZaV5s_U_H8hgB9_1lDXiEN1qEFLNV3oKLhO6yOg9-KqnEN8pa2A/w644-h245/image.png" width="644" /></a></div><br />This will most probably resolve the issue<p></p><p><br /></p><p>Happy Testing... with Perfeasy... AI based automated tool for performances testing</p><p><br /></p><p><br /></p><p></p><div class="separator" style="clear: both; text-align: center;"><br /></div><div class="separator" style="clear: both; text-align: center;"><br /></div><br /><br /><p></p>Lalit K Garghttp://www.blogger.com/profile/17892760700891484757noreply@blogger.com2tag:blogger.com,1999:blog-3028676056133006436.post-83194123142470273582019-07-04T02:14:00.002-07:002019-07-04T02:14:45.883-07:00Recording /Testing Curl APIs Using Jmeter<div dir="ltr" style="text-align: left;" trbidi="on">
Many times we came across the situation to test the Curl Rest APIs but the challenge is to record them as making custom HTTP request embed error most of the times while preparing scripts for them.<br />
<br />
There are mainly two ways to record the curl APIs when we are taking in regard to the Jmeter.One process can be used to capture the CURL request in any type of proxy<br />
<br />
Method 1 : Curl To Test Plan convertor in Jmeter 5.1<br />
New functionality has been introduce in Jmeter 5.1 in which we can give curl as input to the jmeter and it gets converted to the HTTP test plan.Below are the step for the same.<br />
<br />
Step 1: Select "Import from Curl" from Tools in JMeter 5.1<br />
<br />
<br />
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjhUDqFELwDECfz241vSx2olzkoGSn6Id61eBnmf2dJflLw-1x7iSeUVbb9FP679dD1eJIJCztHhKq9zd3LjOK_3ZEYMk74MPztNMobsp8SiHvIpXYmAcYRAAm1QjmgTG9Y3LMBT8NxeQk/s1600/1.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="438" data-original-width="724" height="193" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjhUDqFELwDECfz241vSx2olzkoGSn6Id61eBnmf2dJflLw-1x7iSeUVbb9FP679dD1eJIJCztHhKq9zd3LjOK_3ZEYMk74MPztNMobsp8SiHvIpXYmAcYRAAm1QjmgTG9Y3LMBT8NxeQk/s320/1.jpg" width="320" /></a></div>
<br />
<br />
<br />
Step 2: Past the required Curl command and press convert to http plan<br />
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiQeTqcQwbhyJncGm1SzAH8EgPJOU_xYmBAo4U-m4xgohyKMRqxQcseSUez_wdvI8F3oRzXZFL2I1cGXhhBLl8Gng-jf41C9QKQbwsfsN2EMDjnciZpoAvZcjucx0iR63uwQO72gvERQ5A/s1600/3.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="518" data-original-width="968" height="171" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiQeTqcQwbhyJncGm1SzAH8EgPJOU_xYmBAo4U-m4xgohyKMRqxQcseSUez_wdvI8F3oRzXZFL2I1cGXhhBLl8Gng-jf41C9QKQbwsfsN2EMDjnciZpoAvZcjucx0iR63uwQO72gvERQ5A/s320/3.jpg" width="320" /></a></div>
<br />
<br />
<br />
<br />
<br />
<br />
Step 3: You can see that Curl has been converted to normal HTTP request now you can test the same<br />
<br />
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhBewGkQRAmo_QLfqOeId4Zi_ZbGiGwt2bnik4t7HCb4C0sl6-2H5JJ024b6iU1cUz0xIHhah18R2LLkLis0mRQrvZZ7tdERJo80i2_NEpY6iMyaKFQGI2ZEOnNbKyYbbsF9dv-fPh9FbI/s1600/3.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="518" data-original-width="968" height="171" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhBewGkQRAmo_QLfqOeId4Zi_ZbGiGwt2bnik4t7HCb4C0sl6-2H5JJ024b6iU1cUz0xIHhah18R2LLkLis0mRQrvZZ7tdERJo80i2_NEpY6iMyaKFQGI2ZEOnNbKyYbbsF9dv-fPh9FbI/s320/3.jpg" width="320" /></a></div>
<br />
<br />
<b>Method 2:</b><br />
There are some situation when jmeter is not able to parse the complex Curl using the convert utility.<br />
at this time we would require method of capturing CURL using proxy on command line<br />
<br />
for this we need to install the CURL in windows machine then then need to download the curl certification and then set the path of curl.exe to PATH in environment variables and then capture the CURL by configuring proxy on system and executing CURL on command line as follows<br />
<br />
Step 1: Installing CURL<br />
<br />
<h4 id="toc_2" style="background-color: white; box-sizing: inherit; color: #06363c; font-family: SHSN !important; font-size: 16px; margin-top: 0px;">
macOS: Already available </h4>
<div style="background-color: white; box-sizing: inherit; color: #464646; font-family: PNR; font-size: 15px;">
If you have Windows, you can download and install cURL as follows.</div>
<ol style="background-color: white; box-sizing: inherit; color: #464646; font-size: 15px; list-style-position: outside; margin: 20px 0px 20px 20px; padding-left: 20px;">
<li style="box-sizing: inherit; font-family: PNR;"><div style="box-sizing: inherit;">
In Windows, create a new folder called <strong style="box-sizing: inherit;">curl</strong> in your C: drive.</div>
<div style="box-sizing: inherit;">
<tt style="box-sizing: inherit;">C:\curl</tt></div>
</li>
<li style="box-sizing: inherit; font-family: PNR;"><div style="box-sizing: inherit;">
Go to <a href="http://curl.haxx.se/download.html" style="background-color: transparent; box-sizing: inherit; color: #1f73b7; text-decoration-line: none;">http://curl.haxx.se/download.html</a> and download one of the following zip files:</div>
<ul style="box-sizing: inherit; list-style: disc outside; margin: 20px 0px 20px 20px; padding: 0px 0px 0px 20px;">
<li style="box-sizing: inherit;">If you have a Windows 64 system, scroll to the <strong style="box-sizing: inherit;">Win64 - Generic</strong> section and look for the latest <strong style="box-sizing: inherit;">Win64 ia64 zip</strong> version with SSL support. It's normally second in the list. Click the version number to start the download.</li>
<li style="box-sizing: inherit;">If you have a Windows 32 system, scroll to the <strong style="box-sizing: inherit;">Win32 - Generic</strong> section and look for the latest <strong style="box-sizing: inherit;">Win32 zip</strong> version with SSL support. It's normally second in the list. Click the version number to start the download.</li>
</ul>
</li>
<li style="box-sizing: inherit; font-family: PNR;"><div style="box-sizing: inherit;">
Unzip the downloaded file and move the <strong style="box-sizing: inherit;">curl.exe</strong> file to your <tt style="box-sizing: inherit;">C:\curl</tt> folder.</div>
</li>
<li style="box-sizing: inherit; font-family: PNR;"><div style="box-sizing: inherit;">
Go to <a href="http://curl.haxx.se/docs/caextract.html" style="background-color: transparent; box-sizing: inherit; color: #1f73b7; text-decoration-line: none;">http://curl.haxx.se/docs/caextract.html</a> and download the digital certificate file named <strong style="box-sizing: inherit;">cacert.pem</strong>.</div>
<div style="box-sizing: inherit;">
The PEM file contains a bundle of valid digital certificates. The certificates are used to verify the authenticity of secure websites. They're distributed by certificate authority (CA) companies such as GlobalSign and VeriSign. The PEM file allows cURL to connect securely to the Zendesk API using the Secure Sockets Layer (SSL) protocol.</div>
</li>
<li style="box-sizing: inherit; font-family: PNR;"><div style="box-sizing: inherit;">
Move the <strong style="box-sizing: inherit;">cacert.pem</strong> file to your <tt style="box-sizing: inherit;">C:\curl</tt> folder and rename it <strong style="box-sizing: inherit;">curl-ca-bundle.crt</strong>.</div>
</li>
<li style="box-sizing: inherit; font-family: PNR;"><div style="box-sizing: inherit;">
Add the curl folder path to your Windows PATH environment variable so that the curl command is available from any location at the command prompt. Update the variable as follows:</div>
</li>
<ol style="box-sizing: inherit; font-family: PNR; list-style-position: outside; margin: 20px 0px 20px 20px; padding-left: 20px;">
<li style="box-sizing: inherit;"><div style="box-sizing: inherit;">
In the <strong style="box-sizing: inherit;">Start</strong> menu, right-click <strong style="box-sizing: inherit;">This PC</strong> and select <strong style="box-sizing: inherit;">More > Properties</strong>.</div>
<div style="box-sizing: inherit;">
<strong style="box-sizing: inherit;">Note</strong>: In Windows 7, right-click <strong style="box-sizing: inherit;">Computer</strong> and select <strong style="box-sizing: inherit;">Properties</strong>.</div>
</li>
<li style="box-sizing: inherit;"><div style="box-sizing: inherit;">
Click <strong style="box-sizing: inherit;">Advanced System Settings</strong>.</div>
</li>
<li style="box-sizing: inherit;"><div style="box-sizing: inherit;">
In the <strong style="box-sizing: inherit;">Advanced</strong> tab, click the <strong style="box-sizing: inherit;">Environment Variables</strong> button on the lower right side.</div>
</li>
<li style="box-sizing: inherit;"><div style="box-sizing: inherit;">
Select the "Path" variable in <strong style="box-sizing: inherit;">System Variables</strong>, and click <strong style="box-sizing: inherit;">Edit</strong>.</div>
</li>
<li style="box-sizing: inherit;"><div style="box-sizing: inherit;">
In the <strong style="box-sizing: inherit;">Edit environment variable</strong> dialog box, click <strong style="box-sizing: inherit;">New</strong> and add the path to the <strong style="box-sizing: inherit;">curl.exe</strong> file. Example: <tt style="box-sizing: inherit;">C:\curl</tt>.</div>
<div style="box-sizing: inherit;">
<br /></div>
<div style="box-sizing: inherit;">
<strong style="box-sizing: inherit;">Windows 7</strong>: In the <strong style="box-sizing: inherit;">Variable Value</strong> textbox, append a semicolon to the value, followed by the path to the <strong style="box-sizing: inherit;">curl.exe</strong> file. Example: <tt style="box-sizing: inherit;">;C:\curl</tt></div>
</li>
</ol>
</ol>
<div>
<span style="color: #464646; font-family: monospace;"><span style="font-size: 15px;"><br /></span></span></div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjEMvWPvARBzfgfrI3jYHgLdHbpykoUT2f-hhyphenhyphenFkQUJ7RWTlB3BZgFMTxpA51QV5yEZOilnjQoggrVXjRvEvcgIkahTQ6elqPvahY3i4yVTdfTORWwNTcSBzBmSP7Opski7oZm23OPs8iA/s1600/4.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="501" data-original-width="429" height="320" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjEMvWPvARBzfgfrI3jYHgLdHbpykoUT2f-hhyphenhyphenFkQUJ7RWTlB3BZgFMTxpA51QV5yEZOilnjQoggrVXjRvEvcgIkahTQ6elqPvahY3i4yVTdfTORWwNTcSBzBmSP7Opski7oZm23OPs8iA/s320/4.jpg" width="274" /></a></div>
<ol style="background-color: white; box-sizing: inherit; color: #464646; font-size: 15px; list-style-position: outside; margin: 20px 0px 20px 20px; padding-left: 20px;"><ol style="box-sizing: inherit; font-family: PNR; list-style-position: outside; margin: 20px 0px 20px 20px; padding-left: 20px;">
<li style="box-sizing: inherit;"><div style="box-sizing: inherit;">
Keep clicking OK to accept the change and close the dialog box.</div>
</li>
</ol>
</ol>
Step 2: Configure System Level Proxy :<br />
Refer to the <a href="http://www.lalitgarg.in/2017/01/load-test-desktop-applications-using-jmeter.html">http://www.lalitgarg.in/2017/01/load-test-desktop-applications-using-jmeter.html</a><br />
<br />
Step 3: Configure and Start proxy on Jmeter/Burpsuite/ any proxy tool<br />
<br />
Step 4: Execute Curl command with --proxy localhost:port arguments and you will see the Request captured in<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi3s2JSMygn3dTAUGtaVm4i7M3s0OBx9xZhomJ8xeq3WXD9m1QWeD8nk4rNnUZN05U0mICMRRLVxhvaMfOckvYk6Wk5H_ysTeINq-3QZ6RfVjwaOyj_B2d5bnemTJ2eZ2_9Sbqqww-UB5o/s1600/6.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="262" data-original-width="1110" height="75" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi3s2JSMygn3dTAUGtaVm4i7M3s0OBx9xZhomJ8xeq3WXD9m1QWeD8nk4rNnUZN05U0mICMRRLVxhvaMfOckvYk6Wk5H_ysTeINq-3QZ6RfVjwaOyj_B2d5bnemTJ2eZ2_9Sbqqww-UB5o/s320/6.jpg" width="320" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg8k2-BkjQQB2AOEJHxQPEbEYA3LNquwdVhU_BMGNjuTc1VONooyGypUubJ4_BvwYkFtijvSqx9Y_Hv0MeCTX-6zuuwLlCPfuWZP3jBRVJZ20S89QcA8cQEt4gha6V0SrXTQFPT1zMvfg4/s1600/7.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="768" data-original-width="1366" height="179" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg8k2-BkjQQB2AOEJHxQPEbEYA3LNquwdVhU_BMGNjuTc1VONooyGypUubJ4_BvwYkFtijvSqx9Y_Hv0MeCTX-6zuuwLlCPfuWZP3jBRVJZ20S89QcA8cQEt4gha6V0SrXTQFPT1zMvfg4/s320/7.jpg" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgviuzF6AdDt85LiI0K1SC69hTZn4hv2i8oqXdJ7U57pkKEXN2j5Bz0XevsyngfyGeF-7DqOEVm5KRLyuGoqkuJUH95mO8vYxqjpM7IIPKvR141_MseXCBrDLGEtlfuyK1r_ULUGZk-tIg/s1600/8.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="549" data-original-width="857" height="204" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgviuzF6AdDt85LiI0K1SC69hTZn4hv2i8oqXdJ7U57pkKEXN2j5Bz0XevsyngfyGeF-7DqOEVm5KRLyuGoqkuJUH95mO8vYxqjpM7IIPKvR141_MseXCBrDLGEtlfuyK1r_ULUGZk-tIg/s320/8.jpg" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<br />
<br />
Happy Testing !!!!!<br />
</div>
Lalit K Garghttp://www.blogger.com/profile/17892760700891484757noreply@blogger.com4tag:blogger.com,1999:blog-3028676056133006436.post-26702561436653534912018-11-13T03:41:00.000-08:002018-11-13T03:41:07.289-08:00Distributed (Remote) Testing Using Jmeter<div dir="ltr" style="text-align: left;" trbidi="on">
<br />
<h1>
<span style="color: black; font-family: "arial" , sans-serif; mso-fareast-font-family: "Times New Roman";">JMeter: Distributed (Remote) Testing<o:p></o:p></span></h1>
<span style="color: black; font-family: "arial" , sans-serif; font-size: 10.0pt;"><a href="http://jmeter.apache.org/">JMeter</a> is popular open source load testing
software from Apache and it is a Java Graphical application. The easiest way to
run it in Amazon EC2 is in a windows server so it could be easily access via
RDP.<br />
<br />
JMeter has a master/slave architecture where the client is the master and
multiple JMeter servers are slaves running tests in a scalable fashion. I tried
to set up an environment where the master instance would be hosted by my
workstation behind corporate firewall but due to the corporate polices with
regards to setting up inbound rules in the firewall it proved to be a
challenge.<o:p></o:p></span><br />
<span style="color: black; font-family: "arial" , sans-serif; font-size: 10.0pt;">So,
I gave up and went with the approach where I set up both the master and
client(s) in Amazon EC2, the master on a large instance so it has the CPU to
process the graphs and the slave(s) on medium instances that have the network
capacity to run the tests.<o:p></o:p></span><br />
<span style="color: black; font-family: "arial" , sans-serif; font-size: 10.0pt;">In
order to be able to set up distributed environment you have to have some basic
knowledge of how to spin up and Amazon server image and set up security groups
(and the concept of AWS security groups). You have to be logged into AWS
console in order to accomplish it.<o:p></o:p></span><br />
<br />
<div class="MsoNormal">
<strong><span style="color: black; font-family: "arial" , sans-serif; font-size: 10.0pt;">Terminology</span></strong><span style="color: black; font-family: "arial" , sans-serif; font-size: 10.0pt;"> <o:p></o:p></span></div>
<div class="MsoNormal">
<span style="color: black; font-family: "arial" , sans-serif; font-size: 10.0pt;">Before we dive into the
step-by-step instructions, it's a good idea to define the terms and make sure
the definition is clear. <o:p></o:p></span></div>
<div class="MsoNormal">
<span style="color: black; font-family: "arial" , sans-serif; font-size: 10.0pt;">Master– the system
running Jmeter GUI, which controls the test <o:p></o:p></span></div>
<div class="MsoNormal">
<span style="color: black; font-family: "arial" , sans-serif; font-size: 10.0pt;">Slave– the system
running jmeter-server, which takes commands from the GUI and send requests to <o:p></o:p></span></div>
<div class="MsoNormal">
<span style="color: black; font-family: "arial" , sans-serif; font-size: 10.0pt;">the target system(s) <o:p></o:p></span></div>
<div class="MsoNormal">
<span style="color: black; font-family: "arial" , sans-serif; font-size: 10.0pt;">Target– the webserver to
stress test <o:p></o:p></span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<strong><span style="color: black; font-family: "arial" , sans-serif; font-size: 10.0pt;">Important notes</span></strong><span style="color: black; font-family: "arial" , sans-serif; font-size: 10.0pt;"> <o:p></o:p></span></div>
<span style="color: black; font-family: "arial" , sans-serif; font-size: 10.0pt;"><br /></span>
<span style="color: black; font-family: "arial" , sans-serif; font-size: 10.0pt;">Make
sure that all the nodes (client and servers) :<o:p></o:p></span><br />
<ul type="disc">
<li class="MsoNormal" style="color: black; mso-list: l1 level1 lfo1; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; tab-stops: list 36.0pt;"><span style="font-family: "arial" , sans-serif; font-size: 10.0pt;">are running exactly the same version of JMeter.<o:p></o:p></span></li>
<li class="MsoNormal" style="color: black; mso-list: l1 level1 lfo1; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; tab-stops: list 36.0pt;"><span style="font-family: "arial" , sans-serif; font-size: 10.0pt;">are using the same version of Java on all systems.
Using different versions of Java may work but is discouraged. I had to
download in install the same version of JDK across all servers that I used
in the test.<o:p></o:p></span></li>
</ul>
<span style="color: black; font-family: "arial" , sans-serif; font-size: 10.0pt;">If
the test uses any data files, note that these are not sent across by the client
so make sure that these are available in the appropriate directory on each
server. In my test, on the server machine I had to define the following path,
that I had defined in the 'User Defined Variables' section of my Java script.<o:p></o:p></span><br />
<span style="color: black; font-family: "arial" , sans-serif; font-size: 10.0pt;"><!--[if gte vml 1]><v:shapetype id="_x0000_t75" coordsize="21600,21600"
o:spt="75" o:preferrelative="t" path="m@4@5l@4@11@9@11@9@5xe" filled="f"
stroked="f">
<v:stroke joinstyle="miter"/>
<v:formulas>
<v:f eqn="if lineDrawn pixelLineWidth 0"/>
<v:f eqn="sum @0 1 0"/>
<v:f eqn="sum 0 0 @1"/>
<v:f eqn="prod @2 1 2"/>
<v:f eqn="prod @3 21600 pixelWidth"/>
<v:f eqn="prod @3 21600 pixelHeight"/>
<v:f eqn="sum @0 0 1"/>
<v:f eqn="prod @6 1 2"/>
<v:f eqn="prod @7 21600 pixelWidth"/>
<v:f eqn="sum @8 21600 0"/>
<v:f eqn="prod @7 21600 pixelHeight"/>
<v:f eqn="sum @10 21600 0"/>
</v:formulas>
<v:path o:extrusionok="f" gradientshapeok="t" o:connecttype="rect"/>
<o:lock v:ext="edit" aspectratio="t"/>
</v:shapetype><v:shape id="Picture_x0020_1" o:spid="_x0000_i1032" type="#_x0000_t75"
style='width:351pt;height:9pt;visibility:visible;mso-wrap-style:square'>
<v:imagedata src="file:///C:\Users\AKASH~1.RAS\AppData\Local\Temp\msohtmlclip1\01\clip_image001.png"
o:title="684ddfa81768d56a2a9aa5835c2d7117"/>
</v:shape><![endif]--><!--[if !vml]--><!--[endif]--></span><span style="color: black; font-family: "arial" , sans-serif; font-size: 10.0pt;"><o:p></o:p></span><br />
<br />
<h2 id="JMeter:Distributed(Remote)Testing-Step-by-stepguide">
<span style="color: black; font-family: "arial" , sans-serif; mso-fareast-font-family: "Times New Roman";">Step-by-step guide</span></h2>
<ul style="text-align: left;">
<li>Log in AWS console.</li>
<li>Define two security groups, one to be used by the
master and another one by the slave. Go with default values, you will
tailor them later once you have spun up the server images.</li>
<li>Pick an Amazon Windows Image. In my case I
selected 64 bit Windows 2008 R2 Server image (the same was selected
for the second image). Launch a large instance (for the master). Take note
of its public IP addresses. In my case I had '54.86.105.11'. Make sure
that port 3389 (security group) open for RDP, the same would apply for the
second image (see below)</li>
<li>Launch a medium instance to be used as a host for a
slave. In a case when a few slaves are required then more instances should
be launched. Take note of their public IP addresses. I spun a single
instance with the following IP address: '54.166.224.129'</li>
<li>Edit the (master) security group with the following
inbound rule (see the screenshot below). The IP address of the slave's
host should be used with the CIDR notation, that is the /32 prefix should
be appended to the IP address. Note, I picked an arbitrary port 51000.
Could be any port as long as it is not in use by any other process. Once
you have edited it, the changes will be applied on the fly to the created
image.<span style="font-family: "arial" , sans-serif; font-size: 10pt;"></span></li>
<li>This port would be used to transfer test results from the slave server
over to the master.</li>
<li>Edit the (slave) security group with the following
inbound rule (see the screenshot below). The IP address of the slave's
host should be used with the CIDR notation, that is the '/32' prefix
should be added to the IP address. Note, I picked an arbitrary port 4000.
Could be any port as long as it is not in use by any other process.</li>
<li>This port will be used for the master server to pass a set of test
instructions to the slave machine. The master will be listening to this
one port only to receive results. That means that all of the slaves will
be sending their results back through this port.</li>
</ul>
<ul style="text-align: left;">
<li class="MsoNormal" style="color: black; mso-list: l2 level1 lfo2; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; tab-stops: list 36.0pt;"><span style="font-family: "arial" , sans-serif; font-size: 10.0pt;">Now, navigate to the slave host and into the
[JMETER_HOME]/bin directory. Open jmeter.properties file and make sure to
edit the following properties in the Remote hosts and RMI configuraion
section of this file:</span></li>
</ul>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhSWJIIxMT-U7cJHuDlovUCw4wBIhkPFajIB-j4asg0IeFaeTT46aANGAAYvuaPzVN8Puvf4EMptqeGYS9KzCCb9VmJG5G727acRQKcGn1MJs6tlibMrltGytoVLztyQFS9zZ_6eJjz3owJ/s1600/Capture.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="713" data-original-width="564" height="640" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhSWJIIxMT-U7cJHuDlovUCw4wBIhkPFajIB-j4asg0IeFaeTT46aANGAAYvuaPzVN8Puvf4EMptqeGYS9KzCCb9VmJG5G727acRQKcGn1MJs6tlibMrltGytoVLztyQFS9zZ_6eJjz3owJ/s640/Capture.PNG" width="506" /></a></div>
<ul style="text-align: left;">
<a href="https://www.blogger.com/blogger.g?blogID=3028676056133006436" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"></a><a href="https://www.blogger.com/blogger.g?blogID=3028676056133006436" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"></a><a href="https://www.blogger.com/blogger.g?blogID=3028676056133006436" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"></a>
<li class="MsoNormal" style="color: black; mso-list: l2 level1 lfo2; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; tab-stops: list 36.0pt;"><span style="font-family: "arial" , sans-serif; font-size: 10.0pt;">Now, on the slave host in the same [JMETER_HOME]/bin
directory launch the JMeter application via command line, making sure to
pass the public IP address of the slave's host. YOu are going to end up
with the following output:</span></li>
</ul>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://www.blogger.com/blogger.g?blogID=3028676056133006436" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"></a><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjLAO__MR9hW4cNfVSiOqRHOHKjaSp_vR-VrcpWWSl9hPh01-H3BTtDS3bemvWxEfHXfUKg-gmQqOyk4xua0lklF62cZxYvMg564LH-M4UxCAdrz6aAtRUVj7H2y0khaAtismtHVKHw2Y__/s1600/Capture1.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="105" data-original-width="467" height="142" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjLAO__MR9hW4cNfVSiOqRHOHKjaSp_vR-VrcpWWSl9hPh01-H3BTtDS3bemvWxEfHXfUKg-gmQqOyk4xua0lklF62cZxYvMg564LH-M4UxCAdrz6aAtRUVj7H2y0khaAtismtHVKHw2Y__/s640/Capture1.PNG" width="640" /></a></div>
<div>
<span style="font-family: "arial" , sans-serif;"><span style="font-size: 13.3333px;"><br /></span></span></div>
<ul style="text-align: left;">
<li>On the master machine similar to step one edit a few
properties as indicated below in the jmeter.properties file</li>
</ul>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgkDhfy3fB_peU4TBcNJOenH38v5RWykUBu6D2Lz4w-xe2t6LDvCw2YxGh91JMV0Jlbr1xR1jq7GOAM7DNxTwOvPzZN6EJoLRnbaCUqBQhcmoPDdY6DB8GZEN900J-meCRvi7C_NDTzLgTg/s1600/Capture2.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="414" data-original-width="506" height="522" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgkDhfy3fB_peU4TBcNJOenH38v5RWykUBu6D2Lz4w-xe2t6LDvCw2YxGh91JMV0Jlbr1xR1jq7GOAM7DNxTwOvPzZN6EJoLRnbaCUqBQhcmoPDdY6DB8GZEN900J-meCRvi7C_NDTzLgTg/s640/Capture2.PNG" width="640" /></a></div>
<ul style="text-align: left;">
<li>On the master machine launch JMeter GUI and select
the slave's host in the shortcut menu which should get the test
going:</li>
</ul>
<div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhMQqguiqsWdRfItQ5QdMmlrmpcfeUXpkB3Ff4oBBZcMpJso6H5JB4OB9GjvzGjMrKAhkFtAOfOnrYkYR5qAEAvqFCYKUFYhJWQkPsXt0yQ94rVUjkovKVy7uf2onNk7FBw_0gz1yNaWf3M/s1600/Capture3.PNG" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" data-original-height="358" data-original-width="469" height="305" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhMQqguiqsWdRfItQ5QdMmlrmpcfeUXpkB3Ff4oBBZcMpJso6H5JB4OB9GjvzGjMrKAhkFtAOfOnrYkYR5qAEAvqFCYKUFYhJWQkPsXt0yQ94rVUjkovKVy7uf2onNk7FBw_0gz1yNaWf3M/s400/Capture3.PNG" width="400" /></a></div>
<span id="goog_492759886"></span><span id="goog_492759887"></span><br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<a href="https://www.blogger.com/blogger.g?blogID=3028676056133006436" imageanchor="1" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"></a><a href="https://www.blogger.com/blogger.g?blogID=3028676056133006436" imageanchor="1" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"></a><a href="https://www.blogger.com/blogger.g?blogID=3028676056133006436" imageanchor="1" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"></a><br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
*********************************************************************************<br />
<br />
Hope this information will be useful, please provide your valuable feedback/suggestions !! Happy Testing.</div>
</div>
Anonymoushttp://www.blogger.com/profile/03138555055440930687noreply@blogger.com2tag:blogger.com,1999:blog-3028676056133006436.post-41175599396088055672018-03-21T04:08:00.000-07:002018-03-21T04:09:46.138-07:00Essential Skills for Performance Tester <div dir="ltr" style="text-align: left;" trbidi="on">
Based on the discussion we had among the experienced performance testers/ engineers we came up with the essential skills that is required to be in Performance Testers<br />
<br />
<img alt="17 essential skills for growing web performance engineers" height="226" src="https://www.soasta.com/wp-content/uploads/2017/01/growing-performance-engineers.jpg" width="400" /><br />
<b>Requirement Gathering and System Level Skills:</b><br />
<br />
1) Able to Understand the System Architecture (Knowledge of components ,OS , techology etc)<br />
2) Have Basic understanding of System hardware Resource Like CPU , Memory, Network, Disc etc<br />
3) Should Know about the Diffrent Types of Test Environments<br />
4) Able to Know and understand Functional Level Workflows<br />
5) Able to gather information about Scenario of Currnt Production Load and Expected Load<br />
6) Able to gather the information about SLAs<br />
<br />
<b>Scripting and Testing Skills:</b><br />
<br />
1) Able to Install and Configure testing tools<br />
2) Able to record and enhance the scripts<br />
3) Understand and Prepare the Test Data<br />
4) Able to create different scenarios (Load,Stress, real Life ) based on the expectations<br />
5) Running the load test executions for the above created scenarios<br />
<br />
<b>Monitoring and Result Analysis Skills:</b><br />
<br />
1) Able to analyze the load test tool results<br />
2) Configure server monitoring counters<br />
3) Bottleneck Identification<br />
4) Reporting<br />
<br />
<br />
Feel free to add in comments if i have missed anything<br />
<br /></div>
Lalit K Garghttp://www.blogger.com/profile/17892760700891484757noreply@blogger.com29tag:blogger.com,1999:blog-3028676056133006436.post-50292631771208503592018-01-09T21:39:00.000-08:002018-01-09T21:40:59.103-08:00Using JSON extractor in Jmeter: How to deal with dynamic values in JSON response<div dir="ltr" style="text-align: left;" trbidi="on">
How To use JSON Extractor in Jmeter<br />
<br />
Json extractor is used like regular expression extractor to capture some dynamic values from the response but used for json only.<br />
<br />
By using this we can fetch the values of variables in the Json.<br />
<br />
Let me take an example<br />
<br />
Below is the Json and its corresponding response:<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjTkNm2ygv9s2hYBqwtgo7YuZ_s7i9wWgwES9UC58pmNRmUu4QYLbOnupet6vqmAanm8N0WvKAgyVmnAds5ONp8lIhHu8FlyWP0_Mnj4EaZ0zQfq5g1sCdrq1M2BTGVUl14E654PZArSfE/s1600/JsonExtractor.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" data-original-height="407" data-original-width="898" height="289" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjTkNm2ygv9s2hYBqwtgo7YuZ_s7i9wWgwES9UC58pmNRmUu4QYLbOnupet6vqmAanm8N0WvKAgyVmnAds5ONp8lIhHu8FlyWP0_Mnj4EaZ0zQfq5g1sCdrq1M2BTGVUl14E654PZArSfE/s640/JsonExtractor.jpg" width="640" /></a></div>
<br />
Here we want to extract the value of variable name "label" or "val"<br />
which are changing dynamically<br />
<br />
We can use Json extractor to fulfil thie purpose here<br />
<br />
below is the JSON values that can be used<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgtioZRmQbZcv4lgQ-gM55yoSGtqezY6lcTsRPtA4Hmkf7hySFWI6pSN3uAuDW2zGMCjO_h__Q7JmNeOjyJ3IIOel49xoImeSOO3mSV-ipgq21HPspV-MP3KlNVmrRAjtn44hDgjreX94Q/s1600/JsonExtractor_1.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" data-original-height="425" data-original-width="1212" height="224" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgtioZRmQbZcv4lgQ-gM55yoSGtqezY6lcTsRPtA4Hmkf7hySFWI6pSN3uAuDW2zGMCjO_h__Q7JmNeOjyJ3IIOel49xoImeSOO3mSV-ipgq21HPspV-MP3KlNVmrRAjtn44hDgjreX94Q/s640/JsonExtractor_1.jpg" width="640" /></a></div>
<br />
<br />
In this Json extractor blow are the parameters and their corresponding values<br />
<br />
Variable Name: Name of the variable (can be used anything logical, here we have used the same as we are getting in response)<br />
<br />
JSON Path expression: It is the most important part for JSON configurations, We should use the path extractor expression here.<br />
Here we have used $..lable , Here two dot means we have json variable in two nested blocks, For normal JSON where there is only one tag , we used single dot.<br />
<br />
Match Number: 0 means any random value, here we can use 1 or 2 to get first value or second value and so on, we can also use -1 for getting all possible values to be stored in array (with variable name as mentioned above)<br />
<br />
Default Values: this values that can be passed when we didnt got the expected value.<br />
<br />
<br />
<b>TO varify the value captured in Json extractor:</b><br />
<br />
We can use the Debug Sampler on the thread group to validate the value captured using Json extarctor, Debug sample is used to print all the used defined configured variable in jmeter.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhKWg4SOMmi2e5DrdMibwU5mcGih2hW_tHCO4tPOZh8okQ_CkIhT5_9sRRfOTk9CLS1oxKvsxCDwXeMiD-qs_W0gP7U0Dvn0VsZonGMft2v59KH1L89xr27cgwAoLKCcKsqi6nynjAwz_Q/s1600/JsonExtractor_2.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" data-original-height="217" data-original-width="929" height="148" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhKWg4SOMmi2e5DrdMibwU5mcGih2hW_tHCO4tPOZh8okQ_CkIhT5_9sRRfOTk9CLS1oxKvsxCDwXeMiD-qs_W0gP7U0Dvn0VsZonGMft2v59KH1L89xr27cgwAoLKCcKsqi6nynjAwz_Q/s640/JsonExtractor_2.jpg" width="640" /></a></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="font-size: 13.5pt;"><br />
Here we can see that variable "label": captured SpiceJet , and
lable_matchNr having value as 10 because there are 10 occurrence of the values
corresponding to the expression we have defined for variable label in JSON
extractor.<o:p></o:p></span><br />
<span style="font-size: 13.5pt;"><br /></span>
<span style="font-size: 13.5pt;"><span style="font-family: "calibri" , sans-serif; font-size: 13.5pt; line-height: 107%;">Feel
Free to add if i have missed anything.</span></span><br />
<span style="font-size: 13.5pt;"><span style="font-family: "calibri" , sans-serif; font-size: 13.5pt; line-height: 107%;"><br /></span></span></div>
<br />
<div>
<br /></div>
</div>
Lalit K Garghttp://www.blogger.com/profile/17892760700891484757noreply@blogger.com6tag:blogger.com,1999:blog-3028676056133006436.post-82659209384909798852017-12-12T23:54:00.002-08:002017-12-12T23:54:38.698-08:00Client Side Response Time/Rendering Time and Server Side Time of Mobile app/Web Application <div dir="ltr" style="text-align: left;" trbidi="on">
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="font-family: "Times New Roman", serif; font-size: 13.5pt;">When we talk about the
performance testing of any application weather it is web application of Mobile
App. First question comes in our mind is about the user experience of the
application.<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<br /></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="font-family: "Times New Roman", serif; font-size: 13.5pt;">Most of the tools that
are available in the market gives the stats of only one component of this
scenario i.e. they only provide the server-side response time. <o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<br /></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="font-family: "Times New Roman", serif; font-size: 13.5pt;">But client-side loading
time/rendering time is also point of interest if we are taking about the end to
end response time.<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<br /></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="font-family: "Times New Roman", serif; font-size: 13.5pt;">though not very useful
information is available over the google from where you can get the client-side
response time and server-side response time as well., but when there is an
issue with the performance of the application then it becomes necessary to segregate
even if the issue is at server side of at client side.<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<br /></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="font-family: "Times New Roman", serif; font-size: 13.5pt;">We can achieve this by a
simple formula:<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<br /></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="font-family: "Times New Roman", serif; font-size: 13.5pt;">Capture over all page
load time<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="font-family: "Times New Roman", serif; font-size: 13.5pt;">Capture TTFB [Time to
first buffer] <o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<br /></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="font-family: "Times New Roman", serif; font-size: 13.5pt;">1) There is an issue in
page at server side if TTFB is high and difference of load time and TTFB is
very low<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="font-family: "Times New Roman", serif; font-size: 13.5pt;">2) There is an issue at
client side if TTFB is very low and high page load time is there<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<br /></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="font-family: "Times New Roman", serif; font-size: 13.5pt;">Even we can get the segregation
of server-side response time as well as client side response time using the
Fiddler while capturing the Mobile App/Web App requestes:<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<br /></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="font-family: "Times New Roman", serif; font-size: 13.5pt;">You can easily
understand these from the below screenshot:<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<br /></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiswBjck0GdMR30Px2fMEOw8Bb1Uq9rSKoy6KcHlT4mVnMJOTXNQbveU0arbrZ_NERw7uCKHa99cEpQil6K309r7r3B0LILajxivXThvgUtMXEYTB2AjoZJuAmlkwNWPDT0GHaRipvah0g/s1600/Fiddler.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="339" data-original-width="881" height="246" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiswBjck0GdMR30Px2fMEOw8Bb1Uq9rSKoy6KcHlT4mVnMJOTXNQbveU0arbrZ_NERw7uCKHa99cEpQil6K309r7r3B0LILajxivXThvgUtMXEYTB2AjoZJuAmlkwNWPDT0GHaRipvah0g/s640/Fiddler.JPG" width="640" /></a></div>
<br />
<div align="center" class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi8IBkGk5sRvqSKKnZL5B_CoAiPHq5hdRHy6e7Lj6JFOEhCTyrpVfHnSJZTFjXpJi-Mip_YL6a-B44_MVZHjJcATT-lFMheS412FbDe9PSSpW4Q0VdUgiOT-2AFud3FukVeejNZXKiM6p0/s1600/Fiddler.JPG"><span style="color: blue; font-family: "Times New Roman", serif; font-size: 13.5pt; text-decoration-line: none;"><!--[if gte vml 1]><v:shapetype id="_x0000_t75" coordsize="21600,21600"
o:spt="75" o:preferrelative="t" path="m@4@5l@4@11@9@11@9@5xe" filled="f"
stroked="f">
<v:stroke joinstyle="miter"/>
<v:formulas>
<v:f eqn="if lineDrawn pixelLineWidth 0"/>
<v:f eqn="sum @0 1 0"/>
<v:f eqn="sum 0 0 @1"/>
<v:f eqn="prod @2 1 2"/>
<v:f eqn="prod @3 21600 pixelWidth"/>
<v:f eqn="prod @3 21600 pixelHeight"/>
<v:f eqn="sum @0 0 1"/>
<v:f eqn="prod @6 1 2"/>
<v:f eqn="prod @7 21600 pixelWidth"/>
<v:f eqn="sum @8 21600 0"/>
<v:f eqn="prod @7 21600 pixelHeight"/>
<v:f eqn="sum @10 21600 0"/>
</v:formulas>
<v:path o:extrusionok="f" gradientshapeok="t" o:connecttype="rect"/>
<o:lock v:ext="edit" aspectratio="t"/>
</v:shapetype><v:shape id="Picture_x0020_1" o:spid="_x0000_i1025" type="#_x0000_t75"
alt="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi8IBkGk5sRvqSKKnZL5B_CoAiPHq5hdRHy6e7Lj6JFOEhCTyrpVfHnSJZTFjXpJi-Mip_YL6a-B44_MVZHjJcATT-lFMheS412FbDe9PSSpW4Q0VdUgiOT-2AFud3FukVeejNZXKiM6p0/s640/Fiddler.JPG"
href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi8IBkGk5sRvqSKKnZL5B_CoAiPHq5hdRHy6e7Lj6JFOEhCTyrpVfHnSJZTFjXpJi-Mip_YL6a-B44_MVZHjJcATT-lFMheS412FbDe9PSSpW4Q0VdUgiOT-2AFud3FukVeejNZXKiM6p0/s1600/Fiddler.JPG"
style='width:480pt;height:184.5pt;visibility:visible;mso-wrap-style:square'
o:button="t">
<v:imagedata src="file:///C:/Users/LALIT~1.GAR/AppData/Local/Temp/msohtmlclip1/01/clip_image001.jpg"
o:title="Fiddler"/>
</v:shape><![endif]--><!--[if !vml]--><!--[endif]--></span></a><span style="font-family: "Times New Roman", serif; font-size: 13.5pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<br /></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<br /></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<br /></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="font-family: "Times New Roman", serif; font-size: 13.5pt;">Below parameters will
give us this segregate results:<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<br /></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="font-family: Symbol; font-size: 12.0pt; mso-ascii-font-family: "Times New Roman"; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">·</span><span style="font-family: "Times New Roman",serif; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";">
<b>FiddlerBeginRequest</b> – The time at which Fiddler began
sending the HTTP request to the server.<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="font-family: Symbol; font-size: 12.0pt; mso-ascii-font-family: "Times New Roman"; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">·</span><span style="font-family: "Times New Roman",serif; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";">
<b>ServerGotRequest</b> - Exact time that Fiddler finished
(re)sending the HTTP request to the server.<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="font-family: Symbol; font-size: 12.0pt; mso-ascii-font-family: "Times New Roman"; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">·</span><span style="font-family: "Times New Roman",serif; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";">
<b>ServerBeginResponse</b> - Exact time that Fiddler got the first
bytes of the server's HTTP response.<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="font-family: Symbol; font-size: 12.0pt; mso-ascii-font-family: "Times New Roman"; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">·</span><span style="font-family: "Times New Roman",serif; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";">
<b>ServerDoneResponse</b> - Exact time that Fiddler got the last
bytes of the server's HTTP response.<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="font-family: Symbol; font-size: 12.0pt; mso-ascii-font-family: "Times New Roman"; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">·</span><span style="font-family: "Times New Roman",serif; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";">
<b>ClientBeginResponse</b> - Exact time that Fiddler began
transmitting the HTTP response to the client browser.<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="font-family: Symbol; font-size: 12.0pt; mso-ascii-font-family: "Times New Roman"; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">·</span><span style="font-family: "Times New Roman",serif; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";">
<b>ClientDoneResponse</b>- Exact time that Fiddler finished transmitting
the HTTP response to the client browser.<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<br /></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<br /></div>
<br />
<div class="MsoNormal">
<br /></div>
</div>
Lalit K Garghttp://www.blogger.com/profile/17892760700891484757noreply@blogger.com2tag:blogger.com,1999:blog-3028676056133006436.post-45724100997707257962017-12-12T20:56:00.002-08:002017-12-12T20:56:59.257-08:00Capturing Response time for Andriod App Launcher <div dir="ltr" style="text-align: left;" trbidi="on">
<div style="background-color: white; color: #3d85c6; font-family: verdana, sans-serif; font-size: small;">
<span style="font-family: Calibri, sans-serif; font-size: 14.6667px;">Below are the scenario that we have tried to capture the response time of Google Now Launcher activities .</span></div>
<div style="background-color: white; color: #3d85c6; font-family: verdana, sans-serif; font-size: small;">
<span style="font-family: Calibri, sans-serif; font-size: 14.6667px;"><br /></span></div>
<div style="background-color: white; color: #3d85c6; font-family: verdana, sans-serif; font-size: small;">
<span style="font-family: Calibri, sans-serif; font-size: 14.6667px;">We have tried to capture the response time of below activities taking it as Minor Project : </span></div>
<div style="background-color: white; color: #3d85c6; font-family: verdana, sans-serif; font-size: small;">
<span style="font-family: Calibri, sans-serif; font-size: 14.6667px;"><br /></span></div>
<div style="background-color: white; color: #3d85c6; font-family: verdana, sans-serif; font-size: small;">
<div class="MsoNormal" style="color: #222222; font-family: "Times New Roman", serif; font-size: 12pt; margin-left: 0in; margin-right: 0in;">
<b><span style="color: #595959; font-family: "Century Gothic", sans-serif; font-size: 10pt;">Minor Project – QA<u></u><u></u></span></b></div>
<div class="MsoNormal" style="color: #222222; font-family: "Times New Roman", serif; font-size: 12pt; margin-left: 0in; margin-right: 0in;">
<span style="color: #595959; font-family: "Century Gothic", sans-serif; font-size: 10pt;">Evaluate the performance of Google Now Launcher from Play Store.<u></u><u></u></span></div>
<div class="MsoNormal" style="color: #222222; font-family: "Times New Roman", serif; font-size: 12pt; margin-left: 0in; margin-right: 0in;">
<span style="color: #595959; font-family: "Century Gothic", sans-serif; font-size: 10pt;">• </span><span style="color: #595959; font-family: "Century Gothic", sans-serif; font-size: 10pt;">Install the latest version of Google Now Launcher<u></u><u></u></span></div>
<div class="MsoNormal" style="color: #222222; font-family: "Times New Roman", serif; font-size: 12pt; margin-left: 0in; margin-right: 0in;">
<span style="color: #595959; font-family: "Century Gothic", sans-serif; font-size: 10pt;">• </span><span style="color: #595959; font-family: "Century Gothic", sans-serif; font-size: 10pt;">Report the average application opening time of Hot-seat icons<u></u><u></u></span></div>
<div class="MsoNormal" style="color: #222222; font-family: "Times New Roman", serif; font-size: 12pt; margin-left: 0in; margin-right: 0in;">
<span style="color: #595959; font-family: "Century Gothic", sans-serif; font-size: 10pt;">• </span><span style="color: #595959; font-family: "Century Gothic", sans-serif; font-size: 10pt;">Report the average time to navigate to App Drawer<u></u><u></u></span></div>
<div class="MsoNormal" style="color: #222222; font-family: "Times New Roman", serif; font-size: 12pt; margin-left: 0in; margin-right: 0in;">
<span style="color: #595959; font-family: "Century Gothic", sans-serif; font-size: 10pt;">• </span><span style="color: #595959; font-family: "Century Gothic", sans-serif; font-size: 10pt;">Report the average application opening time of App Drawer icons<u></u><u></u></span></div>
<div class="MsoNormal" style="color: #222222; font-family: "Times New Roman", serif; font-size: 12pt; margin-left: 0in; margin-right: 0in;">
<span style="color: #595959; font-family: "Century Gothic", sans-serif; font-size: 10pt;">• </span><span style="color: #595959; font-family: "Century Gothic", sans-serif; font-size: 10pt;">Test that on long press the Launcher enters overflow mode<u></u><u></u></span></div>
<div class="MsoNormal" style="color: #222222; font-family: "Times New Roman", serif; font-size: 12pt; margin-left: 0in; margin-right: 0in;">
<span style="color: #595959; font-family: "Century Gothic", sans-serif; font-size: 10pt;">• </span><span style="color: #595959; font-family: "Century Gothic", sans-serif; font-size: 10pt;">Test that user is able to change wallpaper of Launcher</span></div>
</div>
<div style="background-color: white; color: #3d85c6; font-family: verdana, sans-serif; font-size: small;">
<span style="font-family: Calibri, sans-serif; font-size: 14.6667px;"><br /></span></div>
<div style="background-color: white; color: #3d85c6; font-family: verdana, sans-serif; font-size: small;">
<span style="font-family: Calibri, sans-serif; font-size: 14.6667px;">All the activities that are mentioned above are client side only and leg time for the same depend on the RAM in the test device, Though we can easily get the matrix for CPU, Memory,Network utilization on device but for capturing leg time, I have tried the following scenarios</span><span style="font-family: Calibri, sans-serif; font-size: 14.6667px;"><br /></span></div>
<div style="background-color: white; color: #3d85c6; font-family: verdana, sans-serif; font-size: small;">
<br /></div>
<div style="background-color: white; color: #3d85c6; font-family: verdana, sans-serif; font-size: small;">
<span style="font-family: Calibri, sans-serif; font-size: 14.6667px;"><b><br /></b></span></div>
<div style="background-color: white; color: #3d85c6; font-family: verdana, sans-serif; font-size: small;">
<span style="font-family: Calibri, sans-serif; font-size: 14.6667px;"><b>1) Manually Using Stopwatch:</b></span></div>
<div style="background-color: white; color: #3d85c6; font-family: verdana, sans-serif; font-size: small;">
<span style="font-family: Calibri, sans-serif; font-size: 14.6667px;"> Major drawback of capturing Response time/Lag Time using this scenario is the non accuracy of the results as response time is in less than a second.</span></div>
<div style="background-color: white; color: #3d85c6; font-family: verdana, sans-serif; font-size: small;">
<span style="font-family: Calibri, sans-serif; font-size: 14.6667px;"> </span></div>
<div style="background-color: white; color: #3d85c6; font-family: verdana, sans-serif; font-size: small;">
<span style="font-family: Calibri, sans-serif; font-size: 14.6667px;"><b>2) Using <span class="m_4540931900415792736J-JK9eJ-PJVNOc" id="m_4540931900415792736gmail-:1i3.3" style="background: yellow;">ADB</span> Logs</b></span></div>
<div style="background-color: white; color: #3d85c6; font-family: verdana, sans-serif; font-size: small;">
<span style="font-family: Calibri, sans-serif; font-size: 14.6667px;"> We were expecting the time to be logged in Activity manager line item in the <span class="m_4540931900415792736J-JK9eJ-PJVNOc" id="m_4540931900415792736gmail-:1i3.4" style="background: yellow;">ADB</span> logs, but for application(Purely Client side) like Launchers will not have any activity Manager line item in Logs., This is possible for Native app to get the response time of user activity </span></div>
<div style="background-color: white; color: #3d85c6; font-family: verdana, sans-serif; font-size: small;">
<span style="font-family: Calibri, sans-serif; font-size: 14.6667px;"><br /></span></div>
<div style="background-color: white; color: #3d85c6; font-family: verdana, sans-serif; font-size: small;">
<span style="font-family: Calibri, sans-serif; font-size: 14.6667px;"><img alt="Inline image 1" class="CToWUd" height="53" src="https://blogger.googleusercontent.com/img/proxy/AVvXsEgtlBVNcAEpXjYV2xiOtZK-9w4mJzb6VdSKNdqli0291kG0L5QhKPcDMn13zBHqSqWYUENEt4THjEIVZSpZkxQY8dzemDVkgEN_K0WMuDOIdv-lGFdOgH4TrpSUDwtQYgJSquILqywZStX9bbDtruWURR2U5A5QICKfuIjgO5uH_b-B0VkLIO99wUnoWlqEKvRMc30AP554FSgzwzrgPAoqJk027ERrS6N_hsFJJHrmnXTv-3uUFWKUyVwRLhxc9Zt1989s_xODJlkAwRVaH0m1Hln3X6zc4KGXBtRdYZbQP2N2DNyGgQAzTJLsiMHNOaNaX64ZKQ4qi0izgEMsvbgh3X2P_pQBu3QFYrIHBXTkEKoAYZF6-ckt6G-UOi82jt-n9mWY8oYh7oS1foGTWSdDz0US_IZVlR_x7IcK7ZNySRa9c1e8uXUEB0JkShmorDMMm11p4UnymiLRk-_gAK2r4RFAjPNLKur8PL27QRSwpac0NMyYowoxzQEvA7DXhg=s0-d-e1-ft&ik=708dcd0d2a&view=fimg&th=15fe7336aa0169e2&attid=0.1&disp=emb&realattid=ii_15fe7336aa0169e2&attbid=ANGjdJ-qL3z1AeuXb2B05yQZKOpltfd1I63Dj2rDdAdWVNgPPL1lzCrSRuKzlewAFvoZcGERZzxBmAN0ZHureKVB01mjvb6ZnQRtRTKSsIRjMhfZR7Ic_LC4dHYeHsA&sz=s0-l75&ats=1511412427838&rm=15fe7336aa0169e2&zw" style="margin-right: 0px;" width="745" /></span></div>
<div style="background-color: white; color: #3d85c6; font-family: verdana, sans-serif; font-size: small;">
<br /></div>
<div style="background-color: white; color: #3d85c6; font-family: verdana, sans-serif; font-size: small;">
<span style="font-family: Calibri, sans-serif; font-size: 14.6667px;"><b>3) Using Debug Proxy :</b> Not able to record any client side request in Google Now Launcher</span></div>
<div style="background-color: white; color: #3d85c6; font-family: verdana, sans-serif; font-size: small;">
<span style="font-family: Calibri, sans-serif; font-size: 14.6667px;"><br /></span></div>
<div style="background-color: white; color: #3d85c6; font-family: verdana, sans-serif; font-size: small;">
<span style="font-family: Calibri, sans-serif; font-size: 14.6667px;"><b>4) Using Fiddler : </b>Seems it can give the client side response time, we have tried for some web apps, <b>(refer to attached snapshot)</b>, we are facing some issue while downloading and installing fiddler certificate for <span class="m_4540931900415792736J-JK9eJ-PJVNOc" id="m_4540931900415792736gmail-:1i3.5" style="background: yellow;">Andriod</span> and trying to get the same.</span></div>
<div style="background-color: white; color: #3d85c6; font-family: verdana, sans-serif; font-size: small;">
<span style="font-family: Calibri, sans-serif; font-size: 14.6667px;"><br /></span></div>
<div style="background-color: white; color: #3d85c6; font-family: verdana, sans-serif; font-size: small;">
<span style="font-family: Calibri, sans-serif; font-size: 14.6667px;"><b>5) Using Automation tools(Thought):</b></span></div>
<div style="background-color: white; color: #3d85c6; font-family: verdana, sans-serif; font-size: small;">
<span style="font-family: Calibri, sans-serif; font-size: 14.6667px;"> We can capture the client side response time using the customization logs in the automation scripts to capture the time stamps , But when we tried this solution for app launhers, we were not able to get the response time for the same.</span></div>
<div style="background-color: white; color: #3d85c6; font-family: verdana, sans-serif; font-size: small;">
<br /></div>
<div style="background-color: white; color: #3d85c6; font-family: verdana, sans-serif; font-size: small;">
Apart from these , i have also tried many other things that i found on google, but was unabale to capture the same.</div>
</div>
Lalit K Garghttp://www.blogger.com/profile/17892760700891484757noreply@blogger.com11tag:blogger.com,1999:blog-3028676056133006436.post-63934488203859724482017-10-26T22:29:00.001-07:002017-10-26T22:29:42.638-07:00Performance and Load testing using Neoload - Mobile Application -Part 1<div dir="ltr" style="text-align: left;" trbidi="on">
<div class="MsoNormal">
<b><span lang="EN-IN" style="font-size: 14.0pt; line-height: 107%;"><u>Neoload Record Any Mobile App</u><o:p></o:p></span></b></div>
<div class="MsoListParagraphCxSpFirst" style="mso-list: l0 level1 lfo1; text-indent: -.25in;">
<!--[if !supportLists]--><span lang="EN-IN" style="font-family: Symbol; mso-bidi-font-family: Symbol; mso-fareast-font-family: Symbol;">·<span style="font-family: "Times New Roman"; font-size: 7pt; font-stretch: normal; font-variant-numeric: normal; line-height: normal;">
</span></span><!--[endif]--><span lang="EN-IN">Direct recording from any
device or emulator<o:p></o:p></span></div>
<div style="text-align: left; text-indent: -0.25in;">
<span lang="EN-IN" style="font-family: Symbol; mso-bidi-font-family: Symbol; mso-fareast-font-family: Symbol;">·<span style="font-family: "Times New Roman"; font-size: 7pt; font-stretch: normal; font-variant-numeric: normal; line-height: normal;">
</span></span><!--[endif]--><span lang="EN-IN">Recording of native, hybrid and
mobile browser apps<o:p></o:p></span></div>
<div style="text-align: left; text-indent: -0.25in;">
<span lang="EN-IN"><br /></span></div>
<div class="MsoNormal">
<b><u><span lang="EN-IN" style="font-size: 12.0pt; line-height: 107%;">Steps for Recording Mobile
Application <o:p></o:p></span></u></b></div>
<div class="MsoListParagraphCxSpFirst" style="mso-list: l0 level1 lfo1; text-indent: -.25in;">
<!--[if !supportLists]--><span lang="EN-IN" style="font-family: Symbol; mso-bidi-font-family: Symbol; mso-fareast-font-family: Symbol;">·<span style="font-family: "Times New Roman"; font-size: 7pt; font-stretch: normal; font-variant-numeric: normal; line-height: normal;">
</span></span><!--[endif]--><span lang="EN-IN">Mobile and your laptop should
be on same network on which neoload is working.<o:p></o:p></span></div>
<div class="MsoListParagraphCxSpMiddle" style="line-height: normal; mso-add-space: auto; mso-list: l0 level1 lfo1; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; mso-outline-level: 3; text-indent: -.25in;">
<!--[if !supportLists]--><span lang="EN-IN" style="font-family: Symbol; mso-bidi-font-family: Symbol; mso-fareast-font-family: Symbol;">·<span style="font-family: "Times New Roman"; font-size: 7pt; font-stretch: normal; font-variant-numeric: normal; line-height: normal;">
</span></span><!--[endif]--><span lang="EN-IN">Configure the cell phone to use
Neoload as a proxy.<o:p></o:p></span></div>
<div class="MsoListParagraphCxSpMiddle" style="mso-list: l0 level1 lfo1; text-indent: -.25in;">
<!--[if !supportLists]--><span lang="EN-IN" style="font-family: Symbol; mso-bidi-font-family: Symbol; mso-fareast-font-family: Symbol;">·<span style="font-family: "Times New Roman"; font-size: 7pt; font-stretch: normal; font-variant-numeric: normal; line-height: normal;">
</span></span><!--[endif]--><span lang="EN-IN">In Mobile, Open Settings </span><span lang="EN-IN" style="font-family: Wingdings; mso-ascii-font-family: Calibri; mso-ascii-theme-font: minor-latin; mso-char-type: symbol; mso-hansi-font-family: Calibri; mso-hansi-theme-font: minor-latin; mso-symbol-font-family: Wingdings;">à</span><span lang="EN-IN"> Go To WIFI </span><span lang="EN-IN" style="font-family: Wingdings; mso-ascii-font-family: Calibri; mso-ascii-theme-font: minor-latin; mso-char-type: symbol; mso-hansi-font-family: Calibri; mso-hansi-theme-font: minor-latin; mso-symbol-font-family: Wingdings;">à</span><span lang="EN-IN"> Long press the connected network</span><span lang="EN-IN" style="font-family: Wingdings; mso-ascii-font-family: Calibri; mso-ascii-theme-font: minor-latin; mso-char-type: symbol; mso-hansi-font-family: Calibri; mso-hansi-theme-font: minor-latin; mso-symbol-font-family: Wingdings;">à</span><span lang="EN-IN"> Go
for Modify network </span><span lang="EN-IN" style="font-family: Wingdings; mso-ascii-font-family: Calibri; mso-ascii-theme-font: minor-latin; mso-char-type: symbol; mso-hansi-font-family: Calibri; mso-hansi-theme-font: minor-latin; mso-symbol-font-family: Wingdings;">à</span><span lang="EN-IN">Show advance Setting </span><span lang="EN-IN" style="font-family: Wingdings; mso-ascii-font-family: Calibri; mso-ascii-theme-font: minor-latin; mso-char-type: symbol; mso-hansi-font-family: Calibri; mso-hansi-theme-font: minor-latin; mso-symbol-font-family: Wingdings;">à</span><span lang="EN-IN">Manual </span><span lang="EN-IN" style="font-family: Wingdings; mso-ascii-font-family: Calibri; mso-ascii-theme-font: minor-latin; mso-char-type: symbol; mso-hansi-font-family: Calibri; mso-hansi-theme-font: minor-latin; mso-symbol-font-family: Wingdings;">à</span><span lang="EN-IN"> Set Proxy (Input the laptop ip and Neoload port i.e. 8090).<o:p></o:p></span></div>
<div class="MsoListParagraphCxSpMiddle" style="mso-list: l0 level1 lfo1; text-indent: -.25in;">
<!--[if !supportLists]--><span lang="EN-IN" style="font-family: Symbol; mso-bidi-font-family: Symbol; mso-fareast-font-family: Symbol;">·<span style="font-family: "Times New Roman"; font-size: 7pt; font-stretch: normal; font-variant-numeric: normal; line-height: normal;">
</span></span><!--[endif]--><span lang="EN-IN">Start recording in Neoload <o:p></o:p></span></div>
<div style="text-indent: -0.25in;">
<span lang="EN-IN">
</span></div>
<div class="MsoListParagraphCxSpLast" style="mso-list: l0 level1 lfo1; text-indent: -.25in;">
<!--[if !supportLists]--><span lang="EN-IN" style="font-family: Symbol; mso-bidi-font-family: Symbol; mso-fareast-font-family: Symbol;">·<span style="font-family: "Times New Roman"; font-size: 7pt; font-stretch: normal; font-variant-numeric: normal; line-height: normal;">
</span></span><!--[endif]--><span lang="EN-IN">Create a project, Below screen
will appear.<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg-oMpfudOq-IZXPyspGullkPEeBnI6w8JMQf_shNGSKgnPyUnIGde1DZstrZxz3gQvyXwKUmJ6QYhlDekvLov-UYm9RgdUAzSMK9W1ysj3xBLI8vCmbx5BamMqqwducCEQAuLaSYcwr67b/s1600/Image1.png" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" data-original-height="730" data-original-width="1600" height="180" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg-oMpfudOq-IZXPyspGullkPEeBnI6w8JMQf_shNGSKgnPyUnIGde1DZstrZxz3gQvyXwKUmJ6QYhlDekvLov-UYm9RgdUAzSMK9W1ysj3xBLI8vCmbx5BamMqqwducCEQAuLaSYcwr67b/s400/Image1.png" width="400" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">Recording window<br /><br /></td></tr>
</tbody></table>
<o:p></o:p></span></div>
<div class="MsoListParagraphCxSpFirst" style="margin-left: 38.5pt; mso-add-space: auto; mso-list: l0 level1 lfo1; text-indent: -.25in;">
<span lang="EN-IN" style="font-family: Symbol; mso-bidi-font-family: Symbol; mso-fareast-font-family: Symbol;">·<span style="font-family: "Times New Roman"; font-size: 7pt; font-stretch: normal; font-variant-numeric: normal; line-height: normal;">
</span></span><!--[endif]--><span lang="EN-IN">Click on start recording .Below
screen will appear.<o:p></o:p></span></div>
<div class="MsoListParagraphCxSpFirst" style="margin-left: 38.5pt; mso-add-space: auto; mso-list: l0 level1 lfo1; text-indent: -.25in;">
<span lang="EN-IN"><br /></span></div>
<div class="MsoListParagraphCxSpMiddle" style="margin-left: 38.5pt; mso-add-space: auto;">
<span lang="EN-IN"><!--[if gte vml 1]><v:shapetype
id="_x0000_t75" coordsize="21600,21600" o:spt="75" o:preferrelative="t"
path="m@4@5l@4@11@9@11@9@5xe" filled="f" stroked="f">
<v:stroke joinstyle="miter"/>
<v:formulas>
<v:f eqn="if lineDrawn pixelLineWidth 0"/>
<v:f eqn="sum @0 1 0"/>
<v:f eqn="sum 0 0 @1"/>
<v:f eqn="prod @2 1 2"/>
<v:f eqn="prod @3 21600 pixelWidth"/>
<v:f eqn="prod @3 21600 pixelHeight"/>
<v:f eqn="sum @0 0 1"/>
<v:f eqn="prod @6 1 2"/>
<v:f eqn="prod @7 21600 pixelWidth"/>
<v:f eqn="sum @8 21600 0"/>
<v:f eqn="prod @7 21600 pixelHeight"/>
<v:f eqn="sum @10 21600 0"/>
</v:formulas>
<v:path o:extrusionok="f" gradientshapeok="t" o:connecttype="rect"/>
<o:lock v:ext="edit" aspectratio="t"/>
</v:shapetype><v:shape id="Picture_x0020_2" o:spid="_x0000_i1027" type="#_x0000_t75"
style='width:451.5pt;height:253.5pt;visibility:visible;mso-wrap-style:square'>
<v:imagedata src="file:///C:/Users/TRAPTI~1/AppData/Local/Temp/msohtmlclip1/01/clip_image001.png"
o:title=""/>
</v:shape><![endif]--><!--[if !vml]--><!--[endif]--></span><span lang="EN-IN"><o:p></o:p></span></div>
<div class="MsoListParagraphCxSpMiddle" style="margin-left: 38.5pt; mso-add-space: auto;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiYMtzGviGUU1tS3kTGhWygiU0HB2FckfxAJoT0od83qbOCyQhWOXRHDn_frMSMelcXVB2MRbHdTfPh8fTlp6I9CppY1Q6RrS-NvVnCABNd2QtDG9bvWJ-oU1bSyRSFyioczyR6bPd1UqUG/s1600/image2.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="895" data-original-width="1592" height="223" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiYMtzGviGUU1tS3kTGhWygiU0HB2FckfxAJoT0od83qbOCyQhWOXRHDn_frMSMelcXVB2MRbHdTfPh8fTlp6I9CppY1Q6RrS-NvVnCABNd2QtDG9bvWJ-oU1bSyRSFyioczyR6bPd1UqUG/s400/image2.png" width="400" /></a></div>
<br />
<div class="MsoListParagraphCxSpMiddle" style="line-height: normal; margin-left: 38.5pt; mso-add-space: auto; mso-list: l0 level1 lfo1; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; mso-outline-level: 3; text-indent: -.25in;">
<!--[if !supportLists]--><span lang="EN-IN" style="font-family: Symbol; mso-bidi-font-family: Symbol; mso-fareast-font-family: Symbol;">·<span style="font-family: "Times New Roman"; font-size: 7pt; font-stretch: normal; font-variant-numeric: normal; line-height: normal;">
</span></span><!--[endif]--><span lang="EN-IN">Neoload supports client to
behave as different option, For mobile select identify as.<o:p></o:p></span></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiXR0YcsC_753BsSUNADsrpkw0qy3j5vWPyXDFOlHeRTGObPmmTGtwIuMALcinE_ChaXVRK841HzO6ZQT2k1MGYvyVpv8CEKixqoU7KHxMBjyRi2_dDyVkwPI_dx1JXUfwHx22ngjwCHEFu/s1600/image3.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="804" data-original-width="1600" height="200" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiXR0YcsC_753BsSUNADsrpkw0qy3j5vWPyXDFOlHeRTGObPmmTGtwIuMALcinE_ChaXVRK841HzO6ZQT2k1MGYvyVpv8CEKixqoU7KHxMBjyRi2_dDyVkwPI_dx1JXUfwHx22ngjwCHEFu/s400/image3.png" width="400" /></a></div>
<div class="MsoListParagraphCxSpMiddle" style="line-height: normal; margin-left: 38.5pt; mso-add-space: auto; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; mso-outline-level: 3;">
<span lang="EN-IN"><!--[if gte vml 1]><v:shape id="Picture_x0020_3"
o:spid="_x0000_i1026" type="#_x0000_t75" style='width:452pt;height:227pt;
visibility:visible;mso-wrap-style:square'>
<v:imagedata src="file:///C:/Users/TRAPTI~1/AppData/Local/Temp/msohtmlclip1/01/clip_image003.png"
o:title=""/>
</v:shape><![endif]--><!--[if !vml]--><!--[endif]--></span><span lang="EN-IN"><o:p></o:p></span></div>
<div class="MsoListParagraphCxSpMiddle" style="line-height: normal; margin-left: 38.5pt; mso-add-space: auto; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; mso-outline-level: 3;">
<br /></div>
<div class="MsoListParagraphCxSpLast" style="line-height: normal; margin-left: 38.5pt; mso-add-space: auto; mso-list: l0 level1 lfo1; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; mso-outline-level: 3; text-indent: -.25in;">
<!--[if !supportLists]--><span lang="EN-IN" style="font-family: Symbol; mso-bidi-font-family: Symbol; mso-fareast-font-family: Symbol;">·<span style="font-family: "Times New Roman"; font-size: 7pt; font-stretch: normal; font-variant-numeric: normal; line-height: normal;">
</span></span><!--[endif]--><span lang="EN-IN">For Recording through mobile
proxy remove the selection from start client and click on OK.<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; mso-outline-level: 3;">
<span lang="EN-IN"><!--[if gte vml 1]><v:shape id="Picture_x0020_4" o:spid="_x0000_i1025"
type="#_x0000_t75" style='width:450.5pt;height:231.5pt;visibility:visible;
mso-wrap-style:square'>
<v:imagedata src="file:///C:/Users/TRAPTI~1/AppData/Local/Temp/msohtmlclip1/01/clip_image005.png"
o:title=""/>
</v:shape><![endif]--><!--[if !vml]--><!--[endif]--></span><span lang="EN-IN"><o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; mso-outline-level: 3;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjcM5fltiYkfYHyfxJpkg-uE4l8nOStfuimr-6klCi1IIxcc2elCXALdmZwfgYpU2YANmxF2x4OImg3G5yqAiKVb2w0LG38bhgmf_1qntp9tmHocqwpHVO6dcbUBfzZXOKyQCFNtsjcDuwD/s1600/image4.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="823" data-original-width="1600" height="205" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjcM5fltiYkfYHyfxJpkg-uE4l8nOStfuimr-6klCi1IIxcc2elCXALdmZwfgYpU2YANmxF2x4OImg3G5yqAiKVb2w0LG38bhgmf_1qntp9tmHocqwpHVO6dcbUBfzZXOKyQCFNtsjcDuwD/s400/image4.png" width="400" /></a></div>
<br />
<div class="MsoListParagraphCxSpFirst" style="line-height: normal; margin-left: 38.5pt; mso-add-space: auto; mso-list: l0 level1 lfo1; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; mso-outline-level: 3; text-indent: -.25in;">
<!--[if !supportLists]--><span lang="EN-IN" style="font-family: Symbol; mso-bidi-font-family: Symbol; mso-fareast-font-family: Symbol;">·<span style="font-family: "Times New Roman"; font-size: 7pt; font-stretch: normal; font-variant-numeric: normal; line-height: normal;">
</span></span><!--[endif]--><b><span lang="EN-IN">Scenario Considered <o:p></o:p></span></b></div>
<div class="MsoListParagraphCxSpMiddle" style="line-height: normal; margin-left: 74.5pt; mso-add-space: auto; mso-list: l0 level2 lfo1; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; mso-outline-level: 3; text-indent: -.25in;">
<!--[if !supportLists]--><span lang="EN-IN" style="font-family: "Courier New"; mso-fareast-font-family: "Courier New";">o<span style="font-family: "Times New Roman"; font-size: 7pt; font-stretch: normal; font-variant-numeric: normal; line-height: normal;">
</span></span><!--[endif]--><span lang="EN-IN">Open xyz App<o:p></o:p></span></div>
<div class="MsoListParagraphCxSpMiddle" style="line-height: normal; margin-left: 74.5pt; mso-add-space: auto; mso-list: l0 level2 lfo1; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; mso-outline-level: 3; text-indent: -.25in;">
<!--[if !supportLists]--><span lang="EN-IN" style="font-family: "Courier New"; mso-fareast-font-family: "Courier New";">o<span style="font-family: "Times New Roman"; font-size: 7pt; font-stretch: normal; font-variant-numeric: normal; line-height: normal;">
</span></span><!--[endif]--><span lang="EN-IN">App Dashboard appear <o:p></o:p></span></div>
<div class="MsoListParagraphCxSpMiddle" style="line-height: normal; margin-left: 38.5pt; mso-add-space: auto; mso-list: l0 level1 lfo1; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; mso-outline-level: 3; text-indent: -.25in;">
<!--[if !supportLists]--><span lang="EN-IN" style="font-family: Symbol; mso-bidi-font-family: Symbol; mso-fareast-font-family: Symbol;">·<span style="font-family: "Times New Roman"; font-size: 7pt; font-stretch: normal; font-variant-numeric: normal; line-height: normal;">
</span></span><!--[endif]--><span lang="EN-IN">Mention the transaction name ,
Request will get recording in the same as you proceed.<o:p></o:p></span></div>
<div class="MsoListParagraphCxSpLast" style="line-height: normal; margin-left: 38.5pt; mso-add-space: auto; mso-list: l0 level1 lfo1; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; mso-outline-level: 3; text-indent: -.25in;">
<!--[if !supportLists]--><span lang="EN-IN" style="font-family: Symbol; mso-bidi-font-family: Symbol; mso-fareast-font-family: Symbol;">·<span style="font-family: "Times New Roman"; font-size: 7pt; font-stretch: normal; font-variant-numeric: normal; line-height: normal;">
</span></span><!--[endif]--><span lang="EN-IN">Click on stop after recording
the scenario the script get recorded.<o:p></o:p></span></div>
<div style="text-indent: -0.25in;">
<span lang="EN-IN">
</span></div>
<div class="MsoNormal" style="line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; mso-outline-level: 3;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjOUboKK7tXdVgvkgP3zsOLRLu7cUkXf0StUotClvINyGfX3nsGXbvsqpNeHxE3qaXXwcE7rywygSD4uoAj9Cl7-54cAHRYLJoUW17-LxTizg20X_QlECPZObaEiU4UhooH1EAeJUnJVmfn/s1600/image5.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="918" data-original-width="1587" height="231" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjOUboKK7tXdVgvkgP3zsOLRLu7cUkXf0StUotClvINyGfX3nsGXbvsqpNeHxE3qaXXwcE7rywygSD4uoAj9Cl7-54cAHRYLJoUW17-LxTizg20X_QlECPZObaEiU4UhooH1EAeJUnJVmfn/s400/image5.png" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
Let me know in case of any query and keep connected for next part .</div>
<br />
<div style="text-align: left; text-indent: -0.25in;">
<span lang="EN-IN"><br /></span></div>
</div>
Anonymoushttp://www.blogger.com/profile/03909438832793746053noreply@blogger.com23tag:blogger.com,1999:blog-3028676056133006436.post-51712706892389642017-06-13T00:54:00.001-07:002017-06-13T00:55:17.383-07:00Mobile App Performance Testing -Part 3 <div dir="ltr" style="text-align: left;" trbidi="on">
<br />
<b>Mobile App Android Client Side Performance Profiling</b><br />
<br />
We have already studied about "How we can perform the server side load testing of Mobile app<br />
<br />
Now in this pot we will see the basic concepts and steps to perform the client side profiling of Mobile App<br />
<b><br /></b>
<b>Below techniques can be used:</b><br />
<b><br /></b>
<b> <u>Reading android logs using Mlogcat : </u></b><br />
<br />
1) Download the MLogcat tool<br />
2) Connect Your Mobile(having debugged app) with system<br />
3) Logs are started in front of you<br />
4) Apply filter based on the process id<br />
5) Copy -paste the logs in excel & delimite to find the elapsed time and queries<br />
6) Report these slow running/duplicate queries and time to developers<br />
<br />
<b><u>Capture Device Hardware Utilisation Mlogcat :</u></b><br />
<b><br /></b>
You can capture the real life CPU Usage/RAM Usage and Network Usage of device<br />
<br />
<b><u>Monitor Thread and Heap Using DDMS:</u></b><br />
<b><u><br /></u></b>
1) Download Andriod Studio<br />
2) Attached Mobile with Debug build of application<br />
3) Go to Preferences --> DDMS<br />
4) Select your app from left pane<br />
5) Go to Heap tab and monitor the heap<br />
6) Take dump when heap usage reaches close to 100%<br />
7) Analyse the heap using Eclipse Memory analyser for Prime suspects<br />
<br />
Feel Free to contact us in case of any query<br />
<br />
Join "Performance Testing Expert" Group On Facebook<br />
<br />
<br />
<br />
<br /></div>
Lalit K Garghttp://www.blogger.com/profile/17892760700891484757noreply@blogger.com8tag:blogger.com,1999:blog-3028676056133006436.post-40344103652169758642017-01-17T03:48:00.000-08:002017-01-17T03:49:01.981-08:00How to Record and Load Test Desktop Applications Using Jmeter (HTTP protocol)<div dir="ltr" style="text-align: left;" trbidi="on">
From long time , I was in process to search , how to test the desktop application using Jmeter,<br />
<br />
I have googled many times to find the solution of this problem, Even i knew that this desktop application communicate over HTTP, Still i was helpless to test this application using Jmeter, As the question round around my face was<br />
<br />
" HOW TO RECORD THE DESKTOP APPLICATION USING JMETER"<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjNlG_YTFPyMzqSFNhyphenhyphenXMwCI-Dg42fv0shVirKtvLT31ZakQdS7eVnefWMMKy7je9RIraW-Cku0EX6YIE8FDo2cjqhK5CDiW8DKxw7PBI50YGWTzqvLLbEuVCb2LLuIgD8LRVKb3Eo4bYQ/s1600/How.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="265" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjNlG_YTFPyMzqSFNhyphenhyphenXMwCI-Dg42fv0shVirKtvLT31ZakQdS7eVnefWMMKy7je9RIraW-Cku0EX6YIE8FDo2cjqhK5CDiW8DKxw7PBI50YGWTzqvLLbEuVCb2LLuIgD8LRVKb3Eo4bYQ/s400/How.jpg" width="400" /></a></div>
<br />
<br />
Thumbs up to my friend, How have done in depth study of proxies even when he is in manual testing and was able to record the requests for desktop application and prepare the script successfuly<br />
<br />
I know many of you were also in search of this from long time , and when i will tell you about this , then surely , you will be in surprise mode for some time and will think , how stupid am i, this is so simple,<br />
<br />
<b><u>Following is the process for recording the Desktop application using Proxy.</u></b><br />
<br />
1) Open "Internet Options" from Control Panel, You can also open the same using search at RUN.<br />
<br />
2) Click on "Connections" Tab<br />
<br />
3) Click on "LAN settings"<br />
<br />
4) Under Proxy Server : Enable "Use proxy for your LAN"<br />
<br />
5) Put localhost as address and 9091/9092 as port(Avoid using 8080/8888)<br />
<br />
6) Click OK<br />
<br />
7) Use this Proxy setting in Jmeter Proxy Server<br />
<br />
Try to avoid using and opening any other application that use network .<br />
<br />
8) Start Proxy in Jmeter and Open the desktop Application,<br />
<br />
Now you can see the http requests in the transaction/recording controllers under test thread<br />
and proceed with the script enhancement like parameterisation, correlation, CheckPoint etc<br />
<b><u><br /></u></b>
<b><u>Note: </u></b>Setting proxies to record Desktop application is same of browser recording , The only difference is that for desktop application we have to set the proxy on system level in-spite of browser level<br />
<b><br /></b>
<b>Happy Testing</b><br />
<b><u>Chota Bheem(Performance Testing Experts)</u></b><br />
<b><u>https://www.facebook.com/groups/189704594726949/</u></b></div>
Lalit K Garghttp://www.blogger.com/profile/17892760700891484757noreply@blogger.com40tag:blogger.com,1999:blog-3028676056133006436.post-5342169804465082552016-08-11T03:31:00.002-07:002016-08-11T03:31:09.854-07:00How to perform the load testing of Microsoft Navision - 2013/NAV 2016 / NAV 2009 <div dir="ltr" style="text-align: left;" trbidi="on">
In One of my project , I came across to many challenges in Performance testing tool identification to perform the load testing on Microsoft Navision called as NAV.<br />
<br />
<br />
Right Now client has application built on NAV 4.0 SP3 and want to migrate to NAV 2013 .<br />
Application used Role Tailored Client to connect to the server.<br />
<br />
In last 3-4 days i have read many forums related to the testing of Microsoft NAV , I am summarising the below information<br />
<br />
I am using the below mentioned three approached for tool feasibility Analysis for NAV 2013<br />
<br />
1) Using Microsoft VSTS :<br />
<br />
<ul style="text-align: left;">
<li>Application with only Web client can be test through VSTS</li>
<li>Load can be populated using only Ultimate version</li>
<li>User need to download the Load Testing Framework available on GitHub</li>
<li>Framework can be imported in VSTS and the load testing can be done based on the customisation</li>
<li>Framework required some DLLs that present in the NAV Setup</li>
</ul>
<div>
2) Using Testing Toolset Kit </div>
<div>
<ul style="text-align: left;">
<li>Testing Toolset Kit is available with the NAV set up in the Installation DVD</li>
<li>Application Toolset Kit contains main file with file extension ".fob"</li>
<li>This file needs to be imported in Development environment of NAV</li>
<li> Functional Test Cases can be executed Using Id: 130021 (Page) in fob file</li>
<li> Toolset kit can also be downloaded from partner's site but require credentials.</li>
<li> Kit is also available on <span style="background-color: white; color: #006621; font-family: arial, sans-serif; font-size: 14px; line-height: 16px; white-space: nowrap;">mibuso.com</span></li>
</ul>
<div>
Still I am looking into the options to perform load test executions using the Toolset.</div>
<div>
No Information about How to perform load test using Toolset is available over internet, I have also posted the queries regarding the same over many forums of NAV and waiting for reply.</div>
<div>
<br /></div>
<div>
3) Using Load testing tool Like Load Runner, VSTS,Neoload,Silk Performer etc</div>
<div>
<ul style="text-align: left;">
<li> Next Step is to check the tool feasibility using the above mention tools.</li>
</ul>
<div>
<br /></div>
</div>
</div>
<div>
Happy Testing ! All the best!</div>
<div>
<br /></div>
<div>
<br /></div>
</div>
Lalit K Garghttp://www.blogger.com/profile/17892760700891484757noreply@blogger.com1tag:blogger.com,1999:blog-3028676056133006436.post-4564582493956410642016-06-22T03:12:00.002-07:002016-06-22T03:12:36.873-07:00Load Runner : How to perform multiple (group) co-relation in Load Runner<div dir="ltr" style="text-align: left;" trbidi="on">
<div class="gmail_default" style="font-family: arial,helvetica,sans-serif;">
Hi All,</div>
<div class="gmail_default" style="font-family: arial,helvetica,sans-serif;">
<br /></div>
<div class="gmail_default" style="font-family: arial,helvetica,sans-serif;">
Below is the description of how to perform multiple (group) co-relation in Load Runner :</div>
<div class="gmail_default" style="font-family: arial,helvetica,sans-serif;">
<br /></div>
<div class="gmail_default" style="font-family: arial,helvetica,sans-serif;">
<b>Eg: </b></div>
<div class="gmail_default" style="font-family: arial,helvetica,sans-serif;">
<br /></div>
<div class="gmail_default" style="font-family: arial,helvetica,sans-serif;">
<span style="font-family: arial,sans-serif; font-size: 12.8px;"><a href="</span><a href="http://qashop.qacampus.com/product_info.php?products_id=28&amp;osCsid=c7282678450db38eb072b04b77fa120c" style="font-family: arial,sans-serif; font-size: 12.8px;" target="_blank">http://xyz.com/product_<wbr></wbr>info.php?products_id=28&amp;<wbr></wbr>osCsid=<wbr></wbr>c7282678450db38eb072b04b77fa12<wbr></wbr>0c</a><span style="font-family: arial,sans-serif; font-size: 12.8px;">"></span></div>
<div class="gmail_default" style="font-family: arial,helvetica,sans-serif;">
<span style="font-family: arial,sans-serif; font-size: 12.8px;"><br /></span></div>
<div class="gmail_default" style="font-family: arial,helvetica,sans-serif;">
<span style="font-family: arial,sans-serif; font-size: 12.8px;">you want</span><span style="font-family: arial,sans-serif; font-size: 12.8px;">s to co-relate <b>product_id </b>and<b> osCsid </b>both in the above url</span></div>
<div class="gmail_default" style="font-family: arial,helvetica,sans-serif;">
<span style="font-family: arial,sans-serif; font-size: 12.8px;"><br /></span></div>
<div class="gmail_default" style="font-family: arial,helvetica,sans-serif;">
<span style="font-family: arial,sans-serif; font-size: 12.8px;"><b>Solution:</b></span></div>
<div class="gmail_default" style="font-family: arial,helvetica,sans-serif;">
<span style="font-family: arial,sans-serif; font-size: 12.8px;"><b><br /></b></span></div>
<div class="gmail_default" style="font-family: arial,helvetica,sans-serif;">
Function available in load runner : <b>web_reg_save_param_regexp</b></div>
<div class="gmail_default" style="font-family: arial,helvetica,sans-serif;">
<b><br /></b></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgBgXVE9MM3cz7DIzeNRI_8YdF-g4Paz-ZmL-8JohaDcH9sish2TLHUDrMiUdYR9SqeE3_MvTagRy57Gr6yX7QmlDSzcwW768FHWsAgwRBvBjAevz-o5I-YKncFOGA9w0iC53CPQvgBHsbg/s1600/load+runner+regexp.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="358" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgBgXVE9MM3cz7DIzeNRI_8YdF-g4Paz-ZmL-8JohaDcH9sish2TLHUDrMiUdYR9SqeE3_MvTagRy57Gr6yX7QmlDSzcwW768FHWsAgwRBvBjAevz-o5I-YKncFOGA9w0iC53CPQvgBHsbg/s640/load+runner+regexp.png" width="640" /></a></div>
<div class="gmail_default" style="font-family: arial,helvetica,sans-serif;">
<b><br /></b></div>
<div class="gmail_default" style="font-family: arial,helvetica,sans-serif;">
you can create your own expression</div>
<div class="gmail_default" style="font-family: arial,helvetica,sans-serif;">
<br /></div>
<div class="gmail_default" style="font-family: arial,helvetica,sans-serif;">
<b>Expression will be :</b></div>
<div class="gmail_default" style="font-family: arial,helvetica,sans-serif;">
<b><br /></b></div>
<div class="gmail_default" style="font-family: arial,helvetica,sans-serif;">
<div class="gmail_default">
web_reg_save_param_regexp(</div>
<div class="gmail_default">
<span style="white-space: pre-wrap;"> </span>"ParamName=product_id_os",</div>
<div class="gmail_default">
<span style="white-space: pre-wrap;"> </span>"RegExp=products_id=([A-Z0-9a-<wbr></wbr>z]+)\”\\]&amp;osCsid=[A-Z0-9a-<wbr></wbr>z\\\\+]\">",</div>
<div class="gmail_default">
<span style="white-space: pre-wrap;"> </span>"NotFound=warning",</div>
<div class="gmail_default">
<span style="white-space: pre-wrap;"> </span>"Group=0",</div>
<div class="gmail_default">
<span style="white-space: pre-wrap;"> </span>"Ordinal=1",</div>
<div class="gmail_default">
<span style="white-space: pre-wrap;"> </span>SEARCH_FILTERS,</div>
<div class="gmail_default">
"Scope=Body",</div>
<div class="gmail_default">
<span style="white-space: pre-wrap;"> </span>LAST);</div>
</div>
<div class="gmail_default" style="font-family: arial,helvetica,sans-serif;">
<br /></div>
<div class="gmail_default" style="font-family: arial,helvetica,sans-serif;">
<b>Used Expression :</b></div>
<div class="gmail_default" style="font-family: arial,helvetica,sans-serif;">
<b><br /></b></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiK61WVAaL84m1uIbk8d90XPpBpgGxaJnMfgTjXYBhs6Khhkmf7MpI6M-ZYDXOXlM05wMHhjYzb4-N1LMK8lKOwPLndGKXUHufVGqhGTfNRLsYu3p_HKyzIry5bENkSuLHkFVcycO6PW6FW/s1600/load+runner+regexp1.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="358" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiK61WVAaL84m1uIbk8d90XPpBpgGxaJnMfgTjXYBhs6Khhkmf7MpI6M-ZYDXOXlM05wMHhjYzb4-N1LMK8lKOwPLndGKXUHufVGqhGTfNRLsYu3p_HKyzIry5bENkSuLHkFVcycO6PW6FW/s640/load+runner+regexp1.png" width="640" /></a></div>
<div class="gmail_default" style="font-family: arial,helvetica,sans-serif;">
<b><br /></b></div>
<div class="gmail_default" style="font-family: arial,helvetica,sans-serif;">
<br /></div>
<div class="gmail_default" style="font-family: arial,helvetica,sans-serif;">
<b>Define Variable and Response :</b></div>
<div class="gmail_default" style="font-family: arial,helvetica,sans-serif;">
<b><br /></b></div>
<div class="gmail_default" style="font-family: arial,helvetica,sans-serif;">
1)<b> </b>Parameter name_1 for 1st value (Eg: if parameter name is product_id_os than we will define like product_id_os_1)</div>
<div class="gmail_default" style="font-family: arial,helvetica,sans-serif;">
2) Parameter name_2 for 2nd value (Eg: if parameter name is product_id_os than we will define like product_id_os_2)</div>
<div class="gmail_default" style="font-family: arial,helvetica,sans-serif;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgtzwkVuCkuqrBElLqgOpmoBEIlTPD26pz279j96eSXw-QmyXid0dW6qa2yJKSoE5-RvlkbGmjnhUKJ8BZ7Wl2xfGgMsu7MGZ6mMioWjDQjuqvchbcAbos55ZZUmCXTc8ZTPAK23guk7-Qr/s1600/load+runner+regexp2.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="312" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgtzwkVuCkuqrBElLqgOpmoBEIlTPD26pz279j96eSXw-QmyXid0dW6qa2yJKSoE5-RvlkbGmjnhUKJ8BZ7Wl2xfGgMsu7MGZ6mMioWjDQjuqvchbcAbos55ZZUmCXTc8ZTPAK23guk7-Qr/s640/load+runner+regexp2.png" width="640" /></a></div>
<div class="gmail_default" style="font-family: arial,helvetica,sans-serif;">
<br /><span style="font-family: arial,sans-serif;"><br /></span></div>
<div class="gmail_default" style="font-family: arial,helvetica,sans-serif;">
<span style="font-family: arial,sans-serif;"><br /></span></div>
<div class="gmail_default" style="font-family: arial,helvetica,sans-serif;">
<span style="font-family: arial,sans-serif;"><br /></span></div>
<div class="gmail_default" style="font-family: arial,helvetica,sans-serif;">
<span style="font-family: arial,sans-serif;">In- case of query/concern, do let us know.</span></div>
<div class="gmail_default" style="font-family: arial,helvetica,sans-serif;">
<span style="font-family: arial,sans-serif;"><br /></span></div>
</div>
Anonymoushttp://www.blogger.com/profile/03138555055440930687noreply@blogger.com7tag:blogger.com,1999:blog-3028676056133006436.post-18374844405597575812016-05-30T03:48:00.000-07:002016-05-30T03:48:03.492-07:00Performance Testing of Traditional Client Server Desktop Application with TCP Protocol<div dir="ltr" style="text-align: left;" trbidi="on">
One of the application that we have to test is<br />
<br />
Traditional Client/Server Application<br />
.Net Framework 1.1<br />
TCP Protocol<br />
.Net Remoting<br />
<br />
These type of application are very complex to implement and also you will face many challenges while testing this type of application. Because<br />
<br />
1) Some of the Performance testing tool does not support the recoring of desktop application like Jmeter,<br />
2) Most of the Application does not support the recording of TCP protocol like Load runner,<br />
Neoload ,Load complete,VSTS etc<br />
3) Most of the application doesnot support the application with .Net framework less that 2.0 like Load Runner, Neoload, VSTS (CodedUI),Silk Perfomer.<br />
<br />
To test these type of application one can use the work around as mentioned below.<br />
<br />
<b><u>Using Load Runner</u></b><br />
<br />
Though there is a protocol named as ".Net protocol" in Load Runner that are used for testing the application built on .Net framework but there is a limitation that LoadRunner doesnot support the recording of application that are built on the framework less that 2.0<br />
<br />
So<br />
<br />
1) Try to record the application using win-socket protocol of Load runner, By this you will be able to capture the network TCP packets and able to read the request, In this case if your application is not using any encryption to send the data over server, then you may be able to find this as the best solution.<br />
<br />
2) Do the script enhancement like parameterization , correlation as you did in enhancing the http request in Load runner.<br />
Please take care that different functions will be used while doing correlation in Load Runner using in winsock.<br />
<br />
May be you will be able to do the testing of you application.<br />
<br />
<b><u>Using .Net Remoting Client:</u></b><br />
<br />
As most of the tools are not compatible with this application so we may go for the creating .Net Client and make a framework in which we can call .Net remoting functions in multi threaded fashion,<br />
But this type of test is very complex and it is strongly recommended to ignore the same as it will require high development effort and highly time consuming to implement.<br />
<br />
<br />
<b><u>Note: </u> Most of Indrustry standered Opensource/paid tools will not work with this application.</b><br />
<b><br /></b>
<br />
I will share the details of testing outcomes that we have got with many industry tools.<br />
<b>We have checked the feasibility of this application with LoadRunner,Jmeter,NeoLoad,VSTS,Load Complete, Test Complete, VSTS (CodedUI),fiddler, AutoIt etc</b><br />
<br />
<br />
<br />
</div>
Lalit K Garghttp://www.blogger.com/profile/17892760700891484757noreply@blogger.com1tag:blogger.com,1999:blog-3028676056133006436.post-47983196355397859132016-05-30T03:24:00.000-07:002016-05-30T03:24:14.299-07:00Capturing TCP/UDP Traffic/Requests<div dir="ltr" style="text-align: left;" trbidi="on">
In One of my recent project , i got an opportunity to work on TCP protocol.In starting i was very much excited but soon my excitement lost after googling for the issues that we are encounter to test this type of application.<br />
<br />
We have googled for many days and even didn't found any tool that can even capture the TCP application.You much be know about the wireshark,fiddler etc network capturing tools but in my case of Desktop application these tools are also not able to records the TCP traffic<br />
<br />
The tools mentioned on the most of the sites are not working,After the work for many days i came to the conclusion that i will be mentioning below.<br />
<br />
<ul>
<li>Only tool that i have found and easy to use was SmartSniff to capture TCP Packets and UDP packets. </li>
</ul>
<br />
<br />
There are also some of the tools that can capture TCP traffic but theses tools are paid and require heave download and installation and also require the technical expertise in respective tool like<br />
<br />
Use Proxy in Silk Performer<br />
Use Winsock Protocol in Load Runner<br />
<br />
So please avoid using these paid heavy tools.<br />
<br />
Now in Next post i will share my experience while testing a Desktop based client server application using TCP Protocol over .Net Remoting,<br />
Also i will share my experience about the challenges that we have faced while performance tested this application with most of the know popular industry tools.<br />
<br /></div>
Lalit K Garghttp://www.blogger.com/profile/17892760700891484757noreply@blogger.com2tag:blogger.com,1999:blog-3028676056133006436.post-43676318521017377192016-02-18T04:43:00.000-08:002016-02-18T04:45:24.810-08:00Code to print values(Correlated parameter) in Jmeter<div dir="ltr" style="text-align: left;" trbidi="on">
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 12.8px;">
<br /></div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 12.8px;">
Below mentioned is the code with which we can print values in jmeter,</div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 12.8px;">
We have to write this code in Bean shell.</div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 12.8px;">
<br /></div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 12.8px;">
********ER_ID_Corr is the correlated value which we need to print ************</div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 12.8px;">
<br /></div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 12.8px;">
<div>
Var1 = vars.get("ER_Id_corr");</div>
<div>
<br /></div>
<div>
<br /></div>
<div>
f = new FileOutputStream("C:\\CT\\<wbr></wbr>Variable\\result.csv", true);</div>
<div>
p = new PrintStream(f);</div>
<div>
<br /></div>
<div>
p.println(Var1);</div>
<div>
<br /></div>
<div>
p.close();</div>
<div>
//print(Var1);</div>
<div>
f.close();</div>
</div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 12.8px;">
<br /></div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 12.8px;">
For more detail please refer to screenshot</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiL0KTYWQYEZhxS9SlYUazW-NpesGw6gs69IYGRG_tuV_aoD0MUjC96Sv-GnCI_NYgEI5LhideMYQbV0_RSP99RtoUC26yEzQoSexLVM3M51YXneGoQhMb0qTO5_5Qv4eRpoJgE3ltQSDG7/s1600/image.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="125" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiL0KTYWQYEZhxS9SlYUazW-NpesGw6gs69IYGRG_tuV_aoD0MUjC96Sv-GnCI_NYgEI5LhideMYQbV0_RSP99RtoUC26yEzQoSexLVM3M51YXneGoQhMb0qTO5_5Qv4eRpoJgE3ltQSDG7/s320/image.png" width="320" /></a></div>
</div>
Anonymoushttp://www.blogger.com/profile/03909438832793746053noreply@blogger.com220tag:blogger.com,1999:blog-3028676056133006436.post-85163480470902807982016-02-18T03:16:00.003-08:002016-02-18T03:52:10.354-08:00Converting or compiling Jmeter result file (JTL) to HTML<div dir="ltr" style="text-align: left;" trbidi="on">
<div style="line-height: 18.0pt; margin-bottom: 12.0pt; margin-left: 0cm; margin-right: 2.4pt; margin-top: 0cm;">
<span style="font-family: "verdana" , sans-serif; font-size: 9pt;">Apache Ant is a Java library and command-line tool whose mission
is to drive processes described in build files as targets and extension points
dependent upon each other. The main known usage of Ant is the build of Java
applications. Ant supplies a number of built-in tasks allowing to compile,
assemble, test and run Java applications. </span></div>
<div style="line-height: 18.0pt; margin-bottom: 12.0pt; margin-left: 0cm; margin-right: 2.4pt; margin-top: 0cm;">
<span style="font-family: "verdana" , sans-serif; font-size: 9pt; line-height: 115%;">Ant is very flexible to use .It converts the JTl to HTML format .</span></div>
<div class="MsoNormal">
<span style="font-family: "verdana" , "sans-serif"; font-size: 9.0pt; line-height: 115%;"><br /></span></div>
<div class="MsoNormal">
<span style="font-family: "verdana" , "sans-serif"; font-size: 9.0pt; line-height: 115%;">Below are the setting to use Apache ANT that converts
JTl in to an HTML file :<o:p></o:p></span></div>
<div class="MsoNormal">
<span style="font-family: "verdana" , "sans-serif"; font-size: 9.0pt; line-height: 115%;"><br /></span></div>
<div style="line-height: 18.0pt; margin-bottom: 12.0pt; margin-left: 36.0pt; margin-right: 2.4pt; margin-top: 0cm; mso-list: l0 level1 lfo1; text-indent: -18.0pt;">
<!--[if !supportLists]--><span style="font-family: "verdana" , sans-serif; font-size: 9pt;">1)<span style="font-family: "times new roman"; font-size: 7pt; font-stretch: normal; line-height: normal;"> </span></span><!--[endif]--><span style="font-family: "verdana" , sans-serif; font-size: 9pt;">Ensure
that the JAVA_HOME environment variable is set to the folder where your JDK is
installed.<o:p></o:p></span></div>
<div style="line-height: 18.0pt; margin-bottom: 12.0pt; margin-left: 36.0pt; margin-right: 2.4pt; margin-top: 0cm; mso-list: l0 level1 lfo1; text-indent: -18.0pt;">
<!--[if !supportLists]--><span style="font-family: "verdana" , sans-serif; font-size: 9pt;">2)<span style="font-family: "times new roman"; font-size: 7pt; font-stretch: normal; line-height: normal;"> </span></span><!--[endif]--><span style="font-family: "verdana" , sans-serif; font-size: 9pt;">Download
the binaries from<span class="apple-converted-space"> </span></span><a href="http://ant.apache.org/" target="_blank"><span style="color: #313131; font-family: "verdana" , "sans-serif"; font-size: 9.0pt;">http://ant.apache.org</span></a><span style="font-family: "verdana" , sans-serif; font-size: 9pt;"><o:p></o:p></span></div>
<div style="line-height: 18.0pt; margin-bottom: 12.0pt; margin-left: 36.0pt; margin-right: 2.4pt; margin-top: 0cm; mso-list: l0 level1 lfo1; text-indent: -18.0pt;">
<!--[if !supportLists]--><span style="font-family: "verdana" , sans-serif; font-size: 9pt;">3)<span style="font-family: "times new roman"; font-size: 7pt; font-stretch: normal; line-height: normal;"> </span></span><!--[endif]--><span style="font-family: "verdana" , sans-serif; font-size: 9pt;">Unzip
the zip file to a convenient location c:\folder. using Winzip, winRAR, 7-zip or
similar tools.<o:p></o:p></span></div>
<div style="line-height: 18.0pt; margin-bottom: 12.0pt; margin-left: 36.0pt; margin-right: 2.4pt; margin-top: 0cm; mso-list: l0 level1 lfo1; text-indent: -18.0pt;">
<!--[if !supportLists]--><span style="font-family: "verdana" , sans-serif; font-size: 9pt;">4)<span style="font-family: "times new roman"; font-size: 7pt; font-stretch: normal; line-height: normal;"> </span></span><!--[endif]--><span style="font-family: "verdana" , sans-serif; font-size: 9pt;">Create a
new environment variable called<span class="apple-converted-space"> </span><b>ANT_HOME</b><span class="apple-converted-space"> </span>that points to the Ant installation
folder, in this case<span class="apple-converted-space"> </span><b>c:\apache-ant-1.8.2-bin</b>folder.<o:p></o:p></span></div>
<div style="line-height: 18.0pt; margin-bottom: 12.0pt; margin-left: 36.0pt; margin-right: 2.4pt; margin-top: 0cm; mso-list: l0 level1 lfo1; text-indent: -18.0pt;">
<!--[if !supportLists]--><span style="font-family: "verdana" , sans-serif; font-size: 9pt;">5)<span style="font-family: "times new roman"; font-size: 7pt; font-stretch: normal; line-height: normal;"> </span></span><!--[endif]--><span style="font-family: "verdana" , sans-serif; font-size: 9pt;">Append
the path to the Apache Ant batch file to the PATH environment variable. In our
case this would be the<span class="apple-converted-space"> </span><b>c:\apache-ant-1.8.2-bin\bin</b>folder.
(<b>%ANT_HOME%\bin</b>)<o:p></o:p></span></div>
<div style="line-height: 18.0pt; margin-bottom: 12.0pt; margin-left: 36.0pt; margin-right: 2.4pt; margin-top: 0cm; mso-list: l0 level1 lfo1; text-indent: -18.0pt;">
<!--[if !supportLists]--><span style="font-family: "verdana" , sans-serif; font-size: 9pt;">6)<span style="font-family: "times new roman"; font-size: 7pt; font-stretch: normal; line-height: normal;"> </span></span><!--[endif]--><span style="font-family: "verdana" , sans-serif; font-size: 9pt;">Now to
check environmental Variable is set on cmd check Java –version and ant –version.<o:p></o:p></span></div>
<div class="MsoNormal">
</div>
<div style="line-height: 18.0pt; margin-bottom: 12.0pt; margin-left: 36.0pt; margin-right: 2.4pt; margin-top: 0cm; mso-list: l0 level1 lfo1; text-indent: -18.0pt;">
<!--[if !supportLists]--><span style="font-family: "verdana" , sans-serif; font-size: 9pt;">7)<span style="font-family: "times new roman"; font-size: 7pt; font-stretch: normal; line-height: normal;"> </span></span><!--[endif]--><span style="font-family: "verdana" , sans-serif; font-size: 9pt;">On cmd browse to extras in jmeter (cd D:\Software\apache-jmeter-2.13\extras)
and set heap size .<o:p></o:p></span></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgCPwmQOcLL_MgnpuxwTIKAl_W6gVZdlRu7P8pIbzJQz4nMAtCOTeg_hRR5Q3z7jURb7fzZidcsxE3nv7pC-6MDtfkJiByeIAZPUwkTD98Zn7GhtbIF9OY8RENrlWb0jcwoZYYAJ4zki4dJ/s1600/Apache_Ant_1.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="31" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgCPwmQOcLL_MgnpuxwTIKAl_W6gVZdlRu7P8pIbzJQz4nMAtCOTeg_hRR5Q3z7jURb7fzZidcsxE3nv7pC-6MDtfkJiByeIAZPUwkTD98Zn7GhtbIF9OY8RENrlWb0jcwoZYYAJ4zki4dJ/s320/Apache_Ant_1.png" width="320" /></a></div>
<div style="line-height: 18.0pt; margin-bottom: 12.0pt; margin-left: 36.0pt; margin-right: 2.4pt; margin-top: 0cm; mso-list: l0 level1 lfo1; text-indent: -18.0pt;">
<span style="font-family: "verdana" , sans-serif; font-size: 9pt;"><br /></span></div>
<div style="line-height: 18.0pt; margin-bottom: 12.0pt; margin-left: 36.0pt; margin-right: 2.4pt; margin-top: 0cm; mso-list: l0 level1 lfo1; text-indent: -18.0pt;">
<span style="font-family: "verdana" , sans-serif; font-size: 9pt;">8)<span style="font-family: "times new roman"; font-size: 7pt; font-stretch: normal; line-height: normal;"> </span></span><!--[endif]--><span style="font-family: "verdana" , sans-serif; font-size: 9pt;">Then
type > ant on command line and press enter<o:p></o:p></span></div>
<div style="line-height: 18.0pt; margin-bottom: 12.0pt; margin-left: 36.0pt; margin-right: 2.4pt; margin-top: 0cm; mso-list: l0 level1 lfo1; text-indent: -18.0pt;">
<span style="font-family: "verdana" , sans-serif; font-size: 9pt;">9)<span style="font-family: "times new roman"; font-size: 7pt; font-stretch: normal; line-height: normal;"> </span></span><!--[endif]--><span style="font-family: "verdana" , sans-serif; font-size: 9pt;">In
continuation without closing the java program press Ctrl+C and terminate batch
job .<o:p></o:p></span></div>
<div style="line-height: 18.0pt; margin-bottom: 12.0pt; margin-left: 36.0pt; margin-right: 2.4pt; margin-top: 0cm; mso-list: l0 level1 lfo1; text-indent: -18.0pt;">
<span style="font-family: "verdana" , sans-serif; font-size: 9pt;">10)<span style="font-family: "times new roman"; font-size: 7pt; font-stretch: normal; line-height: normal;"> </span></span><!--[endif]--><span style="font-family: "verdana" , sans-serif; font-size: 9pt;">Then
enter in cmd line > ant –Dtest =<Filename> report then press enter.<o:p></o:p></span></div>
<div style="line-height: 18.0pt; margin-bottom: 12.0pt; margin-left: 36.0pt; margin-right: 2.4pt; margin-top: 0cm; mso-list: l0 level1 lfo1; text-indent: -18.0pt;">
</div>
<div style="line-height: 18.0pt; margin-bottom: 12.0pt; margin-left: 36.0pt; margin-right: 2.4pt; margin-top: 0cm; mso-list: l0 level1 lfo1; text-indent: -18.0pt;">
<span style="font-family: "verdana" , sans-serif; font-size: 9pt;">11)<span style="font-family: "times new roman"; font-size: 7pt; font-stretch: normal; line-height: normal;"> </span></span><!--[endif]--><span style="font-family: "verdana" , sans-serif; font-size: 9pt;">It will
create the same name html file<o:p></o:p></span></div>
<div style="line-height: 18.0pt; margin-bottom: 12.0pt; margin-left: 36.0pt; margin-right: 2.4pt; margin-top: 0cm; mso-list: l0 level1 lfo1; text-indent: -18.0pt;">
<span style="font-family: "verdana" , sans-serif; font-size: 9pt;"><br /></span></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj03f8DfZWYDUk4W0w4QEKdhT1jU6sH2VqGlOKoEfWztO5Lh4Sg4lWtW07i2FjYwjsDSLl63V8eARji_ElGr44RMtDAGmz-wDzrXWGbeY3-zkE3ffzNda8MXWHHM0S3XMnSRuz2mb416nbh/s1600/Apache_Ant_2.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="217" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj03f8DfZWYDUk4W0w4QEKdhT1jU6sH2VqGlOKoEfWztO5Lh4Sg4lWtW07i2FjYwjsDSLl63V8eARji_ElGr44RMtDAGmz-wDzrXWGbeY3-zkE3ffzNda8MXWHHM0S3XMnSRuz2mb416nbh/s320/Apache_Ant_2.png" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div style="line-height: 18.0pt; margin-bottom: 12.0pt; margin-left: 36.0pt; margin-right: 2.4pt; margin-top: 0cm; mso-list: l0 level1 lfo1; text-indent: -18.0pt;">
<div style="line-height: 18.0pt; margin-bottom: 12.0pt; margin-left: 36.0pt; margin-right: 2.4pt; margin-top: 0cm;">
<span style="font-family: "verdana" , sans-serif; font-size: 9pt;">In the Resultant HTML file following information are provided :<o:p></o:p></span></div>
<div style="line-height: 18.0pt; margin-bottom: 12.0pt; margin-left: 54.0pt; margin-right: 2.4pt; margin-top: 0cm; mso-list: l0 level1 lfo1; text-indent: -18.0pt;">
<!--[if !supportLists]--><span style="font-family: "verdana" , sans-serif; font-size: 9pt;">1)<span style="font-family: "times new roman"; font-size: 7pt; font-stretch: normal; line-height: normal;"> </span></span><!--[endif]--><span style="font-family: "verdana" , sans-serif; font-size: 9pt;">Total
no. of success rate ,failures rate and the response time.<o:p></o:p></span></div>
<div style="line-height: 18.0pt; margin-bottom: 12.0pt; margin-left: 54.0pt; margin-right: 2.4pt; margin-top: 0cm; mso-list: l0 level1 lfo1; text-indent: -18.0pt;">
<!--[if !supportLists]--><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiTLkRRip92knos18k6ZKLh7DnO8rU97aNNP0Ux-N2Y2i4mN_Edfe7xYC58zNpHkGJ5VyqKMeIA6gPlUrL-5lxs5UmBnCdDJ1Hf1eP9yZUOb_SPEXvk2HkDKKwXF5PBIzQAo33IBbTziVTA/s1600/Transaction_Result.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="125" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiTLkRRip92knos18k6ZKLh7DnO8rU97aNNP0Ux-N2Y2i4mN_Edfe7xYC58zNpHkGJ5VyqKMeIA6gPlUrL-5lxs5UmBnCdDJ1Hf1eP9yZUOb_SPEXvk2HkDKKwXF5PBIzQAo33IBbTziVTA/s320/Transaction_Result.png" width="320" /></a><span style="font-family: "verdana" , sans-serif; font-size: 9pt;"></span><br />
<span style="font-family: "verdana" , sans-serif; font-size: 9pt;"><span style="font-family: "verdana" , sans-serif; font-size: 9pt;"><br /></span></span>
<span style="font-family: "verdana" , sans-serif; font-size: 9pt;"><span style="font-family: "verdana" , sans-serif; font-size: 9pt;"><br /></span></span>
<span style="font-family: "verdana" , sans-serif; font-size: 9pt;"><span style="font-family: "verdana" , sans-serif; font-size: 9pt;"><br /></span></span>
<span style="font-family: "verdana" , sans-serif; font-size: 9pt;"><span style="font-family: "verdana" , sans-serif; font-size: 9pt;"><br /></span></span>
<span style="font-family: "verdana" , sans-serif; font-size: 9pt;"><span style="font-family: "verdana" , sans-serif; font-size: 9pt; line-height: 18pt; text-indent: -18pt;"><br /></span></span>
<span style="font-family: "verdana" , sans-serif; font-size: 9pt;"><span style="font-family: "verdana" , sans-serif; font-size: 9pt; line-height: 18pt; text-indent: -18pt;"><br /></span></span>
<span style="font-family: "verdana" , sans-serif; font-size: 9pt;"><span style="font-family: "verdana" , sans-serif; font-size: 9pt; line-height: 18pt; text-indent: -18pt;">2)<span style="font-family: "times new roman"; font-size: 7pt; font-stretch: normal; line-height: normal;"> </span></span><span style="font-family: "verdana" , sans-serif; font-size: 9pt; line-height: 18pt; text-indent: -18pt;">Response
time of each and every transaction.</span></span><br />
</div>
<div style="line-height: 18.0pt; margin-bottom: 12.0pt; margin-left: 54.0pt; margin-right: 2.4pt; margin-top: 0cm; mso-list: l0 level1 lfo1; text-indent: -18.0pt;">
<!--[if !supportLists]--><span style="font-family: "verdana" , sans-serif; font-size: 9pt;">3)<span style="font-family: "times new roman"; font-size: 7pt; font-stretch: normal; line-height: normal;"> </span></span><!--[endif]--><span style="font-family: "verdana" , sans-serif; font-size: 9pt;">Highlighted
failure count.<o:p></o:p></span></div>
<span style="font-family: "verdana" , sans-serif; font-size: 9pt;">
</span><br />
<div style="line-height: 18.0pt; margin-bottom: 12.0pt; margin-left: 54.0pt; margin-right: 2.4pt; margin-top: 0cm; mso-list: l0 level1 lfo1; text-indent: -18.0pt;">
<!--[if !supportLists]--><span style="font-family: "verdana" , sans-serif; font-size: 9pt;">4)<span style="font-family: "times new roman"; font-size: 7pt; font-stretch: normal; line-height: normal;"> </span></span><!--[endif]--><span style="font-family: "verdana" , sans-serif; font-size: 9pt;">Failure
detail corresponding to the transaction.</span></div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<o:p></o:p></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEicBpVcISVeWymg19fxxfOu0III7qqAbdlmuyQblH8c0WlIEAnfQ_RqrAueWU_7S6hWcSo3pAX11dNNZ4Z0ENiw-fPYpTp_wcO5E6zcj6qUKeYN36M-Zd3wrzax7BLad5-mZvj255j3ftSi/s1600/Failure_Description.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="131" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEicBpVcISVeWymg19fxxfOu0III7qqAbdlmuyQblH8c0WlIEAnfQ_RqrAueWU_7S6hWcSo3pAX11dNNZ4Z0ENiw-fPYpTp_wcO5E6zcj6qUKeYN36M-Zd3wrzax7BLad5-mZvj255j3ftSi/s320/Failure_Description.png" width="320" /></a></div>
<br />
<div class="MsoListParagraphCxSpFirst" style="mso-list: l0 level1 lfo1; text-indent: -18.0pt;">
<br /></div>
<div class="MsoListParagraphCxSpMiddle">
<br />
<!--[endif]--></div>
<br />
<div class="MsoListParagraphCxSpLast">
<br /></div>
</div>
Anonymoushttp://www.blogger.com/profile/03909438832793746053noreply@blogger.com14tag:blogger.com,1999:blog-3028676056133006436.post-87715908422501253652016-02-01T03:21:00.001-08:002016-02-18T02:48:31.260-08:00To Avoid Socket Issues in jmeter script <div dir="ltr" style="text-align: left;" trbidi="on">
<div class="MsoNormal">
1) Make sure that your HTTP Requests
"Implementation" is HTTPClient4<o:p></o:p></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
2) Add the following lines to user.properties file (located
in /bin folder of your JMeter home)<o:p></o:p></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
httpclient4.retrycount=1<o:p></o:p></div>
<div class="MsoNormal">
hc.parameters.file=hc.parameters<o:p></o:p></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
3) In the hc.parameters file (same location - JMeter's /bin
folder) add line:<o:p></o:p></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
http.connection.stalecheck$Boolean=true<o:p></o:p></div>
<br />
<div class="MsoNormal">
<br /></div>
</div>
Lalit K Garghttp://www.blogger.com/profile/17892760700891484757noreply@blogger.com1tag:blogger.com,1999:blog-3028676056133006436.post-61038962254073438132015-12-31T02:48:00.001-08:002016-02-18T02:50:44.086-08:00Enabling Summary and Result Tree Feature in Jmeter Non GUI Mode <div dir="ltr" style="text-align: left;" trbidi="on">
As all of you know that Jmeter is best load testing open source tool but very much resource intensive and not allow us to run the more thrads from a single machine,<br />
<br />
To entertain this issue testers always prefer to have load test execution in Non GUI Mode.<br />
<br />
But again a limitation comes in case of NON GUI load test executions.<br />
<b><u><br /></u></b>
<b><u>Result analysis and Identification of Failure are a tedious task in NON GUI Mode executions.</u></b><br />
<br />
To deal with these issues , we are come up with some jmeter parameters to be set so that results can be visible during the execution on the command line.<br />
<br />
In One of my project , i have encountered a typical issue and it takes 2 hours to debug this,<br />
<br />
On windows server when i do one iteration then it will pass the user but on Linux we got failure.<br />
<br />
To Debug this we need to analyse the JTL File in Result Tree Listner, but by default we can't do this.<br />
<br />
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "calibri" , sans-serif; font-size: 12pt;"><br />
So i have done the following configurations: <o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<b><u><span style="font-family: "calibri" , sans-serif; font-size: 14pt;">To enable the summary result
:You can see the summary result on console</span></u></b><span style="font-family: "calibri" , sans-serif; font-size: 14pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "calibri" , sans-serif; font-size: 12pt;"># Define the following property to automatically
start a summariser<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "calibri" , sans-serif; font-size: 12pt;"># with that name(applies to non-GUI mode ony)<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "calibri" , sans-serif; font-size: 12pt;"> <a href="http://summariser.name/"><span style="color: blue;">s</span><span style="color: black; text-decoration: none;">ummariser.name</span></a>=summary<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "calibri" , sans-serif; font-size: 12pt;"># interval between summaries (in seconds) default 3
minutes<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "calibri" , sans-serif; font-size: 12pt;">summariser.interval=180<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "calibri" , sans-serif; font-size: 12pt;"># Write messages to log file<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "calibri" , sans-serif; font-size: 12pt;">summariser.log=true<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "calibri" , sans-serif; font-size: 12pt;"># Write messages to System.out<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "calibri" , sans-serif; font-size: 12pt;">summariser.out=true<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<b><u><span lang="EN-US" style="font-family: "calibri" , sans-serif; font-size: 12pt;">Response in Result Tree:</span></u></b><b><u><span style="font-family: "calibri" , sans-serif; font-size: 12pt;"><o:p></o:p></span></u></b></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span lang="EN-US" style="font-family: "calibri" , sans-serif; font-size: 12pt;">For viewing the response for the jtl file need to
do certain setting in Jmeter.properties file of Jmeter.</span><span style="font-family: "calibri" , sans-serif; font-size: 12pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "calibri" , sans-serif; font-size: 12pt;">Following parameter are need to be set :<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "calibri" , sans-serif; font-size: 12pt;">jmeter.save.saveservice.samplerData=true<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 12pt;">
<span style="font-family: "calibri" , sans-serif; font-size: 12pt;">jmeter.save.saveservice.response_data=true<br />
jmeter.save.saveservice.output_format=xml</span></div>
<div class="MsoNormal" style="margin-bottom: 12pt;">
<span style="font-family: "calibri" , sans-serif; font-size: 12pt;">jmeter.save.saveservice.response_data.on_error=true</span></div>
<div class="MsoNormal" style="margin-bottom: 12pt;">
<span style="font-family: "calibri" , sans-serif; font-size: 12pt;">jmeter.save.saveservice.requestHeaders=true<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 12pt;">
<span style="font-family: "calibri" , sans-serif; font-size: 12pt;">jmeter.save.saveservice.url=true<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 12pt;">
<span style="font-family: "calibri" , sans-serif; font-size: 12pt;">jmeter.save.saveservice.responseHeaders=true<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<b><u><span lang="EN-US" style="font-family: "calibri" , sans-serif; font-size: 12pt;">You can also pass the same in line command also
:Like following </span></u></b><b><u><span style="font-family: "calibri" , sans-serif; font-size: 12pt;"><o:p></o:p></span></u></b></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "calibri" , sans-serif; font-size: 12pt;">Jmeter -Jjmeter.save.saveservice.output_format=xml
-Jjmeter.save.saveservice.response_data=true -Jjmeter.save.saveservice.samplerData=true -Jjmeter.save.saveservice.requestHeaders=true -Jjmeter.save.saveservice.url=true -Jjmeter.save.saveservice.responseHeaders=true -n
-t example.jmx -l example.jtl<o:p></o:p></span></div>
<br />
<br />
<br />
Let me know in case of any query/concern.</div>
Lalit K Garghttp://www.blogger.com/profile/17892760700891484757noreply@blogger.com0tag:blogger.com,1999:blog-3028676056133006436.post-75886727581470311322014-02-26T01:42:00.005-08:002014-02-26T01:42:59.249-08:00Mobile Application Performance Testing - Part 2<div dir="ltr" style="text-align: left;" trbidi="on">
<img height="177" src="https://encrypted-tbn2.gstatic.com/images?q=tbn:ANd9GcRc0kRBeYaVhTff9KTrph4ILvlQW2Ox8SwzZo9_MoPPTZVpI3-y" width="400" /><br />
<br />
<br />
<br />
<br />
<b><u>Script Preparation To Record Application Server Calls</u></b><br />
<br />
<div class="MsoListParagraphCxSpFirst" style="mso-list: l0 level1 lfo1; text-indent: -.25in;">
<!--[if !supportLists]--> 1)<span style="font-size: 7pt;">
</span><!--[endif]--><b><u>Using User Agents</u></b>: Install User Agents in Chrome
and Firefox and then record script using jmeter</div>
<div class="MsoListParagraphCxSpFirst" style="mso-list: l0 level1 lfo1; text-indent: -.25in;">
<b><u>Steps</u></b></div>
<div class="MsoListParagraphCxSpFirst" style="mso-list: l0 level1 lfo2; text-indent: -.25in;">
<!--[if !supportLists]--> a)<span style="font-size: 7pt;">
</span><!--[endif]-->Add the user Agent Switcher to the browser (Chrome
or Firefox)</div>
<div class="MsoListParagraphCxSpMiddle" style="mso-list: l0 level1 lfo2; text-indent: -.25in;">
<!--[if !supportLists]--> b)<span style="font-size: 7pt;">
</span><!--[endif]-->After Adding the Agent go to the User Agent
switcher from browser menu and select the agent that is to be simulated </div>
<div class="MsoListParagraphCxSpMiddle" style="mso-list: l0 level1 lfo2; text-indent: -.25in;">
(OR)</div>
<div class="MsoListParagraphCxSpMiddle" style="mso-list: l0 level1 lfo2; text-indent: -.25in;">
<!--[if !supportLists]--> c)<span style="font-size: 7pt;">
</span><!--[endif]-->We can also simulate the User Agents without
installing plugging from Developers tools.</div>
<div class="MsoListParagraphCxSpMiddle" style="mso-list: l0 level1 lfo2; text-indent: -.25in;">
<!--[if !supportLists]--> d)<span style="font-size: 7pt;">
</span><!--[endif]-->Record the Jmeter Script after setting proxy In
browser.</div>
<div class="MsoListParagraphCxSpMiddle">
<br /></div>
<div class="MsoListParagraphCxSpMiddle" style="mso-list: l1 level1 lfo1; text-indent: -.25in;">
<!--[if !supportLists]--><b> 2)<span style="font-size: 7pt; font-weight: normal;"> </span></b><!--[endif]-->Using
the Proxy Simulation: <b>(Will study this
in details in next post)<o:p></o:p></b></div>
<div class="MsoListParagraphCxSpMiddle">
Do Manual Proxy settings in Mobile.</div>
<div class="MsoListParagraphCxSpLast">
Put IP address of Laptop and Port as to be
given in Jmeter </div>
<div class="MsoListParagraphCxSpFirst" style="mso-list: l0 level1 lfo1; text-indent: -.25in;">
<br /></div>
</div>
Lalit K Garghttp://www.blogger.com/profile/17892760700891484757noreply@blogger.com2tag:blogger.com,1999:blog-3028676056133006436.post-69239696540320858512014-02-23T22:18:00.002-08:002014-02-25T22:26:43.156-08:00Mobile App Performance Testing<div dir="ltr" style="text-align: left;" trbidi="on">
<br />
<br />
<img src="https://encrypted-tbn2.gstatic.com/images?q=tbn:ANd9GcRFjFzbGhtsji2TR0M2yk9-IrwwXq-JjjF8Jhsey4fkUfnZb29EdA" /><br />
<br />
Friends,<br />
<div>
<br /></div>
<div>
If we look at the today's scenario.Daily more Users are moving to smart Phones and tablets to access the applications.At the same time the User Experience becomes the critical factor for Business.For Eg.. According to Strangeloop, 57% of online consumers will abandon the site after waitig for 3 sec and 80% of them will not return.. It create the need of performance Testing of Mobile Applications.</div>
<div>
<br /></div>
<div>
Mobile App Performance Testing = Server Side Testing + Clinet Side(Device) Performance Testing</div>
<div>
<br /></div>
<div>
First We will Discuss about the Server Side Performance Testing of Mobile App.</div>
<div>
<br /></div>
<div>
<b><u>A) Server Side Performance testing:</u></b></div>
<div>
<br /></div>
<div>
1) Recording the Server calls(Using Jmeter):</div>
<div>
a) Browser Based recording---> Uses the Mobile Extensions in rowsers</div>
<div>
b) Proxy Based recording ----> Uses the Proxy to Record the server calls.</div>
<div>
<br /></div>
<div>
2) Load Test Executions</div>
<div>
<br /></div>
<div>
<b><u>B) Client Side/Device Side Performance Testing(Monitoring):</u></b></div>
<div>
<br /></div>
<div>
<u>Using Various Free Apps</u></div>
<div>
<u><br /></u></div>
<div>
<u><b>C) Profiling application Using DDMS</b></u></div>
<div>
<u><br /></u></div>
<div>
<u>Using Android DDMS </u></div>
<div>
<b><u><br /></u></b></div>
</div>
Lalit K Garghttp://www.blogger.com/profile/17892760700891484757noreply@blogger.com23tag:blogger.com,1999:blog-3028676056133006436.post-91313711549532728732013-02-11T22:22:00.001-08:002013-02-11T22:22:53.614-08:00Steps to Connect Database from VuGen Script in Load Runner <div dir="ltr" style="text-align: left;" trbidi="on">
<h4 class="MsoNormal" style="margin: 0in 0in 10pt; text-align: justify;">
<span style="font-family: 'Times New Roman','serif'; line-height: 115%;"><em><span style="color: blue;">To configure Oracle Net Listener from the Oracle Net Configuration Assistant<o:p></o:p></span></em></span></h4>
<div class="MsoNormal" style="margin: 0in 0in 10pt; text-align: justify;">
<span style="font-family: 'Times New Roman','serif';"><span style="font-size: x-small;"><span style="font-family: Verdana, sans-serif;"><span style="background-color: white;">Step 1:</span> Install Oracle 10g Client .</span></span></span><span style="font-family: 'Times New Roman','serif';"><span style="font-size: x-small;"><span style="font-family: Verdana, sans-serif;">Once it is Successfully Installed<o:p></o:p></span></span></span></div>
<div class="MsoNormal" style="margin: 0in 0in 10pt; text-align: justify;">
<span style="font-family: 'Times New Roman','serif';"><span style="font-size: x-small;"><span style="font-family: Verdana, sans-serif;">Step 2: Goto Start -> Programs -> Oracle - OraClient10g_32_home1 -> Configuration and Migration Tools -> Net Configuration Assistant<o:p></o:p></span></span></span></div>
<div style="text-align: justify;">
<span style="font-family: 'Times New Roman','serif'; line-height: 115%; mso-ansi-language: EN-US; mso-bidi-language: AR-SA; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin;"><span style="font-family: Verdana, sans-serif; font-size: x-small;">Step 3: Select Listener configuration and Click Next.</span></span></div>
<span style="font-family: 'Times New Roman','serif'; line-height: 115%; mso-ansi-language: EN-US; mso-bidi-language: AR-SA; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin;"><div class="MsoNormal" style="margin: 0in 0in 10pt; text-align: justify;">
<span style="font-family: 'Times New Roman','serif';"><span style="font-family: Verdana, sans-serif; font-size: x-small;">Step 4: Select add and Click Next</span></span></div>
<span style="font-family: 'Times New Roman','serif';"><div class="MsoNormal" style="margin: 0in 0in 10pt; text-align: justify;">
<span style="font-family: 'Times New Roman','serif';"><span style="font-size: x-small;"><span style="font-family: Verdana, sans-serif;">Step 5 : Choose TCPS in the Selected Protocols and Click Next.<o:p></o:p></span></span></span></div>
<div style="text-align: justify;">
<o:p></o:p></div>
</span></span><span style="font-family: 'Times New Roman','serif'; font-size: 11pt; line-height: 115%; mso-ansi-language: EN-US; mso-bidi-language: AR-SA; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin;"><span style="font-family: Verdana, sans-serif; font-size: x-small;">Step 6: Select (Use the standard port number of 1521) and click next</span></span></div>
<span style="font-family: 'Times New Roman','serif'; font-size: 11pt; line-height: 115%; mso-ansi-language: EN-US; mso-bidi-language: AR-SA; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin;"><div class="MsoNormal" style="margin: 0in 0in 10pt; text-align: justify;">
<span style="font-family: 'Times New Roman','serif';"><span style="font-family: Verdana, sans-serif; font-size: x-small;">Step 7: Select No and Click Next</span></span></div>
<span style="font-family: 'Times New Roman','serif';"><div class="MsoNormal" style="margin: 0in 0in 10pt; text-align: justify;">
<span style="font-family: 'Times New Roman','serif';"><span style="font-size: x-small;"><span style="font-family: Verdana, sans-serif;">Step 8: Select the Listner name which have created earlier and click next<o:p></o:p></span></span></span></div>
<o:p><div class="MsoNormal" style="margin: 0in 0in 10pt; text-align: justify;">
<span style="font-family: 'Times New Roman','serif';"><span style="font-family: Verdana, sans-serif; font-size: x-small;">Step 9: Now the Listner Configuration is complete .Click Next</span></span></div>
<div class="MsoNormal" style="margin: 0in 0in 10pt; text-align: justify;">
<span style="font-family: 'Times New Roman','serif';"><span style="font-family: 'Times New Roman','serif'; line-height: 115%; mso-ansi-language: EN-US; mso-bidi-language: AR-SA; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin;"><span style="font-family: Verdana, sans-serif; font-size: x-small;">Step 10: Click Finish to complete the Listener configuration</span></span></span></div>
<h4 class="MsoNormal" style="margin: 0in 0in 10pt; text-align: justify;">
<span style="font-family: 'Times New Roman','serif';"><span style="font-family: 'Times New Roman','serif'; line-height: 115%; mso-ansi-language: EN-US; mso-bidi-language: AR-SA; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin;"><span style="font-family: 'Times New Roman','serif'; line-height: 115%;"><span style="mso-spacerun: yes;"> </span><em><span style="color: blue;">To add Oracle ODBC Driver in the ODBC Data Source Administrator<o:p></o:p></span></em></span></span></span></h4>
</o:p></span></span><div class="MsoNormal" style="margin: 0in 0in 10pt; text-align: justify;">
<span style="font-family: 'Times New Roman','serif';"><span style="font-family: 'Times New Roman','serif'; line-height: 115%; mso-ansi-language: EN-US; mso-bidi-language: AR-SA; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin;"><span style="font-family: 'Times New Roman','serif'; line-height: 115%; mso-ansi-language: EN-US; mso-bidi-language: AR-SA; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin;"><span style="font-family: Verdana, sans-serif; font-size: x-small;">Step 1: Goto Start -> Settings -> Control Panel -> Performance and Maintenance-> Administrative Tools</span></span></span></span></div>
<span style="font-family: 'Times New Roman','serif';"><span style="font-family: 'Times New Roman','serif'; line-height: 115%; mso-ansi-language: EN-US; mso-bidi-language: AR-SA; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin;"><span style="font-family: 'Times New Roman','serif'; line-height: 115%; mso-ansi-language: EN-US; mso-bidi-language: AR-SA; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin;"><div class="MsoNormal" style="margin: 0in 0in 10pt; text-align: justify;">
<span style="font-family: 'Times New Roman','serif';"><span style="font-family: Verdana, sans-serif; font-size: x-small;">Step 2: Click add and proceed</span></span></div>
<span style="font-family: 'Times New Roman','serif';"><div class="MsoNormal" style="margin: 0in 0in 10pt; text-align: justify;">
<span style="font-family: 'Times New Roman','serif';"><span style="font-size: x-small;"><span style="font-family: Verdana, sans-serif;">Step 3: Select (Microsoft ODBC for Oracle) and click finish</span></span></span></div>
<o:p></o:p></span></span></span></span><span style="font-family: 'Times New Roman','serif';"><span style="font-family: 'Times New Roman','serif'; line-height: 115%; mso-ansi-language: EN-US; mso-bidi-language: AR-SA; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin;"><span style="color: blue;"><div class="MsoNormal" style="margin: 0in 0in 10pt; text-align: justify;">
<span style="font-family: 'Times New Roman','serif';"><span style="color: black; font-family: Verdana, sans-serif; font-size: x-small;">Step 4: Fill the details and click Ok</span></span></div>
<div class="MsoNormal" style="margin: 0in 0in 10pt; text-align: justify;">
<span style="font-family: 'Times New Roman','serif';"><span style="color: black; font-family: Verdana; font-size: x-small;">Step 5: Data Source host (xyz.com) will be added in the ODBC Data Source Administrator</span></span></div>
</span><span style="font-family: 'Times New Roman','serif';"><span style="font-family: 'Times New Roman','serif'; line-height: 115%; mso-ansi-language: EN-US; mso-bidi-language: AR-SA; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin;"><h4 class="MsoNormal" style="margin: 0in 0in 10pt; text-align: justify;">
<span style="font-family: 'Times New Roman','serif'; line-height: 115%;"><em><span style="mso-spacerun: yes;"> </span><span style="color: blue;">To connect the database from the Vugen Script<o:p></o:p></span></em></span></h4>
<span style="color: blue;"><span style="color: black;"><div class="MsoNormal" style="margin: 0in 0in 10pt; text-align: justify;">
<span style="font-family: 'Times New Roman','serif';"><span style="font-size: x-small;"><span style="font-family: Verdana, sans-serif;">Step 1: Open the script in the virtual user generator and select the parameter list from it.<o:p></o:p></span></span></span></div>
<div class="MsoNormal" style="margin: 0in 0in 10pt; text-align: justify;">
<span style="font-family: 'Times New Roman','serif';"><span style="font-family: Verdana, sans-serif; font-size: x-small;">Step 2: Click on <b style="mso-bidi-font-weight: normal;"><span style="color: blue;">Data Wizard</span></b> from the window</span></span></div>
<span style="font-family: 'Times New Roman','serif';"><div class="MsoNormal" style="margin: 0in 0in 10pt; text-align: justify;">
<span style="font-family: 'Times New Roman','serif';"><span style="font-size: x-small;"><span style="font-family: Verdana, sans-serif;">Step 3: Select the appropriate options from the database query wizard and click <span style="mso-spacerun: yes;"> </span>next<o:p></o:p></span></span></span></div>
<o:p></o:p></span></span></span></span><o:p></o:p></span></span></span><div align="justify" class="MsoNormal" style="margin: 0in 0in 10pt;">
<span style="font-family: 'Times New Roman','serif';"><span style="font-family: 'Times New Roman','serif'; line-height: 115%; mso-ansi-language: EN-US; mso-bidi-language: AR-SA; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin;"><span style="font-family: 'Times New Roman','serif'; line-height: 115%; mso-ansi-language: EN-US; mso-bidi-language: AR-SA; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin;"><span style="font-family: Verdana, sans-serif; font-size: x-small;">Step 4: Click Ok and Proceed</span></span></span></span></div>
<span style="font-family: 'Times New Roman','serif';"><span style="font-family: 'Times New Roman','serif'; line-height: 115%; mso-ansi-language: EN-US; mso-bidi-language: AR-SA; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin;"><span style="font-family: 'Times New Roman','serif'; line-height: 115%; mso-ansi-language: EN-US; mso-bidi-language: AR-SA; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin;"><div align="justify" class="MsoNormal" style="margin: 0in 0in 10pt;">
<span style="font-family: 'Times New Roman','serif';"><span style="font-size: x-small;"><span style="font-family: Verdana, sans-serif;">Step 5: Choose Data Source (xyz.com) which was created earlier in the administrative tool and select OK</span></span></span></div>
<div align="justify" class="MsoNormal" style="margin: 0in 0in 10pt;">
<span style="font-family: 'Times New Roman','serif';"><span style="font-size: x-small;"><span style="font-family: Verdana, sans-serif;">Step 6: Enter username , password and server name and click ok. Hence, Connection will be established to the host (xyz.com)</span></span></span></div>
</span></span></span><span style="font-family: 'Times New Roman','serif';"><span style="font-family: 'Times New Roman','serif'; font-size: 11pt; line-height: 115%; mso-ansi-language: EN-US; mso-bidi-language: AR-SA; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin;"><span style="color: blue;"><div align="justify" class="MsoNormal" style="margin: 0in 0in 10pt;">
<span style="font-family: 'Times New Roman','serif';"><span style="font-family: 'Times New Roman','serif'; line-height: 115%; mso-ansi-language: EN-US; mso-bidi-language: AR-SA; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin;"><span style="color: black; font-family: Verdana, sans-serif; font-size: x-small;">Step 7: Choose appropriate database tables and select a particular column and click next</span></span></span></div>
<span style="font-family: 'Times New Roman','serif';"><span style="font-family: 'Times New Roman','serif'; font-size: 11pt; line-height: 115%; mso-ansi-language: EN-US; mso-bidi-language: AR-SA; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin;"><div align="justify" class="MsoNormal" style="margin: 0in 0in 10pt;">
<span style="font-family: 'Times New Roman','serif';"><span style="color: black; font-family: Verdana, sans-serif; font-size: x-small;">Step 8: Filter the data from the selected column form the database table and click next</span></span></div>
<div align="justify" class="MsoNormal" style="margin: 0in 0in 10pt;">
<span style="font-family: 'Times New Roman','serif';"><span style="color: black; font-family: Verdana; font-size: x-small;">Step 9: Choose sort by to sort the data from the database and click next</span></span></div>
<span style="font-family: 'Times New Roman','serif';"><span style="color: black;"><span style="font-family: 'Times New Roman','serif'; line-height: 115%; mso-ansi-language: EN-US; mso-bidi-language: AR-SA; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin;"><div align="justify" class="MsoNormal" style="margin: 0in 0in 10pt;">
<span style="font-family: 'Times New Roman','serif';"><span style="font-size: x-small;"><span style="font-family: Verdana, sans-serif;">Step 10: Select (Ext and return to HP Virtual User Generator) and click next</span></span></span></div>
<div align="justify" class="MsoNormal" style="margin: 0in 0in 10pt;">
<span style="font-family: 'Times New Roman','serif'; line-height: 115%; mso-ansi-language: EN-US; mso-bidi-language: AR-SA; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin;"><span style="font-family: Verdana, sans-serif; font-size: x-small;">By doing this specified data from the database located in the host (xyz.com) is retrieved and stored in the parameter list of the Vugen Script.</span></span></div>
</span></span></span></span></span></span></span></span><h4 align="justify" class="MsoNormal" style="margin: 0in 0in 10pt;">
<span style="font-family: 'Times New Roman','serif';"><o:p><em><span style="color: #38761d;"></span></em></o:p></span> </h4>
Unknownnoreply@blogger.com20tag:blogger.com,1999:blog-3028676056133006436.post-19188728651409555262012-12-02T20:44:00.000-08:002012-12-02T20:45:01.398-08:00Loadrunner Certification Exam questions-Part-2<div dir="ltr" style="text-align: left;" trbidi="on">
<br />
<h3 class="post-title entry-title" style="background-color: white; margin: 0px; position: relative;">
<div class="MsoNormal" style="color: #737373; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 18px; font-weight: normal;">
<b><u><span style="color: #984806; font-size: 14.0pt; mso-bidi-font-family: Arial; mso-fareast-font-family: "Times New Roman"; mso-themecolor: accent6; mso-themeshade: 128;">Loadrunner
Certification Exam questions- Part-2<o:p></o:p></span></u></b></div>
<div class="MsoNormal" style="color: #737373; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 18px; font-weight: normal;">
<b><u><span style="color: #984806; font-size: 14.0pt; mso-bidi-font-family: Arial; mso-fareast-font-family: "Times New Roman"; mso-themecolor: accent6; mso-themeshade: 128;"><br /></span></u></b></div>
<div class="MsoNormal" style="color: #737373; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 18px; font-weight: normal;">
<span style="color: #0b5394; font-size: 19px;"><a href="http://www.lalitgarg.com/2012/08/loadrunner-certification-information_333.html" target="_blank">In part-1 we have discussed about some load runner certification questions</a></span></div>
<div class="MsoNormal" style="color: #737373; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 18px; font-weight: normal;">
<br /></div>
<div class="MsoNormal" style="color: #737373; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 18px; font-weight: normal;">
<span style="color: #984806; font-size: 14.0pt; mso-bidi-font-family: Times; mso-fareast-font-family: "Times New Roman"; mso-font-kerning: 18.0pt; mso-themecolor: accent6; mso-themeshade: 128;">Load Runner Exam<b><o:p></o:p></b></span></div>
<div class="MsoNormal" style="color: #737373; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-weight: normal;">
<span style="font-size: x-small;"><span style="color: #0b5394;">1) What is a
LoadRunner scenario?</span><b><o:p></o:p></b></span></div>
<div class="MsoNormal" style="color: #737373; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-weight: normal;">
<span style="font-size: x-small;"><span style="color: #0b5394;">2) What is the
advantage of running the Vuser as thread?</span><b><o:p></o:p></b></span></div>
<div class="MsoNormal" style="color: #737373; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-weight: normal;">
<span style="font-size: x-small;"><span style="color: #0b5394;">3) What are the
components of LoadRunner and write file extensions for each component. </span><b><o:p></o:p></b></span></div>
<div class="MsoNormal" style="color: #737373; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-weight: normal;">
<span style="font-size: x-small;"><span style="color: #0b5394;">4) What is a function
to capture dynamic values in the web Vuser script? and write a syntax for
the same.? </span><b><o:p></o:p></b></span></div>
<div class="MsoNormal" style="color: #737373; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-weight: normal;">
<span style="font-size: x-small;"><span style="color: #0b5394;">5) What is think
time? and write a syntax function for think time?</span><b><o:p></o:p></b></span></div>
<div class="MsoNormal" style="color: #737373; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-weight: normal;">
<span style="font-size: x-small;"><span style="color: #0b5394;">6) Write the steps
for Manual correlation?</span><b><o:p></o:p></b></span></div>
<div class="MsoNormal" style="color: #737373; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-weight: normal;">
<span style="font-size: x-small;"><span style="color: #0b5394;">7) Write all the
message functions you know?</span><b><o:p></o:p></b></span></div>
<div class="MsoNormal" style="color: #737373; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-weight: normal;">
<span style="font-size: x-small;"><span style="color: #0b5394;">8) Error: “No match
found for the requested parameter 'ParameterName'. If the data you want to save
exceeds 256 bytes”. If you find this error while correlation, what Is the debug
action you perform? </span><b><o:p></o:p></b></span></div>
<div class="MsoNormal" style="color: #737373; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-weight: normal;">
<span style="font-size: x-small;"><span style="color: #0b5394;">9) Write the Syntax
for web_reg_find function and also write the purpose of it.</span><b><o:p></o:p></b></span></div>
<div class="MsoNormal" style="color: #737373; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-weight: normal;">
<span style="font-size: x-small;"><span style="color: #0b5394;">10) What are the function names to
convert integer to String and string to Integer?
</span><b><o:p></o:p></b></span></div>
<div class="MsoNormal" style="color: #737373; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-weight: normal;">
<span style="font-size: x-small;"><span style="color: #0b5394;">11) Write the different goal types
available in Goal oriented scenario?</span><b><o:p></o:p></b></span></div>
<div class="MsoNormal" style="color: #737373; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-weight: normal;">
<span style="font-size: x-small;"><span style="color: #0b5394;">12) What is the difference between
Execute load test for “Run until completion”.</span><b><o:p></o:p></b></span></div>
<div class="MsoNormal" style="color: #737373; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-weight: normal;">
<span style="font-size: x-small;"><span style="color: #0b5394;">13) Write 4 memory counts and
their description.</span><b><o:p></o:p></b></span></div>
<div class="MsoNormal" style="color: #737373; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-weight: normal;">
<span style="font-size: x-small;"><span style="color: #0b5394;">14) Write 2 CPU counters and their
description.</span><b><o:p></o:p></b></span></div>
<div class="MsoNormal" style="color: #737373; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-weight: normal;">
<span style="font-size: x-small;"><span style="color: #0b5394;">15) How many controllers/ Load
Generators and user licenses are there in your company (this is not a
right/wrong question – You will get score based on realistic answer you
provide) </span><b><o:p></o:p></b></span></div>
<div class="MsoNormal" style="color: #737373; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-weight: normal;">
<span style="color: #0b5394; font-size: 14.0pt; mso-bidi-font-family: Times; mso-fareast-font-family: "Times New Roman"; mso-font-kerning: 18.0pt;"><br /></span></div>
<div class="MsoNormal" style="color: #737373; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 18px; font-weight: normal;">
<span style="color: #0b5394; font-size: 14.0pt; mso-bidi-font-family: Times; mso-fareast-font-family: "Times New Roman"; mso-font-kerning: 18.0pt;">Please add other questions if you have.</span></div>
</h3>
</div>
Lalit K Garghttp://www.blogger.com/profile/17892760700891484757noreply@blogger.com1tag:blogger.com,1999:blog-3028676056133006436.post-66456493774583632942012-11-29T21:49:00.001-08:002012-11-29T21:49:08.190-08:00Performance Testing | Database Monitoring | Mysql<div dir="ltr" style="text-align: left;" trbidi="on">
<br />
<div class="gmail_quote" style="font-family: arial; font-size: small;">
<span style="color: #1f497d; font-family: Calibri, sans-serif; font-size: 14.44444465637207px;">Following are some commands that we we can use to monitor mysql database on linux server.</span></div>
<div class="gmail_quote" style="font-family: arial; font-size: small;">
<span style="color: #1f497d; font-family: Calibri, sans-serif; font-size: 14.44444465637207px;"><br /></span></div>
<div class="gmail_quote" style="font-family: arial; font-size: small;">
<span style="color: #1f497d; font-family: Calibri, sans-serif; font-size: 14.44444465637207px;"><b><u>To Monitor Current Queries :</u></b></span></div>
<div class="gmail_quote" style="font-family: arial; font-size: small;">
<ul>
<li><span style="color: #1f497d; font-family: Calibri, sans-serif; font-size: 14.44444465637207px;">show processlist;</span></li>
<li><span style="color: #1f497d; font-family: Calibri, sans-serif; font-size: 14.44444465637207px;">show full processlist;</span></li>
</ul>
<div>
<br /></div>
<div class="MsoNormal">
</div>
<div>
<span style="color: #1f497d; font-family: Calibri, sans-serif;"><span style="font-size: 14.44444465637207px;"><b><u>Query Execution Plan</u></b></span></span></div>
<div>
<ul>
<li><span style="color: #1f497d; font-family: Calibri, sans-serif; font-size: 14.44444465637207px;">explain </span><i style="color: #1f497d; font-family: Calibri, sans-serif; font-size: 14.44444465637207px;">QueryStatement</i></li>
<li><span style="color: #1f497d; font-family: Calibri, sans-serif;"><span style="font-size: 14.44444465637207px;">explain extended<i> </i></span></span><i style="color: #1f497d; font-family: Calibri, sans-serif; font-size: 14.44444465637207px;">QueryStatement</i></li>
</ul>
</div>
<div>
<span style="color: #1f497d; font-family: Calibri, sans-serif; font-size: 14.44444465637207px;"><br /></span></div>
<div>
<span style="color: #1f497d; font-family: Calibri, sans-serif; font-size: 14.44444465637207px;"><b><u>To show index present in table</u></b></span></div>
<div>
<span style="color: #1f497d; font-family: Calibri, sans-serif; font-size: 14.44444465637207px;"><br /></span></div>
<div>
<span style="color: #1f497d; font-family: Calibri, sans-serif; font-size: 14.44444465637207px;"> show index from <i>TableName</i></span></div>
<div>
<span style="color: #1f497d; font-family: Calibri, sans-serif; font-size: 14.44444465637207px;"><br /></span></div>
<div>
<span style="color: #1f497d; font-family: Calibri, sans-serif; font-size: 14.44444465637207px;"><b><u>To Monitor Locks,Waits and Deadlocks</u></b></span></div>
<div>
<ul>
<li><span style="color: #1f497d; font-family: Calibri, sans-serif;"><span style="font-size: 14.44444465637207px;"> show engine innodb status; (See semaphore section).</span></span></li>
<li><span style="color: #1f497d; font-family: Calibri, sans-serif;"><span style="font-size: 14.44444465637207px;"><div class="MsoNormal">
SELECT r.trx_id waiting_trx_id,r.trx_mysql_<wbr></wbr>thread_id waiting_thread,r.trx_query waiting_query,b.trx_id blocking_trx_id,b.trx_mysql_<wbr></wbr>thread_id blocking_thread, b.trx_query blocking_query FROM information_schema.innodb_<wbr></wbr>lock_waits w INNER JOIN information_schema.innodb_trx b ON b.trx_id = w.blocking_trx_id INNER JOIN information_schema.innodb_trx r ON r.trx_id = w.requesting_trx_id\G</div>
</span></span></li>
</ul>
</div>
</div>
<div class="gmail_quote" style="font-family: arial; font-size: small;">
<div class="gmail_quote">
<div>
<div>
<span style="color: #1f497d; font-family: Calibri, sans-serif; font-size: 14.44444465637207px;"><b><u>Find Largest Tables in Mysql</u></b></span></div>
<div>
<div class="MsoNormal">
</div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span style="color: #1f497d;">SELECT CONCAT(table_schema, '.', table_name), CONCAT(ROUND(<wbr></wbr>table_rows / 1000000, 2), 'M') rows,CONCAT(ROUND(data_length / ( 1024 * 1024 * 1024 ), 2), 'G') DATA, CONCAT(ROUND(index_<wbr></wbr>length / ( 1024 * 1024 * 1024 ), 2), 'G') idx,CONCAT(ROUND(( data_length + index_length ) / ( 1024 * 1024 * 1024 ), 2), 'G') total_size,ROUND(index_length / data_length, 2) idxfrac FROM information_schema.TABLES ORDER BY data_length + index_length DESC LIMIT 10;</span></div>
<br />
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
</div>
<div class="MsoNormal">
<b><u><span style="color: #1f497d;">Enabling Slow Query Log*:</span></u></b></div>
<div class="MsoNormal">
<b><span style="color: #222222; font-family: Arial, sans-serif; font-size: 12.5pt;"><br /></span></b><span style="color: #1f497d;">1) Enter following lines in the file[my.cnf]</span></div>
<div class="MsoNormal">
<span style="color: #1f497d;"> <b>Default Location:</b>[ Location :/etc/my.cnf]</span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span style="color: #1f497d;">#ForSlowQuerylog </span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span style="color: #1f497d;">datadir = /var/lib/mysql</span></div>
<div class="MsoNormal">
<span style="color: #1f497d;">log_slow_queries = mysql-slow.log</span></div>
<div class="MsoNormal">
<span style="color: #1f497d;">long_query_time = 1 </span></div>
<div class="MsoNormal">
<span style="color: #1f497d;"> </span></div>
<div class="MsoNormal">
<span style="color: #1f497d;">2) After making changes restart the mysql .</span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span style="color: #1f497d;">*Require Root access to make this change</span></div>
<br />
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span style="color: #1f497d; font-family: Calibri, sans-serif;"><span style="font-size: 14.44444465637207px;"><b><u>Tool for monitoring</u></b>: S<b>potlight</b> (</span></span><span style="color: #1f497d;"><a href="http://www.quest.com/spotlight-on-mysql/" target="_blank">http://www.quest.com/<wbr></wbr>spotlight-on-mysql/</a>)</span></div>
</div>
</div>
<div>
<span style="font-family: tahoma, sans-serif;"><div>
<br /></div>
<div>
<b style="color: #1f497d; font-family: Calibri, sans-serif; font-size: 14.44444465637207px;">Please feel free to add anything regarding Mysql Monitoring to this thread.</b></div>
</span></div>
</div>
</div>
</div>
Lalit K Garghttp://www.blogger.com/profile/17892760700891484757noreply@blogger.com0tag:blogger.com,1999:blog-3028676056133006436.post-72758247736788428072012-11-27T22:11:00.000-08:002012-11-27T22:11:18.833-08:00linux top command -- For Beautiful Monitoring of server Hardware Resources<div dir="ltr" style="text-align: left;" trbidi="on">
<br />
<div style="background-color: white; color: #333333; font-family: 'Lucida Grande', Verdana, Arial, sans-serif; font-size: 12px; line-height: 18px; margin-bottom: 10px; padding: 0px;">
The linux top command is the Command Line equivalent to Task Manager in windows.</div>
<h3 style="background-color: white; color: #333333; font-family: 'Lucida Grande', Verdana, Arial, sans-serif; font-size: 12px; margin: 15px 0px 0px; padding: 0px 0px 20px;">
Question / Scenario:</h3>
<div style="background-color: white; color: #333333; font-family: 'Lucida Grande', Verdana, Arial, sans-serif; font-size: 12px; line-height: 18px; margin-bottom: 10px; padding: 0px;">
How do I determine CPU and Memory utilization, based on running processes.</div>
<h3 style="background-color: white; color: #333333; font-family: 'Lucida Grande', Verdana, Arial, sans-serif; font-size: 12px; margin: 15px 0px 0px; padding: 0px 0px 20px;">
Answer / Solution:</h3>
<div style="background-color: white; color: #333333; font-family: 'Lucida Grande', Verdana, Arial, sans-serif; font-size: 12px; line-height: 18px; margin-bottom: 10px; padding: 0px;">
Use the TOP command in linux.</div>
<h2 style="background-color: white; color: #333333; font-family: 'Lucida Grande', Verdana, Arial, sans-serif; font-size: 18px; line-height: 18px; margin: 20px 0px 10px; padding: 0px;">
TOP</h2>
<div style="background-color: white; color: #333333; font-family: 'Lucida Grande', Verdana, Arial, sans-serif; font-size: 12px; line-height: 18px; margin-bottom: 10px; padding: 0px;">
Top command provides a real-time look at what is happening with your system. Top produces so much output that a new user may get over whelmed with all thats presented and what it means.</div>
<div style="background-color: white; color: #333333; font-family: 'Lucida Grande', Verdana, Arial, sans-serif; font-size: 12px; line-height: 18px; margin-bottom: 10px; padding: 0px;">
Lets take a look at TOP one line at a time. The server has been flooded with http requests to create some load on the server.</div>
<div style="background-color: white; color: #333333; font-family: 'Lucida Grande', Verdana, Arial, sans-serif; font-size: 12px; line-height: 18px; margin-bottom: 10px; padding: 0px;">
top output:</div>
<pre style="background-color: silver; border: 0px; color: #333333; font-size: 12px; line-height: 18px; margin-bottom: 10px; padding: 5px; white-space: pre-wrap; word-wrap: break-word;">top - 22:09:08 up 14 min, 1 user, load average: 0.21, 0.23, 0.30
Tasks: 81 total, 1 running, 80 sleeping, 0 stopped, 0 zombie
Cpu(s): 9.5%us, 31.2%sy, 0.0%ni, 27.0%id, 7.6%wa, 1.0%hi, 23.7%si, 0.0%st
Mem: 255592k total, 167568k used, 88024k free, 25068k buffers
Swap: 524280k total, 0k used, 524280k free, 85724k cached
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
3166 apache 15 0 29444 6112 1524 S 6.6 2.4 0:00.79 httpd
3161 apache 15 0 29444 6112 1524 S 5.9 2.4 0:00.79 httpd
3164 apache 15 0 29444 6112 1524 S 5.9 2.4 0:00.75 httpd
3169 apache 15 0 29444 6112 1524 S 5.9 2.4 0:00.74 httpd
3163 apache 15 0 29444 6112 1524 S 5.6 2.4 0:00.76 httpd
3165 apache 15 0 29444 6112 1524 S 5.6 2.4 0:00.77 httpd
3167 apache 15 0 29444 6112 1524 S 5.3 2.4 0:00.73 httpd
3162 apache 15 0 29444 6112 1524 S 5.0 2.4 0:00.77 httpd
3407 root 16 0 2188 1012 816 R 1.7 0.4 0:00.51 top
240 root 15 0 0 0 0 S 0.3 0.0 0:00.08 pdflush
501 root 10 -5 0 0 0 S 0.3 0.0 0:01.20 kjournald
2794 root 18 0 12720 1268 560 S 0.3 0.5 0:00.73 pcscd
1 root 15 0 2060 636 544 S 0.0 0.2 0:03.81 init
2 root RT -5 0 0 0 S 0.0 0.0 0:00.00 migration/0
3 root 34 19 0 0 0 S 0.0 0.0 0:00.00 ksoftirqd/0
4 root RT -5 0 0 0 S 0.0 0.0 0:00.00 watchdog/0
5 root 10 -5 0 0 0 S 0.0 0.0 0:00.07 events/0</pre>
<div style="background-color: white; color: #333333; font-family: 'Lucida Grande', Verdana, Arial, sans-serif; font-size: 12px; line-height: 18px; margin-bottom: 10px; padding: 0px;">
<strong style="margin: 0px; padding: 0px;">The first line in top:</strong></div>
<pre style="background-color: silver; border: 0px; color: #333333; font-size: 12px; line-height: 18px; margin-bottom: 10px; padding: 5px; white-space: pre-wrap; word-wrap: break-word;">top - 22:09:08 up 14 min, 1 user, load average: 0.21, 0.23, 0.30</pre>
<div style="background-color: white; color: #333333; font-family: 'Lucida Grande', Verdana, Arial, sans-serif; font-size: 12px; line-height: 18px; margin-bottom: 10px; padding: 0px;">
“22:09:08″ is the current time; “up 14 min” shows how long the system has been up for; “1 user” how many users are logged in; “load average: 0.21, 0.23, 0.30″ the load average of the system (1minute, 5 minutes, 15 minutes).</div>
<div style="background-color: white; color: #333333; font-family: 'Lucida Grande', Verdana, Arial, sans-serif; font-size: 12px; line-height: 18px; margin-bottom: 10px; padding: 0px;">
Load average is an extensive topic and to understand its inner workings can be daunting. The simplest of definitions states that load average is the cpu utilization over a period of time. A load average of 1 means your cpu is being fully utilized and processes are not having to wait to use a CPU. A load average above 1 indicates that processes need to wait and your system will be less responsive. If your load average is consistently above 3 and your system is running slow you may want to upgrade to more CPU’s or a faster CPU.</div>
<div style="background-color: white; color: #333333; font-family: 'Lucida Grande', Verdana, Arial, sans-serif; font-size: 12px; line-height: 18px; margin-bottom: 10px; padding: 0px;">
<strong style="margin: 0px; padding: 0px;">The second line in top:</strong></div>
<pre style="background-color: silver; border: 0px; color: #333333; font-size: 12px; line-height: 18px; margin-bottom: 10px; padding: 5px; white-space: pre-wrap; word-wrap: break-word;">Tasks: 82 total, 1 running, 81 sleeping, 0 stopped, 0 zombie</pre>
<div style="background-color: white; color: #333333; font-family: 'Lucida Grande', Verdana, Arial, sans-serif; font-size: 12px; line-height: 18px; margin-bottom: 10px; padding: 0px;">
Shows the number of processes and their current state.</div>
<div style="background-color: white; color: #333333; font-family: 'Lucida Grande', Verdana, Arial, sans-serif; font-size: 12px; line-height: 18px; margin-bottom: 10px; padding: 0px;">
<strong style="margin: 0px; padding: 0px;">The third lin in top:</strong></div>
<pre style="background-color: silver; border: 0px; color: #333333; font-size: 12px; line-height: 18px; margin-bottom: 10px; padding: 5px; white-space: pre-wrap; word-wrap: break-word;">Cpu(s): 9.5%us, 31.2%sy, 0.0%ni, 27.0%id, 7.6%wa, 1.0%hi, 23.7%si, 0.0%st</pre>
<div style="background-color: white; color: #333333; font-family: 'Lucida Grande', Verdana, Arial, sans-serif; font-size: 12px; line-height: 18px; margin-bottom: 10px; padding: 0px;">
Shows CPU utilization details. “9.5%us” user processes are using 9.5%; “31.2%sy” system processes are using 31.2%; “27.0%id” percentage of available cpu; “7.6%wa” time CPU is waiting for IO.</div>
<div style="background-color: white; color: #333333; font-family: 'Lucida Grande', Verdana, Arial, sans-serif; font-size: 12px; line-height: 18px; margin-bottom: 10px; padding: 0px;">
When first analyzing the Cpu(s) line in top look at the %id to see how much cpu is available. If %id is low then focus on %us, %sy, and %wa to determine what is using the CPU.</div>
<div style="background-color: white; color: #333333; font-family: 'Lucida Grande', Verdana, Arial, sans-serif; font-size: 12px; line-height: 18px; margin-bottom: 10px; padding: 0px;">
<strong style="margin: 0px; padding: 0px;">The fourth and fifth lines in top:</strong></div>
<pre style="background-color: silver; border: 0px; color: #333333; font-size: 12px; line-height: 18px; margin-bottom: 10px; padding: 5px; white-space: pre-wrap; word-wrap: break-word;">Mem: 255592k total, 167568k used, 88024k free, 25068k buffers
Swap: 524280k total, 0k used, 524280k free, 85724k cached</pre>
<div style="background-color: white; color: #333333; font-family: 'Lucida Grande', Verdana, Arial, sans-serif; font-size: 12px; line-height: 18px; margin-bottom: 10px; padding: 0px;">
Describes the memory usage. These numbers can be misleading. “255592k total” is total memory in the system; “167568K used” is the part of the RAM that currently contains information; “88024k free” is the part of RAM that contains no information; “25068K buffers and 85724k cached” is the buffered and cached data for IO.</div>
<div style="background-color: white; color: #333333; font-family: 'Lucida Grande', Verdana, Arial, sans-serif; font-size: 12px; line-height: 18px; margin-bottom: 10px; padding: 0px;">
So what is the actual amount of free RAM available for programs to use ?</div>
<div style="background-color: white; color: #333333; font-family: 'Lucida Grande', Verdana, Arial, sans-serif; font-size: 12px; line-height: 18px; margin-bottom: 10px; padding: 0px;">
The answer is: free + (buffers + cached)</div>
<div style="background-color: white; color: #333333; font-family: 'Lucida Grande', Verdana, Arial, sans-serif; font-size: 12px; line-height: 18px; margin-bottom: 10px; padding: 0px;">
88024k + (25068k + 85724k) = 198816k</div>
<div style="background-color: white; color: #333333; font-family: 'Lucida Grande', Verdana, Arial, sans-serif; font-size: 12px; line-height: 18px; margin-bottom: 10px; padding: 0px;">
How much RAM is being used by progams ?</div>
<div style="background-color: white; color: #333333; font-family: 'Lucida Grande', Verdana, Arial, sans-serif; font-size: 12px; line-height: 18px; margin-bottom: 10px; padding: 0px;">
The answer is: used – (buffers + cached)</div>
<div style="background-color: white; color: #333333; font-family: 'Lucida Grande', Verdana, Arial, sans-serif; font-size: 12px; line-height: 18px; margin-bottom: 10px; padding: 0px;">
167568k – (25068k + 85724k) = 56776k</div>
<div style="background-color: white; color: #333333; font-family: 'Lucida Grande', Verdana, Arial, sans-serif; font-size: 12px; line-height: 18px; margin-bottom: 10px; padding: 0px;">
<strong style="margin: 0px; padding: 0px;">The processes information:</strong></div>
<div style="background-color: white; color: #333333; font-family: 'Lucida Grande', Verdana, Arial, sans-serif; font-size: 12px; line-height: 18px; margin-bottom: 10px; padding: 0px;">
Top will display the process using the most CPU usage in descending order. Lets describe each column that represents a process.</div>
<pre style="background-color: silver; border: 0px; color: #333333; font-size: 12px; line-height: 18px; margin-bottom: 10px; padding: 5px; white-space: pre-wrap; word-wrap: break-word;"> PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
3166 apache 15 0 29444 6112 1524 S 6.6 2.4 0:00.79 httpd</pre>
<div style="background-color: white; color: #333333; font-family: 'Lucida Grande', Verdana, Arial, sans-serif; font-size: 12px; line-height: 18px; margin-bottom: 10px; padding: 0px;">
PID – process ID of the process</div>
<div style="background-color: white; color: #333333; font-family: 'Lucida Grande', Verdana, Arial, sans-serif; font-size: 12px; line-height: 18px; margin-bottom: 10px; padding: 0px;">
USER – User who is running the process</div>
<div style="background-color: white; color: #333333; font-family: 'Lucida Grande', Verdana, Arial, sans-serif; font-size: 12px; line-height: 18px; margin-bottom: 10px; padding: 0px;">
PR – The priority of the process</div>
<div style="background-color: white; color: #333333; font-family: 'Lucida Grande', Verdana, Arial, sans-serif; font-size: 12px; line-height: 18px; margin-bottom: 10px; padding: 0px;">
NI – Nice value of the process (higher value indicates lower priority)</div>
<div style="background-color: white; color: #333333; font-family: 'Lucida Grande', Verdana, Arial, sans-serif; font-size: 12px; line-height: 18px; margin-bottom: 10px; padding: 0px;">
VIRT – The total amount of virtual memory used</div>
<div style="background-color: white; color: #333333; font-family: 'Lucida Grande', Verdana, Arial, sans-serif; font-size: 12px; line-height: 18px; margin-bottom: 10px; padding: 0px;">
RES – Resident task size</div>
<div style="background-color: white; color: #333333; font-family: 'Lucida Grande', Verdana, Arial, sans-serif; font-size: 12px; line-height: 18px; margin-bottom: 10px; padding: 0px;">
SHR – Amount of shared memory used</div>
<div style="background-color: white; color: #333333; font-family: 'Lucida Grande', Verdana, Arial, sans-serif; font-size: 12px; line-height: 18px; margin-bottom: 10px; padding: 0px;">
S – State of the task. Values are <strong style="margin: 0px; padding: 0px;">S</strong> (sleeping), <strong style="margin: 0px; padding: 0px;">D</strong> (uninterruptible sleep), <strong style="margin: 0px; padding: 0px;">R</strong> (running), <strong style="margin: 0px; padding: 0px;">Z</strong>(zombies), or <strong style="margin: 0px; padding: 0px;">T </strong>(stopped or traced)</div>
<div style="background-color: white; color: #333333; font-family: 'Lucida Grande', Verdana, Arial, sans-serif; font-size: 12px; line-height: 18px; margin-bottom: 10px; padding: 0px;">
%CPU – Percentage of CPU used</div>
<div style="background-color: white; color: #333333; font-family: 'Lucida Grande', Verdana, Arial, sans-serif; font-size: 12px; line-height: 18px; margin-bottom: 10px; padding: 0px;">
%MEM – Percentage of Memory used</div>
<div style="background-color: white; color: #333333; font-family: 'Lucida Grande', Verdana, Arial, sans-serif; font-size: 12px; line-height: 18px; margin-bottom: 10px; padding: 0px;">
TIME+ – Total CPU time used</div>
<div style="background-color: white; color: #333333; font-family: 'Lucida Grande', Verdana, Arial, sans-serif; font-size: 12px; line-height: 18px; margin-bottom: 10px; padding: 0px;">
COMMAND – Command issued</div>
<h2 style="background-color: white; color: #333333; font-family: 'Lucida Grande', Verdana, Arial, sans-serif; font-size: 18px; line-height: 18px; margin: 20px 0px 10px; padding: 0px;">
Interacting with TOP</h2>
<div style="background-color: white; color: #333333; font-family: 'Lucida Grande', Verdana, Arial, sans-serif; font-size: 12px; line-height: 18px; margin-bottom: 10px; padding: 0px;">
Now that we are able to understand the output from TOP lets learn how to change the way the output is displayed.</div>
<div style="background-color: white; color: #333333; font-family: 'Lucida Grande', Verdana, Arial, sans-serif; font-size: 12px; line-height: 18px; margin-bottom: 10px; padding: 0px;">
Just press the following key while running top and the output will be sorted in real time.</div>
<div style="background-color: white; color: #333333; font-family: 'Lucida Grande', Verdana, Arial, sans-serif; font-size: 12px; line-height: 18px; margin-bottom: 10px; padding: 0px;">
M – Sort by memory usage</div>
<div style="background-color: white; color: #333333; font-family: 'Lucida Grande', Verdana, Arial, sans-serif; font-size: 12px; line-height: 18px; margin-bottom: 10px; padding: 0px;">
P – Sort by CPU usage</div>
<div style="background-color: white; color: #333333; font-family: 'Lucida Grande', Verdana, Arial, sans-serif; font-size: 12px; line-height: 18px; margin-bottom: 10px; padding: 0px;">
T – Sort by cumulative time</div>
<div style="background-color: white; color: #333333; font-family: 'Lucida Grande', Verdana, Arial, sans-serif; font-size: 12px; line-height: 18px; margin-bottom: 10px; padding: 0px;">
z – Color display</div>
<div style="background-color: white; color: #333333; font-family: 'Lucida Grande', Verdana, Arial, sans-serif; font-size: 12px; line-height: 18px; margin-bottom: 10px; padding: 0px;">
k – Kill a process</div>
<div style="background-color: white; color: #333333; font-family: 'Lucida Grande', Verdana, Arial, sans-serif; font-size: 12px; line-height: 18px; margin-bottom: 10px; padding: 0px;">
q – quit</div>
<div style="background-color: white; color: #333333; font-family: 'Lucida Grande', Verdana, Arial, sans-serif; font-size: 12px; line-height: 18px; margin-bottom: 10px; padding: 0px;">
If we want to kill the process with PID 3161, then press “k” and a prompt will ask you for the PID number, and enter 3161.</div>
<h2 style="background-color: white; color: #333333; font-family: 'Lucida Grande', Verdana, Arial, sans-serif; font-size: 18px; line-height: 18px; margin: 20px 0px 10px; padding: 0px;">
Command Line Parameters with TOP</h2>
<div style="background-color: white; color: #333333; font-family: 'Lucida Grande', Verdana, Arial, sans-serif; font-size: 12px; line-height: 18px; margin-bottom: 10px; padding: 0px;">
You can control what top displays by issuing parameters when you run top.</div>
<div style="background-color: white; color: #333333; font-family: 'Lucida Grande', Verdana, Arial, sans-serif; font-size: 12px; line-height: 18px; margin-bottom: 10px; padding: 0px;">
- d – Controls the delay between refreshes</div>
<div style="background-color: white; color: #333333; font-family: 'Lucida Grande', Verdana, Arial, sans-serif; font-size: 12px; line-height: 18px; margin-bottom: 10px; padding: 0px;">
- p – Specify the process by PID that you want to monitor</div>
<div style="background-color: white; color: #333333; font-family: 'Lucida Grande', Verdana, Arial, sans-serif; font-size: 12px; line-height: 18px; margin-bottom: 10px; padding: 0px;">
-n – Update the display this number of times and then exit</div>
<div style="background-color: white; color: #333333; font-family: 'Lucida Grande', Verdana, Arial, sans-serif; font-size: 12px; line-height: 18px; margin-bottom: 10px; padding: 0px;">
If we want to only monitor the http process with a PID of 3166</div>
<pre style="background-color: silver; border: 0px; color: #333333; font-size: 12px; line-height: 18px; margin-bottom: 10px; padding: 5px; white-space: pre-wrap; word-wrap: break-word;">$ top -p 3166</pre>
<div style="background-color: white; color: #333333; font-family: 'Lucida Grande', Verdana, Arial, sans-serif; font-size: 12px; line-height: 18px; margin-bottom: 10px; padding: 0px;">
If we want to change the delay between refreshes to 5 seconds</div>
<pre style="background-color: silver; border: 0px; color: #333333; font-size: 12px; line-height: 18px; margin-bottom: 10px; padding: 5px; white-space: pre-wrap; word-wrap: break-word;">$ top -d 5</pre>
</div>
Lalit K Garghttp://www.blogger.com/profile/17892760700891484757noreply@blogger.com0tag:blogger.com,1999:blog-3028676056133006436.post-41668430981217522632012-11-18T23:51:00.003-08:002012-11-18T23:55:40.318-08:00Dealing with dynamic boundaries in LoadRunner using Text Flags<div dir="ltr" style="text-align: left;" trbidi="on">
<span style="background-color: white; color: #888888; font-family: Verdana; font-size: 12px; line-height: 16.78333282470703px;">When we talk about LoadRunner, we generally hear the term Correlation (which is nothing but capturing dynamic data from the server response to be used as input in further requests). LoadRunner is good at auto-correlation capabilities, but sometimes we come across situations, where only your scripting capabilities and the correct use of some advanced features can help.</span><br />
<div style="background-color: white; border: 0px none; color: #888888; font-family: Verdana; font-size: 12px; font-stretch: inherit; line-height: 16.78333282470703px; margin-bottom: 15px; margin-top: 15px; padding: 0px; vertical-align: baseline;">
We generally talk about dynamic data, but what if the strings by which that dynamic data is bound, are themselves dynamic. To put it simply, what if the left and right boundaries of the string to be captured are dynamic? For complex changes, we first capture a subset of the server response, based on some unique boundaries identified, and then with the aid of custom-built string handling functions, we get the desired substring out of the captured string. I will discuss that approach in a separate article.</div>
<div style="background-color: white; border: 0px none; color: #888888; font-family: Verdana; font-size: 12px; font-stretch: inherit; line-height: 16.78333282470703px; margin-bottom: 15px; margin-top: 15px; padding: 0px; vertical-align: baseline;">
Many a times, the solution can be much simpler. If you come across dynamic boundaries like the following, then instead of doing lot of string operations, you can use text flags in LoadRunner.</div>
<div style="background-color: white; border: 0px none; color: #888888; font-family: Verdana; font-size: 12px; font-stretch: inherit; line-height: 16.78333282470703px; margin-bottom: 15px; margin-top: 15px; padding: 0px; vertical-align: baseline;">
Suppose you have the response data as follows, where Captured is the string you want to capture, but issue is that the left boundary is changing every time. You get the left boundary as axb, where x ranges between 0 and 9, as follows:<br />
a0b=Capturedrb<br />
a1b=Capturedrb<br />
a2b=Capturedrb<br />
——–<br />
——–<br />
a9b=Capturedrb</div>
<div style="background-color: white; border: 0px none; color: #888888; font-family: Verdana; font-size: 12px; font-stretch: inherit; line-height: 16.78333282470703px; margin-bottom: 15px; margin-top: 15px; padding: 0px; vertical-align: baseline;">
You can capture the desired string by putting the following correlation function in place, using the /DIG text flag in combination with LB:<br />
web_reg_save_param(“DynamicCapture”, “LB/DIG=a#b\=”, “RB=rb”, LAST);</div>
<div style="background-color: white; border: 0px none; color: #888888; font-family: Verdana; font-size: 12px; font-stretch: inherit; line-height: 16.78333282470703px; margin-bottom: 15px; margin-top: 15px; padding: 0px; vertical-align: baseline;">
<br /></div>
<div style="background-color: white; border: 0px none; color: #888888; font-family: Verdana; font-size: 12px; font-stretch: inherit; line-height: 16.78333282470703px; margin-bottom: 15px; margin-top: 15px; padding: 0px; vertical-align: baseline;">
The corresponding place, which you expect to be dynamically filled in with a digit, should be replaced by a pound sign ( # ).</div>
<div style="background-color: white; border: 0px none; color: #888888; font-family: Verdana; font-size: 12px; font-stretch: inherit; line-height: 16.78333282470703px; margin-bottom: 15px; margin-top: 15px; padding: 0px; vertical-align: baseline;">
If letters are changing case, you can modify the function as below to include the /IC flag:<br />
web_reg_save_param(“DynamicCapture”, “LB/IC/DIG=a#b\=”, “RB/IC=rb”, LAST);</div>
<div style="background-color: white; border: 0px none; color: #888888; font-family: Verdana; font-size: 12px; font-stretch: inherit; line-height: 16.78333282470703px; margin-bottom: 15px; margin-top: 15px; padding: 0px; vertical-align: baseline;">
Extending the argument further, if there are multiple digits, you have to put a pound sign (#) sing for each digit:</div>
<div style="background-color: white; border: 0px none; color: #888888; font-family: Verdana; font-size: 12px; font-stretch: inherit; line-height: 16.78333282470703px; margin-bottom: 15px; margin-top: 15px; padding: 0px; vertical-align: baseline;">
A0123b=”Captured”rb</div>
<div style="background-color: white; border: 0px none; color: #888888; font-family: Verdana; font-size: 12px; font-stretch: inherit; line-height: 16.78333282470703px; margin-bottom: 15px; margin-top: 15px; padding: 0px; vertical-align: baseline;">
web_reg_save_param(“DynamicCapture”, “LB/IC/DIG=a####b\=”, “RB/IC=rb”, LAST);</div>
<div style="background-color: white; border: 0px none; color: #888888; font-family: Verdana; font-size: 12px; font-stretch: inherit; line-height: 16.78333282470703px; margin-bottom: 15px; margin-top: 15px; padding: 0px; vertical-align: baseline;">
Till now we were discussing about dynamic digits. If you find a case, where you expect a place to be filled in dynamically by a digit or a letter, then modify the function to use /ALNUM instead of /DIG text flag, and use caret sign(^) instead of # :<br />
web_reg_save_param(“DynamicCapture”, “LB/ALNUM=a^b\=”, “RB/IC=rb”, LAST);</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgi3LXJDzj0uQ8018hft-3OKANh-Iu3jvszMb3zXAuRb1pQFc2M-_lxt9T5JFQrxe8yO_lrsMZDB9GS25krWXfg3wqwn2IBWkCli5FgO0TPY3-Q6kmLG17Ar7lZMes0Nieg3sTJhRz9zgA/s1600/lr.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="320" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgi3LXJDzj0uQ8018hft-3OKANh-Iu3jvszMb3zXAuRb1pQFc2M-_lxt9T5JFQrxe8yO_lrsMZDB9GS25krWXfg3wqwn2IBWkCli5FgO0TPY3-Q6kmLG17Ar7lZMes0Nieg3sTJhRz9zgA/s320/lr.JPG" width="292" /></a></div>
<div style="background-color: white; border: 0px none; color: #888888; font-family: Verdana; font-size: 12px; font-stretch: inherit; line-height: 16.78333282470703px; margin-bottom: 15px; margin-top: 15px; padding: 0px; vertical-align: baseline;">
<br /></div>
<div style="background-color: white; border: 0px none; color: #888888; font-family: Verdana; font-size: 12px; font-stretch: inherit; line-height: 16.78333282470703px; margin-bottom: 15px; margin-top: 15px; padding: 0px; vertical-align: baseline;">
To deal with the case while, matching alphanumeric dynamic boundaries, there are three versions of /ALNUM flag as – ALNUMIC to ignore case, ALNUMLC to match only lower case, and ALNUMUC to match only upper case. In the above example, ALNUMIC has been used.</div>
<div style="background-color: white; border: 0px none; color: #888888; font-family: Verdana; font-size: 12px; font-stretch: inherit; line-height: 16.78333282470703px; margin-bottom: 15px; margin-top: 15px; padding: 0px; vertical-align: baseline;">
So, go back experiment! But while you do that, keep in mind two things:<br />
1.One sign (# or ^) for each place<br />
2.If you have a literal # or ^ sign, it will not be interpreted as a literal, if you use the corresponding flags. E.g. LB/DIG=a#b will not match “a#b”.</div>
</div>
Unknownnoreply@blogger.com4