preload

AssociateRecords (QTP, TestComplete, VBScript)

Posted by Albert Gareev on Jan 23, 2009
0
Parent page: Service Functions – Dictionary (QTP, TestComplete, VBScript) Description Converts a string of comma-separated sets of parameters. Example: “User1 {login=john_doe, password=john1}, User2 {login=jane_doe, password=jane1}” Implementation Public Function AssociateRecords(ByVal strRecordSet) Dim objDictionary Dim intScan, intCount, sLine, sRecordName, sRecordData Set objDictionary = ...

Clone/Copy/Release Dictionary Parameters (QTP, ...

Posted by Albert Gareev on Jan 14, 2009
0
Parent page: Service Functions – Dictionary (QTP, TestComplete, VBScript) Description 1. Clone Dictionary object with all parameters 2. Copy parameters from one Dictionary to another 3. Release objects associated to Dictionary keys Implementation CloneParameters Public Function CloneParameters(ByRef objSource) Dim objDest, Iter, dvKeys Set objDest = CreateObject("Scripting.Dictionary") If TypeName (objSource) <> ...

Service Functions – Dictionary (QTP, TestComplete, ...

Posted by Albert Gareev on Jan 09, 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.  Basic Operations AssociateParameters (QTP, TestComplete, VBScript) ParametersToStr (QTP, TestComplete, VBScript) Clone/Copy/Release Dictionary Parameters (QTP, TestComplete, VBScript) Advanced Structures AssociateRecords (QTP, TestComplete, VBScript) Mapping Excel col ...

ParametersToStr (QTP, TestComplete, VBScript)

Posted by Albert Gareev on Jan 03, 2009
0
Parent page: Service Functions – Dictionary (QTP, TestComplete, VBScript) Description Does exactly opposite what AssociateParameters does – converts a Dictionary back to the string of pairs. Special characters are treated. Implementation Public Function ParametersToStr(ByRef objDictionary) Dim Iter, dvKeys Dim sParameter, sKey, sValue sParameter = "" dvKeys = objDictionary.Keys() For Iter = 0 To UBound(dvKeys) sKey = [...] ...

AssociateParameters (QTP, TestComplete, VBScript)

Posted by Albert Gareev on Jan 02, 2009
0
Parent page: Service Functions – Dictionary (QTP, TestComplete, VBScript) Description Converts a string of comma-separated pairs “a=1, b=2, c = 3″ to a Dictionary object. Spaces will be trimmed. Special characters: “=”  ”,” – can be escaped with backslash. Replace special characters in the string  – associate pairs – replace characters back. Implementation Public Function ...
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.