mScript is an XML based scripting to either directly drive your application under testing (AUT) or generate testing script to be executed or read later for offline testing in any programming language syntax.
- action - executes the action specified in the code attribute, e.g. to click the button named "Order", you would enter code="click('name=Order')". See mScript function. You may also create your own user defined functions.
- assert - asserts the condition specified. if condition fails throw the MBTException.
- comments - comments for any mScript tags. Also see "comment" attribute for all tags.
- dataset - defines a dataset. Its body contains tags that populates the dataset.
- db - defines a jdbc data source to be used by sql tag.
- execSQL - executes an sql statement.
- field - defines a field in a row and sets its value.
- if - performs condition check and if evaluates to true then execute the command tags in the body.
- log - logs a message to TestOptimal server log file.
- mbt - container tag to hold one or many scripts to control MBT execution.
- rowdata - adds a row to the data set. Must be within a dataset tag and contain at least one field tag.
- script - defines a script method to be executed at state entry/exit or transition prep, action or verify. The body of the script tag is the command tags. This tag is equivalent to the method declaration in a java class.
- seqout - writes to seq.out. use this tag to create the test script/code to be read or executed in other test automation tool. (Release 3.0)
- sql - declares the sql statement to populate dataset.
- state - container tag to hold scripts for a state including transition.
- transition - container tag to hold scripts for a transition.
- while - executes the script in its body if the condition specified is true.
There are two ways you can comment your mScript: as an attribute "comment" for short comments or as a separate child tag "comments" for multi line comments.
Page locked
(last edited May 3, 2010)
[info]
[diff])
FindPage by browsing or searching
5 best incoming links:
mScriptTab (13), WebStore (6), Write mScript (3), RecentChanges (1)
5 best outgoing links:
mScriptFunc (31), Tag seqout (22), datasetTag (15), sqlTag (13), rowdataTag (11)
5 most popular nearby:
mScriptFunc (794), RecentChanges (766), mScriptTab (475), WebStore (475), Write mScript (307)