Script tests
The Automation Scripts application has a Test Script button to help test the script that you wrote.
ASSET[assetnum='SPFN0001']If you set the path value to just ASSET, the test framework creates a new MBO
for the asset and uses it for this script.
This sample selects an asset with assetnum SPFN0001 and uses the MBO for the mbo
variable in the script context. This functionality can be used for testing object, attribute,
action, or condition launch point scripts. The dialog enables you to set attribute or value pairs to
prepare the MBO for the test by using the Set Attribute Value table. The process makes a best
attempt to not commit the modified MBO, but in certain cases this committing is unavoidable. For
example, in cases where the event is after a commit, the MBO is already committed. For other cases,
the script code itself might initiate a commit.