utils
Provides miscellaneous utility methods.
decrypt
Decrypt text
** Usage example:**
Parameters:
Name | Type | Description |
---|---|---|
|
| Text |
Returns:
Object
- DecryptResult Object with getDecryptResult method
dnsResolve
Uses the DNS protocol to resolve a host name
Parameters:
Name | Type | Description |
---|---|---|
|
| Host name to resolve. |
|
|
|
Returns:
(Array.<String>|Object)
- Array or Object of resource records. The type and structure of individual results vary based on rrtype
encrypt
Encrypt text
** Usage example:**
Parameters:
Name | Type | Description |
---|---|---|
|
| Text |
Returns:
String
- Encrypted text
pause
Pause test execution for the given amount of milliseconds.
Parameters:
Name | Type | Description |
---|---|---|
|
| Milliseconds to pause the execution for. |
readCsv
Reads data from csv file
Parameters:
Name | Type | Description |
---|---|---|
|
| Absolute path to file |
|
|
|
readXlsx
Reads data from Xlsx file
Parameters:
Name | Type | Description |
---|---|---|
|
| Absolute path to file |
Returns:
Array
- Array of xlsx data
transaction
Opens new transaction.
The transaction will persist untill a new one is opened. Transaction names must be unique.
Parameters:
Name | Type | Description |
---|---|---|
|
| The transaction name. |
writeCsv
Writes data into csv file
Parameters:
Name | Type | Description |
---|---|---|
|
| Absolute path to file |
|
| CSV data in format [{column_name_1: 'foo', column_name_2: 'bar'}] |
|
|
|
xmlToJson
Parse XML data to JS object
Parameters:
Name | Type | Description |
---|---|---|
|
| Like |
|
|
Last updated