Differences

This shows you the differences between two versions of the page.

Link to this comparison view

scripttag [2016/09/22 02:36] (current)
Line 1: Line 1:
 +Script tag has one attribute: type. Below is the list of valid values.
  
 +  * MBT_start - called once at the beginning of the MBT execution.
 +  * MBT_end - called once at the end of the MBT execution.
 +  * onException - called on each exception raised by the mScript.
 +  * onError - called when a system error or unhandled exception occurs.
 +  * onentry - valid for state only, called after the web page is loaded. It is usually used to verify the result or set up the page for next transition.
 +  * onexit - valid for state only, called right before leaving the web page.
 +  * prep - valid for transition only, called right after **onexit** and before **action**.
 +  * action - valid for transition only, called when the transition is traversed, this is where clicking on links and buttons is performed.
 +  * verify - valid for transition only, called right after **onentry** of next state. This is verifying the result is usually placed in this method. Alternative you can also verify script in **onentry** of the state.
 +
 +The syntax of script tag is:
 +
 +   <​script type="​xxx">​
 +
 +   </​script>​
 +
 +Script tag can contain one or more command tags.
Print/export
QR Code
QR Code scripttag (generated for current page)