Test Tools
The collection creates a box at the bottom of the public site with links to automatically log anyone in who is in the Test Users group. Use this collection on development and staging sites to aid loggin in and logging out as various roles.
Contents
[hide]Terms
Roles
- Test Users
- You are a test user if your person record is in the Test Users Group. Test users are listed at the bottom on the pubic page with links that automatically log them in.
How-To
How to enable the test tool panel on a site
NEVER install or enable this addon on a production site. When test tools is installed, the tool panel displays at the bottom of all public pages. To enable the tool panel, enter the password. The password is stored in a test file called TestToolPassword.txt in the config folder of the Contensive installation.
Add a test to the test tool panel
Write any addon and add a record to the Tool Panel Tests content, located under the Test Tools collection on the admin navigator. An example of a simple Active script (vbs) addon follows:
function test dim runFromToolPanel runFromToolPanel = cp.doc.getBoolean( "runFromToolPanel" ) if not runFromToolPanel then test = "ERROR, This addon can only be run from the Tool Panel" else test = "ERROR, unknown error" call cp.db.executesql( "delete from abaccounts" ) call cp.db.executesql( "delete from items" ) call createAccount( cp, "Account-A-House", 1, 0 ) call createAccount( cp, "Account-B-Bill-Ship-On-Payment", 3, 0 ) call createAccount( cp, "Account-C-Bill-Ship-Now", 4, 0 ) call createAccount( cp, "Account-D-OnDemand-With-Card", 2, 0 ) call createItem( cp, "rock", "", 1, 0, 0 ) call createItem( cp, "meeting", "", 2, 0, 0 ) call createItem( cp, "subscription A, group A, weekly", "Group A", 3, 2, 7 ) test = "OK" end if end function