|
FRM v1.4.2 |
||||||||
PREV SCRIPT NEXT SCRIPT | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | FUNCT | DETAIL: FIELD | CONSTR | FUNCT |
CompiledModule | +--emos_std_misc_lib
Contains some general-purpose miscellaneous function that do not seem to fit nicely into any other EMOS library.
PUBLIC CONSTANTS:
Function Summary | |
protected String |
addPath(in path)
|
String |
create_file(in dir,
in name)
Creates a new file. |
String |
debug_msg(in msg)
In debug-mode produces a "report_msg" formated as "DEBUG: msg ".
|
String |
debug_msg2(in msg)
In debug-mode produces a "report_msg" formated as "DEBUG: msg " if debug level >= 2.
|
protected String |
extractPath(in searchPath)
|
String |
fail(in rc)
returns ! |
protected String |
get_arrsep()
WR has a nice bug with in-operator operating on multi-dimensional arrays. |
String |
get_log_call_level()
Returns the level for logging call chains. |
String |
getLastRc()
what was the last error |
String |
is_debug()
Returns the debug mode. |
String |
isCompiledModule(in test)
Returns true if the given test name refers to a compiled module otherwise false is returned. |
String |
Ja(in str)
Converts a string "Y"/"Yes" or German equivalent "J"/"Ja" (case-insensitive!) |
String |
load_GUI(in gui)
Wrapper around GUI_load(). |
String |
pass(in rc)
returns ! |
String |
restore_timeout()
Restores the timeout that has been overriden by the last invocation of the set_timeout() function. |
String |
set_debug(in mode)
Turns debug mode on/off. |
String |
set_log_call_level(in level)
Defines the level for logging call chains. |
String |
set_timeout(in time)
Wrapper around setvar("timeout"). |
String |
splitSearchPath(out[] outArr)
Returns true if specified test refers to a WinRunner compiled module |
String |
yes(in str)
Converts a string "Y"/"Yes" or German equivalent "J"/"Ja" (case-insensitive!) |
Function Detail |
public String set_debug(in mode)
mode
- (in) TRUE = turn debug on, else turn debug offpublic String is_debug()
public String debug_msg(in msg)
msg
".
Otherwise just returns (no message produced).
msg
- (in) message to be reported in debug modepublic String debug_msg2(in msg)
msg
" if debug level >= 2.
Otherwise just returns (no message produced).
msg
- (in) message to be reported in debug modepublic String set_log_call_level(in level)
level
- (in)
0 = no call logging;
1 = log only full chains (in case of error);
2 = log full chains and short chains (in case of E_OK)public String get_log_call_level()
public String load_GUI(in gui)
gui
is unloaded first
before the load is attempted (avoids a message). Additionally it produces
a tl_step() message documenting the outcome of invoked GUI_load() function.
gui
- (in) filename/path of a GUI-map to be loaded
public String yes(in str)
NOTE!
Blanks are trimmed from both sides of
str
- (in) string to be evaluated
public String Ja(in str)
NOTE!
Blanks are trimmed from both sides of
str
- (in) string to be evaluated
public String set_timeout(in time)
time
- (in) timeout (in seconds) to be setpublic String restore_timeout()
protected String get_arrsep()
for ( i in arr )
returns different
occasionally returns different separators (mostly pipe | but simetimes
something else that appears as bold pipe)
With this function we determine the separator dynamically as it seems
to stay constant during the single WR invocation.
public String pass(in rc)
public String fail(in rc)
public String getLastRc()
protected String addPath(in path)
protected String extractPath(in searchPath)
public String splitSearchPath(out[] outArr)
public String isCompiledModule(in test)
test
- (in) name of the test
public String create_file(in dir, in name)
dir
- directory name or full path name (second parameter must be empty)name
- filename (if empty, fullpath assumed in first parameter)
|
FRM v1.4.2 |
||||||||
PREV SCRIPT NEXT SCRIPT | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | FUNCT | DETAIL: FIELD | CONSTR | FUNCT |