Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
|
seqoutformat [2020/04/26 03:33] 127.0.0.1 external edit |
— (current) | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== Generate TestCase Report ====== | ||
| - | |||
| - | [[SeqOutPlugin|SeqOut plugin]] allows you to quickly generate test steps for manual testing or documentation of test cases executed. | ||
| - | |||
| - | ---- | ||
| - | ==== Output Format ==== | ||
| - | |||
| - | You may output test case in HTML webpage or Microsoft Excel document. To select which format to use, open [[modelnode | Model Property]] dialog and in field " | ||
| - | |||
| - | Optionally you can edit the //Test Case Output// field to the desired file name. | ||
| - | |||
| - | ==== Generate Test Case ==== | ||
| - | |||
| - | With //SeqOut// plugin activated for the model, now you can run the model. When model execution completes, you can open the test case document generated by clicking on menu // | ||
| - | |||
| - | See this example output at [[http:// | ||
| - | |||
| - | |||
| - | ==== Style Test Case Report ==== | ||
| - | You can style the test case report web page by editing /// | ||
| - | |||
| - | Your changes will take effective on new test case report generation. | ||
| - | |||
| - | If you want to make the style changes to existing test case report already generated, you can manually copy seqout.css to each indiviudal test case report folder under model' | ||
| - | |||
| - | |||
| - | ---- | ||
| - | ==== Customize Test Step Format ==== | ||
| - | |||
| - | The format of the test step text may be customized also. | ||
| - | [[Default SeqOut Format Definition|seqout.fmt]] determines the text format for each test case step instruction in the test case report. In this file, you will see that the format definition for each mscript function and tag. | ||
| - | |||
| - | // | ||
| - | * make a copy of a sample // | ||
| - | * for each MScript function or tag, copy their original definition from // | ||
| - | * edit // | ||
| - | * restart // | ||
| - | * re-run your model and you should notice the test case report generated has the your modified formats. | ||
| - | |||
| - | === Format Keywords === | ||
| - | |||
| - | //SeqOut// plugin uses a set of keywords matching the MScript tag and functions. | ||
| - | |||
| - | == MScript Tags == | ||
| - | |||
| - | * ACTION: format for mScript Action tag. Also used to output certain system methods | ||
| - | * ACTION_END: static text to close ACTION | ||
| - | * ASSERT: format for mScript Assert tag | ||
| - | * IF: format for mScript If tag | ||
| - | * IF_END: static text to close IF | ||
| - | * LOG: format for mScript Log tag | ||
| - | * WHILE: format for mScript While tag | ||
| - | * WHILE_END: static text to close WHILE | ||
| - | |||
| - | == MScript Functions == | ||
| - | |||
| - | * addTagCheck | ||
| - | * click | ||
| - | * closeWindow | ||
| - | * containsText | ||
| - | * count | ||
| - | * doubleClick | ||
| - | * dragAndDrop | ||
| - | * flashGetVariable | ||
| - | * getAlertText | ||
| - | * getAttr | ||
| - | * getConfirmText | ||
| - | * getAllWindowsID | ||
| - | * getCookie | ||
| - | * getText | ||
| - | * getTitle | ||
| - | * gotoURL | ||
| - | * isAlertPresent | ||
| - | * isChecked | ||
| - | * isConfirmPresent | ||
| - | * isDisabled | ||
| - | * isPresent | ||
| - | * isVisible | ||
| - | * mouseDown | ||
| - | * mouseOver | ||
| - | * mouseUp | ||
| - | * refresh | ||
| - | * rightClick | ||
| - | * selectFrame | ||
| - | * selectOption | ||
| - | * setCheckBox | ||
| - | * setRadioButton | ||
| - | * setupConfirmResponse | ||
| - | * sizeOf | ||
| - | * snapScreen | ||
| - | * type | ||
| - | * sleep | ||
| - | * waitForPageToLoad | ||
| - | * windowName_p | ||
| - | |||
| - | == Replacement Token == | ||
| - | |||
| - | * @ATTR@: attr from mScript methods from getAttr() | ||
| - | * @CODE: code from mScript Action tag | ||
| - | * @CTRL@: control keys pressed from mScript methods | ||
| - | * @ELSE@: else from mScript tags | ||
| - | * @FROM@: from locator from mScript method dragAndDrop() | ||
| - | * @LEVEL@: log level from mScript Log tag | ||
| - | * @LOCATOR@: locator attribute from mScript methods | ||
| - | * @MAXLOOP@: max loop number from mScript While tag | ||
| - | * @MILLIS@: number of millieseonds from mScript method calls | ||
| - | * @MSG@: log message from mScript Log tag | ||
| - | * @NAME@: name from mScript methods getCookie() and selectFrame() | ||
| - | * @OP@: op from mScript tags | ||
| - | * @OPTION@: option value from mScript | ||
| - | * @PASSED@: passed from mScript methods | ||
| - | * @TO@: to locator from mScript method dragAndDrop() | ||
| - | * @URL@: url from mScript gotoURL() | ||
| - | * @VALUE@: value from mScript method | ||
| - | * @VALUE1@: value1 from mScript tags | ||
| - | * @VALUE2@: value2 from mScript tags | ||
| - | * @TAG@: tag from mScript method addTagCheck() | ||
| - | |||
| - | |||
| - | ---- | ||
| - | ==== Create My Own Test Case Report ==== | ||
| - | |||
| - | //SeqOut// plugin uses //xsl// to create test case report. | ||
| - | |||
| - | To create your own test case report using //xsl//, use // | ||
| - | Once you have created your own //xsl// report, you must change // | ||
| - | |||
| - | === Custom Fields === | ||
| - | |||
| - | You may define custom fields and use them in the output generation in xsl file. All custom field must start with a prefix **@** char in the format file. For example: | ||
| - | |||
| - | @Company=My Company | ||
| - | |||
| - | Your can call out these custom fields with the following xsl statement: | ||
| - | |||
| - | < | ||
| - | |||
| - | Notice that in xsl statement above, the custom field is referenced with out the prefix //@//. | ||