codeception

codecept: command not found

﹥>﹥吖頭↗ 提交于 2019-12-21 05:14:13
问题 I did a fresh installation of Ubuntu and after installing Yii2 etc I can't seem to be able to run codecept anymore. I'm using Yii2. I required the latest codecept version in composer.json which is working fine. But I can't seem to find a way to get codeception running again. I've been looking through all the guides but none of them have anything other then just to composer require or add it to the composer.json. I do have noticed when I wanted to add codecept to my $PATH that I don't have a

Vagrant, Codeception & Laravel issue. NotFoundHttpException

和自甴很熟 提交于 2019-12-20 06:41:11
问题 I'm trying to get into using codeception for my acceptance testing. I have the following for one of my tests: <?php use Codeception\Util\Stub; class SomeTest extends \Codeception\TestCase\Test { protected $webGuy; /** * @test */ public function incorrect_login_should_redirect_back() { $I = $this->webGuy; $I->wantTo('fail at logging in'); $I->amOnPage('/'); // <-- This is the line that is failing $I->fillField('email','info@tntstudio.hr'); $I->fillField('password','pass'); $I->click('Login');

Use of undefined constant SIGTERM - > assumed 'SIGTERM'

拜拜、爱过 提交于 2019-12-20 02:42:20
问题 Currently running PHPUnit with Codeception on my Windows machine gives me an error: [PHPUnit_Framework_Exception] Use of undefined constant SIGTERM - assumed 'SIGTERM' As far as I know is that SIGTERM is a constant provided by PCNTL, which is not supported in Windows. In that way this CONSTANT shouldnt be used for a test running on Windows env. at all. My PHP setup: PHP 5.6.17 (cli) (built: Jan 6 2016 13:28:38) Copyright (c) 1997-2015 The PHP Group Zend Engine v2.6.0, Copyright (c) 1998-2015

Unable to access Remote Webdriver to Browserstack using Codeception

巧了我就是萌 提交于 2019-12-19 11:04:31
问题 I am Writing scripts for Browserstack using PHP Codeception. Here it is my acceptance.yml file modules: enabled: - WebDriver config: WebDriver: url: 'http://www.google.com' host: 'hub.browserstack.com' port: 80 browser: Android device: Samsung Galaxy S5 deviceOrientation: portrait capabilities: 'browserstack.user': 'USERNAME' 'browserstack.key' : 'ACCESS_KEY' 'browserVersion': '21.0' 'browserstack.debug': 'true' But after run the program through the command line, it will be displaying as

Codeception, write acceptance tests with the pageObject design pattern and gherkin

浪尽此生 提交于 2019-12-18 18:34:33
问题 I'm looking for a simple example of code with the pageObject design pattern and gherkin because when I follow the codeception BDD documentation, all examples written in the tests/ support/AcceptanceTester.php. I don't understand (poor english skills - -) how not concentrate all code in the AcceptanceTester.php file. By example, I have a sample home page with two buttons A and B. If the user click on the button A, the page A is loaded else if the user click on button B, the page B is loaded.

`[Exception] DateTime::__construct(): `It is not safe to rely on the system's timezone settings [duplicate]

痞子三分冷 提交于 2019-12-18 12:54:09
问题 This question already has answers here : PHP Configuration: It is not safe to rely on the system's timezone settings [duplicate] (12 answers) Closed 6 years ago . I 'm using codeception (bdd) making test but gives error [Exception] DateTime::__construct(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you

Codeception, configure suite test path

萝らか妹 提交于 2019-12-14 02:41:57
问题 I'm having a problem with Codeception. I have a project that involving team, and I want to implement test with codeception and this test should work for everyone in my team. currently I setup the test for my own-purpose, and here is the example configuration of it: class_name: FunctionalTester modules: enabled: # add framework module here - Yii1 - \Helper\Functional - PhpBrowser - Db config: Yii1: appPath: '/Volumes/disk0s4/www/new-proj/trunk/test.php' url: 'https://my.proj.local/test.php'

Symfony2 + Codeception gives “You must override the KernelTestCase::createKernel()”

不羁的心 提交于 2019-12-13 19:41:37
问题 I created a new test that inherits from WebTestCase. When I run my codeception tests, I get the following error: [RuntimeException] You must override the KernelTestCase::createKernel() method. It is very unclear to me with what I need to override it. What I want is a client that can call a certain URI to get my http response This is the test: public function testSearchAction() { $searchUri = '/search'; $client = static::createClient(); $client->request('GET', $searchUri); $response = $client-

How to configure codeception for functional test with Symfony2?

谁说我不能喝 提交于 2019-12-13 14:01:29
问题 I'm using this functional.suite.yml: class_name: FunctionalTester modules: enabled: - Symfony2 - \Helper\Functional I build and run tests and get: Trying to Log in and see result (LoginCept)... PHP Fatal error: Undefined class constant 'UNKNOWN' in phar:///usr/local/bin/codecept/vendor/phpunit/phpunit/src/Framework/TestResult.php on line 592 PHP Stack trace: PHP 1. {main}() /usr/local/bin/codecept:0 PHP 2. require_once() /usr/local/bin/codecept:7 PHP 3. Symfony\Component\Console\Application-

How to fill CKeditor textarea with content using codeception

拈花ヽ惹草 提交于 2019-12-13 08:36:02
问题 This is a follow up question to this one -- How to fill a rich text editor field for a Codeception Acceptance test The solution given on this post, works perfectly on CKeditor version 4.3.2 Standard as seen on this site CKeditor instance but unfortunately does not work on my site's own CKeditor which is version 4.5.10. Issue with my site's CKeditor - Webdriver throws an error that the name attribute of the textarea is not found. On the example, working CKeitor this is not an issue, I am able