|
FRM v1.4.2 |
||||||||
PREV SCRIPT NEXT SCRIPT | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | FUNCT | DETAIL: FIELD | CONSTR | FUNCT |
CompiledModule | +--emos_frm_stp_lib
Defines an interface for efficient creation of test cases unsing the FRM data tables.
A typical FRM test case defines its test data across columns. This is the plain oposite of the approach taken by Mercury and many other testers. The benefit of defining test data column-wise is the ability to define many, very many (up to 64k) test entries which makes very complex tests possible (accross rows the limit is 256) which are comparatively easy to maintain (no ugly right-left scrolling, you can see much more test data at once). Additionally, you can (hypothetically) "pack" up to 254 of such complex tests in a single Excel-file wich can greatly reduce the mess on your hard drive.
A single test case contains three important parts:
name
content of the cell in the first rowsequence
a single cell containing the list of test steps
which are to be executed in a sequencestep(s)
an indexed block of rows containing test dataIDX | Name | 1 | 2 | 3 |
---|---|---|---|---|
x | Testsequence | select_user user_data | select_user user_data | select_user |
x | select_user | |||
user list | dean | dean | ||
New/Edit/Delete | New | Edit | Delete | |
delete? (OK/Cancel) | OK | |||
x | user_data | CHK | ||
first name | dean | dean | ||
last name | rajovic | rajovic | ||
OK/Cancel | OK | Cancel |
Function Summary | |
String |
FRM_STP_clear_steps(in tid,
in test)
Frees all references to the specified test. |
protected String |
FRM_STP_eval_call(in line)
Parses the call to an arbitrary test, i.e. call test ( [param]* ) SYNTAX: CALL<SEP>test[<SEP>arg]* |
protected String |
FRM_STP_eval_link(in typ,
in curr_tid,
in drv,
in tbl,
in tst)
Executes the link call. |
protected String |
FRM_STP_eval_old(in cmd)
|
protected String |
FRM_STP_eval(in cmd)
Evaluates an arbitrary command. |
protected String |
FRM_STP_exec(in tid,
in test,
in idx,
in mode)
Executes a block of TSL-statements defined in the given block. |
String |
FRM_STP_get_next_step(in tid,
in test,
out step,
out mode)
Returns the next step. |
String |
FRM_STP_has_more_steps(in tid,
in test)
Indicates whether there are steps to execute. |
String |
FRM_STP_init_steps(in tid,
in test,
in idx)
Initialises the step iterator. |
String |
FRM_STP_is_dummy_step_mode()
Indicates the dummy test mode. |
protected String |
FRM_STP_is_internal_step(in step,
in tid)
Deprecated. |
protected String |
FRM_STP_link(in tid,
in test,
in idx,
in mode,
in load_all)
Deprecated. |
protected String |
FRM_STP_load_steps(in tid,
in test,
in idx,
in val)
Loads the content of a single table cell (steps separated by newline char) into the internal step table. |
protected String |
FRM_STP_parse_link(in line,
in curr_tid,
out drv,
out tbl,
out tst)
Parses the call to another FRM test, i.e. call driver( table, test ). |
String |
FRM_STP_set_dummy_step_mode(in mode)
Turns dummy test mode on/off. |
Function Detail |
public String FRM_STP_init_steps(in tid, in test, in idx)
tid
- (in) table IDtest
- (in) column nameidx
- (in) (optional) index (i.e. table row) containing test steps [default: "Testvorgang"]
protected String FRM_STP_load_steps(in tid, in test, in idx, in val)
public String FRM_STP_clear_steps(in tid, in test)
tid
- (in) table IDtest
- (in) column namepublic String FRM_STP_has_more_steps(in tid, in test)
tid
- (in) table IDtest
- (in) column name
public String FRM_STP_get_next_step(in tid, in test, out step, out mode)
LINK
executes a test in this or some other data table,
the test is atomatically loaded if necessaryLINA
same as LINK while loading ALL tests from the specified
table (sometimes impoves the overal performance)LINX
executes a specified test from an inverted data table
(table in which tests are organised/indexed horizontally)CALL
invokes an arbitrary WinRunner main testEVAL
invokes an arbitrary WinRunner functionEXEC
evaluates a block of WinRunner functions#
any step starting with # is treated as a commentLNK:script_name
links this test with another one
(loading only the specified tests)LNA:script_name
links this test with another one
(loading all tests in the referenced table)EXE:test step
exectutes all rows in the specified test block###:test step
comments out the given test step<<PAUSE>>
pauses the test execution in interactive mode
tid
- (in) table IDtest
- (in) column namestep
- (out) name (idx) of the test stepmode
- (out) mode to be applied ( FRM_SET_MODE/FRM_CHK_MODE/FRM_GEN_MODE )
protected String FRM_STP_parse_link(in line, in curr_tid, out drv, out tbl, out tst)
LINK<SEP>[driver]<SEP>[table]<SEP>test
or
LINA<SEP>[driver]<SEP>[table]<SEP>test
protected String FRM_STP_eval_link(in typ, in curr_tid, in drv, in tbl, in tst)
LINK<SEP>[driver]<SEP>[table]<SEP>test
or
LINA<SEP>[driver]<SEP>[table]<SEP>test
protected String FRM_STP_eval_call(in line)
CALL<SEP>test[<SEP>arg]*
protected String FRM_STP_exec(in tid, in test, in idx, in mode)
protected String FRM_STP_eval(in cmd)
cmd
- (in) command(s) to be executed (it is not necessary to place the
semicolon at the end of the last command but you must separate multiple
commands with the semicolon, though).protected String FRM_STP_eval_old(in cmd)
protected String FRM_STP_is_internal_step(in step, in tid)
step
- (in) the step to be evaluatedtid
- (in) id of the active test table
protected String FRM_STP_link(in tid, in test, in idx, in mode, in load_all)
public String FRM_STP_set_dummy_step_mode(in mode)
mode
- (in) true/false
public String FRM_STP_is_dummy_step_mode()
|
FRM v1.4.2 |
||||||||
PREV SCRIPT NEXT SCRIPT | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | FUNCT | DETAIL: FIELD | CONSTR | FUNCT |