Getting an error when i run acceptance test


(Bms Sp) #1

I am trying to run acceptance tests, but i get this error. I am using yii 2.0.10

Scenario –

WebDriver::debugWebDriverLogs method has been called when webDriver is not set

WebDriver::_saveScreenshot method has been called when webDriver is not set

WebDriver::_savePageSource method has been called when webDriver is not set

Screenshot and page source were saved into ‘/var/www/html/ftdimprensa/tests/_output/’ dir

ERROR

[Symfony\Component\Debug\Exception\FatalThrowableError]

Call to a member function resetPersistentVars() on null

acceptance.suite.yml

class_name: AcceptanceTester

modules:

enabled:


    - WebDriver:


        url: http://localhost:8080/


        browser: chrome


    - Yii2:


        part: orm


        entryScript: index-test.php


        cleanup: false

I download selenium and chromedriver and run selenium server, but not working.


(Fwerner13) #2

Did you find a solution?

I’m having the same Problem right now.


(Bms Sp) #3

Not yet :(


(Javierleal) #4

And now?


(Jens Buysse) #5

My configuration is:

class_name: AcceptanceTester

modules:

enabled:


    - WebDriver:


        url: http://nameofsite.test/


        browser: chrome


    - Yii2:


        part: [orm,fixtures]


        entryScript: index-test.php


        cleanup: true