How to validate input character set accepted by a textbox?

1 Star2 Stars3 Stars4 Stars5 Stars (4)
Loading ... Loading ...

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...

Check if a DataTable sheet exist

1 Star2 Stars3 Stars4 Stars5 Stars (1)
Loading ... 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...

Check if a DataTable Parameter Exist

1 Star2 Stars3 Stars4 Stars5 Stars (4)
Loading ... 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...

How to check for error pages (Page cannot be displayed)?

1 Star2 Stars3 Stars4 Stars5 Stars (11)
Loading ... Loading ...

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...

Extending Dictionary Object

1 Star2 Stars3 Stars4 Stars5 Stars (9)
Loading ... 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...

How to check all links on a Web page?

1 Star2 Stars3 Stars4 Stars5 Stars (1)
Loading ... 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...

  1. Suscribe to Email

    Enter your email address:

    Delivered by FeedBurner

  2. Most Viewed


  3. Sitemap

    open all | close all
  4. Most Rated

  5. Translator

    English flagItalian flagKorean flagChinese (Simplified) flagPortuguese flagGerman flagFrench flagSpanish flagJapanese flagArabic flagRussian flagGreek flagDutch flagBulgarian flagCzech flag
    Croat flagDanish flagFinnish flagHindi flagPolish flagRumanian flagSwedish flagNorwegian flagCatalan flagFilipino flagHebrew flagIndonesian flagLatvian flagLithuanian flagSerbian flag
    Slovak flagSlovenian flagUkrainian flagVietnamese flag           
    By N2H

Your Ad Here