<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
<channel>
<title>Khemlall.Info Q&amp;A - Recent questions and answers</title>
<link>http://khemlall.info/Forum/question2answer/index.php?qa=qa</link>
<description>Powered by Question2Answer</description>
<item>
<title>Answered: ANYONE HAS SERIAL NUMBER FOR ADOBE DREAM WEAVER CS5?</title>
<link>http://khemlall.info/Forum/question2answer/index.php?qa=235&amp;qa_1=anyone-has-serial-number-for-adobe-dream-weaver-cs5#a236</link>
<description>

&lt;p&gt;
	&lt;span style=&quot;text-align: justify; margin: 0px; padding: 0px; border: 0px; font-size: 13px; vertical-align: baseline; font-family: Tahoma, Arial, Helvetica, sans-serif; color: rgb(0, 0, 128);&quot;&gt;1192-1828-2238-5178-3799-1361&lt;/span&gt;
&lt;br style=&quot;text-align: justify; margin: 0px; padding: 0px; color: rgb(51, 51, 51); font-family: Tahoma, Arial, Helvetica, sans-serif; font-size: 13px;&quot; /&gt;
	&lt;span style=&quot;text-align: justify; margin: 0px; padding: 0px; border: 0px; font-size: 13px; vertical-align: baseline; font-family: Tahoma, Arial, Helvetica, sans-serif; color: rgb(0, 0, 128);&quot;&gt;1192 1303 1925 5824 2535 3909&lt;/span&gt;
&lt;br style=&quot;text-align: justify; margin: 0px; padding: 0px; color: rgb(51, 51, 51); font-family: Tahoma, Arial, Helvetica, sans-serif; font-size: 13px;&quot; /&gt;
	&lt;span style=&quot;text-align: justify; margin: 0px; padding: 0px; border: 0px; font-size: 13px; vertical-align: baseline; font-family: Tahoma, Arial, Helvetica, sans-serif; color: rgb(0, 0, 128);&quot;&gt;1192-1274-5709-4573-8000-9774&lt;/span&gt;
&lt;br style=&quot;text-align: justify; margin: 0px; padding: 0px; color: rgb(51, 51, 51); font-family: Tahoma, Arial, Helvetica, sans-serif; font-size: 13px;&quot; /&gt;
	&lt;span style=&quot;text-align: justify; margin: 0px; padding: 0px; border: 0px; font-size: 13px; vertical-align: baseline; font-family: Tahoma, Arial, Helvetica, sans-serif; color: rgb(0, 0, 128);&quot;&gt;1192-1927-7762-6383-0202-0474&lt;/span&gt;
&lt;br style=&quot;text-align: justify; margin: 0px; padding: 0px; color: rgb(51, 51, 51); font-family: Tahoma, Arial, Helvetica, sans-serif; font-size: 13px;&quot; /&gt;
	&lt;span style=&quot;text-align: justify; margin: 0px; padding: 0px; border: 0px; font-size: 13px; vertical-align: baseline; font-family: Tahoma, Arial, Helvetica, sans-serif; color: rgb(0, 0, 128);&quot;&gt;1192-1627-3787-6401-6659-1570&lt;/span&gt;
&lt;br style=&quot;text-align: justify; margin: 0px; padding: 0px; color: rgb(51, 51, 51); font-family: Tahoma, Arial, Helvetica, sans-serif; font-size: 13px;&quot; /&gt;
	&lt;span style=&quot;text-align: justify; margin: 0px; padding: 0px; border: 0px; font-size: 13px; vertical-align: baseline; font-family: Tahoma, Arial, Helvetica, sans-serif; color: rgb(0, 0, 128);&quot;&gt;1192-1980-7256-6209-7157-2111&lt;/span&gt;
&lt;br style=&quot;text-align: justify; margin: 0px; padding: 0px; color: rgb(51, 51, 51); font-family: Tahoma, Arial, Helvetica, sans-serif; font-size: 13px;&quot; /&gt;
	&lt;span style=&quot;text-align: justify; margin: 0px; padding: 0px; border: 0px; font-size: 13px; vertical-align: baseline; font-family: Tahoma, Arial, Helvetica, sans-serif; color: rgb(0, 0, 128);&quot;&gt;1192-1852-9320-0140-1786-2748&lt;/span&gt;
&lt;br style=&quot;text-align: justify; margin: 0px; padding: 0px; color: rgb(51, 51, 51); font-family: Tahoma, Arial, Helvetica, sans-serif; font-size: 13px;&quot; /&gt;
	&lt;span style=&quot;text-align: justify; margin: 0px; padding: 0px; border: 0px; font-size: 13px; vertical-align: baseline; font-family: Tahoma, Arial, Helvetica, sans-serif; color: rgb(0, 0, 128);&quot;&gt;1192-1258-8972-6398-3863-9299&lt;/span&gt;
&lt;br style=&quot;text-align: justify; margin: 0px; padding: 0px; color: rgb(51, 51, 51); font-family: Tahoma, Arial, Helvetica, sans-serif; font-size: 13px;&quot; /&gt;
	&lt;span style=&quot;text-align: justify; margin: 0px; padding: 0px; border: 0px; font-size: 13px; vertical-align: baseline; font-family: Tahoma, Arial, Helvetica, sans-serif; color: rgb(0, 0, 128);&quot;&gt;1192-1015-3447-7982-8441-4483&lt;/span&gt;
&lt;br style=&quot;text-align: justify; margin: 0px; padding: 0px; color: rgb(51, 51, 51); font-family: Tahoma, Arial, Helvetica, sans-serif; font-size: 13px;&quot; /&gt;
	&lt;span style=&quot;text-align: justify; margin: 0px; padding: 0px; border: 0px; font-size: 13px; vertical-align: baseline; font-family: Tahoma, Arial, Helvetica, sans-serif; color: rgb(0, 0, 128);&quot;&gt;1192-1769-3960-7119-0072-6513&lt;/span&gt;
&lt;br style=&quot;text-align: justify; margin: 0px; padding: 0px; color: rgb(51, 51, 51); font-family: Tahoma, Arial, Helvetica, sans-serif; font-size: 13px;&quot; /&gt;
	&lt;span style=&quot;text-align: justify; margin: 0px; padding: 0px; border: 0px; font-size: 13px; vertical-align: baseline; font-family: Tahoma, Arial, Helvetica, sans-serif; color: rgb(0, 0, 128);&quot;&gt;1192-1025-5657-1693-0102-5969&lt;/span&gt;
&lt;br style=&quot;text-align: justify; margin: 0px; padding: 0px; color: rgb(51, 51, 51); font-family: Tahoma, Arial, Helvetica, sans-serif; font-size: 13px;&quot; /&gt;
	&lt;span style=&quot;text-align: justify; margin: 0px; padding: 0px; border: 0px; font-size: 13px; vertical-align: baseline; font-family: Tahoma, Arial, Helvetica, sans-serif; color: rgb(0, 0, 128);&quot;&gt;1192-1605-6787-9739-3936-2870&lt;/span&gt;
&lt;br style=&quot;text-align: justify; margin: 0px; padding: 0px; color: rgb(51, 51, 51); font-family: Tahoma, Arial, Helvetica, sans-serif; font-size: 13px;&quot; /&gt;
	&lt;span style=&quot;text-align: justify; margin: 0px; padding: 0px; border: 0px; font-size: 13px; vertical-align: baseline; font-family: Tahoma, Arial, Helvetica, sans-serif; color: rgb(0, 0, 128);&quot;&gt;1325-1532-2534-3898-7565-8767&lt;/span&gt;&lt;/p&gt;</description>
<guid isPermaLink="true">http://khemlall.info/Forum/question2answer/index.php?qa=235&amp;qa_1=anyone-has-serial-number-for-adobe-dream-weaver-cs5#a236</guid>
<pubDate>Wed, 08 May 2013 11:46:06 +0000</pubDate>
</item>
<item>
<title>Answered: HOW TO F DISK YOUR ACER LAPTOP TO FACTOR SETTIGNS</title>
<link>http://khemlall.info/Forum/question2answer/index.php?qa=233&amp;qa_1=how-to-f-disk-your-acer-laptop-to-factor-settigns#a234</link>
<description>try these steps, hope they will help you: 1. Copy all your files and documents to an external storage device. 2. Shut down the computer. 3. Turn the PC back on and hit the F8 key repeatedly until the Advanced Boot Option Screen appears. 4. Click &amp;quot;Repair Your Computer&amp;quot; if you are not already on it and then press ENTER 5. choose your country and click OK 6. On the &amp;quot;System Recovery Options Screen&amp;quot; click &amp;quot;Restore Application&amp;quot; which is the last option. 7. Follow the on-screen instructions 8. When prompted, click on &amp;quot;Full Factory Recovery&amp;quot; 9. &amp;quot;Next&amp;quot; 10. Click &amp;quot;Yes&amp;quot; 11. you will notice for a while it seems like nothing is happening, give it some time. 12. After some minutes, recovery will complete and you click &amp;quot;Finish&amp;quot;</description>
<guid isPermaLink="true">http://khemlall.info/Forum/question2answer/index.php?qa=233&amp;qa_1=how-to-f-disk-your-acer-laptop-to-factor-settigns#a234</guid>
<pubDate>Fri, 15 Mar 2013 23:43:34 +0000</pubDate>
</item>
<item>
<title>Answered: How to insert If Else  condition?</title>
<link>http://khemlall.info/Forum/question2answer/index.php?qa=224&amp;qa_1=how-to-insert-if-else-condition#a228</link>
<description>

&lt;p&gt;
	&amp;nbsp;&lt;/p&gt;


&lt;h3 class=&quot;post-title entry-title&quot; style=&quot;margin: 5px 0px 0px; padding: 0px; font-size: 16px; color: rgb(85, 85, 68); font-family: tahoma, 'Trebuchet MS', lucida, helvetica, sans-serif;&quot;&gt;
	&lt;a href=&quot;http://ayyanar.blogspot.com/2010/11/implementing-ifelse-condition-in.html&quot; rel=&quot;nofollow&quot; style=&quot;text-decoration: none; color: rgb(102, 153, 34); background-color: transparent;&quot;&gt;Implementing IF..ELSE.. condition in Selenium IDE using Flow Control Add-On&lt;/a&gt;&lt;/h3&gt;


&lt;p&gt;
	&lt;span style=&quot;color: rgb(85, 85, 68); font-family: tahoma, 'Trebuchet MS', lucida, helvetica, sans-serif; font-size: 13px;&quot;&gt;Here I am going to discuss about on how to implement if else condition in selenium IDE.We can't implement the IF ELSE condition using core selenium IDE. To implement IF ELSE logic, you have to install Firefox &amp;quot;Flow Control&amp;quot; Add On. So, please install the &amp;quot;Flow Control&amp;quot; Add On using below URL.&lt;/span&gt;
&lt;br style=&quot;color: rgb(85, 85, 68); font-family: tahoma, 'Trebuchet MS', lucida, helvetica, sans-serif; font-size: 13px;&quot; /&gt;
	
&lt;br style=&quot;color: rgb(85, 85, 68); font-family: tahoma, 'Trebuchet MS', lucida, helvetica, sans-serif; font-size: 13px;&quot; /&gt;
	&lt;span style=&quot;color: rgb(85, 85, 68); font-family: tahoma, 'Trebuchet MS', lucida, helvetica, sans-serif; font-size: 13px;&quot;&gt;https://addons.mozilla.org/en-US/firefox/addon/85794/&lt;/span&gt;
&lt;br style=&quot;color: rgb(85, 85, 68); font-family: tahoma, 'Trebuchet MS', lucida, helvetica, sans-serif; font-size: 13px;&quot; /&gt;
	
&lt;br style=&quot;color: rgb(85, 85, 68); font-family: tahoma, 'Trebuchet MS', lucida, helvetica, sans-serif; font-size: 13px;&quot; /&gt;
	&lt;span style=&quot;color: rgb(85, 85, 68); font-family: tahoma, 'Trebuchet MS', lucida, helvetica, sans-serif; font-size: 13px;&quot;&gt;After installed, restart the firefox browser. Now, Flow Control commands available in the selenium IDE.&lt;/span&gt;
&lt;br style=&quot;color: rgb(85, 85, 68); font-family: tahoma, 'Trebuchet MS', lucida, helvetica, sans-serif; font-size: 13px;&quot; /&gt;
	
&lt;br style=&quot;color: rgb(85, 85, 68); font-family: tahoma, 'Trebuchet MS', lucida, helvetica, sans-serif; font-size: 13px;&quot; /&gt;
	&lt;span style=&quot;color: rgb(85, 85, 68); font-family: tahoma, 'Trebuchet MS', lucida, helvetica, sans-serif; font-size: 13px;&quot;&gt;Here are the commands:&lt;/span&gt;
&lt;br style=&quot;color: rgb(85, 85, 68); font-family: tahoma, 'Trebuchet MS', lucida, helvetica, sans-serif; font-size: 13px;&quot; /&gt;
	
&lt;br style=&quot;color: rgb(85, 85, 68); font-family: tahoma, 'Trebuchet MS', lucida, helvetica, sans-serif; font-size: 13px;&quot; /&gt;
	&lt;span style=&quot;color: rgb(85, 85, 68); font-family: tahoma, 'Trebuchet MS', lucida, helvetica, sans-serif; font-size: 13px;&quot;&gt;COMMAND| TARGET |VALUE&lt;/span&gt;
&lt;br style=&quot;color: rgb(85, 85, 68); font-family: tahoma, 'Trebuchet MS', lucida, helvetica, sans-serif; font-size: 13px;&quot; /&gt;
	&lt;span style=&quot;color: rgb(85, 85, 68); font-family: tahoma, 'Trebuchet MS', lucida, helvetica, sans-serif; font-size: 13px;&quot;&gt;======================================================&lt;/span&gt;
&lt;br style=&quot;color: rgb(85, 85, 68); font-family: tahoma, 'Trebuchet MS', lucida, helvetica, sans-serif; font-size: 13px;&quot; /&gt;
	&lt;span style=&quot;color: rgb(85, 85, 68); font-family: tahoma, 'Trebuchet MS', lucida, helvetica, sans-serif; font-size: 13px;&quot;&gt;gotoif| CONDITION |LABELNAME&lt;/span&gt;
&lt;br style=&quot;color: rgb(85, 85, 68); font-family: tahoma, 'Trebuchet MS', lucida, helvetica, sans-serif; font-size: 13px;&quot; /&gt;
	&lt;span style=&quot;color: rgb(85, 85, 68); font-family: tahoma, 'Trebuchet MS', lucida, helvetica, sans-serif; font-size: 13px;&quot;&gt;label | LABELNAME|&lt;/span&gt;
&lt;br style=&quot;color: rgb(85, 85, 68); font-family: tahoma, 'Trebuchet MS', lucida, helvetica, sans-serif; font-size: 13px;&quot; /&gt;
	&lt;span style=&quot;color: rgb(85, 85, 68); font-family: tahoma, 'Trebuchet MS', lucida, helvetica, sans-serif; font-size: 13px;&quot;&gt;gotolabel | LABELNAME&lt;/span&gt;
&lt;br style=&quot;color: rgb(85, 85, 68); font-family: tahoma, 'Trebuchet MS', lucida, helvetica, sans-serif; font-size: 13px;&quot; /&gt;
	
&lt;br style=&quot;color: rgb(85, 85, 68); font-family: tahoma, 'Trebuchet MS', lucida, helvetica, sans-serif; font-size: 13px;&quot; /&gt;
	&lt;span style=&quot;color: rgb(85, 85, 68); font-family: tahoma, 'Trebuchet MS', lucida, helvetica, sans-serif; font-size: 13px;&quot;&gt;Here is the example that i have used:&lt;/span&gt;&lt;/p&gt;


&lt;p&gt;
	&lt;img alt=&quot;anwar example&quot; src=&quot;http://2.bp.blogspot.com/_YdNJ_-Tbfnw/TO_k2LfIylI/AAAAAAAAAwU/TYfEDJC6clI/s400/selenium-IF-ELSE.JPG&quot; style=&quot;width: 400px; height: 60px;&quot; /&gt;&lt;/p&gt;


&lt;p&gt;
	&lt;img alt=&quot;&quot; src=&quot;http://2.bp.blogspot.com/_YdNJ_-Tbfnw/TO_k2LfIylI/AAAAAAAAAwU/TYfEDJC6clI/s1600/selenium-IF-ELSE.JPG&quot; style=&quot;width: 715px; height: 107px;&quot; /&gt;&lt;/p&gt;


&lt;p&gt;
	&lt;span style=&quot;color: rgb(85, 85, 68); font-family: tahoma, 'Trebuchet MS', lucida, helvetica, sans-serif; font-size: 13px;&quot;&gt;rom the above screenshot, first i am checking whether text(&amp;quot;Please select&amp;quot;) present in the page using &amp;quot;storeTextPresent&amp;quot; and assign the result to variable &amp;quot;POPUP_EXISTS&amp;quot;. Then i am checking whether result is &amp;quot;false&amp;quot; or not. if the result is &amp;quot;false&amp;quot;, then skip the next statement and move the execution to &amp;quot;target1&amp;quot;(label). Otherwise, continue the execution to next statement.&lt;/span&gt;&lt;/p&gt;</description>
<category>SELENIUM</category>
<guid isPermaLink="true">http://khemlall.info/Forum/question2answer/index.php?qa=224&amp;qa_1=how-to-insert-if-else-condition#a228</guid>
<pubDate>Mon, 15 Oct 2012 16:26:30 +0000</pubDate>
</item>
<item>
<title>Answered: How do i crack microsoft word 2010?</title>
<link>http://khemlall.info/Forum/question2answer/index.php?qa=221&amp;qa_1=how-do-i-crack-microsoft-word-2010#a223</link>
<description>

&lt;p&gt;
	&lt;a href=&quot;http://iidesirez.blogspot.com/p/computer-software.html&quot; rel=&quot;nofollow&quot;&gt;http://iidesirez.blogspot.com/p/computer-software.html&lt;/a&gt;&lt;/p&gt;


&lt;p&gt;
	&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-large;&quot;&gt;Microsoft Office Pro Plus 2010&lt;/span&gt;
&lt;br /&gt;
	Follow these steps to download and fully activate Microsoft Office Pro Plus 2010.
&lt;br /&gt;
	1. Download and Install Winrar. &lt;a href=&quot;http://www.rarlab.com/&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;&lt;span style=&quot;color: rgb(51, 51, 153);&quot;&gt;http://www.rarlab.com/&lt;/span&gt;&lt;/a&gt; for Download information
&lt;br /&gt;
	2. Click &lt;a href=&quot;http://www.fileswap.com/dl/Mc5PBEZr04/Microsoft_Office_2010_Pro_Plus.rar.html&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;&lt;span style=&quot;color: rgb(51, 51, 153);&quot;&gt;here&lt;/span&gt;&lt;/a&gt; to download Microsoft Office Pro Plus 2010. **Password is iiDesireZ
&lt;br /&gt;
	3. Extract folder to wherever you want using Winrar
&lt;br /&gt;
	4. Open up folder
&lt;br /&gt;
	5. Click &amp;quot;setup&amp;quot; and run the setup program.
&lt;br /&gt;
	6. Click &lt;a href=&quot;http://www.fileswap.com/dl/lsFKA7cP3h/Office_2010_Activator.rar.html&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;&lt;span style=&quot;color: rgb(51, 51, 153);&quot;&gt;here&lt;/span&gt;&lt;/a&gt; to download Office 2010 Activator
&lt;br /&gt;
	7. After it has successfully installed, open the Office 2010 Activator.
&lt;br /&gt;
	8. Click Ez-Activate and let it activate your Microsoft Office.
&lt;br /&gt;
	
&lt;br /&gt;
	Congratulations, you now have Microsoft Office 2010 Pro Plus&lt;/p&gt;</description>
<guid isPermaLink="true">http://khemlall.info/Forum/question2answer/index.php?qa=221&amp;qa_1=how-do-i-crack-microsoft-word-2010#a223</guid>
<pubDate>Sun, 07 Oct 2012 17:31:47 +0000</pubDate>
</item>
<item>
<title>Answered: An exception of type 'System.Runtime.InteropServices.COMException' occurred</title>
<link>http://khemlall.info/Forum/question2answer/index.php?qa=216&amp;qa_1=exception-runtime-interopservices-comexception-occurred#a220</link>
<description>&lt;strong&gt;&lt;a rel=&quot;nofollow&quot; href=&quot;http://www.handbagever.com/louis-vuitton-2011-collection-c-2048.html&quot;&gt;Louis Vuitton 2011 Collection&lt;/a&gt;&lt;/strong&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;a rel=&quot;nofollow&quot; href=&quot;http://www.handbagever.com/louis-vuitton-2011-collection-c-2048.html&quot;&gt;Louis Vuitton  Collection&lt;/a&gt;&lt;/strong&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;a rel=&quot;nofollow&quot; href=&quot;http://www.handbagever.com/louis-vuitton-2011-collection-c-2048.html&quot;&gt;LV 2011 Collection&lt;/a&gt;&lt;/strong&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;a rel=&quot;nofollow&quot; href=&quot;http://www.handbagever.com/louis-vuitton-2010-collection-c-2001.html&quot;&gt;Louis Vuitton 2010 Collection&lt;/a&gt;&lt;/strong&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;a rel=&quot;nofollow&quot; href=&quot;http://www.handbagever.com/louis-vuitton-2010-collection-c-2001.html&quot;&gt;Louis Vuitton 2010 Collection cheap&lt;/a&gt;&lt;/strong&gt;
&lt;br /&gt;</description>
<category>WATIN</category>
<guid isPermaLink="true">http://khemlall.info/Forum/question2answer/index.php?qa=216&amp;qa_1=exception-runtime-interopservices-comexception-occurred#a220</guid>
<pubDate>Fri, 03 Aug 2012 10:40:43 +0000</pubDate>
</item>
<item>
<title>Answered: How to stop javascript  popup in embedded browser?</title>
<link>http://khemlall.info/Forum/question2answer/index.php?qa=214&amp;qa_1=how-to-stop-javascript-popup-in-embedded-browser#a218</link>
<description>

&lt;p&gt;
	i am not goingto write the code to test this at this moment, however i can guide you witha class i created to just deal with popup:&lt;/p&gt;


&lt;p&gt;
	WatiN Dialog Handler for unhandled javascript exceptions&lt;/p&gt;


&lt;p&gt;
	I’m not sure what WatiN does with javascript exception alerts by default, but I was finding that it seemed to silently close any exception dialog and the test would carry on and would possibly still pass. In my case, I would like the test to fail if there is a javscript error and I would like it to report the text of the javascript error as the reason for the test failure.&lt;/p&gt;


&lt;p&gt;
	First I tried to do this using the NativeMethods supplied with WatiN but I wasn’t able to get at the text description of the error which was important for reporting the reason for test failure. So I then resorted to the UI Automation API found in C:\Program Files\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\UIAutomationClient.dll and came up with the following code:&lt;/p&gt;


&lt;p&gt;
	&amp;nbsp;&lt;/p&gt;


&lt;pre&gt;
using System.Windows.Automation;
using WatiN.Core.DialogHandlers;
using WatiN.Core.Native.Windows;

namespace WatiNExtensions
{
    public class ScriptExceptionDialogHandler : BaseDialogHandler
    {
        private readonly ITestFailureLogger _logger;

        readonly AndCondition _documentCondition = new AndCondition(new PropertyCondition(AutomationElement.IsEnabledProperty, true),
                                                                    new PropertyCondition(AutomationElement.ControlTypeProperty, ControlType.Document));

        readonly AndCondition _buttonConditions = new AndCondition(new PropertyCondition(AutomationElement.IsEnabledProperty, true),
                                                                   new PropertyCondition(AutomationElement.ControlTypeProperty, ControlType.Button));


        public ScriptExceptionDialogHandler(ITestFailureLogger logger)
        {
            _logger = logger;
        }

        public override bool HandleDialog(Window window)
        {
            if (CanHandleDialog(window))
            {
                var win = AutomationElement.FromHandle(window.Hwnd);
                var documents = win.FindAll(TreeScope.Children, _documentCondition);
                var buttons = win.FindAll(TreeScope.Children, _buttonConditions);

                foreach (AutomationElement document in documents)
                {
                    var textPattern = document.GetCurrentPattern(TextPattern.Pattern) as TextPattern;
                    var text = textPattern.DocumentRange.GetText(-1);
                    _logger.Log(string.Format(&amp;quot;Unhandled javascript exception: {0}&amp;quot;, text));
                }

                foreach (AutomationElement button in buttons)
                {
                    if(button.Current.AutomationId == &amp;quot;7&amp;quot;)
                    {
                        var invokePattern = button.GetCurrentPattern(InvokePattern.Pattern) as InvokePattern;
                        invokePattern.Invoke();
                        break;
                    }
                }
                return true;
            }
            return false;
        }

        public override bool CanHandleDialog(Window window)
        {
            return window.StyleInHex == &amp;quot;94C808CC&amp;quot;;
        }
    }
}
&lt;/pre&gt;</description>
<category>WATIN</category>
<guid isPermaLink="true">http://khemlall.info/Forum/question2answer/index.php?qa=214&amp;qa_1=how-to-stop-javascript-popup-in-embedded-browser#a218</guid>
<pubDate>Sun, 15 Jul 2012 15:10:14 +0000</pubDate>
</item>
<item>
<title>Answered: COM object that has been separated from its underlying RCW cannot be used.</title>
<link>http://khemlall.info/Forum/question2answer/index.php?qa=215&amp;qa_1=object-that-has-been-separated-from-underlying-cannot-used#a217</link>
<description>

&lt;p&gt;
	it looks like you may be instantiating the COM object and then attempting to access it from another thread, perhaps in a Timer.Elapsed event. If your application is multithreaded, you need to instantiate the COM object within each thread you will be using it in. Rememeber WATIN NEEDS TO HAVE apartment state set:&lt;/p&gt;


&lt;p&gt;
	http://watin.org/documentation/sta-apartmentstate/&amp;nbsp;&lt;/p&gt;


&lt;p&gt;
	&lt;strong&gt;Event Handlers Without Strong References to the Delegate&lt;/strong&gt;&lt;/p&gt;


&lt;p&gt;
	A caller subscribes to an event on the com object without keeping a strong reference to the callback delegate. Here is an example of how to do this correctly and how to not do it: The reason for this is a strong reference needs to be kept to the delegate, if it goes out of scope, the wrapper will release the reference count for the interface and bad things will happen.&lt;/p&gt;


&lt;pre&gt;
&lt;code&gt;public class SomeClass
{
    private Interop.ComObjectWrapper comObject;
    private event ComEventHandler comEventHandler;

    public SomeClass()
    {
        comObject = new Interop.ComObjectWrapper();

        // NO - BAD!
        comObject.SomeEvent += new ComEventHandler(EventCallback);

        // YES - GOOD!
        comEventHandler = new ComEventHandler(EventCallback);
        comObject.SomeEvent += comEventHandler
    }

    public void EventCallback()
    {
        // DO WORK
    }
}
&lt;/code&gt;&lt;/pre&gt;


&lt;p&gt;
	&lt;strong&gt;Calls to a disposed Runtime Callable Wrapper&lt;/strong&gt;&lt;/p&gt;


&lt;p&gt;
	The wrapper has been disposed and calls are being made after it has been disposed. A common way this can happen is if a control is using an activex control or COM object and the controls Dispose() is called out of order.&lt;/p&gt;


&lt;ul&gt;
	

&lt;li&gt;
		A form gets Close() called.&lt;/li&gt;
	

&lt;li&gt;
		System.Windows.Forms.Close() will call Dispose()&lt;/li&gt;
	

&lt;li&gt;
		Your forms virtual Dispose() will be called which hopefully calls base.Dispose() somewhere. Systems.Windows.Forms.Dispose() will release all COM objects and event syncs on the form, even from child controls.&lt;/li&gt;
	

&lt;li&gt;
		If the control that owns a com object is explicitly disposed after base.Dispose() and if it calls any methods on it's COM object, these will now fail and you will get the error “COM object that has been separated from its underlying RCW cannot be used”.&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;
	&lt;strong&gt;Debugging Steps&lt;/strong&gt;&lt;/p&gt;


&lt;p&gt;
	A good way to debug this issue is to do the following:&lt;/p&gt;


&lt;ol&gt;
	

&lt;li&gt;
		Write a class that inherits from the Interop class (otherwise known as the runtime callable wrapper or RCW).&lt;/li&gt;
	

&lt;li&gt;
		Override DetachEventSink&lt;/li&gt;
	

&lt;li&gt;
		Override Dispose&lt;/li&gt;
	

&lt;li&gt;
		Call your new class instead of calling the interop class directly&lt;/li&gt;
	

&lt;li&gt;
		Add breakpoint to DetachEventSink and Dispose&lt;/li&gt;
	

&lt;li&gt;
		See who is calling these methods out of order&lt;/li&gt;
&lt;/ol&gt;


&lt;p&gt;
	&lt;strong&gt;One other thing&lt;/strong&gt;&lt;/p&gt;


&lt;p&gt;
	This isn't related to this issue but while we are on the topic, unless you know otherwise, always remember to check that the thread your COM objects are being used from are marked STA. You can do this by breaking in the debugger and checking the value returned from:&lt;/p&gt;


&lt;pre&gt;
&lt;code&gt;Thread.CurrentThread.GetApartmentState();
&lt;/code&gt;&lt;/pre&gt;</description>
<category>WATIN</category>
<guid isPermaLink="true">http://khemlall.info/Forum/question2answer/index.php?qa=215&amp;qa_1=object-that-has-been-separated-from-underlying-cannot-used#a217</guid>
<pubDate>Thu, 12 Jul 2012 16:06:35 +0000</pubDate>
</item>
<item>
<title>Answered: I have tried this  browsernew2.RunScript(&quot;window.onbeforeunload=exit;function exit(){ window.onbeforeunload = null;}&quot;);</title>
<link>http://khemlall.info/Forum/question2answer/index.php?qa=208&amp;qa_1=browsernew2-runscript-onbeforeunload-function-onbeforeunload#a211</link>
<description>

&lt;p&gt;
	&lt;a href=&quot;http://khemlall.info&quot; rel=&quot;nofollow&quot;&gt;TestingPopUp&lt;/a&gt;&lt;/p&gt;</description>
<category>WATIN</category>
<guid isPermaLink="true">http://khemlall.info/Forum/question2answer/index.php?qa=208&amp;qa_1=browsernew2-runscript-onbeforeunload-function-onbeforeunload#a211</guid>
<pubDate>Tue, 10 Jul 2012 18:04:09 +0000</pubDate>
</item>
<item>
<title>Answered: I have used it still it showinh popup</title>
<link>http://khemlall.info/Forum/question2answer/index.php?qa=206&amp;qa_1=i-have-used-it-still-it-showinh-popup#a210</link>
<description>Ok i have a few requirements and quesitons:&lt;br /&gt;
&lt;br /&gt;
1. This is a Ui test correct? (Assuming yes)&lt;br /&gt;
&lt;br /&gt;
2. You want to verify popup is there and Click on the popup( yes or no aption or cancel etc) ----- Can you please provide the DOM obects for this .. You can use the developer tool to provide this information... .please provide the source of that if you are unable to get the ID etc (attributes)&lt;br /&gt;
&lt;br /&gt;
3. You want to activate javascript that will cause this popup to be activated and close correct?&lt;br /&gt;
&lt;br /&gt;
How are you attaching to the browser to ensure that you are recognizing the popup diaglog... are you using the fuciton (diaghandler that is with watin?) &amp;nbsp;...... i will try to find an app that will provide a popup and write the code that will interact for you.... however please provide the info requested and we can work off that.. .Thanks</description>
<category>WATIN</category>
<guid isPermaLink="true">http://khemlall.info/Forum/question2answer/index.php?qa=206&amp;qa_1=i-have-used-it-still-it-showinh-popup#a210</guid>
<pubDate>Tue, 10 Jul 2012 15:57:39 +0000</pubDate>
</item>
<item>
<title>Answered: I have used it still it showinh popup</title>
<link>http://khemlall.info/Forum/question2answer/index.php?qa=207&amp;qa_1=i-have-used-it-still-it-showinh-popup#a209</link>
<description>Ok i have a few requirements and quesitons:&lt;br /&gt;
&lt;br /&gt;
1. This is a Ui test correct? (Assuming yes)&lt;br /&gt;
&lt;br /&gt;
2. You want to verify popup is there and Click on the popup( yes or no aption or cancel etc) ----- Can you please provide the DOM obects for this .. You can use the developer tool to provide this information... .please provide the source of that if you are unable to get the ID etc (attributes)&lt;br /&gt;
&lt;br /&gt;
3. You want to activate javascript that will cause this popup to be activated and close correct?&lt;br /&gt;
&lt;br /&gt;
How are you attaching to the browser to ensure that you are recognizing the popup diaglog... are you using the fuciton (diaghandler that is with watin?) &amp;nbsp;...... i will try to find an app that will provide a popup and write the code that will interact for you.... however please provide the info requested and we can work off that.. .Thanks</description>
<category>WATIN</category>
<guid isPermaLink="true">http://khemlall.info/Forum/question2answer/index.php?qa=207&amp;qa_1=i-have-used-it-still-it-showinh-popup#a209</guid>
<pubDate>Tue, 10 Jul 2012 15:56:39 +0000</pubDate>
</item>
<item>
<title>Answered: Can we handle leave this page popup by calling javascript in watin if yes how?</title>
<link>http://khemlall.info/Forum/question2answer/index.php?qa=202&amp;qa_1=handle-leave-this-page-popup-calling-javascript-watin-yes-how#a204</link>
<description>

&lt;p&gt;
	Ok&amp;nbsp; you can Use the Runscript option whereby you can activate javascript and interact with the javascript....&lt;/p&gt;


&lt;p&gt;
	For example, i was working with a client and they uses Obout control ..... with obout controls in order for the javascript to be activated, it requires&amp;nbsp; mouse over to activate.... i had implemented the move mouse and point to the middle of element function, however that had its limitation, you cannot move mouse if we are running test silently with browser hidden, Therefore, i needed to activate the javascript differently, Hence the solution runscript....EXAMPLE&lt;/p&gt;


&lt;p&gt;
	&amp;nbsp;&lt;/p&gt;


&lt;p&gt;
	&lt;span style=&quot;color: rgb(240, 255, 240);&quot;&gt;&lt;span style=&quot;background-color: rgb(255, 0, 0);&quot;&gt;_browser.Runscript(browser.tablecell(find.Byid(ID).GetAttributeValue(&amp;quot;onclientClick&amp;quot;));&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;


&lt;p&gt;
	&lt;span style=&quot;color: rgb(240, 255, 240);&quot;&gt;&lt;span style=&quot;background-color: rgb(255, 0, 0);&quot;&gt;_browser.tablecell(find.byid(menuitem)).Fireevent(&amp;quot;onblur&amp;quot;);&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;


&lt;p&gt;
	&amp;nbsp;&lt;/p&gt;


&lt;p&gt;
	So i suggest use the runscript... readup more about it&lt;/p&gt;</description>
<category>WATIN</category>
<guid isPermaLink="true">http://khemlall.info/Forum/question2answer/index.php?qa=202&amp;qa_1=handle-leave-this-page-popup-calling-javascript-watin-yes-how#a204</guid>
<pubDate>Mon, 09 Jul 2012 00:44:26 +0000</pubDate>
</item>
<item>
<title>Answered: how to read line from Bottom To Top</title>
<link>http://khemlall.info/Forum/question2answer/index.php?qa=197&amp;qa_1=how-to-read-line-from-bottom-to-top#a198</link>
<description>

&lt;p&gt;
	&lt;span style=&quot;color: rgb(51, 51, 51); font-family: 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 16px; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); display: inline !important; float: none;&quot;&gt;var lines = File.ReadAllLines(&amp;quot;secondfile.txt&amp;quot;).Reverse();&lt;/span&gt;
&lt;br style=&quot;color: rgb(51, 51, 51); font-family: 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 16px; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);&quot; /&gt;
	&lt;span style=&quot;color: rgb(51, 51, 51); font-family: 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 16px; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); display: inline !important; float: none;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; string f1 = File.ReadAllLines(&amp;quot;firstfile.txt&amp;quot;)[0];&lt;/span&gt;
&lt;br style=&quot;color: rgb(51, 51, 51); font-family: 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 16px; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);&quot; /&gt;
	&lt;span style=&quot;color: rgb(51, 51, 51); font-family: 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 16px; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); display: inline !important; float: none;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; foreach (string line in lines)&lt;/span&gt;
&lt;br style=&quot;color: rgb(51, 51, 51); font-family: 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 16px; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);&quot; /&gt;
	&lt;span style=&quot;color: rgb(51, 51, 51); font-family: 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 16px; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); display: inline !important; float: none;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/span&gt;
&lt;br style=&quot;color: rgb(51, 51, 51); font-family: 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 16px; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);&quot; /&gt;
	&lt;span style=&quot;color: rgb(51, 51, 51); font-family: 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 16px; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); display: inline !important; float: none;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (f1.Equals(line))&lt;/span&gt;
&lt;br style=&quot;color: rgb(51, 51, 51); font-family: 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 16px; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);&quot; /&gt;
	&lt;span style=&quot;color: rgb(51, 51, 51); font-family: 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 16px; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); display: inline !important; float: none;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return line;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;
&lt;br style=&quot;color: rgb(51, 51, 51); font-family: 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 16px; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);&quot; /&gt;
	&lt;span style=&quot;color: rgb(51, 51, 51); font-family: 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 16px; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); display: inline !important; float: none;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;/p&gt;</description>
<category>C# Code</category>
<guid isPermaLink="true">http://khemlall.info/Forum/question2answer/index.php?qa=197&amp;qa_1=how-to-read-line-from-bottom-to-top#a198</guid>
<pubDate>Thu, 05 Jul 2012 15:59:11 +0000</pubDate>
</item>
<item>
<title>Answered: How to handle leave this page popup using watin</title>
<link>http://khemlall.info/Forum/question2answer/index.php?qa=182&amp;qa_1=how-to-handle-leave-this-page-popup-using-watin#a195</link>
<description>

&lt;p&gt;
	For this example that would be:&lt;/p&gt;


&lt;p&gt;
	&lt;a rel=&quot;nofollow&quot; href=&quot;http://lh5.ggpht.com/_LPItL_MawEI/SdsUJZX0VUI/AAAAAAAAAFc/RldNS2W_k0I/s1600-h/image%5B43%5D.png&quot;&gt;&lt;img alt=&quot;image&quot; height=&quot;245&quot; src=&quot;http://lh5.ggpht.com/_LPItL_MawEI/SdsUKB61NzI/AAAAAAAAAFg/yNH5o3DzYdI/image_thumb%5B39%5D.png?imgmax=800&quot; style=&quot;border-right: 0px; border-top: 0px; display: inline; border-left: 0px; border-bottom: 0px; border: 0px;&quot; title=&quot;image&quot; width=&quot;620&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</description>
<category>WATIN</category>
<guid isPermaLink="true">http://khemlall.info/Forum/question2answer/index.php?qa=182&amp;qa_1=how-to-handle-leave-this-page-popup-using-watin#a195</guid>
<pubDate>Thu, 05 Jul 2012 14:49:05 +0000</pubDate>
</item>
<item>
<title>Answered: How to mute sound  of video on page using watin</title>
<link>http://khemlall.info/Forum/question2answer/index.php?qa=171&amp;qa_1=how-to-mute-sound-of-video-on-page-using-watin#a176</link>
<description>

&lt;p&gt;
	How to Mute sound using Watin- First i assume you have watin project with all of its dlls referenced.... there is an &amp;nbsp; interop services that come with it, if not you can go to add .net references and find it and add it. &amp;nbsp; in your program add this reference&lt;/p&gt;


&lt;p&gt;
	&lt;span style=&quot;color: rgb(0, 0, 0); font-family: Geneva, Arial, Helvetica, sans-serif; line-height: 20px;&quot;&gt;Switch to code view, and add the following&amp;nbsp;&lt;/span&gt;&lt;em style=&quot;color: rgb(0, 0, 0); font-family: Geneva, Arial, Helvetica, sans-serif; line-height: 20px;&quot;&gt;using&lt;/em&gt;&lt;span style=&quot;color: rgb(0, 0, 0); font-family: Geneva, Arial, Helvetica, sans-serif; line-height: 20px;&quot;&gt;&amp;nbsp;directive, since we'll be calling an unmanaged DLL:&amp;nbsp;&lt;/span&gt;&lt;/p&gt;

&lt;br style=&quot;color: rgb(0, 0, 0); font-family: Geneva, Arial, Helvetica, sans-serif; line-height: 20px;&quot; /&gt;

&lt;br style=&quot;color: rgb(0, 0, 0); font-family: Geneva, Arial, Helvetica, sans-serif; line-height: 20px;&quot; /&gt;


&lt;table border=&quot;1&quot; cellpadding=&quot;6&quot; cellspacing=&quot;0&quot; style=&quot;color: rgb(0, 0, 0); font-family: Geneva, Arial, Helvetica, sans-serif; line-height: 20px; background-color: #fffdf2; border-color: #ffeb75;&quot; width=&quot;100%&quot;&gt;
	

&lt;tbody&gt;
		

&lt;tr&gt;
			

&lt;td&gt;
				

&lt;p&gt;
					&lt;span style=&quot;font-family: Courier New, Courier, mono; color: blue; font-size: small;&quot;&gt;using&lt;/span&gt;&lt;span style=&quot;font-family: Courier New, Courier, mono; color: #000000; font-size: small;&quot;&gt;&amp;nbsp;System.Runtime.InteropServices;&lt;/span&gt;&lt;/p&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
	&lt;/tbody&gt;
&lt;/table&gt;

&lt;br style=&quot;color: rgb(0, 0, 0); font-family: Geneva, Arial, Helvetica, sans-serif; line-height: 20px;&quot; /&gt;


&lt;p&gt;
	&lt;span style=&quot;color: rgb(0, 0, 0); font-family: Geneva, Arial, Helvetica, sans-serif; line-height: 20px;&quot;&gt;Now that we have this&amp;nbsp;&lt;/span&gt;&lt;em style=&quot;color: rgb(0, 0, 0); font-family: Geneva, Arial, Helvetica, sans-serif; line-height: 20px;&quot;&gt;using&lt;/em&gt;&lt;span style=&quot;color: rgb(0, 0, 0); font-family: Geneva, Arial, Helvetica, sans-serif; line-height: 20px;&quot;&gt;&amp;nbsp;statement in place, we can call the two functions from the&amp;nbsp;&lt;/span&gt;&lt;em style=&quot;color: rgb(0, 0, 0); font-family: Geneva, Arial, Helvetica, sans-serif; line-height: 20px;&quot;&gt;winmm.dll&lt;/em&gt;&lt;span style=&quot;color: rgb(0, 0, 0); font-family: Geneva, Arial, Helvetica, sans-serif; line-height: 20px;&quot;&gt;. This DLL is located in the Windows System32 directory and has a size of about 172 KB.&lt;/span&gt;&lt;/p&gt;

&lt;br style=&quot;color: rgb(0, 0, 0); font-family: Geneva, Arial, Helvetica, sans-serif; line-height: 20px;&quot; /&gt;

&lt;br style=&quot;color: rgb(0, 0, 0); font-family: Geneva, Arial, Helvetica, sans-serif; line-height: 20px;&quot; /&gt;


&lt;table border=&quot;1&quot; cellpadding=&quot;6&quot; cellspacing=&quot;0&quot; style=&quot;color: rgb(0, 0, 0); font-family: Geneva, Arial, Helvetica, sans-serif; line-height: 20px; background-color: #fffdf2; border-color: #ffeb75;&quot; width=&quot;100%&quot;&gt;
	

&lt;tbody&gt;
		

&lt;tr&gt;
			

&lt;td&gt;
				

&lt;p&gt;
					&lt;span style=&quot;font-family: Courier New, Courier, monospace; font-size: small;&quot;&gt;[&lt;span style=&quot;color: #0099CC;&quot;&gt;DllImport&lt;/span&gt;(&lt;span style=&quot;color: #990000;&quot;&gt;&amp;quot;winmm.dll&amp;quot;&lt;/span&gt;)]
&lt;br /&gt;
					&lt;span style=&quot;color: #0000FF;&quot;&gt;public static extern int&lt;/span&gt;&amp;nbsp;waveOutGetVolume(&lt;span style=&quot;color: #0099CC;&quot;&gt;IntPtr&lt;/span&gt;&amp;nbsp;hwo,&amp;nbsp;&lt;span style=&quot;color: #0000FF;&quot;&gt;out uint&lt;/span&gt;&amp;nbsp;dwVolume);&lt;/span&gt;&lt;/p&gt;
				

&lt;p&gt;
					&lt;span style=&quot;font-family: Courier New, Courier, monospace; font-size: small;&quot;&gt;[&lt;span style=&quot;color: #0099CC;&quot;&gt;DllImport&lt;/span&gt;(&lt;span style=&quot;color: #990000;&quot;&gt;&amp;quot;winmm.dll&amp;quot;&lt;/span&gt;)]
&lt;br /&gt;
					&lt;span style=&quot;color: #0000FF;&quot;&gt;public static extern int&lt;/span&gt;&amp;nbsp;waveOutSetVolume(&lt;span style=&quot;color: #0099CC;&quot;&gt;IntPtr&lt;/span&gt;&amp;nbsp;hwo,&amp;nbsp;&lt;span style=&quot;color: #0000FF;&quot;&gt;uint&lt;/span&gt;&amp;nbsp;dwVolume);&lt;/span&gt;&lt;/p&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
	&lt;/tbody&gt;
&lt;/table&gt;</description>
<category>WATIN</category>
<guid isPermaLink="true">http://khemlall.info/Forum/question2answer/index.php?qa=171&amp;qa_1=how-to-mute-sound-of-video-on-page-using-watin#a176</guid>
<pubDate>Tue, 03 Jul 2012 12:54:18 +0000</pubDate>
</item>
<item>
<title>How to mute sound when i click on any link on browser?</title>
<link>http://khemlall.info/Forum/question2answer/index.php?qa=175&amp;qa_1=how-to-mute-sound-when-i-click-on-any-link-on-browser</link>
<description>I am using watin ,when i click on any link on browser the video on page anywhere starts playing and sounds.&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;i want mute that sound only and not of whole system sound.&lt;br /&gt;
&lt;br /&gt;
please help!&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;Thanks !</description>
<category>WATIN</category>
<guid isPermaLink="true">http://khemlall.info/Forum/question2answer/index.php?qa=175&amp;qa_1=how-to-mute-sound-when-i-click-on-any-link-on-browser</guid>
<pubDate>Tue, 03 Jul 2012 10:11:44 +0000</pubDate>
</item>
<item>
<title>Answered: How to generate random number and modulus</title>
<link>http://khemlall.info/Forum/question2answer/index.php?qa=154&amp;qa_1=how-to-generate-random-number-and-modulus#a169</link>
<description>

&lt;p&gt;
	&amp;nbsp;&lt;/p&gt;


&lt;pre class=&quot;bbcodeblock&quot; dir=&quot;ltr&quot; style=&quot;background-color: rgb(207, 217, 255); color: rgb(0, 0, 0); font-size: 13px; margin-top: 0px; margin-right: -99999px; margin-bottom: 0px; padding: 3px; border: 1px inset; width: 665px; height: 498px; text-align: left; overflow: auto;&quot;&gt;
/*
 * rand: Generates 5 numbers using standard &amp;quot;srand()/rand()&amp;quot; function
 *
 * SAMPLE OUTPUT:
 *   rand[0]= 824522256
 *   rand[1]= 1360907941
 *   rand[2]= 1513675795
 *   rand[3]= 1046462087
 *   rand[4]= 253823980
 */
#include &amp;lt;stdio.h&amp;gt;
#include &amp;lt;stdlib.h&amp;gt;
#include &amp;lt;time.h&amp;gt;

int
main (int argc, char *argv[])
{
  /* Simple &amp;quot;srand()&amp;quot; seed: just use &amp;quot;time()&amp;quot; */
  unsigned int iseed = (unsigned int)time(NULL);
  srand (iseed);

  /* Now generate 5 pseudo-random numbers */
  int i;
  for (i=0; i&amp;lt;5; i++)
  {
    printf (&amp;quot;rand[%d]= %u\n&amp;quot;,
      i, rand ());
  }
  return 0;
}&lt;/pre&gt;</description>
<category>Loadrunner Vugen Scripting</category>
<guid isPermaLink="true">http://khemlall.info/Forum/question2answer/index.php?qa=154&amp;qa_1=how-to-generate-random-number-and-modulus#a169</guid>
<pubDate>Tue, 22 May 2012 13:23:11 +0000</pubDate>
</item>
<item>
<title>Answered: copy folder recursively?</title>
<link>http://khemlall.info/Forum/question2answer/index.php?qa=157&amp;qa_1=copy-folder-recursively#a161</link>
<description>&lt;strong&gt;&lt;a rel=&quot;nofollow&quot; href=&quot;http://www.putonboots.com/&quot;&gt;ugg boot&lt;/a&gt;&lt;/strong&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;a rel=&quot;nofollow&quot; href=&quot;http://www.putonboots.com/ugg-classic-cardy-5819-c-8.html&quot;&gt;UGG Classic Cardy &lt;/a&gt;&lt;/strong&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;a rel=&quot;nofollow&quot; href=&quot;http://www.putonboots.com/ugg-classic-cardy-5819-c-8.html&quot;&gt;Buy Genuine UGG Boots&lt;/a&gt;&lt;/strong&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;a rel=&quot;nofollow&quot; href=&quot;http://www.putonboots.com/ugg-classic-cardy-5819-c-8.html&quot;&gt;UGG Sale Cheap&lt;/a&gt;&lt;/strong&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;a rel=&quot;nofollow&quot; href=&quot;http://www.putonboots.com/ugg-classic-cardy-5819-c-8.html&quot;&gt;Bailey Button UGG&lt;/a&gt;&lt;/strong&gt;
&lt;br /&gt;
.
&lt;br /&gt;

&lt;br /&gt;
The excellent boots are generally guaranteed to grasp up to much walking and are perfect for many seasons, for the reason that wool cells lining serves as being a natural fiber to wick away moisture within your feet to continue you great and dry out.
&lt;br /&gt;

&lt;br /&gt;
At the same time, ugg company boots are created from high good suede this really is easy to keep looking great by merely brushing the outside with any stiff bristle brush to remove any soil or chips.
&lt;br /&gt;

&lt;br /&gt;
Countless podiatrists propose ugg trademark boots, especially for patients who are susceptible to painful bunions or even bone spurs.
&lt;br /&gt;

&lt;br /&gt;
At the same time, many docs say patients coping with foot, limb, or leg surgery or injury use uggs thus to their comfort and support</description>
<category>C# Code</category>
<guid isPermaLink="true">http://khemlall.info/Forum/question2answer/index.php?qa=157&amp;qa_1=copy-folder-recursively#a161</guid>
<pubDate>Sun, 19 Feb 2012 06:48:00 +0000</pubDate>
</item>
<item>
<title>Answered: Using RAND - random function in Loadrunner</title>
<link>http://khemlall.info/Forum/question2answer/index.php?qa=30&amp;qa_1=using-rand---random-function-in-loadrunner#a155</link>
<description>Hello,&lt;br /&gt;
&lt;br /&gt;
I am also supposed to write a similar code. Please help me out!&lt;br /&gt;
&lt;br /&gt;
My scenario:&lt;br /&gt;
&lt;br /&gt;
I have a 100 face dice and I get a radom number generated and need to select a list item (which I parameterized - random) that matches the number generated.</description>
<category>Loadrunner Vugen Scripting</category>
<guid isPermaLink="true">http://khemlall.info/Forum/question2answer/index.php?qa=30&amp;qa_1=using-rand---random-function-in-loadrunner#a155</guid>
<pubDate>Fri, 20 Jan 2012 13:15:52 +0000</pubDate>
</item>
<item>
<title>Answered: How to execute command line in c#</title>
<link>http://khemlall.info/Forum/question2answer/index.php?qa=150&amp;qa_1=how-to-execute-command-line-in-c%23#a152</link>
<description>&lt;A HREF=&quot;http://stackoverflow.com/questions/657623/is-there-a-net-interface-to-oracle-sqlplus&quot; rel=&quot;nofollow&quot;&gt;http://stackoverflow.com/questions/657623/is-there-a-net-interface-to-oracle-sqlplus&lt;/A&gt;</description>
<category>C# Code</category>
<guid isPermaLink="true">http://khemlall.info/Forum/question2answer/index.php?qa=150&amp;qa_1=how-to-execute-command-line-in-c%23#a152</guid>
<pubDate>Wed, 28 Dec 2011 06:17:09 +0000</pubDate>
</item>
<item>
<title>Answered: what a great link for regular expression</title>
<link>http://khemlall.info/Forum/question2answer/index.php?qa=147&amp;qa_1=what-a-great-link-for-regular-expression#a149</link>
<description>&lt;strong&gt;&lt;a rel=&quot;nofollow&quot; href=&quot;http://www.buyswarovskijewelry.com/fashion-accessories-c-9.html&quot;&gt;Fashion Accessories&lt;/a&gt;&lt;/strong&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;a rel=&quot;nofollow&quot; href=&quot;http://www.buyswarovskijewelry.com/fashion-accessories-c-9.html&quot;&gt;swarovski charms&lt;/a&gt;&lt;/strong&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;a rel=&quot;nofollow&quot; href=&quot;http://www.buyswarovskijewelry.com/fashion-accessories-c-9.html&quot;&gt;swarovski cross necklaces&lt;/a&gt;&lt;/strong&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;a rel=&quot;nofollow&quot; href=&quot;http://www.buyswarovskijewelry.com/fashion-accessories-c-9.html&quot;&gt;swarovski cross pendants&lt;/a&gt;&lt;/strong&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;a rel=&quot;nofollow&quot; href=&quot;http://www.buyswarovskijewelry.com/fashion-accessories-c-9.html&quot;&gt;swarovski crystals wholesale&lt;/a&gt;&lt;/strong&gt;
&lt;br /&gt;
.The very first thing is a number of, wearing such bridal earrings would reinforce an awareness of of family members, tradition in addition to continuity from a wedding ceremony.
&lt;br /&gt;

&lt;br /&gt;
'Something new' not really needs any explanation.Thousands upon numerous bridal earrings stores, the Internet e-commerce sites and bricks-and-mortar retail outlets, offer some dazzling range of accessories to make the girl shine on her wedding day.The would-be bride can buy among several jewelry items one or maybe several goods that she dons at the particular ceremony in addition to which this lady could hold dear and keep as a memento of the particular most wedding.
&lt;br /&gt;

&lt;br /&gt;
At the outset thought, 'something borrowed' is not going to seem applicable to bridesmaid jewelry</description>
<guid isPermaLink="true">http://khemlall.info/Forum/question2answer/index.php?qa=147&amp;qa_1=what-a-great-link-for-regular-expression#a149</guid>
<pubDate>Wed, 21 Dec 2011 11:00:25 +0000</pubDate>
</item>
<item>
<title>Answered: How can I check and monitor the HTTP response codes.</title>
<link>http://khemlall.info/Forum/question2answer/index.php?qa=144&amp;qa_1=how-can-i-check-and-monitor-the-http-response-codes#a146</link>
<description>i need a script or funtion for loadrunner that will show me how to or will basically allow a user to create and update its own datapoint to it's specificity in loadrunner i see lr_user_data_point ... In the following example, a user data point is defined that checks the CPU every second and records the result. for (i=0;i&amp;lt;100;i++) { measure_cpu( ); cpu_val=cpu_check(); lr_user_data_point(&amp;quot;cpu&amp;quot;, cpu_val); sleep(1); }</description>
<category>Loadrunner Vugen Scripting</category>
<guid isPermaLink="true">http://khemlall.info/Forum/question2answer/index.php?qa=144&amp;qa_1=how-can-i-check-and-monitor-the-http-response-codes#a146</guid>
<pubDate>Thu, 10 Nov 2011 20:14:13 +0000</pubDate>
</item>
<item>
<title>Answered: how to initialize browser with selenium grid using testNG</title>
<link>http://khemlall.info/Forum/question2answer/index.php?qa=140&amp;qa_1=how-to-initialize-browser-with-selenium-grid-using-testng#a141</link>
<description>

&lt;p&gt;
	I found thisd info maybe this can help..... Admin any idea?&lt;/p&gt;


&lt;p&gt;
	&amp;nbsp;&lt;/p&gt;


&lt;p&gt;
	&lt;a rel=&quot;nofollow&quot; href=&quot;http://stackoverflow.com/questions/1149080/how-to-get-selenium-and-testng-to-open-one-browser-to-run-tests-in-multiple-clas&quot;&gt;http://stackoverflow.com/questions/1149080/how-to-get-selenium-and-testng-to-open-one-browser-to-run-tests-in-multiple-clas&lt;/a&gt;&lt;/p&gt;</description>
<guid isPermaLink="true">http://khemlall.info/Forum/question2answer/index.php?qa=140&amp;qa_1=how-to-initialize-browser-with-selenium-grid-using-testng#a141</guid>
<pubDate>Thu, 03 Nov 2011 02:40:17 +0000</pubDate>
</item>
<item>
<title>Answered: How to download a file and save it in a folder in some location</title>
<link>http://khemlall.info/Forum/question2answer/index.php?qa=135&amp;qa_1=how-to-download-a-file-and-save-it-in-a-folder-in-some-location#a139</link>
<description>

&lt;pre class=&quot;lang-c prettyprint&quot;&gt;
&lt;code&gt;&lt;span class=&quot;kwd&quot;&gt;void&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; save &lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;kwd&quot;&gt;char&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;*&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; filename&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;)&lt;/span&gt;
&lt;span class=&quot;pun&quot;&gt;{&lt;/span&gt;
&lt;span class=&quot;pln&quot;&gt;&amp;nbsp; &amp;nbsp; FILE &lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;*&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;output &lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; fopen &lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;filename&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &lt;/span&gt;&lt;span class=&quot;str&quot;&gt;&amp;quot;w&amp;quot;&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;);&lt;/span&gt;
&lt;span class=&quot;pln&quot;&gt;&amp;nbsp; &amp;nbsp; fprintf &lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;output&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &lt;/span&gt;&lt;span class=&quot;str&quot;&gt;&amp;quot;This is a test message&amp;quot;&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;);&lt;/span&gt;
&lt;span class=&quot;pln&quot;&gt;&amp;nbsp; &amp;nbsp; fclose&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;output&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;);&lt;/span&gt;
&lt;span class=&quot;pun&quot;&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;


&lt;p&gt;
	&amp;nbsp;&lt;/p&gt;


&lt;pre class=&quot;lang-c prettyprint&quot;&gt;
&lt;code&gt;&lt;span class=&quot;pln&quot;&gt;save&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;str&quot;&gt;&amp;quot;outfile.txt&amp;quot;&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;</description>
<category>Loadrunner Vugen Scripting</category>
<guid isPermaLink="true">http://khemlall.info/Forum/question2answer/index.php?qa=135&amp;qa_1=how-to-download-a-file-and-save-it-in-a-folder-in-some-location#a139</guid>
<pubDate>Sat, 15 Oct 2011 17:00:57 +0000</pubDate>
</item>
<item>
<title>Answered: HP LoadRunner software—tips and tricks for configuration, scripting</title>
<link>http://khemlall.info/Forum/question2answer/index.php?qa=132&amp;qa_1=loadrunner-software-tips-tricks-configuration-scripting#a133</link>
<description>

&lt;p style=&quot;text-align: left;&quot;&gt;
	&lt;span style=&quot;font-family: Futura-Book; font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Futura-Book; font-size: large;&quot;&gt;Defining the directory structure and&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;


&lt;p style=&quot;text-align: left;&quot;&gt;
	&lt;span style=&quot;font-family: Futura-Book; font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Futura-Book; font-size: large;&quot;&gt;naming conventions&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;


&lt;p style=&quot;text-align: left;&quot;&gt;
	&lt;span style=&quot;font-family: Futura-Book; font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Futura-Book; font-size: small;&quot;&gt;It is important to establish formal procedures for&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;


&lt;p style=&quot;text-align: left;&quot;&gt;
	&lt;span style=&quot;font-family: Futura-Book; font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Futura-Book; font-size: small;&quot;&gt;creating directory structures and establishing naming&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;


&lt;p style=&quot;text-align: left;&quot;&gt;
	&lt;span style=&quot;font-family: Futura-Book; font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Futura-Book; font-size: small;&quot;&gt;conventions. The following nomenclature can be used&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;


&lt;p style=&quot;text-align: left;&quot;&gt;
	&lt;span style=&quot;font-family: Futura-Book; font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Futura-Book; font-size: small;&quot;&gt;for creating a directory structure (folder names) for&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;


&lt;p&gt;
	&lt;span style=&quot;font-family: Futura-Book; font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Futura-Book; font-size: small;&quot;&gt;new projects:&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;


&lt;p style=&quot;text-align: left;&quot;&gt;
	&lt;span style=&quot;font-family: Futura-Book; font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Futura-Book; font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Futura-Book; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: Futura-Book; font-size: xx-small;&quot;&gt;ProjectName&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;


&lt;p style=&quot;text-align: left;&quot;&gt;
	&lt;span style=&quot;font-family: Futura-Book; font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Futura-Book; font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Futura-Book; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: Futura-Book; font-size: xx-small;&quot;&gt;¬ LR_Scripts&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;


&lt;p style=&quot;text-align: left;&quot;&gt;
	&lt;span style=&quot;font-family: Futura-Book; font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Futura-Book; font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Futura-Book; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: Futura-Book; font-size: xx-small;&quot;&gt;¬ Scenarios&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;


&lt;p style=&quot;text-align: left;&quot;&gt;
	&lt;span style=&quot;font-family: Futura-Book; font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Futura-Book; font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Futura-Book; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: Futura-Book; font-size: xx-small;&quot;&gt;¬ TestDoc&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;


&lt;p style=&quot;text-align: left;&quot;&gt;
	&lt;span style=&quot;font-family: Futura-Book; font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Futura-Book; font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Futura-Book; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: Futura-Book; font-size: xx-small;&quot;&gt;¬ TestPlanAndReport&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;


&lt;p style=&quot;text-align: left;&quot;&gt;
	&lt;span style=&quot;font-family: Futura-Book; font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Futura-Book; font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Futura-Book; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: Futura-Book; font-size: xx-small;&quot;&gt;¬ TestExecution&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;


&lt;p style=&quot;text-align: left;&quot;&gt;
	&lt;span style=&quot;font-family: Futura-Book; font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Futura-Book; font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Futura-Book; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: Futura-Book; font-size: xx-small;&quot;&gt;¬ Recommendations&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;


&lt;p style=&quot;text-align: left;&quot;&gt;
	&lt;span style=&quot;font-family: Futura-Book; font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Futura-Book; font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Futura-Book; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: Futura-Book; font-size: xx-small;&quot;&gt;¬ Reports&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;


&lt;p style=&quot;text-align: left;&quot;&gt;
	&lt;span style=&quot;font-family: Futura-Book; font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Futura-Book; font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Futura-Book; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: Futura-Book; font-size: xx-small;&quot;&gt;¬ LR_Reports&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;


&lt;p style=&quot;text-align: left;&quot;&gt;
	&lt;span style=&quot;font-family: Futura-Book; font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Futura-Book; font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Futura-Book; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: Futura-Book; font-size: xx-small;&quot;&gt;¬ Cycle1&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;


&lt;p style=&quot;text-align: left;&quot;&gt;
	&lt;span style=&quot;font-family: Futura-Book; font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Futura-Book; font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Futura-Book; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: Futura-Book; font-size: xx-small;&quot;&gt;¬ Cycle2&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;


&lt;p style=&quot;text-align: left;&quot;&gt;
	&lt;span style=&quot;font-family: Futura-Book; font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Futura-Book; font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Futura-Book; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: Futura-Book; font-size: xx-small;&quot;&gt;¬ HTML_Reports&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;


&lt;p style=&quot;text-align: left;&quot;&gt;
	&lt;span style=&quot;font-family: Futura-Book; font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Futura-Book; font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Futura-Book; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: Futura-Book; font-size: xx-small;&quot;&gt;¬ Cycle1&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;


&lt;p&gt;
	&lt;span style=&quot;font-family: Futura-Book; font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Futura-Book; font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Futura-Book; font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: Futura-Book; font-size: xx-small;&quot;&gt;¬ Cycle2&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;</description>
<category>Loadrunner Vugen Scripting</category>
<guid isPermaLink="true">http://khemlall.info/Forum/question2answer/index.php?qa=132&amp;qa_1=loadrunner-software-tips-tricks-configuration-scripting#a133</guid>
<pubDate>Sun, 02 Oct 2011 15:11:30 +0000</pubDate>
</item>
<item>
<title>Answered: How to use HTTP WATCH and WATIN to Create Performance REPORT</title>
<link>http://khemlall.info/Forum/question2answer/index.php?qa=124&amp;qa_1=how-to-use-http-watch-and-watin-to-create-performance-report#a129</link>
<description>To integrate Watin and Httpwatch, you need to use COM OBJECT of the INterlop from c:\windows|system32</description>
<category>WATIN</category>
<guid isPermaLink="true">http://khemlall.info/Forum/question2answer/index.php?qa=124&amp;qa_1=how-to-use-http-watch-and-watin-to-create-performance-report#a129</guid>
<pubDate>Wed, 28 Sep 2011 14:38:35 +0000</pubDate>
</item>
<item>
<title>Answered: static list in c#</title>
<link>http://khemlall.info/Forum/question2answer/index.php?qa=125&amp;qa_1=static-list-in-c%23#a126</link>
<description>

&lt;p&gt;
	Here is another sample i found:&lt;/p&gt;


&lt;p&gt;
	&amp;nbsp;&lt;/p&gt;


&lt;h2&gt;
	&lt;span class=&quot;mw-headline&quot;&gt;What are C# Collection Classes &lt;/span&gt;&lt;/h2&gt;


&lt;div style=&quot;FLOAT: right; MARGIN-LEFT: 20px&quot;&gt;
	&amp;nbsp;&lt;/div&gt;


&lt;p&gt;
	The C# Collection classes are a set of classes designed specifically for grouping together objects and performing tasks on them. A number of collection classes are available with C# and we will be looking at the &lt;a class=&quot;kLink&quot; href=&quot;http://www.techotopia.com/index.php/C_Sharp_List_and_ArrayList_Collections#&quot; id=&quot;KonaLink2&quot; rel=&quot;nofollow&quot; style=&quot;POSITION: static; TEXT-DECORATION: underline !important&quot;&gt;&lt;span style=&quot;position: static; font-family: sans-serif; color: blue !important; color: blue;&quot;&gt;&lt;span class=&quot;kLink&quot; style=&quot;border-bottom-color: blue; border-bottom-width: 1px; border-bottom-style: solid; position: relative; background-color: transparent; font-family: sans-serif; color: blue !important;&quot;&gt;key&lt;/span&gt;&lt;/span&gt;&lt;/a&gt; classes in this chapter.&lt;/p&gt;


&lt;p&gt;
	&amp;nbsp;&lt;/p&gt;


&lt;h2&gt;
	&lt;span class=&quot;editsection&quot;&gt;[&lt;a href=&quot;http://www.techotopia.com/index.php?title=C_Sharp_List_and_ArrayList_Collections&amp;amp;action=edit&amp;amp;section=2&quot; rel=&quot;nofollow&quot; title=&quot;Edit section: Creating C# List Collections - List&amp;amp;lt;T&amp;amp;gt; and ArrayList&quot;&gt;edit&lt;/a&gt;]&lt;/span&gt; &lt;span class=&quot;mw-headline&quot;&gt;Creating C# List Collections - List&amp;lt;T&amp;gt; and ArrayList &lt;/span&gt;&lt;/h2&gt;


&lt;p&gt;
	Both the List&amp;lt;T&amp;gt; and ArrayList classes have properties very similar to C# arrays (for details on arrays refer to &lt;a href=&quot;http://www.techotopia.com/index.php/Introducing_C_Sharp_Arrays&quot; rel=&quot;nofollow&quot; title=&quot;Introducing C Sharp Arrays&quot;&gt;Introducing C# Arrays&lt;/a&gt;. One key advantage of these classes over arrays is that they can grow and shrink as the number of stored objects changes.&lt;/p&gt;


&lt;p&gt;
	The List&amp;lt;T&amp;gt; class is contained with the &lt;i&gt;System.Collections.Generic&lt;/i&gt; namespace whilst the &lt;i&gt;ArrayList&lt;/i&gt; class is contained within the &lt;i&gt;System.Collections&lt;/i&gt; namespace.&lt;/p&gt;


&lt;p&gt;
	The syntax for creating a List&amp;lt;T&amp;gt; collection is as follows:&lt;/p&gt;


&lt;p&gt;
	List&amp;lt;&lt;i&gt;type&lt;/i&gt;&amp;gt; &lt;i&gt;name&lt;/i&gt; = new List&amp;lt;&lt;i&gt;type&lt;/i&gt;&amp;gt;();&lt;/p&gt;


&lt;p&gt;
	An ArrayList object is created in a similar manner, although without the &lt;i&gt;type&lt;/i&gt; argument:&lt;/p&gt;


&lt;p&gt;
	ArrayList &lt;i&gt;name&lt;/i&gt; = new ArrayList();&lt;/p&gt;


&lt;p&gt;
	With the above syntax in mind we can now create a List&amp;lt;T&amp;gt; object called &lt;i&gt;colorList&lt;/i&gt;:&lt;/p&gt;


&lt;pre&gt;
using System;
using System.Collections.Generic;

public class Lists 
{
	static void Main()
	{
		List&amp;lt;string&amp;gt; colorList = new List&amp;lt;string&amp;gt;();
	}
}
&lt;/pre&gt;


&lt;p&gt;
	&lt;a id=&quot;Adding_Items_to_Lists&quot; name=&quot;Adding_Items_to_Lists&quot;&gt;&lt;/a&gt;&lt;/p&gt;


&lt;h2&gt;
	&lt;span class=&quot;editsection&quot;&gt;[&lt;a href=&quot;http://www.techotopia.com/index.php?title=C_Sharp_List_and_ArrayList_Collections&amp;amp;action=edit&amp;amp;section=3&quot; rel=&quot;nofollow&quot; title=&quot;Edit section: Adding Items to Lists&quot;&gt;edit&lt;/a&gt;]&lt;/span&gt; &lt;span class=&quot;mw-headline&quot;&gt;Adding Items to Lists &lt;/span&gt;&lt;/h2&gt;


&lt;p&gt;
	Once a List object has been created there are a number of methods which may be called to perform tasks on the list. Once such method is the &lt;i&gt;Add()&lt;/i&gt; method which, as the name suggests, is used to add items to the list object:&lt;/p&gt;


&lt;pre&gt;
List&amp;lt;string&amp;gt; colorList = new List&amp;lt;string&amp;gt;();

	colorList.Add (&amp;quot;Red&amp;quot;);
	colorList.Add (&amp;quot;Green&amp;quot;);
	colorList.Add (&amp;quot;Yellow&amp;quot;);
	colorList.Add (&amp;quot;Purple&amp;quot;);
	colorList.Add (&amp;quot;Orange&amp;quot;);
&lt;/pre&gt;


&lt;p&gt;
	&lt;a id=&quot;Accessing_List_Items&quot; name=&quot;Accessing_List_Items&quot;&gt;&lt;/a&gt;&lt;/p&gt;


&lt;h2&gt;
	&lt;span class=&quot;editsection&quot;&gt;[&lt;a href=&quot;http://www.techotopia.com/index.php?title=C_Sharp_List_and_ArrayList_Collections&amp;amp;action=edit&amp;amp;section=4&quot; rel=&quot;nofollow&quot; title=&quot;Edit section: Accessing List Items&quot;&gt;edit&lt;/a&gt;]&lt;/span&gt; &lt;span class=&quot;mw-headline&quot;&gt;Accessing List Items &lt;/span&gt;&lt;/h2&gt;


&lt;p&gt;
	Individual items in a list may be accessed using the index value of the item (keeping in mind that the first item is index 0, the second index 1 and so on). The index value is placed in square brackets after the list name. For example, to access the second item in the &lt;i&gt;colorList&lt;/i&gt; object:&lt;/p&gt;


&lt;pre&gt;
Console.WriteLine (colorList[1]);
&lt;/pre&gt;


&lt;p&gt;
	A list item value can similarly be changed using the index combined with the assignment operator. For example, to change the color from Yellow to Ingido:&lt;/p&gt;


&lt;pre&gt;
colorList[2] = &amp;quot;Indigo&amp;quot;;
&lt;/pre&gt;


&lt;p&gt;
	All the items in a list may be accessed using a &lt;i&gt;foreach&lt;/i&gt; loop. For example:&lt;/p&gt;


&lt;pre&gt;
foreach (string color in colorList)
	{
		Console.WriteLine ( color );
	}
&lt;/pre&gt;


&lt;p&gt;
	When compiled and executed, the above code will output each of the color strings in the colorList object.&lt;/p&gt;


&lt;p&gt;
	&amp;nbsp;&lt;/p&gt;


&lt;p&gt;
	&lt;a id=&quot;Removing_Items_From_Lists&quot; name=&quot;Removing_Items_From_Lists&quot;&gt;&lt;/a&gt;&lt;/p&gt;


&lt;h2&gt;
	&lt;span class=&quot;editsection&quot;&gt;[&lt;a href=&quot;http://www.techotopia.com/index.php?title=C_Sharp_List_and_ArrayList_Collections&amp;amp;action=edit&amp;amp;section=5&quot; rel=&quot;nofollow&quot; title=&quot;Edit section: Removing Items From Lists&quot;&gt;edit&lt;/a&gt;]&lt;/span&gt; &lt;span class=&quot;mw-headline&quot;&gt;Removing Items From Lists &lt;/span&gt;&lt;/h2&gt;


&lt;p&gt;
	Items may be removed from a list using the &lt;i&gt;Remove()&lt;/i&gt; method. This method takes the value of the item to be removed as an argument. For example, to remove the &amp;quot;Red&amp;quot; string from the colorList object:&lt;/p&gt;


&lt;pre&gt;
colorList.Remove(&amp;quot;Red&amp;quot;);
&lt;/pre&gt;


&lt;p&gt;
	It is important to note that items in a list may be duplicated. In the case of duplicated items, the Remove() method will only remove the first matching instance.&lt;/p&gt;


&lt;p&gt;
	&lt;a id=&quot;Inserting_Items_into_a_C.23_List&quot; name=&quot;Inserting_Items_into_a_C.23_List&quot;&gt;&lt;/a&gt;&lt;/p&gt;


&lt;h2&gt;
	&lt;span class=&quot;editsection&quot;&gt;[&lt;a href=&quot;http://www.techotopia.com/index.php?title=C_Sharp_List_and_ArrayList_Collections&amp;amp;action=edit&amp;amp;section=6&quot; rel=&quot;nofollow&quot; title=&quot;Edit section: Inserting Items into a C# List&quot;&gt;edit&lt;/a&gt;]&lt;/span&gt; &lt;span class=&quot;mw-headline&quot;&gt;Inserting Items into a C# List &lt;/span&gt;&lt;/h2&gt;


&lt;p&gt;
	Previously we used the &lt;i&gt;Add()&lt;/i&gt; method to add items to a list. The &lt;i&gt;Add()&lt;/i&gt; method, however, only adds items to the end of a list. Sometimes it is necessary to insert a new item at a specific location in a list. The &lt;i&gt;Insert()&lt;/i&gt; method is provided for this specific purpose. &lt;i&gt;Insert()&lt;/i&gt; takes two arguments, an integer indicating the index location of the insertion and the item to be inserted at that location. For example, to insert an item at location 2 in our example list:&lt;/p&gt;


&lt;pre&gt;
colorList.Insert(2, &amp;quot;White&amp;quot;);
&lt;/pre&gt;


&lt;p&gt;
	&lt;a id=&quot;Sorting_Lists_in_C.23&quot; name=&quot;Sorting_Lists_in_C.23&quot;&gt;&lt;/a&gt;&lt;/p&gt;


&lt;h2&gt;
	&lt;span class=&quot;editsection&quot;&gt;[&lt;a href=&quot;http://www.techotopia.com/index.php?title=C_Sharp_List_and_ArrayList_Collections&amp;amp;action=edit&amp;amp;section=7&quot; rel=&quot;nofollow&quot; title=&quot;Edit section: Sorting Lists in C#&quot;&gt;edit&lt;/a&gt;]&lt;/span&gt; &lt;span class=&quot;mw-headline&quot;&gt;Sorting Lists in C# &lt;/span&gt;&lt;/h2&gt;


&lt;p&gt;
	There is no way to tell C# to automatically sort a list as items are added. If the items in a list are required to be always sorted into order the &lt;i&gt;Sort()&lt;/i&gt; method should be called after new items are added:&lt;/p&gt;


&lt;pre&gt;
colorList.Sort();
&lt;/pre&gt;</description>
<category>C# Code</category>
<guid isPermaLink="true">http://khemlall.info/Forum/question2answer/index.php?qa=125&amp;qa_1=static-list-in-c%23#a126</guid>
<pubDate>Wed, 28 Sep 2011 13:17:14 +0000</pubDate>
</item>
<item>
<title>Answered: Using a random number as a reference in another parameter of type file</title>
<link>http://khemlall.info/Forum/question2answer/index.php?qa=86&amp;qa_1=using-random-number-reference-another-parameter-type-file#a123</link>
<description>Thats pretty simple use the percentage function provided in one of the post... i will look for it and pagste it here</description>
<category>Loadrunner Vugen Scripting</category>
<guid isPermaLink="true">http://khemlall.info/Forum/question2answer/index.php?qa=86&amp;qa_1=using-random-number-reference-another-parameter-type-file#a123</guid>
<pubDate>Fri, 16 Sep 2011 13:03:28 +0000</pubDate>
</item>
<item>
<title>Answered: How to test MQ with Loadrunner</title>
<link>http://khemlall.info/Forum/question2answer/index.php?qa=117&amp;qa_1=how-to-test-mq-with-loadrunner#a118</link>
<description>

&lt;p&gt;
	y first script for WebSphere MQ testing was written in Java as Java Vuser script. It was pretty simple since I was using just MQ JMS API.&amp;nbsp; There is lots of examples howto connect to WebSphere in Java. Here is one &lt;a rel=&quot;nofollow&quot; href=&quot;http://hursleyonwmq.wordpress.com/2007/05/29/simplest-sample-applications-using-websphere-mq-jms/&quot; target=&quot;_blank&quot; title=&quot;example&quot;&gt;http://hursleyonwmq.wordpress.com/2007/05/29/simplest-sample-applications-using-websphere-mq-jms/&lt;/a&gt;.&lt;/p&gt;


&lt;p&gt;
	But howto test WebSphere MQ if you don’t have Java license in you LoadRunner?&lt;/p&gt;


&lt;p&gt;
	There is a way to do that. LoadRunner API contains several JMS functions:&lt;/p&gt;


&lt;p&gt;
	jms_receive_message_queue()
&lt;br /&gt;
	jms_send_message_queue()
&lt;br /&gt;
	jms_send_receive_message_queue()
&lt;br /&gt;
	jms_set_general_property()
&lt;br /&gt;
	jms_set_message_property()&lt;/p&gt;


&lt;p&gt;
	First of all you need to have “Web Services” license to use them.&lt;/p&gt;


&lt;p&gt;
	Here is what you need to do:&lt;/p&gt;


&lt;ul&gt;
	

&lt;li&gt;
		Get details of your environment like: MQ server IP, port (probably 1414), Queue Manager name, Queue name and channel name.
&lt;br /&gt;
		Install IBM WebSphere MQ Client on machine where you have LoadRunner Controller (or LoadRunner Generator if you are using remote one). MQ Windows Client for WebSphere 6.0 can be downloaded &lt;a rel=&quot;nofollow&quot; href=&quot;http://www-01.ibm.com/support/docview.wss?uid=swg24009961&quot; target=&quot;_blank&quot; title=&quot;here&quot;&gt;here.&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;


&lt;ul&gt;
	

&lt;li&gt;
		Setup details of our WebSphere MQ server on the client. We will use JNDI to store connection details (host, port, etc…)&lt;/li&gt;
&lt;/ul&gt;


&lt;ul&gt;
	

&lt;li&gt;
		Edit file C:\Program Files\IBM\WebSphere MQ\Java\bin\JMSAdmin.config and set&lt;/li&gt;
&lt;/ul&gt;


&lt;blockquote&gt;
	

&lt;p&gt;
		INITIAL_CONTEXT_FACTORY=com.sun.jndi.fscontext.RefFSContextFactory
&lt;br /&gt;
		PROVIDER_URL=file:/C:/JNDI&lt;/p&gt;
&lt;/blockquote&gt;


&lt;ul&gt;
	

&lt;li&gt;
		Create new .scp file and put there your MQ server details. Here an example&lt;/li&gt;
&lt;/ul&gt;


&lt;blockquote&gt;
	

&lt;p&gt;
		DELETE QCF(QueueConnectionFactory)
&lt;br /&gt;
		DEFINE QCF(QueueConnectionFactory) QMGR(QUEUE_MANAGER) tran(client) chan(SYSTEM.ADMIN.SVRCONN) host(192.168.12.13) port(1414)
&lt;br /&gt;
		DISPLAY QCF(QueueConnectionFactory)
&lt;br /&gt;
		DEFINE Q(MY_QUEUE) QUEUE(MY_QUEUE) QMGR(QUEUE_MANAGER)
&lt;br /&gt;
		DISPLAY Q(MY_QUEUE)
&lt;br /&gt;
		end&lt;/p&gt;
&lt;/blockquote&gt;


&lt;ul&gt;
	

&lt;li&gt;
		Last step for MQ Client is to generate .bindings file (placed automatically in C:/JNDI) with JMSAdmin tool from C:\Program Files\IBM\WebSphere MQ\Java\bin directory. Assuming that your .scp file is named My_qm.scp, use this command:&lt;/li&gt;
&lt;/ul&gt;


&lt;blockquote&gt;
	

&lt;p&gt;
		JMSAdmin &amp;lt; My_qm.scp&lt;/p&gt;
&lt;/blockquote&gt;


&lt;p&gt;
	Now in LoadRunner:&lt;/p&gt;


&lt;ul&gt;
	

&lt;li&gt;
		Create new Web Services script&lt;/li&gt;
&lt;/ul&gt;


&lt;ul&gt;
	

&lt;li&gt;
		Open Run-Time settings (F4) and go to JMS/Advanced&lt;/li&gt;
&lt;/ul&gt;


&lt;ul&gt;
	

&lt;li&gt;
		Change JNDI initial context factory to “com.sun.jndi.fscontext.RefFSContextFactory”&lt;/li&gt;
&lt;/ul&gt;


&lt;ul&gt;
	

&lt;li&gt;
		Change JNDI provider URL to “file:/C:/JNDI”&lt;/li&gt;
&lt;/ul&gt;


&lt;ul&gt;
	

&lt;li&gt;
		Change JMS connection factory to “QueueConnectionFactory” and click OK&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;
	Use this sample code to send and receive a message from IBM WebSphere MQ:&lt;/p&gt;


&lt;pre lang=&quot;JAVA&quot;&gt;
//setting JMS message property JmsMessageID
jms_set_message_property(&amp;quot;JMSMessageID&amp;quot;,&amp;quot;JMSMessageID&amp;quot;, &amp;quot;12345&amp;quot;);

//sending message
jms_send_message_queue(&amp;quot;Sending message&amp;quot;,&amp;quot;My cool message&amp;quot;, &amp;quot;MY_QUEUE&amp;quot;);

//receiving message
jms_receive_message_queue(&amp;quot;Receiving message&amp;quot;, &amp;quot;MY_QUEUE&amp;quot;);

//displaying message
lr_message(lr_eval_string(&amp;quot;{JMS_message}&amp;quot;));&lt;/pre&gt;


&lt;p&gt;
	Received message is saved in “JMS_message” parameter automatically by LoadRunner.&lt;/p&gt;


&lt;p&gt;
	Done. Smart and simple&lt;/p&gt;</description>
<category>Loadrunner Vugen Scripting</category>
<guid isPermaLink="true">http://khemlall.info/Forum/question2answer/index.php?qa=117&amp;qa_1=how-to-test-mq-with-loadrunner#a118</guid>
<pubDate>Thu, 15 Sep 2011 17:47:10 +0000</pubDate>
</item>
<item>
<title>Answered: another signin account sample</title>
<link>http://khemlall.info/Forum/question2answer/index.php?qa=74&amp;qa_1=another-signin-account-sample#a116</link>
<description>comment2, &lt;a rel=&quot;nofollow&quot; href=&quot;http://vel.engr.uga.edu/&quot;&gt;cialis online&lt;/a&gt;,  mfsms, &lt;a rel=&quot;nofollow&quot; href=&quot;http://iusa.indiana.edu/safety/&quot;&gt;viagra&lt;/a&gt;,  &amp;gt;:-PP,</description>
<category>Loadrunner Vugen Scripting</category>
<guid isPermaLink="true">http://khemlall.info/Forum/question2answer/index.php?qa=74&amp;qa_1=another-signin-account-sample#a116</guid>
<pubDate>Tue, 13 Sep 2011 12:11:35 +0000</pubDate>
</item>
<item>
<title>Answered: is it possible to use user_data_point in a GUI Vuser script i.e a QTP script? Can anyone please guide with an example?</title>
<link>http://khemlall.info/Forum/question2answer/index.php?qa=112&amp;qa_1=possible-user_data_point-script-script-anyone-please-example#a113</link>
<description>i have the same Question and i do have a work around, i will post it tomorrow, unless the admin beat me to it.....</description>
<guid isPermaLink="true">http://khemlall.info/Forum/question2answer/index.php?qa=112&amp;qa_1=possible-user_data_point-script-script-anyone-please-example#a113</guid>
<pubDate>Fri, 26 Aug 2011 01:41:34 +0000</pubDate>
</item>
<item>
<title>Answered: How to write to ocnfig files</title>
<link>http://khemlall.info/Forum/question2answer/index.php?qa=109&amp;qa_1=how-to-write-to-ocnfig-files#a110</link>
<description>

&lt;p&gt;
	&lt;span id=&quot;cke_bm_47S&quot; style=&quot;display: none;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;


&lt;p style=&quot;line-height: 18px;&quot;&gt;
	There's likely been times that you might have thought that it would make things convenient to write back to your .NET application's config file. The framework provides simple methods for reading from the config file, but gives you nothing for writing values back to the config file. It is easy enough to write values back to the file. It's only XML. When I need to do this sort of thing I use a class that wraps up the ability to read and write settings in the config file.&lt;/p&gt;


&lt;p style=&quot;line-height: 18px;&quot;&gt;
	&amp;nbsp;&lt;/p&gt;


&lt;div class=&quot;warning&quot;&gt;
	&lt;i&gt;&lt;b&gt;Warning:&lt;/b&gt;&amp;nbsp;As a rule of thumb, it is not good to write back to the config file. The framework does not include this ability for a reason. If you want your application's users to not require administrative rights then it is always a better idea to store settings in the user's documents &amp;amp; settings directory or in the registry if needed. That said, this won't break anything and does come in handy for utility applications etc.&lt;/i&gt;&lt;/div&gt;


&lt;p style=&quot;line-height: 18px;&quot;&gt;
	&lt;a href=&quot;http://ryanfarley.com/blog/archive/2004/07/13/879.aspx&quot; rel=&quot;nofollow&quot;&gt;http://ryanfarley.com/blog/archive/2004/07/13/879.aspx&lt;/a&gt;OK, let's move on. A config file for a .NET application is a text file that has a name of&amp;nbsp;&lt;span style=&quot;font-family: Courier New;&quot;&gt;myapplication.exe.config&lt;/span&gt;. The VS.NET IDE makes things easy for you and allows you to add a file named “&lt;span style=&quot;font-family: Courier New;&quot;&gt;App.config&lt;/span&gt;” to your project and it will copy it to the appropriate bin directory and rename it to&lt;span style=&quot;font-family: Courier New;&quot;&gt;myapplication.exe.config&lt;/span&gt;. This config file is intended to store static values or settings for your application. As I mentioned before, it is nothing more than XML. Here's a sample of an application config file:&lt;/p&gt;


&lt;p style=&quot;line-height: 18px;&quot;&gt;
	&amp;nbsp;&lt;/p&gt;


&lt;p style=&quot;line-height: 18px;&quot;&gt;
	&amp;nbsp;&lt;/p&gt;


&lt;div&gt;
	

&lt;pre style=&quot;font-family: 'Courier New', Courier, Fixed; background-color: rgb(201, 201, 201); border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: rgb(128, 128, 128); border-right-color: rgb(128, 128, 128); border-bottom-color: rgb(128, 128, 128); border-left-color: rgb(128, 128, 128); margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 10px; padding-right: 10px; padding-bottom: 10px; padding-left: 10px; line-height: 12pt; width: 760px; overflow-x: auto; overflow-y: auto;&quot;&gt;
	&amp;lt;?&lt;span style=&quot;color: rgb(128, 0, 0);&quot;&gt;xml&lt;/span&gt; &lt;span style=&quot;color: rgb(255, 0, 0);&quot;&gt;version=&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 255);&quot;&gt;&amp;quot;1.0&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: rgb(255, 0, 0);&quot;&gt;encoding=&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 255);&quot;&gt;&amp;quot;utf-8&amp;quot;&lt;/span&gt; ?&amp;gt;
&amp;lt;&lt;span style=&quot;color: rgb(128, 0, 0);&quot;&gt;configuration&lt;/span&gt;&amp;gt;
    &amp;lt;&lt;span style=&quot;color: rgb(128, 0, 0);&quot;&gt;appSettings&lt;/span&gt;&amp;gt;
        &amp;lt;&lt;span style=&quot;color: rgb(128, 0, 0);&quot;&gt;add&lt;/span&gt;&lt;span style=&quot;color: rgb(255, 0, 0);&quot;&gt; key=&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 255);&quot;&gt;&amp;quot;Test1&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: rgb(255, 0, 0);&quot;&gt; value=&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 255);&quot;&gt;&amp;quot;My value 1&amp;quot;&lt;/span&gt; /&amp;gt;
        &amp;lt;&lt;span style=&quot;color: rgb(128, 0, 0);&quot;&gt;add&lt;/span&gt;&lt;span style=&quot;color: rgb(255, 0, 0);&quot;&gt; key=&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 255);&quot;&gt;&amp;quot;Test2&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: rgb(255, 0, 0);&quot;&gt; value=&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 255);&quot;&gt;&amp;quot;Another value 2&amp;quot;&lt;/span&gt; /&amp;gt;
    &amp;lt;/&lt;span style=&quot;color: rgb(128, 0, 0);&quot;&gt;appSettings&lt;/span&gt;&amp;gt;
&amp;lt;/&lt;span style=&quot;color: rgb(128, 0, 0);&quot;&gt;configuration&lt;/span&gt;&amp;gt;&lt;/pre&gt;
	

&lt;p style=&quot;line-height: 18px;&quot;&gt;
		&amp;nbsp;&lt;/p&gt;
	

&lt;p&gt;
		&amp;nbsp;&lt;/p&gt;
&lt;/div&gt;</description>
<category>WATIN</category>
<guid isPermaLink="true">http://khemlall.info/Forum/question2answer/index.php?qa=109&amp;qa_1=how-to-write-to-ocnfig-files#a110</guid>
<pubDate>Mon, 25 Jul 2011 14:21:24 +0000</pubDate>
</item>
<item>
<title>Answered: How do I Click a Table tag using watiN?</title>
<link>http://khemlall.info/Forum/question2answer/index.php?qa=102&amp;qa_1=how-do-i-click-a-table-tag-using-watin#a103</link>
<description>think (as far as I go your issue) this line will work for you: ie.Table(&amp;quot;btnTbl_compose:send_message&amp;quot;).Click()</description>
<category>WATIN</category>
<guid isPermaLink="true">http://khemlall.info/Forum/question2answer/index.php?qa=102&amp;qa_1=how-do-i-click-a-table-tag-using-watin#a103</guid>
<pubDate>Sat, 09 Jul 2011 23:04:27 +0000</pubDate>
</item>
<item>
<title>Answered: Using C# WATIN, how do I get the value of a INPUT tag html element?</title>
<link>http://khemlall.info/Forum/question2answer/index.php?qa=97&amp;qa_1=using-c%23-watin-how-do-i-get-the-value-of-input-tag-html-element#a101</link>
<description>

&lt;p&gt;
	Doesn't anybody use loops anymore? I think loops are neat (and a whole lot easier on the comprehension of why Watin exhibits this behavior / stole my lunch ;-) :&lt;/p&gt;


&lt;pre class=&quot;lang-cs prettyprint&quot;&gt;
&lt;code&gt;&lt;span class=&quot;typ&quot;&gt;TextFieldCollection&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; textFields &lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; browser&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;typ&quot;&gt;TextFields&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &amp;nbsp;
&lt;/span&gt;&lt;span class=&quot;kwd&quot;&gt;foreach&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;kwd&quot;&gt;var&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; field &lt;/span&gt;&lt;span class=&quot;kwd&quot;&gt;in&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; textFields&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &amp;nbsp;
&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &amp;nbsp;
&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span class=&quot;kwd&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;field&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;typ&quot;&gt;Id&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;==&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &lt;/span&gt;&lt;span class=&quot;str&quot;&gt;&amp;quot;humbuggery&amp;quot;&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;)...&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &amp;nbsp;
&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;</description>
<category>WATIN</category>
<guid isPermaLink="true">http://khemlall.info/Forum/question2answer/index.php?qa=97&amp;qa_1=using-c%23-watin-how-do-i-get-the-value-of-input-tag-html-element#a101</guid>
<pubDate>Sat, 09 Jul 2011 23:03:31 +0000</pubDate>
</item>
<item>
<title>How to test a JSF application using JMeter?</title>
<link>http://khemlall.info/Forum/question2answer/index.php?qa=91&amp;qa_1=how-to-test-a-jsf-application-using-jmeter</link>
<description>

&lt;p&gt;
	HI&lt;/p&gt;


&lt;p&gt;
	I am testing an application which is using JSF. I have followed the instructions as directed in the following link:&lt;/p&gt;


&lt;p&gt;
	&lt;a rel=&quot;nofollow&quot; href=&quot;http://wiki.apache.org/myfaces/PerformanceTestingWithJMeter&quot;&gt;http://wiki.apache.org/myfaces/PerformanceTestingWithJMeter&lt;/a&gt;&lt;/p&gt;


&lt;p&gt;
	
&lt;br /&gt;
	The problem is that when I test my application manually, The appliction is not directed to the second page. Instead I get an exception below:&lt;/p&gt;


&lt;p&gt;
	&lt;span style=&quot;color: #ff0000&quot;&gt;16:34:45,562 ERROR [ResponseStateManagerImpl] incomplete distance tree
&lt;br /&gt;
	java.util.zip.ZipException: incomplete distance tree
&lt;br /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at java.util.zip.InflaterInputStream.read(InflaterInputStream.java:147)
&lt;br /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at java.util.zip.GZIPInputStream.read(GZIPInputStream.java:92)
&lt;br /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at java.io.ObjectInputStream$PeekInputStream.read(ObjectInputStream.java
&lt;br /&gt;
	:2266)
&lt;br /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at java.io.ObjectInputStream$PeekInputStream.readFully(ObjectInputStream
&lt;br /&gt;
	.java:2279)
&lt;br /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at java.io.ObjectInputStream$BlockDataInputStream.readShort(ObjectInputS
&lt;br /&gt;
	tream.java:2750)
&lt;br /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:780
&lt;br /&gt;
	)
&lt;br /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at java.io.ObjectInputStream.&amp;lt;init&amp;gt;(ObjectInputStream.java:280)
&lt;br /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at com.sun.faces.renderkit.ResponseStateManagerImpl.getTreeStructureToRe
&lt;br /&gt;
	store(ResponseStateManagerImpl.java:122)
&lt;br /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at com.sun.faces.application.StateManagerImpl.restoreTreeStructure(State
&lt;br /&gt;
	ManagerImpl.java:366)
&lt;br /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at com.sun.faces.application.StateManagerImpl.restoreView(StateManagerIm
&lt;br /&gt;
	pl.java:238)
&lt;br /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at com.sun.faces.application.ViewHandlerImpl.restoreView(ViewHandlerImpl
&lt;br /&gt;
	.java:228)
&lt;br /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at com.sun.faces.lifecycle.RestoreViewPhase.execute(RestoreViewPhase.jav
&lt;br /&gt;
	a:157)
&lt;br /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
&lt;br /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:90)
&lt;br /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at javax.faces.webapp.FacesServlet.service(FacesServlet.java:197)
&lt;br /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
&lt;br /&gt;
	icationFilterChain.java:290)
&lt;br /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
&lt;br /&gt;
	ilterChain.java:206)
&lt;br /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFi
&lt;br /&gt;
	lter.java:96)
&lt;br /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
&lt;br /&gt;
	icationFilterChain.java:235)
&lt;br /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
&lt;br /&gt;
	ilterChain.java:206)
&lt;br /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
&lt;br /&gt;
	alve.java:235)
&lt;br /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
&lt;br /&gt;
	alve.java:191)
&lt;br /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(Securit
&lt;br /&gt;
	yAssociationValve.java:190)
&lt;br /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValv
&lt;br /&gt;
	e.java:92)
&lt;br /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.proce
&lt;br /&gt;
	ss(SecurityContextEstablishmentValve.java:126)
&lt;br /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invok
&lt;br /&gt;
	e(SecurityContextEstablishmentValve.java:70)
&lt;br /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
&lt;br /&gt;
	ava:127)
&lt;br /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
&lt;br /&gt;
	ava:102)
&lt;br /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedC
&lt;br /&gt;
	onnectionValve.java:158)
&lt;br /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
&lt;br /&gt;
	ve.java:109)
&lt;br /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
&lt;br /&gt;
	a:330)
&lt;br /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
&lt;br /&gt;
	:829)
&lt;br /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proce
&lt;br /&gt;
	ss(Http11Protocol.java:601)
&lt;br /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:44
&lt;br /&gt;
	7)
&lt;br /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at java.lang.Thread.run(Thread.java:619)&lt;/span&gt;
&lt;br /&gt;
	.&lt;/p&gt;


&lt;p&gt;
	I am using &amp;quot;com.sun.faces.view&amp;quot; and passing the extracted value from the index page to the second page using the RegEx.&lt;/p&gt;


&lt;p&gt;
	Please Help me out.&lt;/p&gt;


&lt;p&gt;
	Thanks in Advance&lt;/p&gt;


&lt;p&gt;
	Navjeet Singh&lt;/p&gt;


&lt;p&gt;
	&amp;nbsp;&lt;/p&gt;</description>
<category>Jmeter</category>
<guid isPermaLink="true">http://khemlall.info/Forum/question2answer/index.php?qa=91&amp;qa_1=how-to-test-a-jsf-application-using-jmeter</guid>
<pubDate>Thu, 30 Jun 2011 11:50:09 +0000</pubDate>
</item>
<item>
<title>How to load test a web application which is using JSF</title>
<link>http://khemlall.info/Forum/question2answer/index.php?qa=90&amp;qa_1=how-to-load-test-a-web-application-which-is-using-jsf</link>
<description>

&lt;p&gt;
	HI&lt;/p&gt;


&lt;p&gt;
	I am testing an application which is using JSF. I have followed the instructions as directed in the following link:&lt;/p&gt;


&lt;p&gt;
	&lt;a href=&quot;http://wiki.apache.org/myfaces/PerformanceTestingWithJMeter&quot; rel=&quot;nofollow&quot; target=&quot;_top&quot;&gt;&lt;span&gt;http://wiki.apache.org/myfaces/PerformanceTestingWithJMeter&lt;/span&gt;&lt;/a&gt;
&lt;br /&gt;
	&amp;nbsp;&lt;/p&gt;


&lt;p&gt;
	The problem is that when I test my application manually, I get an exception given below at the JBoss Console :&lt;/p&gt;


&lt;p&gt;
	&lt;span style=&quot;color: #ff0000&quot;&gt;16:34:45,562 ERROR [ResponseStateManagerImpl] incomplete distance tree
&lt;br /&gt;
	java.util.zip.ZipException: incomplete distance tree
&lt;br /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at java.util.zip.InflaterInputStream.read(InflaterInputStream.java:147)
&lt;br /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at java.util.zip.GZIPInputStream.read(GZIPInputStream.java:92)
&lt;br /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at java.io.ObjectInputStream$PeekInputStream.read(ObjectInputStream.java
&lt;br /&gt;
	:2266)
&lt;br /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at java.io.ObjectInputStream$PeekInputStream.readFully(ObjectInputStream
&lt;br /&gt;
	.java:2279)
&lt;br /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at java.io.ObjectInputStream$BlockDataInputStream.readShort(ObjectInputS
&lt;br /&gt;
	tream.java:2750)
&lt;br /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:780
&lt;br /&gt;
	)
&lt;br /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at java.io.ObjectInputStream.&amp;lt;init&amp;gt;(ObjectInputStream.java:280)
&lt;br /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at com.sun.faces.renderkit.ResponseStateManagerImpl.getTreeStructureToRe
&lt;br /&gt;
	store(ResponseStateManagerImpl.java:122)
&lt;br /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at com.sun.faces.application.StateManagerImpl.restoreTreeStructure(State
&lt;br /&gt;
	ManagerImpl.java:366)
&lt;br /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at com.sun.faces.application.StateManagerImpl.restoreView(StateManagerIm
&lt;br /&gt;
	pl.java:238)
&lt;br /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at com.sun.faces.application.ViewHandlerImpl.restoreView(ViewHandlerImpl
&lt;br /&gt;
	.java:228)
&lt;br /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at com.sun.faces.lifecycle.RestoreViewPhase.execute(RestoreViewPhase.jav
&lt;br /&gt;
	a:157)
&lt;br /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
&lt;br /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:90)
&lt;br /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at javax.faces.webapp.FacesServlet.service(FacesServlet.java:197)
&lt;br /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
&lt;br /&gt;
	icationFilterChain.java:290)
&lt;br /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
&lt;br /&gt;
	ilterChain.java:206)
&lt;br /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFi
&lt;br /&gt;
	lter.java:96)
&lt;br /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
&lt;br /&gt;
	icationFilterChain.java:235)
&lt;br /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
&lt;br /&gt;
	ilterChain.java:206)
&lt;br /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
&lt;br /&gt;
	alve.java:235)
&lt;br /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
&lt;br /&gt;
	alve.java:191)
&lt;br /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(Securit
&lt;br /&gt;
	yAssociationValve.java:190)
&lt;br /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValv
&lt;br /&gt;
	e.java:92)
&lt;br /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.proce
&lt;br /&gt;
	ss(SecurityContextEstablishmentValve.java:126)
&lt;br /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invok
&lt;br /&gt;
	e(SecurityContextEstablishmentValve.java:70)
&lt;br /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
&lt;br /&gt;
	ava:127)
&lt;br /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
&lt;br /&gt;
	ava:102)
&lt;br /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedC
&lt;br /&gt;
	onnectionValve.java:158)
&lt;br /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
&lt;br /&gt;
	ve.java:109)
&lt;br /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
&lt;br /&gt;
	a:330)
&lt;br /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
&lt;br /&gt;
	:829)
&lt;br /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proce
&lt;br /&gt;
	ss(Http11Protocol.java:601)
&lt;br /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:44
&lt;br /&gt;
	7)
&lt;br /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at java.lang.Thread.run(Thread.java:619)&lt;/span&gt;
&lt;br /&gt;
	.&lt;/p&gt;


&lt;p&gt;
	I am using &amp;quot;com.sun.faces.view&amp;quot; and passing the extracted value from the index page to the second page using the RegEx.&lt;/p&gt;


&lt;p&gt;
	Please Help me out.&lt;/p&gt;


&lt;p&gt;
	Thanks in Advance&lt;/p&gt;


&lt;p&gt;
	Navjeet Singh&lt;/p&gt;</description>
<category>Jmeter</category>
<guid isPermaLink="true">http://khemlall.info/Forum/question2answer/index.php?qa=90&amp;qa_1=how-to-load-test-a-web-application-which-is-using-jsf</guid>
<pubDate>Thu, 30 Jun 2011 11:44:27 +0000</pubDate>
</item>
<item>
<title>Please help me to solve this error&quot;[error] Element //ol[@id='rso']/li[1]/div/span/h3/a/em[2] not found&quot;</title>
<link>http://khemlall.info/Forum/question2answer/index.php?qa=88&amp;qa_1=please-help-solve-this-error-error-element-div-span-not-found</link>
<description>Hello All,&lt;br /&gt;
&lt;br /&gt;
Please helpme to solving the above menctioned error...&lt;br /&gt;
&lt;br /&gt;
Thanks,&lt;br /&gt;
&lt;br /&gt;
Khadar</description>
<category>SELENIUM</category>
<guid isPermaLink="true">http://khemlall.info/Forum/question2answer/index.php?qa=88&amp;qa_1=please-help-solve-this-error-error-element-div-span-not-found</guid>
<pubDate>Wed, 01 Jun 2011 10:09:49 +0000</pubDate>
</item>
<item>
<title>basic rest client in Java</title>
<link>http://khemlall.info/Forum/question2answer/index.php?qa=84&amp;qa_1=basic-rest-client-in-java</link>
<description>Sample basic REST client operations in Java How To posted October 28, 2008 by Dave Smith , tagged Web Services API 37164 Views, 5 Comment Title: Sample basic REST client operations in Java Product: Rally Enterprise Abstract: Attached is a sample Java client that does various REST operations using local files. This client basically reproduces some of the functionality that the curl application has ( &lt;A HREF=&quot;http://curl.haxx.se/&quot; rel=&quot;nofollow&quot;&gt;http://curl.haxx.se/&lt;/A&gt; ). How To: Attached is a sample Java client that does various REST operations using local files. This client basically reproduces some of the functionality that the curl application has ( &lt;A HREF=&quot;http://curl.haxx.se/&quot; rel=&quot;nofollow&quot;&gt;http://curl.haxx.se/&lt;/A&gt; ). You can make things as complicated or as simple as you like, but it boils down to needing to be able to issue various HTTP requests, and being able to interpret XML that comes back. The basics to think about with REST are that HTTP methods translate to different operations, so: HTTP PUT == create new object HTTP GET == read object HTTP POST == update object HTTP DELETE == delete object All objects in REST have a URI. So, every defect in the system has a unique URI. Queries have unique URIs, etc.. If I want to update some defect, I POST an XML document to that defect's URI. If I want to delete a particular defect, I issue an HTTP DELETE request to that URI, etc. Our web services docs ( &lt;A HREF=&quot;https://rally1.rallydev.com/slm/doc/webservice&quot; rel=&quot;nofollow&quot;&gt;https://rally1.rallydev.com/slm/doc/webservice&lt;/A&gt; ) explains most of this in pretty good detail (click on the &amp;quot;REST&amp;quot; link on the left).</description>
<category>Web Services</category>
<guid isPermaLink="true">http://khemlall.info/Forum/question2answer/index.php?qa=84&amp;qa_1=basic-rest-client-in-java</guid>
<pubDate>Tue, 19 Apr 2011 01:17:53 +0000</pubDate>
</item>
<item>
<title>xml parsing vbscripting</title>
<link>http://khemlall.info/Forum/question2answer/index.php?qa=83&amp;qa_1=xml-parsing-vbscripting</link>
<description>

&lt;pre class=&quot;bbcode_code&quot;&gt;
Dim xmlDoc, objNodeList, plot

Set xmlDoc = CreateObject(&amp;quot;Msxml2.DOMDocument&amp;quot;)
xmlDoc.load(&amp;quot;c:\inetpub\wwwroot\test.xml&amp;quot;)
Set objNodeList = xmlDoc.getElementsByTagName(&amp;quot;description&amp;quot;)

If objNodeList.length &amp;gt; 0 then
For each x in objNodeList
plot=x.Text
msgbox plot
Next
Else
msgbox chr(34) &amp;amp; &amp;quot;description&amp;quot; &amp;amp; chr(34) &amp;amp; &amp;quot; field not found.&amp;quot;
End If&lt;/pre&gt;</description>
<category>ASP.NET</category>
<guid isPermaLink="true">http://khemlall.info/Forum/question2answer/index.php?qa=83&amp;qa_1=xml-parsing-vbscripting</guid>
<pubDate>Thu, 31 Mar 2011 13:48:55 +0000</pubDate>
</item>
<item>
<title>How to use Fiddler and make a sample Request</title>
<link>http://khemlall.info/Forum/question2answer/index.php?qa=82&amp;qa_1=how-to-use-fiddler-and-make-a-sample-request</link>
<description>

&lt;p&gt;
	&amp;nbsp;&lt;/p&gt;


&lt;p&gt;
	Example:&lt;/p&gt;


&lt;p&gt;
	&lt;span style=&quot;color: rgb(178, 34, 34);&quot;&gt;http://injpfsdfsdf1/ProductDataServices/rest/ProductData&lt;/span&gt;&lt;/p&gt;


&lt;p&gt;
	&amp;nbsp;&lt;/p&gt;


&lt;p&gt;
	&lt;span style=&quot;background-color: rgb(0, 128, 0);&quot;&gt;&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&amp;lt;Request&amp;gt;&amp;lt;Get filterTemplate=&amp;quot;min&amp;quot;&amp;gt;&amp;lt;EANS&amp;gt;&amp;lt;EAN&amp;gt;67575482992fdsf6&amp;lt;/EAN&amp;gt;&amp;lt;/EANS&amp;gt;&amp;lt;/Get&amp;gt;&amp;lt;/Request&amp;gt;&lt;/span&gt;&lt;/p&gt;</description>
<category>Web Services</category>
<guid isPermaLink="true">http://khemlall.info/Forum/question2answer/index.php?qa=82&amp;qa_1=how-to-use-fiddler-and-make-a-sample-request</guid>
<pubDate>Mon, 28 Mar 2011 15:52:03 +0000</pubDate>
</item>
<item>
<title>How to do Webservice Call in Loadrunner</title>
<link>http://khemlall.info/Forum/question2answer/index.php?qa=80&amp;qa_1=how-to-do-webservice-call-in-loadrunner</link>
<description>how do you do webservice calls in Loadrunner? admin?</description>
<category>Loadrunner Vugen Scripting</category>
<guid isPermaLink="true">http://khemlall.info/Forum/question2answer/index.php?qa=80&amp;qa_1=how-to-do-webservice-call-in-loadrunner</guid>
<pubDate>Sun, 27 Mar 2011 15:11:22 +0000</pubDate>
</item>
<item>
<title>strcmp string example</title>
<link>http://khemlall.info/Forum/question2answer/index.php?qa=78&amp;qa_1=strcmp-string-example</link>
<description>

&lt;p&gt;
	&lt;span style=&quot;background-color: rgb(0, 255, 0);&quot;&gt;else if (strcmp(Stage,&amp;quot;ViewReceipt&amp;quot;)==0)&lt;/span&gt;
&lt;br /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;{
&lt;br /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //We are at View Receipt. Sign out or you're done
&lt;br /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(atoi(lr_eval_string(&amp;quot;{randomNumber}&amp;quot;)) &amp;lt; PERCENT_SIGNOUT)
&lt;br /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&lt;br /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; RegFindParam();
&lt;br /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; SignOut();
&lt;br /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&lt;br /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; else
&lt;br /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&lt;br /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; lr_save_string(&amp;quot;Finished&amp;quot;,&amp;quot;CurrentPage&amp;quot;);
&lt;br /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&lt;br /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;}
&lt;br /&gt;
	&amp;nbsp;&lt;span style=&quot;background-color: rgb(255, 0, 0);&quot;&gt;&amp;nbsp; &amp;nbsp;else if (strcmp(Stage,&amp;quot;ThankYou&amp;quot;)==0)&lt;/span&gt;
&lt;br /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;{
&lt;br /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;br /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //Options:
&lt;br /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // 1) View Receipt
&lt;br /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // 2) Sign Out
&lt;br /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // 3) Do nothing. we are done
&lt;br /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(atoi(lr_eval_string(&amp;quot;{randomNumber}&amp;quot;)) &amp;lt; PERCENT_VIEW_RECEIPT)
&lt;br /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&lt;br /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; RegFindParam();&lt;/p&gt;</description>
<category>Loadrunner Vugen Scripting</category>
<guid isPermaLink="true">http://khemlall.info/Forum/question2answer/index.php?qa=78&amp;qa_1=strcmp-string-example</guid>
<pubDate>Sun, 27 Mar 2011 15:05:04 +0000</pubDate>
</item>
<item>
<title>a very complex action script</title>
<link>http://khemlall.info/Forum/question2answer/index.php?qa=77&amp;qa_1=a-very-complex-action-script</link>
<description>a very complex action script</description>
<category>Loadrunner Vugen Scripting</category>
<guid isPermaLink="true">http://khemlall.info/Forum/question2answer/index.php?qa=77&amp;qa_1=a-very-complex-action-script</guid>
<pubDate>Sun, 27 Mar 2011 15:03:00 +0000</pubDate>
</item>
<item>
<title>strlen function usage</title>
<link>http://khemlall.info/Forum/question2answer/index.php?qa=76&amp;qa_1=strlen-function-usage</link>
<description>

&lt;p&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp; web_reg_save_param(&amp;quot;&lt;strong&gt;&lt;span style=&quot;color: rgb(255, 0, 0);&quot;&gt;UnRegisterErro&lt;/span&gt;&lt;/strong&gt;r&amp;quot;,&amp;quot;NotFound=Warning&amp;quot;,&amp;quot;LB/IC=error id=&amp;quot;,&amp;quot;RB/IC=&amp;lt;\/error&amp;quot;,LAST);&lt;/p&gt;


&lt;p&gt;
	&amp;nbsp;&lt;/p&gt;


&lt;p&gt;
	if(&lt;span style=&quot;background-color: rgb(255, 255, 0);&quot;&gt;strlen(lr_eval_string(&amp;quot;{UnRegisterError}&amp;quot;)) &amp;gt; 0)&lt;/span&gt;
&lt;br /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;{
&lt;br /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lr_error_message(&amp;quot;UnRegister Error. %s&amp;quot;,lr_eval_string(&amp;quot;Email: {Email}, Error: {UnRegisterError}&amp;quot;));
&lt;br /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return LR_FAIL;
&lt;br /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;}
&lt;br /&gt;
	
&lt;br /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;lr_think_time(ThinkTime);
&lt;br /&gt;
	
&lt;br /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;return LR_PASS;&lt;/p&gt;</description>
<category>Loadrunner Vugen Scripting</category>
<guid isPermaLink="true">http://khemlall.info/Forum/question2answer/index.php?qa=76&amp;qa_1=strlen-function-usage</guid>
<pubDate>Sun, 27 Mar 2011 14:59:18 +0000</pubDate>
</item>
<item>
<title>lr_get_attrib_doube sample of thinktime</title>
<link>http://khemlall.info/Forum/question2answer/index.php?qa=75&amp;qa_1=lr_get_attrib_doube-sample-of-thinktime</link>
<description>

&lt;p&gt;
	
&lt;br /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;// set the cookie here
&lt;br /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp; web_add_cookie(&amp;quot;browserid=version=6%2E0&amp;amp;os=3&amp;amp;browser=2; DOMAIN=.barnesandnoble.com&amp;quot;);
&lt;br /&gt;
	
&lt;br /&gt;
	&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: rgb(255, 0, 0);&quot;&gt;&amp;nbsp;ThinkTime = lr_get_attrib_double(&amp;quot;THINK_TIME&amp;quot;);&lt;/span&gt;
&lt;br /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;return 0;&lt;/p&gt;</description>
<category>Loadrunner Vugen Scripting</category>
<guid isPermaLink="true">http://khemlall.info/Forum/question2answer/index.php?qa=75&amp;qa_1=lr_get_attrib_doube-sample-of-thinktime</guid>
<pubDate>Sun, 27 Mar 2011 14:57:23 +0000</pubDate>
</item>
<item>
<title>sample creating a new account Email address-loadrunner</title>
<link>http://khemlall.info/Forum/question2answer/index.php?qa=72&amp;qa_1=sample-creating-a-new-account-email-address-loadrunner</link>
<description>

&lt;p&gt;
	here is a entire script, one thing important that it does is create a account... thsi is account creatiion scrpit&lt;/p&gt;


&lt;p&gt;
	&amp;nbsp;&lt;/p&gt;


&lt;p&gt;
	Action()
&lt;br /&gt;
	{
&lt;br /&gt;
	&amp;nbsp; // Create an email address for new users
&lt;br /&gt;
	&amp;nbsp;&amp;nbsp;&lt;span style=&quot;background-color: rgb(255, 0, 0);&quot;&gt; &amp;nbsp;lr_save_string(lr_eval_string(&amp;quot;{newEmailPart1}{newEmailPart2}{newEmailPart3}@{newEmailPart4}.pcld.bnloadtest.perf&amp;quot;), &amp;quot;CustomerEmail&amp;quot;);&lt;/span&gt;
&lt;br /&gt;
	
&lt;br /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;web_reg_save_param(&amp;quot;CUID&amp;quot;,&amp;quot;NotFound=Warning&amp;quot;,&amp;quot;LB/IC=customerID=\&amp;quot;&amp;quot;,&amp;quot;RB/IC=\&amp;quot;&amp;quot;,LAST);
&lt;br /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;web_reg_save_param(&amp;quot;ERRCREATEACCOUNT&amp;quot;,&amp;quot;NotFound=Warning&amp;quot;,&amp;quot;LB/IC=Message ID: &amp;quot;,&amp;quot;RB/IC=||&amp;quot;,LAST);
&lt;br /&gt;
	
&lt;br /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;lr_start_transaction(&amp;quot;CloudCreateAccount&amp;quot;);
&lt;br /&gt;
	
&lt;br /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lr_start_sub_transaction(&amp;quot;CreateAccount&amp;quot;,&amp;quot;CloudCreateAccount&amp;quot;);
&lt;br /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;
&lt;br /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; web_custom_request(&amp;quot;Cloud Create Account&amp;quot;,
&lt;br /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;quot;URL=http://cloudcart.xxxxxx/CloudService/createAccount&amp;quot;,// dont wnat to put company info here
&lt;br /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;quot;Method=POST&amp;quot;,&amp;nbsp;&amp;nbsp;
&lt;br /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;quot;RecContentType=text/html&amp;quot;,
&lt;br /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;quot;Referer=http://cloudcart.xxcd/&amp;quot;, // dont wnat to put company info here
&lt;br /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;quot;Mode=HTTP&amp;quot;,
&lt;br /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;quot;Body=&amp;lt;?xml version=\&amp;quot;1.0\&amp;quot; encoding=\&amp;quot;utf-8\&amp;quot;?&amp;gt;&amp;lt;CProfile email=\&amp;quot;{CustomerEmail}\&amp;quot; password=\&amp;quot;xxxxxx\&amp;quot; firstName=\&amp;quot;{firstname}\&amp;quot; lastName=\&amp;quot;{lastname}\&amp;quot; hintQuestionID=\&amp;quot;1\&amp;quot; hintAnswer=\&amp;quot;xxxxxx\&amp;quot; customerID=\&amp;quot;\&amp;quot; /&amp;gt;&amp;quot;,
&lt;br /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; LAST);
&lt;br /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;
&lt;br /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lr_end_sub_transaction(&amp;quot;CreateAccount&amp;quot;,LR_AUTO);
&lt;br /&gt;
	
&lt;br /&gt;
	
&lt;br /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;if(strlen(lr_eval_string(&amp;quot;{CUID}&amp;quot;)) &amp;gt; 0)
&lt;br /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;{
&lt;br /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(atoi(lr_eval_string(&amp;quot;{RandNum}&amp;quot;)) &amp;lt; lr_get_attrib_long(&amp;quot;PercentAddCC&amp;quot;))
&lt;br /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&lt;br /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; web_reg_save_param(&amp;quot;ERR&amp;quot;,&amp;quot;NotFound=Warning&amp;quot;,&amp;quot;LB/IC=Message ID: &amp;quot;,&amp;quot;RB/IC=||&amp;quot;,LAST);
&lt;br /&gt;
	
&lt;br /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; lr_start_sub_transaction(&amp;quot;AddCC&amp;quot;,&amp;quot;CloudCreateAccount&amp;quot;);
&lt;br /&gt;
	
&lt;br /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; web_custom_request(&amp;quot;Cloud Credit Card&amp;quot;,
&lt;br /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;quot;URL=http://cloudcart.barnesandnoble.com/CloudService/addCreditCardToWallet&amp;quot;,
&lt;br /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;quot;Method=POST&amp;quot;,&amp;nbsp;&amp;nbsp;
&lt;br /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;quot;RecContentType=text/html&amp;quot;,
&lt;br /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;quot;Referer=http://cloudcartcsdf.com/&amp;quot;,
&lt;br /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;quot;Mode=HTTP&amp;quot;,
&lt;br /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; //&amp;quot;Body=&amp;lt;CCreditCard cd=\&amp;quot;{CCType}\&amp;quot; ac=\&amp;quot;{CCNum}\&amp;quot; ex=\&amp;quot;12/2012\&amp;quot; nn=\&amp;quot;BNCloud Service\&amp;quot; fn=\&amp;quot;{firstname}\&amp;quot; ln=\&amp;quot;{lastname}\&amp;quot; l1=\&amp;quot;400 Hamilton Ave\&amp;quot; l2=\&amp;quot;\&amp;quot; st=\&amp;quot;CA\&amp;quot; ct=\&amp;quot;Palo Alto\&amp;quot; zp=\&amp;quot;94301\&amp;quot; cy=\&amp;quot;840\&amp;quot; ph=\&amp;quot;\&amp;quot; idc=\&amp;quot;T\&amp;quot; co=\&amp;quot;\&amp;quot; cuid=\&amp;quot;{CUID}\&amp;quot; /&amp;gt;&amp;quot;,
&lt;br /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;quot;Body=&amp;lt;CCreditCard cd=\&amp;quot;DC\&amp;quot; ac=\&amp;quot;36716495355546\&amp;quot; ex=\&amp;quot;12/2012\&amp;quot; nn=\&amp;quot;BNCloud Service\&amp;quot; fn=\&amp;quot;{firstname}\&amp;quot; ln=\&amp;quot;{lastname}\&amp;quot; l1=\&amp;quot;400 Hamilton Ave\&amp;quot; l2=\&amp;quot;\&amp;quot; st=\&amp;quot;CA\&amp;quot; ct=\&amp;quot;Palo Alto\&amp;quot; zp=\&amp;quot;94301\&amp;quot; cy=\&amp;quot;840\&amp;quot; ph=\&amp;quot;\&amp;quot; idc=\&amp;quot;T\&amp;quot; co=\&amp;quot;\&amp;quot; cuid=\&amp;quot;{CUID}\&amp;quot; /&amp;gt;&amp;quot;,
&lt;br /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; // 36716495355546 DC
&lt;br /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; LAST);
&lt;br /&gt;
	
&lt;br /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; lr_end_sub_transaction(&amp;quot;AddCC&amp;quot;, LR_AUTO);
&lt;br /&gt;
	
&lt;br /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span style=&quot;background-color: rgb(178, 34, 34);&quot;&gt;&amp;nbsp; LogDataToFile(lr_eval_string(&amp;quot;{CUID},{CustomerEmail}&amp;quot;));&lt;/span&gt;
&lt;br /&gt;
	
&lt;br /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&lt;br /&gt;
	
&lt;br /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(atoi(lr_eval_string(&amp;quot;{RandNum}&amp;quot;)) &amp;lt; lr_get_attrib_long(&amp;quot;GetCCHash&amp;quot;))
&lt;br /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&lt;br /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; web_reg_save_param(&amp;quot;ERR&amp;quot;,&amp;quot;NotFound=Warning&amp;quot;,&amp;quot;LB/IC=Message ID: &amp;quot;,&amp;quot;RB/IC=||&amp;quot;,LAST);
&lt;br /&gt;
	
&lt;br /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; lr_start_sub_transaction(&amp;quot;GetCCHash&amp;quot;,&amp;quot;CloudCreateAccount&amp;quot;);
&lt;br /&gt;
	
&lt;br /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; web_custom_request(&amp;quot;Cloud Credit Card&amp;quot;,
&lt;br /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;quot;URL=http://cloudcart.barnesandnoble.com/CloudService/getCCHash&amp;quot;,
&lt;br /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;quot;Method=POST&amp;quot;,&amp;nbsp;&amp;nbsp;
&lt;br /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;quot;RecContentType=text/html&amp;quot;,
&lt;br /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;quot;Referer=http://cloudcart.barnesandnoble.com/&amp;quot;,
&lt;br /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;quot;Mode=HTTP&amp;quot;,
&lt;br /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;quot;Body=&amp;lt;CProfile email=\&amp;quot;\&amp;quot; password=\&amp;quot;\&amp;quot; firstName=\&amp;quot;\&amp;quot; lastName=\&amp;quot;\&amp;quot; hintQuestionID=\&amp;quot;\&amp;quot; hintAnswer=\&amp;quot;\&amp;quot; customerID=\&amp;quot;{CUID}\&amp;quot;&amp;nbsp; verNo=\&amp;quot;2\&amp;quot;/&amp;gt;&amp;quot;,
&lt;br /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; LAST);
&lt;br /&gt;
	
&lt;br /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; lr_end_sub_transaction(&amp;quot;GetCCHash&amp;quot;, LR_AUTO);
&lt;br /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&lt;br /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;}
&lt;br /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;else
&lt;br /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;{
&lt;br /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lr_error_message(&amp;quot;CustomerID returned blank for email: %s.&amp;nbsp; Error: %s&amp;quot;,lr_eval_string(&amp;quot;{CustomerEmail}&amp;quot;),lr_eval_string(&amp;quot;{ERRCREATEACCOUNT}&amp;quot;));
&lt;br /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;}
&lt;br /&gt;
	
&lt;br /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;lr_end_sub_transaction(&amp;quot;CloudCreateAccount&amp;quot;, LR_AUTO);
&lt;br /&gt;
	
&lt;br /&gt;
	
&lt;br /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;return 0;
&lt;br /&gt;
	}
&lt;br /&gt;
	&amp;nbsp;&lt;/p&gt;</description>
<category>Loadrunner Vugen Scripting</category>
<guid isPermaLink="true">http://khemlall.info/Forum/question2answer/index.php?qa=72&amp;qa_1=sample-creating-a-new-account-email-address-loadrunner</guid>
<pubDate>Sun, 27 Mar 2011 14:50:19 +0000</pubDate>
</item>
<item>
<title>sample Get attribute Long</title>
<link>http://khemlall.info/Forum/question2answer/index.php?qa=71&amp;qa_1=sample-get-attribute-long</link>
<description>double PERCENT_CHECK_ORDER_STATUS = lr_get_attrib_long(&amp;quot;PERCENT_CHECK_ORDER_STATUS&amp;quot;);&lt;br /&gt;
double View_order_status= lr_get_attrib_long(&amp;quot;View_order_status&amp;quot;);&lt;br /&gt;
double Account_home = lr_get_attrib_long(&amp;quot;Account_home&amp;quot;);&lt;br /&gt;
double Change_email_password= lr_get_attrib_long(&amp;quot;Change_email_password&amp;quot;);&lt;br /&gt;
double Communication_preferences = lr_get_attrib_long(&amp;quot;Communication_preferences&amp;quot;);&lt;br /&gt;
double Check_gift_card_balance= lr_get_attrib_long(&amp;quot;Check_gift_card_balance&amp;quot;);&lt;br /&gt;
double manage_credit_card = lr_get_attrib_long(&amp;quot;manage_credit_card&amp;quot;);&lt;br /&gt;
double change_default_payment_method = lr_get_attrib_long(&amp;quot;change_default_payment_method&amp;quot;);&lt;br /&gt;
double Add_new_credit_card = lr_get_attrib_long(&amp;quot;Add_new_credit_card&amp;quot;);&lt;br /&gt;
double manageAddress = lr_get_attrib_double(&amp;quot;manageddress&amp;quot;);&lt;br /&gt;
double Promo_details_consumers = lr_get_attrib_double(&amp;quot;Promo_details_consumers&amp;quot;);&lt;br /&gt;
double PromoDetailsPage = lr_get_attrib_double(&amp;quot;PromoDetailsPage&amp;quot;);&lt;br /&gt;
double membership_signin = lr_get_attrib_double(&amp;quot;membership_signin&amp;quot;);&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
lr_start_transaction(&amp;quot;Account_page&amp;quot;);&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;web_url(&amp;quot;service.aspx&amp;quot;,&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;quot;URL=&lt;A HREF=&quot;http://cart4.barnesandnoble.com/services/service.aspx?stage=vcart&amp;amp;outformat=1&amp;amp;callback=cbVCART&quot; rel=&quot;nofollow&quot;&gt;http://cart4.barnesandnoble.com/services/service.aspx?stage=vcart&amp;amp;outformat=1&amp;amp;callback=cbVCART&lt;/A&gt;&amp;quot;,&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;quot;Resource=0&amp;quot;,&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;quot;RecContentType=text/html&amp;quot;,&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;quot;Referer=&lt;A HREF=&quot;http://www.barnesandnoble.com/&quot; rel=&quot;nofollow&quot;&gt;http://www.barnesandnoble.com/&lt;/A&gt;&amp;quot;,&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;quot;Snapshot=t5.inf&amp;quot;,&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;quot;Mode=HTML&amp;quot;,&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;LAST);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;lr_end_transaction(&amp;quot;Account_page&amp;quot;, LR_AUTO);&lt;br /&gt;
&lt;br /&gt;
if (lr_get_attrib_double(&amp;quot;RegularOP&amp;quot;) != 0)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;lr_save_string(&amp;quot;hp&amp;quot;, &amp;quot;Path&amp;quot; );&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;//lr_save_string(&amp;quot;hp&amp;quot;, &amp;quot;hpPathwww&amp;quot; );&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;else{&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;lr_save_string(&amp;quot;&amp;quot;, &amp;quot;Path&amp;quot; );&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;//lr_save_string(&amp;quot;www&amp;quot;, &amp;quot;hpPathwww&amp;quot; );&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if (signin()==LR_PASS)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;lr_think_time (5);&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;//forgetpassword();&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;// &amp;nbsp;&amp;nbsp;&amp;nbsp;orders_awaiting_feedback();&lt;br /&gt;
//wishlistDestination();&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;// orders_awaiting_feedback();&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;// sign_out_disccusion_redirect();&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;// signout_regular();&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;// sign_out();&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;// &amp;nbsp;manage_credit_card_1();&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;// instant_purchase();&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;//Change_Default_payment_mtd();&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;//Membership_signin_1(); &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;// PromoDetailsPage_1();&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if(atoi(lr_eval_string(&amp;quot;{RANDOM}&amp;quot;)) &amp;lt;= lr_get_attrib_double(&amp;quot;PERCENT_CHECK_ORDER_STATUS&amp;quot;)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;amp;&amp;amp; (atoi(lr_eval_string(&amp;quot;{Orders_numbers_link_count}&amp;quot;)) &amp;gt; 0)) &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Check_order_status_1();&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;lr_think_time (5);&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;else&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;lr_message(&amp;quot;Sorry this account doesn't seem to have any recent orders, currectly we found no order in this account %s&amp;quot;, lr_eval_string(&amp;quot;{Orders_numbers_link_count}&amp;quot;));&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if(atoi(lr_eval_string(&amp;quot;{RANDOM}&amp;quot;)) &amp;lt;= lr_get_attrib_double(&amp;quot;manageddress&amp;quot;))&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;manageAddress_1();&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;lr_think_time (5);&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;br /&gt;
&lt;br /&gt;
//promo&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if(atoi(lr_eval_string(&amp;quot;{RANDOM}&amp;quot;)) &amp;lt;= lr_get_attrib_double(&amp;quot;PromoDetailsPage&amp;quot;))&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;PromoDetailsPage_1();&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;lr_think_time (5);&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if(atoi(lr_eval_string(&amp;quot;{RANDOM}&amp;quot;)) &amp;lt;= lr_get_attrib_double(&amp;quot;membership_signin&amp;quot;))&lt;br /&gt;
{&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Membership_signin_1();&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;lr_think_time (5);&lt;br /&gt;
&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
//adding&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if(atoi(lr_eval_string(&amp;quot;{RANDOM}&amp;quot;)) &amp;lt;= lr_get_attrib_double(&amp;quot;Forget_password&amp;quot;))&lt;br /&gt;
{&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;forgetpassword();&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;lr_think_time (5);&lt;br /&gt;
&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if(atoi(lr_eval_string(&amp;quot;{RANDOM}&amp;quot;)) &amp;lt;= lr_get_attrib_double(&amp;quot; View_order_status&amp;quot;))&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;View_order_status_1();&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;lr_think_time (5);&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if(atoi(lr_eval_string(&amp;quot;{RANDOM}&amp;quot;)) &amp;lt;= lr_get_attrib_double(&amp;quot;Promo_details_consumers&amp;quot;))&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Promo_details_consumer();&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;lr_think_time (5);&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if(atoi(lr_eval_string(&amp;quot;{RANDOM}&amp;quot;)) &amp;lt;= lr_get_attrib_double(&amp;quot;Account_home&amp;quot;))&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Account_home_1();&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;lr_think_time (5);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if(atoi(lr_eval_string(&amp;quot;{RANDOM}&amp;quot;)) &amp;lt;= lr_get_attrib_double(&amp;quot;Change_email_password&amp;quot;))&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Change_email_password_1();&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;lr_think_time (5);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if(atoi(lr_eval_string(&amp;quot;{RANDOM}&amp;quot;)) &amp;lt;= lr_get_attrib_double(&amp;quot;Communication_preferences&amp;quot;))&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Communication_preferences_1();&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;lr_think_time (5);&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if(atoi(lr_eval_string(&amp;quot;{RANDOM}&amp;quot;)) &amp;lt;= lr_get_attrib_double(&amp;quot;Check_gift_card_balance&amp;quot;))&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Check_gift_card_balance_1();&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;lr_think_time (5);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if(atoi(lr_eval_string(&amp;quot;{RANDOM}&amp;quot;)) &amp;lt;= lr_get_attrib_double(&amp;quot;manage_credit_card&amp;quot;))&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;manage_credit_card_1();&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;lr_think_time (5);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if(atoi(lr_eval_string(&amp;quot;{RANDOM}&amp;quot;)) &amp;lt;= lr_get_attrib_double(&amp;quot;change_default_payment_method&amp;quot;))&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Change_Default_payment_mtd();&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;//change_default_payment_method_1();&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;lr_think_time (5);&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if(atoi(lr_eval_string(&amp;quot;{RANDOM}&amp;quot;)) &amp;lt;= lr_get_attrib_double(&amp;quot;Add_new_credit_card&amp;quot;))&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Add_new_credit_card_1();&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;lr_think_time (5);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if(atoi(lr_eval_string(&amp;quot;{RANDOM}&amp;quot;)) &amp;lt;= lr_get_attrib_double(&amp;quot;SIGNOUT_DISCUSSION_REDIRECT&amp;quot;))&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;sign_out_disccusion_redirect();&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;lr_think_time (5);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if(atoi(lr_eval_string(&amp;quot;{RANDOM}&amp;quot;)) &amp;lt;= lr_get_attrib_double(&amp;quot;Regularsignout&amp;quot;))&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;signout_regular();&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;lr_think_time (5);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if(atoi(lr_eval_string(&amp;quot;{RANDOM}&amp;quot;)) &amp;lt;= lr_get_attrib_double(&amp;quot;Signin_wishlistDestinationmainaccount&amp;quot;))&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;signin_wishlist_dest();&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;lr_think_time (5);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;br /&gt;
&lt;br /&gt;
//main wishlist&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if(atoi(lr_eval_string(&amp;quot;{RANDOM}&amp;quot;)) &amp;lt;= lr_get_attrib_double(&amp;quot;RedirecttoMainwishlist&amp;quot;))&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;wishlistDestination();&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;lr_think_time (5);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;br /&gt;
&lt;br /&gt;
//orders awaiting Feedback&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if(atoi(lr_eval_string(&amp;quot;{RANDOM}&amp;quot;)) &amp;lt;= lr_get_attrib_double(&amp;quot;Orders_awaitingFeedback&amp;quot;))&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;orders_awaiting_feedback();&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;lr_think_time (5);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;return 0;&lt;br /&gt;
}</description>
<category>Loadrunner Vugen Scripting</category>
<guid isPermaLink="true">http://khemlall.info/Forum/question2answer/index.php?qa=71&amp;qa_1=sample-get-attribute-long</guid>
<pubDate>Sun, 27 Mar 2011 14:44:18 +0000</pubDate>
</item>
<item>
<title>Just Simple Action If setup</title>
<link>http://khemlall.info/Forum/question2answer/index.php?qa=68&amp;qa_1=just-simple-action-if-setup</link>
<description>Hi Guys feel free to put your comment however here is the simple setup you can do for your script in the action.. i will put various ways&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
Action()&lt;br /&gt;
{&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if (Search() == LR_PASS)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if(RentNow() == LR_PASS)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if(CreateAccount() == LR_PASS)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if(EnterNewCustomerInfo() == LR_PASS)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if(RentNowAgain() == LR_PASS)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if(EnterCC() == LR_PASS)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if(EnterBillingAddress() == LR_PASS)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;return LR_PASS;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;return 0;&lt;br /&gt;
}</description>
<category>Loadrunner Vugen Scripting</category>
<guid isPermaLink="true">http://khemlall.info/Forum/question2answer/index.php?qa=68&amp;qa_1=just-simple-action-if-setup</guid>
<pubDate>Sun, 27 Mar 2011 14:38:48 +0000</pubDate>
</item>
<item>
<title>ABOUT LR_PARMARR_RANDOM</title>
<link>http://khemlall.info/Forum/question2answer/index.php?qa=67&amp;qa_1=about-lr_parmarr_random</link>
<description>

&lt;p&gt;
	&amp;nbsp;&lt;/p&gt;


&lt;p style=&quot;margin-top: 0px; margin-bottom: 5px;&quot;&gt;
	web_save_header(RESPONSE, &amp;quot;header&amp;quot;);
&lt;br /&gt;
	
&lt;br /&gt;
	web_reg_save_param( &amp;quot;ship_list&amp;quot;, &amp;quot;Convert=HTML_TO_TEXT&amp;quot;, &amp;quot;Notfound=warning&amp;quot;, &amp;quot;LB=Shipment_list.aspx?&amp;quot;, &amp;quot;RB='&amp;quot;, &amp;quot;Ord=All&amp;quot;, &amp;quot;Search=body&amp;quot;, LAST );&lt;/p&gt;


&lt;p style=&quot;margin-top: 0px; margin-bottom: 5px;&quot;&gt;
	&amp;nbsp;&lt;/p&gt;


&lt;p style=&quot;margin-top: 0px; margin-bottom: 5px;&quot;&gt;
	&amp;nbsp;&lt;/p&gt;


&lt;hr /&gt;


&lt;p&gt;
	web_reg_save_param(&amp;quot;GPMP_Param2&amp;quot;,
&lt;br /&gt;
	&amp;quot;LB/ic=/fo_ConfirmSubmit?OpenForm&amp;amp;p=M00&amp;amp;ret=&amp;quot;,
&lt;br /&gt;
	&amp;quot;RB/ic=&amp;amp;&amp;quot;,
&lt;br /&gt;
	&amp;quot;Ord=1&amp;quot;,
&lt;br /&gt;
	LAST);
&lt;br /&gt;
	
&lt;br /&gt;
	web_reg_save_param( &amp;quot;VIEWSTATE_2&amp;quot;, &amp;quot;LB=__VIEWSTATE\&amp;quot; value=\&amp;quot;&amp;quot;, &amp;quot;RB=\&amp;quot;&amp;quot;, &amp;quot;Ord=1&amp;quot;, &amp;quot;Search=Body&amp;quot;, &amp;quot;RelFrameId=1&amp;quot;, &amp;quot;Convert=HTML_TO_URL&amp;quot;, LAST );
&lt;br /&gt;
	
&lt;br /&gt;
	web_reg_save_param( &amp;quot;IdPA&amp;quot;, &amp;quot;LB=IdPA=&amp;quot;, &amp;quot;RB=&amp;amp;&amp;quot;, &amp;quot;Ord=1&amp;quot;, &amp;quot;Search=Body&amp;quot;, &amp;quot;RelFrameId=1&amp;quot;, LAST );
&lt;br /&gt;
	
&lt;br /&gt;
	web_reg_save_param( &amp;quot;IdDA&amp;quot;, &amp;quot;LB=0/&amp;quot;, &amp;quot;RB=?&amp;quot;, &amp;quot;Ord=2&amp;quot;, &amp;quot;Search=Body&amp;quot;, &amp;quot;RelFrameId=1&amp;quot;, &amp;quot;Notfound=warning&amp;quot;, LAST );
&lt;br /&gt;
	
&lt;br /&gt;
	web_set_max_html_param_len( &amp;quot;300000&amp;quot; );
&lt;br /&gt;
	web_reg_save_param( &amp;quot;VIEWSTATE_1&amp;quot;, &amp;quot;LB=__VIEWSTATE\&amp;quot; value=\&amp;quot;&amp;quot;, &amp;quot;RB=\&amp;quot;&amp;quot;, &amp;quot;Ord=1&amp;quot;, &amp;quot;Search=Body&amp;quot;, &amp;quot;RelFrameId=1&amp;quot;, LAST );
&lt;br /&gt;
	
&lt;br /&gt;
	web_reg_save_param(&amp;quot;pRedirect2URL&amp;quot;,&amp;quot;LB/ic=HTTP/1.1 &amp;quot;, &amp;quot;RB= &amp;quot;, &amp;quot;Search=Headers&amp;quot; ,&amp;quot;ORD=ALL&amp;quot;, LAST);&amp;nbsp;
&lt;br /&gt;
	sprintf(last, &amp;quot;{pRedirect2URL_%s}&amp;quot;, lr_eval_string(&amp;quot;{pRedirect2URL_count}&amp;quot;));&lt;/p&gt;


&lt;hr /&gt;


&lt;p style=&quot;margin-top: 0px; margin-bottom: 5px;&quot;&gt;
	&amp;nbsp;&lt;/p&gt;


&lt;p style=&quot;margin-top: 0px; margin-bottom: 5px;&quot;&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; web_convert_param(&amp;quot;VIEWSTATE_13_URL&amp;quot;,&amp;nbsp;
&lt;br /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;quot;SourceString={VIEWSTATE_13}&amp;quot;,&amp;nbsp;
&lt;br /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;quot;SourceEncoding=HTML&amp;quot;,&amp;nbsp;
&lt;br /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;quot;TargetEncoding=URL&amp;quot;,&amp;nbsp;
&lt;br /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;LAST);&lt;/p&gt;


&lt;hr /&gt;


&lt;p style=&quot;margin-top: 0px; margin-bottom: 5px;&quot;&gt;
	int n,rnd_val;
&lt;br /&gt;
	char buf_ID[32];&lt;/p&gt;


&lt;p style=&quot;margin-top: 0px; margin-bottom: 5px;&quot;&gt;
	srand(time(NULL));&amp;nbsp;
&lt;br /&gt;
	...&lt;/p&gt;


&lt;p style=&quot;margin-top: 0px; margin-bottom: 5px;&quot;&gt;
	web_reg_save_param(&amp;quot;ARIDs&amp;quot;,
&lt;br /&gt;
	&amp;quot;LB/ic=href=\&amp;quot;ardetail.cfm?AR=&amp;quot;,
&lt;br /&gt;
	&amp;quot;RB=\&amp;quot;&amp;quot;,
&lt;br /&gt;
	&amp;quot;Ord=All&amp;quot;,
&lt;br /&gt;
	&amp;quot;Notfound=warning&amp;quot;,
&lt;br /&gt;
	LAST);&lt;/p&gt;


&lt;p style=&quot;margin-top: 0px; margin-bottom: 5px;&quot;&gt;
	//Request&lt;/p&gt;


&lt;p style=&quot;margin-top: 0px; margin-bottom: 5px;&quot;&gt;
	n = atoi(lr_eval_string(&amp;quot;{ARIDs_count}&amp;quot;));
&lt;br /&gt;
	
&lt;br /&gt;
	if (n &amp;gt; 0) { // Found
&lt;br /&gt;
	
&lt;br /&gt;
	rnd_val = rand()%n + 1;
&lt;br /&gt;
	
&lt;br /&gt;
	sprintf(buf_ID, &amp;quot;{ARIDs_%d}&amp;quot;, rnd_val);
&lt;br /&gt;
	lr_save_string(lr_eval_string(buf_ID),&amp;quot;ARID&amp;quot;);
&lt;br /&gt;
	
&lt;br /&gt;
	// Use: {ARID} as param&lt;/p&gt;


&lt;p style=&quot;margin-top: 0px; margin-bottom: 5px;&quot;&gt;
	&amp;nbsp;&lt;/p&gt;


&lt;p style=&quot;margin-top: 0px; margin-bottom: 5px;&quot;&gt;
	&lt;strong&gt;&lt;span style=&quot;text-decoration: underline;&quot;&gt;Another version more accurate&lt;/span&gt;:&lt;/strong&gt;&lt;/p&gt;


&lt;p style=&quot;margin-top: 0px; margin-bottom: 5px;&quot;&gt;
	char *valstr;
&lt;br /&gt;
	if( valstr =&amp;nbsp;&lt;strong style=&quot;font-weight: bold;&quot;&gt;lr_paramarr_random&lt;/strong&gt;(&amp;quot;ARIDs&amp;quot;) ){
&lt;br /&gt;
	&amp;nbsp; lr_save_string(valstr,&amp;quot;ARID&amp;quot;);
&lt;br /&gt;
	&amp;nbsp; ...
&lt;br /&gt;
	}&lt;/p&gt;


&lt;p style=&quot;margin-top: 0px; margin-bottom: 5px;&quot;&gt;
	&amp;nbsp;&lt;/p&gt;</description>
<guid isPermaLink="true">http://khemlall.info/Forum/question2answer/index.php?qa=67&amp;qa_1=about-lr_parmarr_random</guid>
<pubDate>Fri, 25 Mar 2011 02:14:57 +0000</pubDate>
</item>
<item>
<title>Function web_reg_save_param and arrays</title>
<link>http://khemlall.info/Forum/question2answer/index.php?qa=65&amp;qa_1=function-web_reg_save_param-and-arrays</link>
<description>

&lt;p&gt;
	&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: separate; color: rgb(0, 0, 0); font-family: 'Times New Roman'; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial,serif; font-size: 13px; line-height: 22px;&quot;&gt;This is familiar coding where p_EmpID will be captured&amp;nbsp;with&amp;nbsp;LB of EMP_ID= and RB of “.&amp;nbsp; However, another parameter to note in&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;web_reg_save_param&lt;/strong&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;is the ORD, or Ordinal.&amp;nbsp; This specifies the locaiton of the value to capture if multiple occurrences of LB and RB exists.&amp;nbsp; By default, the value is ORD=ALL which meant that all occurrences will be captured.&amp;nbsp; When all occurances are captured, they are stored in an array.&amp;nbsp; The total number of values captured can be accessed by placing a _count suffix after the parameter name.&amp;nbsp; Example (note, Total_Employees have to be defined as an integer in the script):&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;


&lt;p style=&quot;margin: 14px 0px; padding: 0px; border-width: 0px; outline-width: 0px; font-weight: inherit; font-style: inherit; font-size: 13px; font-family: inherit; vertical-align: baseline; background-color: transparent;&quot;&gt;
	&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: separate; color: rgb(0, 0, 0); font-family: 'Times New Roman'; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial,serif; font-size: 13px; line-height: 22px;&quot;&gt;Total_Employees=atoi(atoi(lr_eval_string(“{p_EmpID_count}”­));&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;


&lt;p style=&quot;margin: 14px 0px; padding: 0px; border-width: 0px; outline-width: 0px; font-weight: inherit; font-style: inherit; font-size: 13px; font-family: inherit; vertical-align: baseline; background-color: transparent;&quot;&gt;
	&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: separate; color: rgb(0, 0, 0); font-family: 'Times New Roman'; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial,serif; font-size: 13px; line-height: 22px;&quot;&gt;While to access a specified value in the array, you&amp;nbsp;will put an index&amp;nbsp;after the&amp;nbsp;parameter in&amp;nbsp;_{index} format.&amp;nbsp; Example illustrates reading the 2nd Employee ID in the array:&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;


&lt;p style=&quot;margin: 14px 0px; padding: 0px; border-width: 0px; outline-width: 0px; font-weight: inherit; font-style: inherit; font-size: 13px; font-family: inherit; vertical-align: baseline; background-color: transparent;&quot;&gt;
	&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: separate; color: rgb(0, 0, 0); font-family: 'Times New Roman'; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial,serif; font-size: 13px; line-height: 22px;&quot;&gt;Current_EmployeeID=atoi(lr_eval_string(“{p_Emp_ID_2}”­));&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;


&lt;p style=&quot;margin: 14px 0px; padding: 0px; border-width: 0px; outline-width: 0px; font-weight: inherit; font-style: inherit; font-size: 13px; font-family: inherit; vertical-align: baseline; background-color: transparent;&quot;&gt;
	&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: separate; color: rgb(0, 0, 0); font-family: 'Times New Roman'; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial,serif; font-size: 13px; line-height: 22px;&quot;&gt;Of course,&amp;nbsp;these are just methods to&amp;nbsp;read the values extracted for your scripting work.&amp;nbsp; Hopefully, you will find it&amp;nbsp;easier&amp;nbsp;when you are performing scripting work.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;


&lt;p style=&quot;margin: 14px 0px; padding: 0px; border-width: 0px; outline-width: 0px; font-weight: inherit; font-style: inherit; font-size: 13px; font-family: inherit; vertical-align: baseline; background-color: transparent;&quot;&gt;
	&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: separate; color: rgb(0, 0, 0); font-family: 'Times New Roman'; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial,serif; font-size: 13px; line-height: 22px;&quot;&gt;NOTE (21 Oct 2008):&amp;nbsp; Corrections to the default value of the Ordinal parameter.&amp;nbsp; It should be ORD=1, meaning the first occurence, instead of ORD=ALL.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;</description>
<category>Loadrunner Vugen Scripting</category>
<guid isPermaLink="true">http://khemlall.info/Forum/question2answer/index.php?qa=65&amp;qa_1=function-web_reg_save_param-and-arrays</guid>
<pubDate>Thu, 24 Mar 2011 21:53:09 +0000</pubDate>
</item>
<item>
<title>Creating Percentage Loadrunner Function</title>
<link>http://khemlall.info/Forum/question2answer/index.php?qa=64&amp;qa_1=creating-percentage-loadrunner-function</link>
<description>public string GetNextStep(string[] ParamNames)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Random rnd = new Random();&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;int[] percentArray = new int[ParamNames.Length];&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;int index = 0;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;int totalPerct = 0;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;// Get a random number&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;int stepPerct = rnd.Next(1, 101);&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;// Build an array of int percentages&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;for (int i = 0; i &amp;lt; ParamNames.Length; i++)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;percentArray[i] = lr.get_attrib_long(ParamNames[i]);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;// Make sure all the percentages add up to 100%&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;foreach (int testPercentage in percentArray)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;totalPerct += testPercentage;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if (totalPerct != 100)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;return &amp;quot;error&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;// Iterate through each percentage&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;foreach (int curPercentage in percentArray)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;// Is this a winner?&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if (stepPerct &amp;lt;= curPercentage)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;return ParamNames[index]; &amp;nbsp;&amp;nbsp;// Yup, return the index&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;// update the locals&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;stepPerct = stepPerct - curPercentage;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;index++;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;return &amp;quot;error&amp;quot;;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;public string GetNextStep(string[] ParamNames)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Random rnd = new Random();&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;int[] percentArray = new int[ParamNames.Length];&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;int index = 0;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;int totalPerct = 0;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;// Get a random number&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;int stepPerct = rnd.Next(1, 101);&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;// Build an array of int percentages&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;for (int i = 0; i &amp;lt; ParamNames.Length; i++)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;percentArray[i] = lr.get_attrib_long(ParamNames[i]);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;// Make sure all the percentages add up to 100%&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;foreach (int testPercentage in percentArray)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;totalPerct += testPercentage;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if (totalPerct != 100)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;return &amp;quot;error&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;// Iterate through each percentage&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;foreach (int curPercentage in percentArray)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;// Is this a winner?&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if (stepPerct &amp;lt;= curPercentage)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;return ParamNames[index]; &amp;nbsp;&amp;nbsp;// Yup, return the index&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;// update the locals&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;stepPerct = stepPerct - curPercentage;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;index++;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;return &amp;quot;error&amp;quot;;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}</description>
<category>Loadrunner Vugen Scripting</category>
<guid isPermaLink="true">http://khemlall.info/Forum/question2answer/index.php?qa=64&amp;qa_1=creating-percentage-loadrunner-function</guid>
<pubDate>Thu, 24 Mar 2011 18:08:14 +0000</pubDate>
</item>
</channel>
</rss>