Class webtest_portfolio

Description

userinterface tests for Portfolio plugin

Located in /test/webtest_portfolio.class.php (line 35)

WebTestCase
   |
   --stockmaniac_webtestcase
      |
      --webtest_portfolio
Variable Summary
 int $_quote
 string $_security
Method Summary
 void webtest_portfolio (string $testsecurity)
Variables
mixed $_id_position (line 51)

id of the position created for _security

  • access: private
int $_quote = 1.99 (line 58)

initial quote used for input testing

string $_security (line 44)

name of the security used for the tests

  • we create a position using this name, thus a security with this name *must* already exist in the database!

  • access: private

Inherited Variables

Inherited from stockmaniac_webtestcase

stockmaniac_webtestcase::$dbc
stockmaniac_webtestcase::$_auto_clicklink
stockmaniac_webtestcase::$_pass
stockmaniac_webtestcase::$_skip_autologin
stockmaniac_webtestcase::$_skip_backtomainpage
stockmaniac_webtestcase::$_user
Methods
Constructor webtest_portfolio (line 68)

test the Portfolio plugin

  • access: public
  • uses: $_security;
void webtest_portfolio (string $testsecurity)
  • string $testsecurity
test_add_position (line 93)

test adding a new position

void test_add_position ()
test_portfolio_plugin_is_shown (line 79)

see whether the Portfolio plugin is really shown

FIXME:

  • it would be very nice to test for a <div id="plugin_Portfolio"> tag

  • access: public
void test_portfolio_plugin_is_shown ()
test_quote_input (line 121)

try to insert/update a quote on the new position

void test_quote_input ()

Inherited Methods

Inherited From stockmaniac_webtestcase

 stockmaniac_webtestcase::__construct()
 stockmaniac_webtestcase::get_randomized_string()
 stockmaniac_webtestcase::init_dbc()
 stockmaniac_webtestcase::setUP()
 stockmaniac_webtestcase::set_auto_clicklink()
 stockmaniac_webtestcase::tearDown()
 stockmaniac_webtestcase::toggle_autologin()
 stockmaniac_webtestcase::toggle_backtomainpage()

Documentation generated on Sun, 22 Aug 2010 11:20:32 +0200 by phpDocumentor 1.4.3