stockmaniac_webtestcaseWebTestCase 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 |
object
$dbc
(line 93)
dbc instance to talk directly to the database during webtests
string
$_auto_clicklink
= false (line 82)
string
$_pass
= 'kj87Ju' (line 60)
password to login with (used by all tests)
bool
$_skip_autologin
= false (line 68)
bool
$_skip_backtomainpage
= true (line 75)
string
$_user
= 'admin' (line 51)
username to login with (used by all tests)
Constructor __construct (line 103)
get_randomized_string (line 169)
appends a random number to string $base
init_dbc (line 116)
initialize $this->dbc object
setUP (line 194)
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.
set_auto_clicklink (line 158)
make setUP() automatically click a link right after login
tearDown (line 229)
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.
toggle_autologin (line 128)
toggles autologin behavior
make setUP() and tearDown() do not auto-login/logout when called
toggle_backtomainpage (line 143)
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