Package qm :: Package test :: Package web :: Module web :: Class ShowSuitePage
[hide private]
[frames] | no frames]

Class ShowSuitePage

source code

web.DtmlPage --+        
               |        
 DefaultDtmlPage --+    
                   |    
          QMTestPage --+
                       |
                      ShowSuitePage

Page for displaying the contents of a test suite.

Nested Classes [hide private]

Inherited from web.DtmlPage: default_class

Instance Methods [hide private]
 
__init__(self, server, suite, edit, is_new_suite)
Construct a new DTML context.
source code
 
MakeEditUrl(self)
Return the URL for editing this suite.
source code
 
MakeRunUrl(self)
Return the URL for running this suite.
source code
 
MakeDeleteScript(self)
Make a script to confirm deletion of the suite.
source code

Inherited from QMTestPage: GenerateHtmlHeader, GenerateStartBody, GetExpectationUrl, GetRefreshDelay, IsFinished

Inherited from DefaultDtmlPage: FormatId, GetDatabase, GetMainPageUrl, GetName, GetOutcomePercentages, GetResultsByOutcome, HasModifiableExpectations, IsLabelInDirectory, MakeListingUrl

Inherited from web.DtmlPage: GenerateEndBody, GenerateEndScript, GenerateStartScript, GenerateXMLHeader, GetProgramName, MakeButton, MakeImageUrl, MakeLoginForm, MakeRule, MakeSpacer, UserIsInGroup, WebRequest, __call__

Class Variables [hide private]

Inherited from DefaultDtmlPage: EXPECTATION_KINDS, EXPECTED, NEGATIVE_UNEXPECTED, POSITIVE_UNEXPECTED, html_generator, outcomes

Inherited from web.DtmlPage: common_javascript, html_stylesheet, qm_bug_system_url, web

Method Details [hide private]

__init__(self, server, suite, edit, is_new_suite)
(Constructor)

source code 

Construct a new DTML context.

'server' -- The 'QMTestServer' creating this page.

'suite' -- The 'Suite' instance to display.

'edit' -- If true, display controls for editing the suite.

'is_new_suite' -- If true, the suite being displayed is being created at this time.

Overrides: web.DtmlPage.__init__

MakeDeleteScript(self)

source code 

Make a script to confirm deletion of the suite.

returns -- JavaScript source for a function, 'delete_script', which shows a popup confirmation window.