Using a macro
You can use a macro in your test plan by using the 'MacroLogin macro for logging in put:
<dtml-var MacroLogin.html>
in your test plan
Defined macros:
- MacroLogin.html
- logs in
- MacroLogout.html
- logs out -- (Add MacroLogout?.html as a macro to your code or Add SDLogout?.html to your suite)
- MacroSearchModules.html
- searches for a module (you must store the search term before using the macro). For example:
<tr><td>store</td><td>m9003</td><td>search</td></tr> - MacroAddModule.html
- searches for and add a module (you must store the search term before using the macro). For example:
<tr><td>store</td><td>m9003</td><td>search</td></tr> - MacroRemoveModule.html
- removes a module from your current workgroup (you must store the module name before using the macro). For example:
<tr><td>store</td><td>CNXML 0.4 Stress Test</td><td>moduleName</td></tr> - MacroRemoveModuleById.html
- removes a module from your current workgroup (you must store the module ID before using the macro). For example:
<tr><td>store</td><td>m12829</td><td>moduleID</td></tr> - MacroCreateModule.html
- creates a module, starting from within a workgroup.
- MacroCreateAndPublishModule.html
- creates a publishes a module, starting from within a workgroup. You must store a
titleparameter before calling
Helpful Snippets
Clicking on a module in a workspace/group when you know the module ID:
<tr><td>clickAndWait</td><td>xpath=//tr[td/input/@value='m0000']//a</td><td /></tr>
Clicking on a module in a workspace/group when you know the title:
<tr><td>clickAndWait</td><td>xpath=//tr[td/a[contains(string(.), "Module Title")]]//a</td><td /></tr>