Package DE_EPAGES::MultiStore::API::Test::HelperFunctions
Helper functions for Synchronization integration tests
Base |
Exporter |
@EXPORT_OK |
Functions
- DeleteObject
- GetTestLanguageID
- GetVerbose
- LoadDataFromFile
- Output
- RunTestOnStore
- SetTestLanguageID
- SetVerbose
- SyncCache
DeleteObject
Deletes an object (if exists)
Syntax |
DeleteObject($ObjectPath); |
Input |
|
Return |
|
GetTestLanguageID
Getter for the LanguageID for all the tests
Syntax |
$LanguageID = GetTestLanguageID(); |
Return |
|
GetVerbose
Getter for the current Verbose value
Syntax |
$Verbose = GetVerbose(); |
Return |
|
LoadDataFromFile
Loads a perl file content as data (array, hash, ...)
Syntax |
$Data = LoadDataFromFile($DataFileName); |
Input |
|
Return |
|
Output
If Verbose is enabled prints output
Syntax |
Output($Format, ...); |
Example |
Output("Hello world!"); Output("Prints a string '%s' and a number %d\n", 'text', 1234); |
Input |
|
RunTestOnStore
Runs code in a database connection
Syntax |
RunTestOnStore($Storename, $TestCode); |
Input |
|
SetTestLanguageID
Sets the test LanguageID getting the ID from a specified Storename connection
Syntax |
SetTestLanguageID($Storename); |
Input |
|
SetVerbose
Enable/Disable output
Syntax |
SetVerbose($Verbose); |
Input |
|
SyncCache
Send sync cache event to Message center (update AppServers)
Syntax |
SyncCache(); |