selenium - Yii2, Codeception: How to configurate acceptance tests to use the URL of my test server -
i want run functional tests on localhost, acceptance test on test server. changed configuration of acceptancetester (yii\tests\codeception\frontend\acceptance.suite.yml) from:
webdriver: url: 'http://localhost'
to:
webdriver: url: 'https://test.mydomain.com'
when run tests, need have following url in browser: https://test.mydomain.com/test-page have: https://test.mydomain.com/yii/frontpage/web/index-test.php/test-page
how can remove root yii/frontpage/web/index-test.php/ url?
in end have solved problem configuring test server able run acceptance tests:
- i have installed x window system , firefox,
- configured localhost in apache, works url: https://test.mydomain.com/yii/frontpage/web/index-test.php/test-page,
- and adjusted acceptance tests, work on test server (added more time in wait commands)
this solution has advantage, colleagues can run tests independent me.
Comments
Post a Comment