Drag[en]gine Script Module DragonScript 1.35
Loading...
Searching...
No Matches
Dragengine.TestSystem.WindowTesting.LERTestSuite.LERTestCase Class Reference

Test case renderer . More...

Inheritance diagram for Dragengine.TestSystem.WindowTesting.LERTestSuite.LERTestCase:

Classes

class  LogConsoleListener
 Test runner listener logging to console. More...
class  LogFileListener
 Test runner listener logging to file. More...
class  ShowTestResultDirectory
 Show test result directory action. More...
class  StartTestingAll
 Start running tests action. More...
class  StartTestingSelected
 Start running tests action. More...
class  StopTesting
 Stop running tests action. More...
class  UpdateUIListener
 Test runner listener updating window representation. More...

Public Member Functions

void addLogs (String text)
 Add text to logs.
void addTestSuite (TestSuite suite)
 Add test suite.
Widget createRenderer (ListBox listBox)
void dispose ()
 Dispose of window.
Console getConsole ()
 Console.
String getLogFilePath ()
 Filename for test run to write log file to or empty string to not write log file.
BaseGameApp getTestGameApp ()
 Game application for use by test suited.
LERTestCase new ()
LERTestCase new (Console console, Desktop desktop)
 Create window.
void onTestCaseChanged (TestCase testCase)
 Test case changed.
void onTestCasesChanged ()
 All test cases changed.
void removeAllTestSuites ()
 Remove all test suites.
void removeTestSuite (TestSuite suite)
 Remove test suite.
void selectTestCase (TestCase testCase)
 Select test case.
void startTesting ()
 Start testing.

Protected Member Functions

void createContent ()
 Create window content.
BaseGameApp createTestGameApp ()
 Create test game application instance.

Detailed Description

Test case renderer .

Member Function Documentation

◆ addLogs()

void Dragengine.TestSystem.WindowTesting.LERTestSuite.LERTestCase.addLogs ( String text)

Add text to logs.

References addLogs().

Referenced by addLogs(), getLogFilePath(), and onTestCaseChanged().

◆ addTestSuite()

void Dragengine.TestSystem.WindowTesting.LERTestSuite.LERTestCase.addTestSuite ( TestSuite suite)

Add test suite.

◆ createContent()

void Dragengine.TestSystem.WindowTesting.LERTestSuite.LERTestCase.createContent ( )
protected

Create window content.

◆ createRenderer()

Widget Dragengine.TestSystem.WindowTesting.LERTestSuite.LERTestCase.createRenderer ( ListBox listBox)

◆ createTestGameApp()

BaseGameApp Dragengine.TestSystem.WindowTesting.LERTestSuite.LERTestCase.createTestGameApp ( )
protected

Create test game application instance.

Version
1.19

Default implementation creates instance of TestGameApp.

◆ dispose()

void Dragengine.TestSystem.WindowTesting.LERTestSuite.LERTestCase.dispose ( )

Dispose of window.

References onTestCasesChanged().

◆ getConsole()

Console Dragengine.TestSystem.WindowTesting.LERTestSuite.LERTestCase.getConsole ( )

◆ getLogFilePath()

String Dragengine.TestSystem.WindowTesting.LERTestSuite.LERTestCase.getLogFilePath ( )

Filename for test run to write log file to or empty string to not write log file.

Version
1.12

Default implementation returs path "/testresults/{timestamp}".

References addLogs().

◆ getTestGameApp()

BaseGameApp Dragengine.TestSystem.WindowTesting.LERTestSuite.LERTestCase.getTestGameApp ( )

Game application for use by test suited.

◆ new() [1/2]

LERTestCase Dragengine.TestSystem.WindowTesting.LERTestSuite.LERTestCase.new ( )

Referenced by new(), and selectTestCase().

◆ new() [2/2]

LERTestCase Dragengine.TestSystem.WindowTesting.LERTestSuite.LERTestCase.new ( Console console,
Desktop desktop )

Create window.

References new().

◆ onTestCaseChanged()

void Dragengine.TestSystem.WindowTesting.LERTestSuite.LERTestCase.onTestCaseChanged ( TestCase testCase)

Test case changed.

References addLogs().

Referenced by startTesting().

◆ onTestCasesChanged()

void Dragengine.TestSystem.WindowTesting.LERTestSuite.LERTestCase.onTestCasesChanged ( )

All test cases changed.

Referenced by dispose(), and getConsole().

◆ removeAllTestSuites()

void Dragengine.TestSystem.WindowTesting.LERTestSuite.LERTestCase.removeAllTestSuites ( )

Remove all test suites.

◆ removeTestSuite()

void Dragengine.TestSystem.WindowTesting.LERTestSuite.LERTestCase.removeTestSuite ( TestSuite suite)

Remove test suite.

◆ selectTestCase()

void Dragengine.TestSystem.WindowTesting.LERTestSuite.LERTestCase.selectTestCase ( TestCase testCase)

Select test case.

References new().

Referenced by startTesting().

◆ startTesting()

void Dragengine.TestSystem.WindowTesting.LERTestSuite.LERTestCase.startTesting ( )

Start testing.

References onTestCaseChanged(), and selectTestCase().


The documentation for this class was generated from the following file: