
Loading ...
January 27th, 2009
5:35 am
Web
When testing a field in a Web application, some of the common validations required are listed below
Validate the maximum length of data that can be inputed
Validate custom character set accepted
Validate only numeric values can be entered
Validate only alphanumeric can be entered
These validation can be tricky to perform because of the difference between how a user [...]
Register or Login to read the full article...
Tags used -
characters, Check, Input, input character, length, Max, Max Length, Numeric, numeric values, only, ReplayType, Reporter, Reportevent, text, Textbox, validate, validation, validations

Loading ...
The ‘on error resume next’ statement can be used in cases where we want to check existing of an object. In our case it is the DataTable sheet. The code shown below demonstrates the same
‘Author: Tarun Lalwani
‘Website: http://KnwoledgeInbox.com
‘Function to check if a DataTable sheet exists or not
Function IfDataSheetExist(ByVal SheetName)
IfDataSheetExist = True
On error resume next
Dim oTest
Set [...]
Read the full article...
Tags used -
Check, DataTable, Exist, Exists, GetSheet, sheet

Loading ...
Scripts with dynamic data can use different types of DataTable parameters. Ex - A script which needs to check filter on different columns of a Table might use filters on 2 columns, 3 columns or even more. In such cases we cannot have defined number of parameters in the DataTable. Having Filter1, Filter2, ….., FilterN [...]
Register or Login to read the full article...
Tags used -
Check, DataTable, Dynamic, Exists, GetParameter, Global, Local, parameter, parameters, Params

Loading ...
October 20th, 2008
4:40 am
Web
This is the first article in my “How to?” 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 [...]
Register or Login to read the full article...
Tags used -
404, 500, Browser, Check, Error, Internal server error, page, page cannot be displayed, Recovery, Server not found

Loading ...
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 “Scripting.Dictionary”. The code below shows how to create the [...]
Register or Login to read the full article...
Tags used -
Check, CreateObject, Dictionary, Exists, Extend, Key, Scripting, Value

Loading ...
Checking all links on a website isn’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’s opened [...]
Register or Login to read the full article...
Tags used -
all, Check, Links, page, validate, Web, webpage