Posted by Albert Gareev on Sep 02, 2010
Mind Map
Functions
Comparison: One-To-One Relationship
1-1 Comparison: isValueEqual
1-1 Comparison: isValueLess
1-1 Comparison: isValueEqualOrLess
1-1 Comparison: isValueGreater
1-1 Comparison: isValueEqualOrGreater
1-1 Comparison: MatchIn / MatchFor
Comparison: One-To-Many Relationship
1-N Comparison: isValueInRange
1-N Comparison: isValueInSet
Comparison: Many-To-Many Relationship
N-N Comparison: isSetEqual
N-N Comparison: ...
Posted by Albert Gareev on Aug 19, 2010
Parent page: Service Functions – String (QTP, VBScript)
Description
Based on the maximum allowed length of the string (strMsgText) insert space characters.
Implementation
Public Function BreakTextLine(ByVal strMsgText, ByVal intMaxLen)
Dim intLoc, intMaxLen, strResult
If Len(strMsgText) < intMaxLen Then
BreakTextLine = strMsgText
Exit Function
End If
strResult = ""
While Len(strMsgText) > ...
Posted by Albert Gareev on Aug 12, 2010
Reference Page: Comparison Rules
Automatic Comparison Rules
Relationship: Many-to-Many / Rule: Match For Set in Another Set
Definitions
Supported data types: String, Number, Date
Supported data structures: Vector
Comparison of values of different data types always returns False.
Comparison of values of unsupported data types always returns False.
Vector data structure is presented by a set (un-ordered array) of values of the same type. [...] ...
Posted by Albert Gareev on Aug 11, 2010
Reference Page: Comparison Rules
Automatic Comparison Rules
Relationship: Many-to-Many / Rule: Set Match In [Another Set]
Definitions
Supported data types: String, Number, Date
Supported data structures: Vector
Comparison of values of different data types always returns False.
Comparison of values of unsupported data types always returns False.
Vector data structure is presented by a set (un-ordered array) of values of the same type. [...] ...
Posted by Albert Gareev on Aug 09, 2010
Reference Page: Comparison Rules
Automatic Comparison Rules
Relationship: Many-to-Many / Rule: Is Data Record [in Dictionary] Equal To Another One
Definitions
Supported data types: String, Number, Date
Supported data structures: Dictionary (Associative Array)
Comparison of values of different data types always returns False.
Comparison of values of unsupported data types always returns False.
A record is equal to another record if all elements ...
Posted by Albert Gareev on Aug 05, 2010
Reference Page: Comparison Rules
Automatic Comparison Rules
Relationship: Many-to-Many / Rule: Is Set Equal
Definitions
Supported data types: String, Number, Date
Supported data structures: Vector
Comparison of values of different data types always returns False.
Comparison of values of unsupported data types always returns False.
Vector data structure is presented by a set (un-ordered array) of values of the same type. Externally, Set is [...] ...
Posted by Albert Gareev on Jul 29, 2010
Reference Page: Comparison Rules
Automatic Comparison Rules
Relationship: One-to-Many / Rule: Is Value In Set
Definitions
Supported data types: String, Number, Date
Supported data structures: Scalar, Vector
Comparison of values of different data types always returns False.
Comparison of values of unsupported data types always returns False.
Scalar data structure is presented by any single value.
Vector data structure is presented by a set [...] ...
Posted by Albert Gareev on Jul 27, 2010
Reference Page: Comparison Rules
Automatic Comparison Rules
Relationship: One-to-Many / Rule: Is Value In Range
Definitions
Supported data types: String, Number, Date
Supported data structures: Scalar, Vector
Comparison of values of different data types always returns False.
Comparison of values of unsupported data types always returns False.
Scalar data structure is presented by any single value.
Vector data structure is presented by a set ...
Posted by Albert Gareev on Jul 23, 2010
Reference Page: Comparison Rules
Automatic Comparison Rules
Relationship: One-to-One / Match In String / Match For String
Definitions
Supported data types: String, Regular Expression
1. Match in String
First argument – base string; second argument – substring / regular expression.
2. Match for String
First argument – substring / regular expression; second argument – base string.
3. Special cases
Empty string ...
Posted by Albert Gareev on Jul 21, 2010
Reference Page: Comparison Rules
Automatic Comparison Rules
Relationship: One-to-One / Rule: Is Value Equal Or Greater
Definitions
Supported data types: String, Number, Date
Comparison of values of different data types always returns False.
Comparison of values of unsupported data types always returns False.
Data type: String
Strings are compared based on total length and encoding of each character.
Two strings are considered equal if [...] ...