WebMBT Builder

»Menu: Model / WebMBT Builder

WebMBT Builder allows you to create MBT models for web applications as you navigate through web pages using Firefox browser. It also generates MScript and inserts them into state/transition triggers.

You can also use WebMBT Builder to create a Data-Driven Testing embedded within the model.

You will need TestOptimal 5.3.3 and Firefox browser version 57.

See WebMBT Builder Tutorial (this video is out-dated, we are working on a new video that matches the latest TestOptimal MBT Builder).


Installation

WebMBT Builder is a Firefox add-on, click here to download and install WebMBT Builder onto your Firefox browser. Click on Install button on the dialog window and restart Firefox Browser.

Be sure to view the Tutorial: WebMBT Builder for more information about the installation and a short demo of creating a simple demo model.


Open WebMBT Builder

To open WebMBT Builder, open a model or create a new model and then click menu Model / WebMBT Builder.

AUT webpage should open in a new browser window (or tab if your browser is set to open new page in a tab) with a banner panel appended to the bottom of AUT webpage as shown in image below.


Operation Modes

From MBTBuilder Context Menu you can choose various actions to create states and transitions and generate MScript on the web element you are clicking.

For example, you can generate MScript for simulating the clicking on a specific element on the page or setting the value for an input field.

  • Create State: to create a new state in the model for current web page.
  • Create Transition: to create a new transition from the currently selected state.
  • MScript - Assert: to generate MScript to assert the web element text
  • MScript - Click: to generate MScript to click on the element
  • MScript - Set: to generate MScript to set value to the input element
  • Add Data Field: to create a dataset field from the input field, applicable for transition only as dataset is attached to the transition. It recognizes the type of input field and automatically populate the dataset with the list of possible values based on the input field definition.

MScript is generated and inserted into the current state/transition trigger in MScript Editor.


Create States

To add a state for the current web page, just click on New State button. You will be prompted to enter a name for the state.


Create Transitions

To add a new transition, you must select the state for which the transition will be added to on the Model Editor.

After selecting the state, start generate the MScripts as described in the earlier sections and click on New Trans button. You will be prompted to enter a name for the transition as well as select the target state for the transition. Note the transition created always starts with the current state.

Print/export
QR Code
QR Code webmbt_builder (generated for current page)