preload

Service Functions – DotNetFactory (QTP, VBScript)

Posted by Albert Gareev on Aug 05, 2009
0
In the code examples I present I often refer to routine functions. In my framework I have specialized libraries to call from.  In my blog I maintain the similar structure. Creating Custom Dialog DotNetFactory interface functions – create custom dialog  Creating DotNetFactory GUI Objects DotNetFactory interface functions (1) – Create Button DotNetFactory interface functions (2) – Create Label DotNetFactory [...] ...

DotNetFactory interface functions – create ...

Posted by Albert Gareev on Jun 18, 2009
2
Parent page: Service Functions – DotNetFactory (QTP, VBScript) Used resources Service Functions – String (QTP, VBScript) Implementing optional and default parameters Create TextBox along with the Prompt Label and place on the GUI Form  Public Function PlaceTextBox(ByRef objForm, ByVal objParameter)     Dim sPrompt     Dim intLeft, intTop     Dim objTextBox, objLabel   'Verify parameters   If TypeName (objParameter) <>  ...

DotNetFactory interface functions (6) – Create ...

Posted by Albert Gareev on Jun 17, 2009
0
Parent page: Service Functions – DotNetFactory (QTP, VBScript) Creating .NET objects from VBScript/QTP You can create a basic Form and assign required properties within one line by calling the function below. The function has one mandatory parameter (which though is initialized by default if empty) and a set of optional parameters provided in the Dictionary object. [...] ...

DotNetFactory interface functions (5) – Create ...

Posted by Albert Gareev on Jun 16, 2009
0
Parent page: Service Functions – DotNetFactory (QTP, VBScript) Creating .NET objects from VBScript/QTP You can create a ComboBox (Dropdown Listbox/InputBox Object) and assign required properties within one line by calling the function below. The function has one mandatory parameter (list of available selection items – packed in the Dictionary object) and a set of optional parameters [...] ...

DotNetFactory interface functions (4) – Create ...

Posted by Albert Gareev on Jun 15, 2009
0
Parent page: Service Functions – DotNetFactory (QTP, VBScript) Creating .NET objects from VBScript/QTP You can create a CheckBox and assign required properties within one line by calling the function below. The function has one mandatory parameter (which though is initialized by default if empty) and a set of optional parameters provided in the Dictionary object. Currently [...] ...

DotNetFactory interface functions (3) – Create ...

Posted by Albert Gareev on Jun 14, 2009
0
Parent page: Service Functions – DotNetFactory (QTP, VBScript) Creating .NET objects from VBScript/QTP You can create a TextBox (single-line Text Input object) and assign required properties within one line by calling the function below. The function has only optional parameters provided in the Dictionary object. Currently supported optional parameters: TextBox Width and Height. TextBox Coordinates – [...] ...

DotNetFactory interface functions (2) – Create ...

Posted by Albert Gareev on Jun 13, 2009
0
Parent page: Service Functions – DotNetFactory (QTP, VBScript) Creating .NET objects from VBScript/QTP You can create a label and assign required properties within one line by calling the function below. The function has one mandatory parameter (which though is initialized by default if empty) and a set of optional parameters provided in the Dictionary object. Currently [...] ...

DotNetFactory interface functions (1) – Create ...

Posted by Albert Gareev on Jun 12, 2009
0
Parent page: Service Functions – DotNetFactory (QTP, VBScript) Creating .NET objects from VBScript/QTP You can create a button and assign required properties within one line by calling the function below. The function has one mandatory parameter (which though is initialized by default if empty) and a set of optional parameters provided in the Dictionary object. Currently [...] ...

QTP Math functions – Check Item in Set

Posted by Albert Gareev on Mar 23, 2008
0
Parent page: Service Functions – Math (QTP, VBScript) Check whether an item is in set Public Function isItemInSet(ByVal stSet, ByVal sItem, ByVal sSetSeparator)   Dim dvArray   If sItem = "" Then     isItemInSet = False     Exit Function   End If       dvArray = Set2Array(stSet, sSetSeparator)   isItemInSet = isItemInArray(dvArray)   End Function ...

QTP Math functions – Check Set Type

Posted by Albert Gareev on Mar 22, 2008
0
Parent page: Service Functions – Math (QTP, VBScript) Check whether a set consists of numeric values Public Function isSetNumeric(ByVal stSet, ByVal sSetSeparator)   Dim dvArray     dvArray = Set2Array(stSet, sSetSeparator)   isSetNumeric = isArrayNumeric(dvArray)     End Function Check whether a set consists of date/time values Public Function isSetDate(ByVal stSet, ByVal sSetSeparator)   Dim dvArray     [...] ...

QTP Math functions – Convert Set to Typed Array

Posted by Albert Gareev on Mar 20, 2008
0
Parent page: Service Functions – Math (QTP, VBScript) Convert set to typed array Public Function Set2TypedArray(ByVal stSet, ByVal sSetSeparator, ByVal sFormat)   Dim Iter, dvArray     If sSetSeparator = "" Then     sSetSeparator = chrSetSeparator   End If  stSet = Replace(stSet, "\,", Chr(176))  stSet = Replace(stSet, "\ ", Chr(187))   dvArray = Split(stSet, sSetSeparator)   [...] ...

QTP Math functions – Array/Set Conversions

Posted by Albert Gareev on Feb 19, 2008
0
Parent page: Service Functions – Math (QTP, VBScript) Convert array to set Public Function Array2Set(ByVal dvArray, ByVal sSetSeparator)   Dim Iter   Dim stResult     If Not isArray(dvArray) Then     Array2Set = ""     Exit Function   End If   If UBound(dvArray) = -1Then     Array2Set = ""     Exit Function   End If [...] ...

QTP Math functions – Check Item in Array

Posted by Albert Gareev on Feb 17, 2008
0
Parent page: Service Functions – Math (QTP, VBScript) Check whether an item is in array Public Function isItemInArray(ByVal dvArray, ByVal sItem)   Dim Iter     If sItem = "" Then     isItemInArray = False     Exit Function   End If     If Not isArray(dvArray) Then     isItemInArray = False     Exit Function   [...] ...

QTP Math functions – Check Array Type

Posted by Albert Gareev on Feb 15, 2008
0
Parent page: Service Functions – Math (QTP, VBScript) Check whether an array consists of numeric values Public Function isArrayNumeric(ByVal dvArray)   Dim Iter     If Not isArray(dvArray) Then     isArrayNumeric = False     Exit Function   End If   If UBound(dvArray) = -1 Then     isArrayNumeric = False     Exit Function   End If [...] ...

Service Functions – Math (QTP, VBScript)

Posted by Albert Gareev on Jan 20, 2008
0
In the code examples I present I often refer to routine functions. In my framework I have specialized libraries to call from.  In my blog I maintain the similar structure.  Array Functions  Sort Data Array Sort Typed Data Array Check Array Type Check Item in Array Convert Array to Set Set Functions Convert Set to Array [...] ...

QTP Math functions – TypedArraySort

Posted by Albert Gareev on Jan 14, 2008
0
Parent page: Service Functions – Math (QTP, VBScript) Description Sorts one-dimentional array in ascending / descending order with typecasting.  Implementation Public Function TypedArraySort(ByRef dvArray, ByVal sFormat, ByVal boolAscending)   Dim Iter, Jter, aValue, boolRC     If Not isArray(dvArray) Then     dvArray = Array(dvArray)     ArraySort = dvArray   End If   sFormat = UCase(sFormat) [...] ...

QTP Math functions – ArraySort

Posted by Albert Gareev on Jan 12, 2008
0
Parent page: Service Functions – Math (QTP, VBScript) Description Sorts one-dimentional array in ascending / descending order.  Implementation Public Function ArraySort(ByRef dvArray, ByVal boolAscending)   Dim Iter, Jter, aValue     If Not isArray(dvArray) Then     dvArray = Array(dvArray)     ArraySort = dvArray   End If  For Jter = 0 To UBound(dvArray)   For Iter = [...] ...

Service Functions – Math / WinRunner

Posted by Albert Gareev on Apr 25, 2007
0
Math primitives In the code examples I present I often refer to routine functions. In my framework I have specialized libraries to call from. In my blog I maintain the similar structure.  Math primitives 1 (WinRunner, TSL) Absolute value (Modulus) Check if a value has a multiple Check if a value belongs to range Check if [...] ...

Math primitives 5 (WinRunner, TSL)

Posted by Albert Gareev on Apr 23, 2007
0
Service Functions – Math / WinRunner Find and retrieve subrange, defined by RegEx public function mx_subrange_regex(inout mxTable[], inout mxRange[], in regex_from_str, in regex_to_str, in regex_col, in flExtend, in start_row, in end_row) {  auto rc, i, j, row_index;  auto col_count, row_count;  auto flFound;  col_count = mxTable[0, "sys", "colCount"];     row_count = mxTable[0, "sys", ...

Math primitives 4 (WinRunner, TSL)

Posted by Albert Gareev on Apr 21, 2007
0
Service Functions – Math / WinRunner Add new column to a matrix public function mx_add_col_value(inout mxTable[], in col_value) {  auto rc, i;  auto col_count, row_count;    col_count = mxTable[0, "sys", "colCount"];     row_count = mxTable[0, "sys", "rowCount"];    # create new col index  col_count++;    for (i=1;i<=row_count;i++)   mxTable[i,col_count] = col_value;     mxTable[0, ...
Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported
This work by Albert Gareev is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported.