Common Scripts and Functions
The scripts have some common functions that are accessible through the Global Host object.
To learn more about the common functions, see the table below:
Subtype | Function (HOST object) | Input Parameters (Type) | Return Type | Description |
---|---|---|---|---|
Tracing |
|
ByVal msg (String) | Boolean | Writes a trace log that is useful for debugging in the test bench. |
Data Conversion
|
|
ByVal msg (Object) |
String |
Converts all data to a string and handles |
|
ByVal msg (String) | String | Encodes the string. | |
|
ByVal msg (String) | String | Decodes the string. | |
External Data
|
RunStringRequest( )
|
ByVal url (String) ByVal username (String) ByVal password (String) |
String |
Executes an HTTP Get operation and returns the string result. |
RunStringRequest2()
|
ByVal url (String) ByVal cookie (String) ByVal username (String) ByVal password (String) |
String |
|
|
RunByteRequest()
|
ByVal url (String) ByVal cookie (String) ByVal username (String) ByVal password (String) |
Byte() |
Executes an HTTP Get operation and returns the binary result. |
|
RunByteRequest()
|
ByVal url (String) ByVal cookie (String) ByVal username (String) ByVal password (String) |
Byte() |
|
|
Utility Methods | PersistContentValue()
|
ByVal key (String) ByVal value (String) |
String |
|
GetPersistContentValue()
|
ByVal key (String) | String |
|
|
ResolveMimeType()
|
ByVal mime (String) | String | Resolves a mime type to a file extension. | |
GetTempFilePath()
|
ByVal extension (String) | String | Gets a temp file name and uses this name for copying the file for indexing. | |
GetLockableObject()
|
|
Object |
|