Jump to content

Topic on Talk:Selenium/PHP/Selenium Framework

Karima Rafes (talkcontribs)

I try to test SimpleSeleniumTestSuite so I execute :

php tests/RunSeleniumTests.php
  • Error1 : PHP Fatal error: require_once(): Failed opening required 'PHPUnit/Runner/Version.php' (include_path='.:/usr/share/pear:/usr/share/php') in /home/karima/git/wikimedia-git-repos/core/tests/RunSeleniumTests.php on line 34
    • test (maybe) : pear install -f phpunit/PHPUnit_Selenium
    • result : may be ok but new error (Error2)
  • Error2 : PHP Warning: Invalid argument supplied for foreach() in /home/karima/git/wikimedia-git-repos/core/tests/RunSeleniumTests.php on line 134
    • test : maybe the position of config file but with the argument seleniumConfig, I have same error
php tests/RunSeleniumTests.php --seleniumConfig /home/.../core/selenium_settings.ini

An idea ?

Karima Rafes (talkcontribs)

I found, there is error "foreach" because the parameter $seleniumTestSuites is NULL when [SeleniumTests] is empty in selenium_settings.ini.