Questions tagged [codeception]

Codeception is a modern full-stack testing framework for PHP. Inspired by BDD, it provides a way of writing acceptance, functional and even unit tests. Powered by PHPUnit.

Codeception is a PHP full-stack testing framework. Inspired by BDD, it provides a new way of writing acceptance, functional and even unit tests. Powered by PHPUnit.

Feature Overview:

  • Multiple backends, easily changed , PhpBrowser
  • Elements matched by name, CSS, XPath
  • Data Cleanup after each run
  • Integrate with Symfony, Zend Framework, Laravel, Yii and other frameworks
  • Continuous Integration systems like Jenkins or Bamboo
  • Natively executes PHPUnit tests
  • BDD-style scenario-driven tests
  • WebServices testing via REST,SOAP
  • Generates HTML, XML, TAP, JSON reports
  • Simple Fixtures
  • Database and Doctrine ORM helpers
  • CodeCoverage and Remote CodeCoverage

Documentation & Links

Available modules for frameworks

1468 questions
0
votes
1 answer

Zend Framework 2 Codeception integration

I would like to use codeception as a testing framework in my existing zend framework 2 project. I installed codeception via composer but i dont know what to do next to get my first tests running. I found the following github file but i dont really…
Stillmatic1985
  • 1,792
  • 6
  • 20
  • 39
0
votes
1 answer

Codeception WebDriver installation

I'm using this documentation for testing codeception in a firefox browser http://codeception.com/docs/modules/WebDriver I have everything set up, as I previously played around a bit with codeception with PhpBrowser. But I have an issue running…
funky
  • 27
  • 9
0
votes
1 answer

How to trouble shoot codeception unit tests in laravel 4

While my other Codeception tests are running (acceptance, api, etc,), very little of the unit tests will run. It does not see any tests of type Test.php, only Cept.php and Cest.php. It does not accept (errors) any assertion tests such as…
user3061986
  • 75
  • 1
  • 9
0
votes
1 answer

Codeception sqlite:memory against Mockery in Laravel 4

I noticed Codeception has the option of sqlite:memory. Should I opt out of Mockery when this is the case? What I understand is Mockery enables a test to avoid hitting the database. With the mentioned option of Codeception I am able to seed the…
user2094178
  • 9,204
  • 10
  • 41
  • 70
0
votes
1 answer

Using Codeception what do I use for a Page Object when testing REST APIs

I'm using Codeception to create api tests for some REST API's. I'm finding that the Page Objects are really helpful in writing my tests but should I be using another Codeception object? For example, I'm putting User information (first name, last…
Clutch
  • 7,404
  • 11
  • 45
  • 56
0
votes
1 answer

How to make auto test working with already login part

First of all i'm first time working with automatic tests, so sorry if my question will be easy or difficult in description of my problem. I'm working with Selenium2 and Codeception for creating and using auto test. For example i have a test which…
0
votes
1 answer

Codeception and Selenium 2 warning

I have a lot of warning when trying to run Selenium2 tests through codeception. The tests work though. These are the warning if someone can lead me on the right way to correct : C:\Users\Bebop\Documents\Site…
Thoma Biguères
  • 1,136
  • 4
  • 18
  • 42
0
votes
1 answer

codeception with ms sql? Behat support for mssql?

Has anyone got this working? I know the docs say that ms sql support is not tested, so I wonder if anyone had it working? I have enabled the Db module in acceptance.suite.yml And my credentials in codeception.yml look like this: modules: config: …
HowApped
  • 1,001
  • 3
  • 12
  • 22
0
votes
1 answer

Fatal error in Codeception

I have downloaded and installed Codeception. I used the following instructions: http://codeception.com/thanks After writing and running the tests I get the following error: Fatal error: Call to protected method Codeception\TestCase\Test::_before()…
Rick Slinkman
  • 643
  • 10
  • 23
0
votes
1 answer

Object of class Codeception\Maybe could not be converted to int

I'm checking out Codeception, and I'm trying to write my own grabber. In my WebHelper.php: function grabMaxOffers() { return 10; } (note: eventually, this will return a dynamic value) In my TestCept.php file: $max =…
Mike Crowe
  • 2,203
  • 3
  • 22
  • 37
0
votes
2 answers

Trying to use XPath for auto testing in (fillField)

Try to test some Fields and when i check "Inspect element" to identify id or name of Fields but there was only class that didn't work so i decided to use XPath for…
0
votes
1 answer

Selenium webdriver tests with PHP and Codeception stops mid test with no error message

I got this this test: wantTo('ensure that user can log in to Nova.'); $I->amOnPage('/'); $I->see('ABC'); // Login $I->fillField("//input[@name='email']", "test@mail.com"); //<-- Test stops…
Sebastian L
  • 924
  • 2
  • 10
  • 20
0
votes
1 answer

php codecept.phar run (codeception)

I have installed Codeception following the guide on their website. Create first test. $I = new WebGuy($scenario); $I->wantTo('ensure that frontpage works'); $I->amOnPage('/'); $I->see('Homepage'); And what we have when we start testing php…
0
votes
5 answers

Codeception - pointing DB to MAMP MySQL server

Is there a way to point the DB module for Functional tests in codeception to your MAMP MySQL server rather than the built in server? class_name: TestGuy modules: enabled: [Db, Filesystem, TestHelper] config: Db: …
Ashley Banks
  • 528
  • 5
  • 16
0
votes
1 answer

Codeception - HTML report generation seems slow?

I am using Codeception to run three acceptance tests which basically are as follows:- Check the email address 'admin@admin.com' exists Create a new user account Login to the website Obviously this requires the database so I have added 'Db' to the…
Zabs
  • 13,852
  • 45
  • 173
  • 297