<?xml version="1.0" encoding="UTF-8"?><!-- generator="WordPress/2.6.2" -->
<rss version="0.92">
<channel>
	<title>KnowledgeInbox (By Tarun Lalwani)</title>
	<link>http://knowledgeinbox.com</link>
	<description>Because knowledge knows no limit...</description>
	<lastBuildDate>Sun, 26 Oct 2008 18:32:15 +0000</lastBuildDate>
	<docs>http://backend.userland.com/rss092</docs>
	<language>en</language>
	
	<item>
		<title>Difference between IE6 and IE7</title>
		<description><![CDATA[This article will take you over various differences between Internet Explorer 6 (IE6) and Internet Explorer 7 (IE7). These difference would be from QTP automation perspective
Difference #1 - Alert dialog title
IE6 alert dialog title is &#8220;Microsoft Internet Explorer&#8221; and for IE7 the alert dialog title is &#8220;Windows Internet explorer&#8221;

Both windows can be easily supported at [...]]]></description>
		<link>http://knowledgeinbox.com/qtp/difference-between-ie6-and-ie7/</link>
			</item>
	<item>
		<title>How to generate random test data?</title>
		<description><![CDATA[At times it is required that we use unique test data for every single run of an automation script. For Ex – for testing a user registration page we would need a username which already does not exists in the database. Though there are various ways to overcome this unique username issue but we will [...]]]></description>
		<link>http://knowledgeinbox.com/qtp/how-to/test-data/how-to-generate-random-test-data/</link>
			</item>
	<item>
		<title>When to change QTP Web ReplayType Setting?</title>
		<description><![CDATA[What is ReplayType?
ReplayType is QTP Web Add-in setting. It can be used to change how the events are replayed on the browser. There are two modes of ReplayType

Events (1) - Replay of events using the Browser methods (something similar to DOM).
Mouse (2) - Replay of events using the mouse and keyboard simulation.

When to change ReplayType?
Use [...]]]></description>
		<link>http://knowledgeinbox.com/qtp/advacned/when-to-change-qtp-web-replaytype-setting/</link>
			</item>
	<item>
		<title>How to check for error pages (Page cannot be displayed)?</title>
		<description><![CDATA[This is the first article in my &#8220;How to?&#8221; series and i hope there would be many more that i would be able to write in future.
While testing any web application there can be instances where the application is not available or you get a page cannot be displayed, internal server error etc and need [...]]]></description>
		<link>http://knowledgeinbox.com/qtp/how-to/web-how-to-qtp/how-to-check-for-error-pages-page-cannot-be-displayed/</link>
			</item>
	<item>
		<title>&#8220;The parameter is incorrect&#8221; error when typing into a WebEdit</title>
		<description><![CDATA[Sometimes QTP throws a &#8220;The parameter is incorrect&#8221; error when setting a text in a WebEdit
Below is a test textbox to reproduce the issue
WebEdit with Max Length 4:

The error can be reproduced using below code

View Code QTP'Will work fine
Browser&#40;&#34;KnowledgeInbox&#34;&#41;.Page&#40;&#34;KnowledgeInbox&#34;&#41;.WebEdit&#40;&#34;txtMaxTest&#34;&#41;.Set &#34;1234&#34;
&#160;
'Will throw a parameter is incorrect error
Browser&#40;&#34;KnowledgeInbox&#34;&#41;.Page&#40;&#34;KnowledgeInbox&#34;&#41;.WebEdit&#40;&#34;txtMaxTest&#34;&#41;.Set &#34;12345&#34;

There are two root causes of this issue
Root Cause [...]]]></description>
		<link>http://knowledgeinbox.com/qtp/issues/the-parameter-is-incorrect-error-when-typing-into-a-webedit/</link>
			</item>
	<item>
		<title>Identifying controls using labels - Approach 1</title>
		<description><![CDATA[Identifying objects correctly and robustly in an application is very important in Automation. In case you have automated any CRM application you might have noticed objects are recognized by a dynamic name

View Code QTPBrowser&#40;&#34;Browser&#34;&#41;.Page&#40;&#34;Page&#34;&#41;.WebEdit&#40;&#34;TS_EXTRA_FEILD40&#34;&#41;.Set &#34;AAA&#34;

Now after a build the code or object might change to

View Code QTPBrowser&#40;&#34;Browser&#34;&#41;.Page&#40;&#34;Page&#34;&#41;.WebEdit&#40;&#34;TS_EXTRA_FEILD42&#34;&#41;.Set &#34;AAA&#34;

These object changes are unpredictable and cause scripts [...]]]></description>
		<link>http://knowledgeinbox.com/qtp/advacned/identifying-controls-using-labels-approach-1/</link>
			</item>
	<item>
		<title>DP Part 1 - Overview</title>
		<description><![CDATA[Introduction
This document demonstrates the usage of Descriptive programming in QTP 8.20. It also discusses situations where Descriptive programming can be used. Using Descriptive Programming automation scripts can be created even if the application has not been developed.

 Descriptive Programming

Whenever QTP records any action on any object of an application, it adds some description on how [...]]]></description>
		<link>http://knowledgeinbox.com/qtp/dp/dp-part-1-overview/</link>
			</item>
	<item>
		<title>Implementing elegant if else</title>
		<description><![CDATA[A typical if else condition in VBScript would look like below

View Code QTPIf &#40;message = &#34;ok&#34;&#41; Then 
    Msgbox &#34;I am calling ok&#34;
Else
    Msgbox &#34;I am calling not ok&#34;
End if

VB provides a elegant function named IIf for such small if else conditions. The function can be easily witten in [...]]]></description>
		<link>http://knowledgeinbox.com/vbscript/implementing-elegant-if-else/</link>
			</item>
	<item>
		<title>General run error when clicking on button</title>
		<description><![CDATA[General run error are hard to debug and any extra information available to fix the issue is always helpful. Sometimes QTP starts throwing General run error in click events of WebButton. Digging into the source of the issue using the technique mentioned in Debugging General run error we would see a &#8220;Element not found&#8221; error [...]]]></description>
		<link>http://knowledgeinbox.com/qtp/issues/general-run-error-when-clicking-on-button/</link>
			</item>
	<item>
		<title>Implementing Callback in VBScript</title>
		<description><![CDATA[Callback is a function which is executed on completion of a registered event. VBScript is not a event driven language, which means we are limited in terms of events for which callback can be implemented.
This article will demonstrate how to implement a callback on finish/terminate event. This finish/terminate event could be one of the following

The [...]]]></description>
		<link>http://knowledgeinbox.com/vbscript/implementing-callback-in-vbscript/</link>
			</item>
	<item>
		<title>Site upgrade in progress&#8230;.</title>
		<description><![CDATA[Please visit http://old.knowledgeinbox.com till the new website is up
Phase 1 of the site upgrade is complete
Coming soon - Phase 2 will allow users to register and post comments&#8230;
]]></description>
		<link>http://knowledgeinbox.com/qtp/site-upgrade-in-progress/</link>
			</item>
	<item>
		<title>VBScript Part 2 - Variables</title>
		<description><![CDATA[What is variable?
 Variable is a named container used to store values
 
Declaring a variable
 There are three possible ways to declare a variable

View Code QTPDim &#60;VariableName&#62;
Public &#60;VariableName&#62;
Private &#60;VariableName&#62;

Ex –

View Code QTPDim x, y, z
Dim a
Dim b, c

Variable naming rules
 Variable names should following the below rules

Must not exceed 255 characters.
Must be unique in the [...]]]></description>
		<link>http://knowledgeinbox.com/vbscript/vbscript-part-2-variables/</link>
			</item>
	<item>
		<title>WebFile incosistent errors</title>
		<description><![CDATA[This issue is one of the very strange one that happens sometimes and works sometimes. So you have a line of code setting the file path in a WebFile element

View Code QTPBrowser&#40;&#34;B&#34;&#41;.Page&#40;&#34;P&#34;&#41;.WebFile&#40;&#34;F&#34;&#41;.Set &#34;C:\Test.txt&#34;
Browser&#40;&#34;B&#34;&#41;.Page&#40;&#34;P&#34;&#41;.WebButton&#40;&#34;Upload&#34;&#41;.Click

Above code might work fine sometimes, but few times you might find your web application throwing an error ex - &#8220;File not found&#8221;. [...]]]></description>
		<link>http://knowledgeinbox.com/qtp/issues/webfile-incosistent-errors/</link>
			</item>
	<item>
		<title>Extending Dictionary Object</title>
		<description><![CDATA[Dictionary object allows storing key value pairs. A dictionary object can be used for easy lookup of values. Dictionary is a not a QTP specific functionality and is available in normal VBScript as well.
Creating the Dictionary
A dictionary object can be created using CreateObject for COM class &#8220;Scripting.Dictionary&#8221;. The code below shows how to create the [...]]]></description>
		<link>http://knowledgeinbox.com/vbscript/extending-dictionary-object/</link>
			</item>
	<item>
		<title>QTP FAQ, Tips &#038; Tricks</title>
		<description><![CDATA[The article provides answers to most frequently asked question on Quick test pro 8.2. It also provides some tips and tricks. A must read for people working on QTP.
Data Table
Two Types of data tables

Global data sheet: Accessible to all the actions
Local data sheet: Accessible to the associated action only

Usage:

View Code QTPDataTable&#40;&#34;Column Name&#34;,dtGlobalSheet&#41; for Global data [...]]]></description>
		<link>http://knowledgeinbox.com/qtp/qtp-faq-tips-tricks/</link>
			</item>
	<item>
		<title>Checking all links on a Web page</title>
		<description><![CDATA[Checking all links on a website isn&#8217;t that easy as it might look. The scripts demonstrates on how to do it for a normal website. What it does is that it counts the links on the homepage and then one by one click on the links and close the popup window in case it&#8217;s opened [...]]]></description>
		<link>http://knowledgeinbox.com/qtp/checking-all-links-on-a-web-page/</link>
			</item>
	<item>
		<title>DP Part 2 - Converting OR based scripts to DP</title>
		<description><![CDATA[This article discusses how we can convert an Object repository based script to DP based script. For this we will do a simple recording of entering some text on Google.com search text box and clicking the Google search button
The QTP generated script would look something like below

View Code QTPSystemUtil.Run &#34;C:\Program Files\Internet Explorer\IEXPLORE.EXE&#34;
Browser&#40;&#34;Browser&#34;&#41;.Page&#40;&#34;Page&#34;&#41;.Sync
Browser&#40;&#34;Browser&#34;&#41;.Navigate &#34;http://www.google.com&#34;
Browser&#40;&#34;Browser&#34;&#41;.Page&#40;&#34;Google&#34;&#41;.WebEdit&#40;&#34;q&#34;&#41;.Set &#34;KnowledgeInbox&#34;
Browser&#40;&#34;Browser&#34;&#41;.Page&#40;&#34;Google&#34;&#41;.WebButton&#40;&#34;Google Search&#34;&#41;.Click

All [...]]]></description>
		<link>http://knowledgeinbox.com/qtp/dp/dp-part-2-converting-or-based-scripts-to-dp/</link>
			</item>
	<item>
		<title>DP Part 3 - Dummy properties</title>
		<description><![CDATA[In our Last DP Part 1 article we saw how to convert an OR based script into a DP based script. But what we didn’t discuss was the micclass property we used for the Browser. This article will go over various aspects of properties and introduce some terms that I use for DP
micclass
micclass represent the [...]]]></description>
		<link>http://knowledgeinbox.com/qtp/dp/dp-part-3-dummy-properties/</link>
			</item>
	<item>
		<title>DP Part 4 - Common mistakes</title>
		<description><![CDATA[This article would go over some common mistakes people make while using Descriptive Programming (DP) in QTP.
Using strings with Pattern
Let’s assume we want to click a link &#8220;Logout (Tarun)&#8221; on my web page. Two possible methods that can be used are
Method 1

View Code QTPBrowser&#40;&#34;miccclass:=Browser&#34;&#41;.Page&#40;&#34;micclass:=Page&#34;&#41;.Link&#40;&#34;text:=Logout (Tarun)&#34;&#41;.Click

Method 2

View Code QTPSet oDesc = Description.Create
oDesc&#40;&#34;text&#34;&#41;.Value = &#34;Logout (Tarun)&#34;
Browser&#40;&#34;miccclass:=Browser&#34;&#41;.Page&#40;&#34;micclass:=Page&#34;&#41;.Link&#40;oDesc&#41;.Click

Now both [...]]]></description>
		<link>http://knowledgeinbox.com/qtp/dp/dp-part-4-common-mistakes/</link>
			</item>
	<item>
		<title>Internet explorer replay issue</title>
		<description><![CDATA[There are times when below Navigate statement in QTP runs fine but does not Navigate to the actual website

View Code QTPBrowser&#40;&#34;XXX&#34;&#41;.Navigate &#34;http://www.knowledgeinbox.com&#34;

Now there can be different possible root cause for this issue. This article will take you throw most of them one by one
Possible Root Cause #1
There is a child modal dialog in IE waiting [...]]]></description>
		<link>http://knowledgeinbox.com/qtp/issues/internet-explorer-replay-issue/</link>
			</item>
	<item>
		<title>VLS Errors on QTP startup</title>
		<description><![CDATA[Sometimes when QTP is launched it starts throwing some funny error messages like VLSErrorHandle(0), VLSsetBroadcastInterval( 10 ) as shown in the images below
Resolution:
This issue occurs when QTP license manager (IMO) tries to write a log file to the Temp directory and QTP does not have access to the same. In my case just to demonstrate [...]]]></description>
		<link>http://knowledgeinbox.com/qtp/issues/vls-errors-on-qtp-startup/</link>
			</item>
	<item>
		<title>VBScript Part 1 - Introduction</title>
		<description><![CDATA[VBScript is a scripting language. A VBScript can be executed in various ways

Using Windows Script Host (wscript.exe and cscript.exe). Will cover this later
Inside HTML page for IE Browser.
Other host process which allows to execute code in VBScript format (ex - HP QuickTest Pro)

Internal methods and objects
VBScript provides method and objects that can be used in [...]]]></description>
		<link>http://knowledgeinbox.com/vbscript/vbscript-part-1-introduction/</link>
			</item>
	<item>
		<title>Custom Checkpoints</title>
		<description><![CDATA[QTP checkpoints are very limiting when it comes to maintenance and transport of the same across scripts. It is always best to avoid QTP checkpoints whenever possible and create your own checkpoint routines that does the work. This article will give a brief introduction on how create custom checkpoints or how to simulate checkpoint validations [...]]]></description>
		<link>http://knowledgeinbox.com/qtp/checkpoints-qtp/custom-checkpoints/</link>
			</item>
	<item>
		<title>File Encoding</title>
		<description><![CDATA[Yesterday (24th June 2008), one of SQAForums member had an query for changing the file format of any file from ANSI to UTF-8. Below is the link to the same query
http://www.sqaforums.com/showflat.php?Number=493915
Though i replied to the poster to do it using DotNetFactory but there was something that was still making me feel uneasy. With in few [...]]]></description>
		<link>http://knowledgeinbox.com/qtp/dotnetfactory/file-encoding/</link>
			</item>
	<item>
		<title>Debugging general run error</title>
		<description><![CDATA[So you got a General run error while running your code and are not sure on what to do?
What does General run error mean?

General run error occurs when an underlying source being accessed by QTP throws an error. QTP instead showing the error text shows a &#8220;General run error&#8221;.
A typical example would be the below [...]]]></description>
		<link>http://knowledgeinbox.com/qtp/issues/debugging-general-run-error/</link>
			</item>
</channel>
</rss>
