I cannot run an Acceptance Test on a Joomla site. The Selenium Chrome Browser opens, but in the URL field, there ist only "data:," standing and nothing happens. After a while the Tests end.
The tests are fine and worked before. This is another machine. I updated everything, from codeception, joomla browser, selenium, webdriver but still no change.
Running selenium
java -Dwebdriver.chrome.driver=chromedriver.exe -jar selenium-server-standalone-3.4.0.jar
codeception.yml
actor: Tester
paths:
tests: tests
log: tests/_output
data: tests/_data
support: tests/_support
envs: tests/_envs
settings:
bootstrap: _bootstrap.php
colors: false
memory_limit: 1024M
log: true
extensions:
enabled:
- Codeception\Extension\RunFailed
modules:
enabled: [Db]
config:
Db:
dsn: 'mysql:host=localhost;dbname=j3tests'
user: 'root'
password: ''
dump: tests/_data/dump.sql
populate: true
cleanup: false
acceptance.suite.yml
class_name: AcceptanceTester
modules:
enabled:
- JoomlaBrowser
- \Helper\Acceptance
config:
WebDriver:
url: 'http://localhost/j3tests'
browser: 'chrome'
PhpBrowser:
url: 'http://localhost/j3tests'
browser: 'chrome'
JoomlaBrowser:
url: 'http://localhost/j3tests' # the url that points to the joomla installation at /tests/system/joomla-cms
browser: 'chrome'
window_size: 1024x2080
capabilities:
unexpectedAlertBehaviour: 'accept'
username: 'admin' # UserName for the Administrator
password: 'admin' # Password for the Administrator
database host: '127.0.0.1' # place where the Application is Hosted #server Address
database user: 'root' # MySQL Server user ID, usually root
database password: '' # MySQL Server password, usually empty or root
database name: 'j3tests' # DB Name, at the Server
database type: 'mysqli' # type in lowercase one of the options: MySQL\MySQLi\PDO
database prefix: 'zg6l5_' # DB Prefix for tables
install sample data: 'No' # Do you want to Download the Sample Data Along with Joomla Installation, then keep it Yes
sample data: 'Default English (GB) Sample Data' # Default Sample Data
admin email: 'admin@mydomain.com' # email Id of the Admin
language: 'English (United Kingdom)' # Language in which you want the Application to be Installed
joomla folder: 'c:\xampp\htdocs\j3tests\tests\' # Path to Joomla installation where we execute the tests
Output:
Codeception PHP Testing Framework v2.3.4
Powered by PHPUnit 6.2.3 by Sebastian Bergmann and contributors.
Acceptance Tests (1) -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
E JobsCest: Create other job
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Time: 23.51 seconds, Memory: 8.00MB
There was 1 error:
---------
1) JobsCest: Create other job
Test tests\acceptance\JobsCest.php:createOtherJob
[Facebook\WebDriver\Exception\UnknownServerException] unknown error: cannot get automation extension
from unknown error: page could not be found: chrome-extension://aapnijgdinlhnhlmodcfapnahmbfebeb/_generated_background_page.html (Session info: chrome=59.0.3071.115)
(Driver info: chromedriver=2.27.440174 (e97a722caafc2d3a8b807ee115bfb307f7d2cfd9),platform=Windows NT 10.0.14393 x86_64) (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 10.07 seconds
Build info: version: '3.4.0', revision: 'unknown', time: 'unknown'
System info: host: 'PC', os.name: 'Windows 10', os.arch: 'x86', os.version: '10.0', java.version: '1.8.0_121'
Driver info: org.openqa.selenium.chrome.ChromeDriver Capabilities [{applicationCacheEnabled=false, rotatable=false, mobileEmulationEnabled=false, networkConnectionEnabled=false, chrome={chromedriverVersion=2.27.440174 (e97a722caafc2d3a8b807ee115bfb307f7d2cfd9), userDataDir=C:\Users\XXX~1\AppData\Local\Temp\scoped_dir12152_2449}, takesHeapSnapshot=true, pageLoadStrategy=normal, databaseEnabled=false, handlesAlerts=true, hasTouchScreen=false, version=59.0.3071.115, platform=XP, browserConnectionEnabled=false, nativeEvents=true, acceptSslCerts=true, locationContextEnabled=true, webStorageEnabled=true, browserName=chrome, takesScreenshot=true, javascriptEnabled=true, cssSelectorsEnabled=true, unexpectedAlertBehaviour=accept}]
Session ID: d3db94064ff2bfcfc192a7bbaf7077e7
#1 C:\xampp\htdocs\j3tests\tests\vendor\facebook\webdriver\lib\Remote\HttpCommandExecutor.php:320
#2 C:\xampp\htdocs\j3tests\tests\vendor\facebook\webdriver\lib\Remote\RemoteWebDriver.php:535
#3 C:\xampp\htdocs\j3tests\tests\vendor\facebook\webdriver\lib\Remote\RemoteExecuteMethod.php:40
#4 C:\xampp\htdocs\j3tests\tests\vendor\facebook\webdriver\lib\WebDriverWindow.php:104
#5 Codeception\Subscriber\Module->before
#6 C:\xampp\htdocs\j3tests\tests\vendor\symfony\event-dispatcher\EventDispatcher.php:212
#7 C:\xampp\htdocs\j3tests\tests\vendor\symfony\event-dispatcher\EventDispatcher.php:44
ERRORS!
Tests: 1, Assertions: 0, Errors: 1.
Aucun commentaire:
Enregistrer un commentaire