Skip to main content

EnsPortal.TestingService

class EnsPortal.TestingService extends EnsPortal.Template.standardPage

The first page for Testing Service. If there is a Production running, display the name in the title. If no Production is running or if the Production is not enabled for testing, display an error message and terminate. Populate the "Config Item Name" drop-down according to the selection of "Business Process" or "Business Operation". Allow user to select one item from the list. When user clicks button "Test", present the popup, passing the name of the production and the config item name selected.

Property Inventory

Method Inventory

Parameters

parameter PAGENAME = Testing Service;
Inherited description: Displayed name of this page.
parameter RESOURCE = %Ens_TestingService:USE;
User needs USE permissions on the %Ens_TestingService resource to view this page.

Properties

property HostName as %String (MAXLEN = 128);
Property methods: HostNameDisplayToLogical(), HostNameGet(), HostNameIsValid(), HostNameLogicalToDisplay(), HostNameLogicalToOdbc(), HostNameNormalize(), HostNameSet()
property HostType as %String;
Property methods: HostTypeDisplayToLogical(), HostTypeGet(), HostTypeIsValid(), HostTypeLogicalToDisplay(), HostTypeLogicalToOdbc(), HostTypeNormalize(), HostTypeSet()
property Production as %String (MAXLEN = 128);
Property methods: ProductionDisplayToLogical(), ProductionGet(), ProductionIsValid(), ProductionLogicalToDisplay(), ProductionLogicalToOdbc(), ProductionNormalize(), ProductionSet()

Methods

method %OnGetPageName() as %String
Get the (localized) name of the page.
method %OnGetTitle() as %String
Get the (localized) title string for the page. If there is a production running, its name will appear here; otherwise, we use the page name.
method DrawTopMessages(pSeed As %String) as %Status
Draw the messages at the top of the contents panel. If there is a running Production enabled for testing, make visible the controls to select target type and name.
method GetDialogURL() as %String [ ZenMethod ]
classmethod GetIsTestingEnabled(pProduction) as %Boolean
Return a boolean indicating if the production is enabled for testing or not.
classmethod GetRunningProduction() as %String
Return the name of the running production, or null if no production is currently running.
method OnGetRibbonInfo(Output pDisplay As %Boolean, Output pViewIcons As %List, Output pSortOptions As %List, Output pSearchBox As %Boolean, Output pRibbonTitle As %String, Output pCommands As %List) as %Status
Get information to display in the ribbon bar.
clientmethod changeTargetName() [ Language = javascript ]
User selected a target name.
clientmethod changeTargetType(type) [ Language = javascript ]
User selected/changed a target type. Load the target name control with the config item names of that type.
method populateListOfHosts(pType As %String) [ ZenMethod ]
Populate control with the list of hosts of the given type. Type can be "P" (Process) or "O" (Operation).
clientmethod testThisTarget() [ Language = javascript ]
Invoked when the user clicks the "Test" button. Check if a target has been selected and pass it on to the popup dialog.

Inherited Members

Inherited Properties

Inherited Methods

FeedbackOpens in a new tab