phpunit-selenium icon indicating copy to clipboard operation
phpunit-selenium copied to clipboard

Some issues I encountered with the 1.2.6 version

Open testingbot opened this issue 13 years ago • 2 comments

If you try to run on a non-existing grid the test succeeds:

        protected function setUp()
    {
        $this->setHost('12.32.41.1');
        }

If a grid returns a failure/error, onNotSuccessfulTest in SeleniumTestCase will call getLocation() even if the session has not been started yet, resulting in another failure on the grid.

It was previously possible to specify an array of browsers at the top of the test file, this no longer seems possible?

testingbot avatar Apr 07 '12 17:04 testingbot

Also, is there a reason why a static list of classes/files is kept in Autoload.php (phpunit_selenium_autoload) Why not just parse it from the classname:

phpunit_extensions_selenium2testcase_sessioncommand_frame
=> remove phpunit, replace _ with /, camelize each word and add .php at the end

testingbot avatar Apr 07 '12 17:04 testingbot

We are talking about two separate issues.

Currently we are not testing against a grid. Do you think it is feasible to setup a simple hub in a local machine to test this issue in CI? If so, what is the simplest test scenario that reveals the two bugs (false positive, getLocation() failure)?

The use of a class map autoloader is consistent with the parent and sibling projects, PHPUnit and such.

giorgiosironi avatar Apr 10 '12 07:04 giorgiosironi