Flexible Parameter approach for Hybrid BPT and QTP frameworks

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

Recently while working with BPT Automation I was trying to implement flexible functions in my library which can be used in both the normal as well as BPT code. Consider the below Login function
Function App_Login(UserName, Password)
Browser("X").Page("X").WebEdit("UserName").Set UserName
Browser("X").Page("X").WebEdit("Password").Set Password
Browser("X").Page("X").WebButton("Login").Click
End Function
Now since BPT supports component parameters I can do away with passing any of the parameters to [...]

Register or Login to read the full article...

Overriding default functions using function pointers

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

In this article we will see how to override function using function pointer. Let’s first understand what overriding means. Overriding a function means changing the behavior of an existing function and defines a new behavior. It is different from function overloading. Function overloading allows a method to exhibit different behavior based on method signature while [...]

Register or Login to read the full article...

Performing action on multiple objects

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

At times, there are situations where we need to execute the same operation on multiple objects. Example of such situations is listed below

Checking/Unchecking all Check Boxes on a web page
Setting all the Text Boxes to blank value
Selecting the first possible value for every WebRadioGroup

The usual way to do it in Descriptive Programming (DP) is to [...]

Register or Login to read the full article...

Implementing Callback in VBScript

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

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

Register or Login to read the full article...

VBScript Part 2 - Variables

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

What is variable?
Variable is a named container used to store values

Declaring a variable
There are three possible ways to declare a variable

Dim <variablename>
Public </variablename><variablename>
Private </variablename><variablename></variablename>

Ex –

Dim 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 [...]

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