18 Aug 22:26
Using test libraries/classes
From: Mark Donohoe <mark.donohoe@...>
Subject: Using test libraries/classes
Newsgroups: gmane.comp.php.simpletest.general
Date: 2008-08-18 20:28:42 GMT
Subject: Using test libraries/classes
Newsgroups: gmane.comp.php.simpletest.general
Date: 2008-08-18 20:28:42 GMT
Hello,
Have been using ST for about 2-3 months now. Like it lot, well except for the
documentation... a great start but then.....I'd like to help fix some of that...
Here is the problem of the week. I'm sorta new to OO as well, so it could be
that and not ST.
I'm trying to use Jason's suggestion to extend WebTestCase with my own project
specific class. So far so good. But now my fossologyWebTestCase class is
getting big with more methods than I want. I tried to refactor but could not
get things to work that way....
Specifics I tried:
class fossologyWebTestCase extends WebTestCase {
function uploadAFile(....) { ... }
function browseMiniMenu(...) { ....}
etc....
}
What I would like to do is create a number of 'utility' test classes that can be
used by the basic unit tests as well as for other higher level functional and
stress testing.
I tried to factor our things like uploads to an upload class, browse to a browse
class etc...
I tried
(Continue reading)
I tryed like that:
class SeleniumTest_Start extends SeleniumTestCase
{
private $urlBase;
function SeleniumTest_Start($name="Start")
{
try {
$this->verificationErrors = array();
$this->host = $_SERVER['HTTP_HOST'];
$this->urlBase = "
-T
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
RSS Feed