Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
tutorial:scripting_state_model [2020/07/17 21:15] admin [Assert and track requirements] |
tutorial:scripting_state_model [2020/11/24 22:09] admin [Activating plugins] |
||
---|---|---|---|
Line 112: | Line 112: | ||
| | ||
+ | For test automation, for example web application you would activate // | ||
+ | |||
+ | For example: | ||
+ | |||
+ | | ||
+ | |||
+ | You could also use //PAGES// tab to define page object: | ||
+ | // | ||
+ | | ||
+ | def addMainPage () { | ||
+ | mainPage = $SYS.addPage(' | ||
+ | elem = mainPage.addElement(' | ||
+ | elem.addAction(' | ||
+ | | ||
+ | }) | ||
+ | } | ||
+ | | ||
+ | |||
+ | Then in // | ||
+ | | ||
+ | |||
+ | |||
===== User variables ===== | ===== User variables ===== | ||
Line 160: | Line 182: | ||
} | } | ||
- | The requirement ' | + | The requirement ' |
+ | Add your own script to perform assertion and requirement tracking to the model TRIGGERS, re-run the model, and check [[../ | ||
===== Initialization scripts ===== | ===== Initialization scripts ===== | ||
+ | Often times you may want to pass some configuration settings to your model scripts, for example, the AUT url which might change depending on if you are running your model against your development environment or QA environment or for this tutorial, maybe we want to change the threshold value of the random number the system must generate - which we have hard-coded to 5. | ||
+ | |||
+ | You could certainly accomplish this by setting // | ||
+ | |||
+ | // | ||
+ | |||
+ | |||
+ | |||