WebTestCase interface for StockManiac
This class provides connectivity between the SimpleTest framework and StockManiac and overloads/extends the framework with StockManiac specifics.
Located in /lib/stockmaniac_webtestcase.class.php (line 42)
WebTestCase | --stockmaniac_webtestcase
Class | Description |
---|---|
webtest_coretests | generic tests of infrastructure surrounding the plugins |
webtest_asset | userinterface tests for Asset plugin |
webtest_chartdisplay | userinterface tests for ChartDisplay plugin |
webtest_positionnews | userinterface tests for PositionNews plugin |
webtest_portfolio | userinterface tests for Portfolio plugin |
webtest_portfoliomanager | userinterface tests for ObjectManager plugin |
webtest_comment | userinterface tests for Comment plugin |
webtest_positionmaintenance | userinterface tests for PositionMaintenance plugin |
webtest_figures | userinterface tests for Figures plugin |
webtest_usermanager | userinterface tests for NewsReader plugin |
webtest_settings | userinterface tests for NewsReader plugin |
webtest_order | userinterface tests for Order plugin |
webtest_positionrisk | userinterface tests for PositionRisk plugin |
webtest_objectmanager | userinterface tests for ObjectManager plugin |
webtest_quoterecords | userinterface tests for QuoteRecords plugin |
webtest_newsreader | userinterface tests for NewsReader plugin |
webtest_dividend | userinterface tests for Dividend plugin |
webtest_documents | userinterface tests for Documents plugin |
webtest_infodisplay | userinterface tests for InfoDisplay plugin |
webtest_charges | userinterface tests for Charges plugin |
dbc instance to talk directly to the database during webtests
password to login with (used by all tests)
username to login with (used by all tests)
appends a random number to string $base
initialize $this->dbc object
overload SimpleTests' setUP() routine with code to automatically login to StockManiac.
SimpleTest will call this code before each test_* function is called making this code run many many times. The more webtests we have the more this is becomming a real stresstest.
We look for Call Stack reports as generated by the Xdebug extension. Make sure to have that installed. In Fedora the package is called"php-pecl-xdebug".
The login test will get TEST_BASEURL and expects a user/pass form there.
make setUP() automatically click a link right after login
overload SimpleTests' tearDown() routine with code to automatically logout from StockManiac.
This test assumes that the browser session is on a page that is providing a 'logout' link. Since most pages do not have this, test cases should finish on the Main Page.
toggles autologin behavior
make setUP() and tearDown() do not auto-login/logout when called
make tearDown() look for a 'back to main page' link right before
trying to logout
Documentation generated on Sun, 22 Aug 2010 11:20:27 +0200 by phpDocumentor 1.4.3