de.oio.bugkilla.player
Class WebTestSuite

java.lang.Object
  |
  +--junit.framework.TestSuite
        |
        +--de.oio.bugkilla.player.WebTestSuite
All Implemented Interfaces:
PlayerUser, junit.framework.Test
Direct Known Subclasses:
JScenario, JTestSequence, JTestSeries, JUserInteraction

public abstract class WebTestSuite
extends junit.framework.TestSuite
implements PlayerUser

The WebTestSuite implements the PlayerUser in order to set the Player.
Furthermore adds one or more TestSuites/TestCases to its content
It break the current run if the Player(s) (shouldStopScenario()) StopScenario-boolean is set

Author:
aspall, cdedek
See Also:
Player

Constructor Summary
WebTestSuite()
           
 
Method Summary
 void addTestSuite(WebTestSuite testSuite)
          Adds a Testsuite to the suite.
 Player getMyPlayer()
          Returns the Player.
 void run(junit.framework.TestResult result)
          Runs the tests and collects their result in a TestResult.
 void setMyPlayer(Player myPlayer)
          Sets the Player.
 
Methods inherited from class junit.framework.TestSuite
addTest, addTestSuite, countTestCases, getName, runTest, setName, testAt, testCount, tests, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

WebTestSuite

public WebTestSuite()
Method Detail

getMyPlayer

public Player getMyPlayer()
Returns the Player.

Specified by:
getMyPlayer in interface PlayerUser
Returns:
Player

setMyPlayer

public void setMyPlayer(Player myPlayer)
Sets the Player.

Specified by:
setMyPlayer in interface PlayerUser
Parameters:
myPlayer - The Player to set

addTestSuite

public void addTestSuite(WebTestSuite testSuite)
Adds a Testsuite to the suite.

Parameters:
testSuite - the TestSuite object that should be added

run

public void run(junit.framework.TestResult result)
Runs the tests and collects their result in a TestResult. break the run if the StopScenario-boolean is set

Specified by:
run in interface junit.framework.Test
Overrides:
run in class junit.framework.TestSuite
Parameters:
result - the Test-Result will be send to the specified TestResult


Copyright © Orientation in Objects GmbH. All Rights Reserved.