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
-1
votes
1 answer

Codeception Conditional Assertions with custom functions

So we got Codeception to look at a different database while testing another database in the same Cept file What I need help with is getting the functions CanSeeInMasterDatabase and CantSeeInMasterDatabase to throw errors once the test completes. In…
kapperkp
  • 199
  • 1
  • 3
  • 14
-1
votes
1 answer

Codeception TeamCity integration

I run this command line build step: cd ../common && php ../../../vendor/bin/codecept --xml --no-exit run In build log i have my tests output. I use codeception for my tests and i found only phpunit meta runner for teamcity. I want to fail build if…
Onedev_Link
  • 1,981
  • 13
  • 26
-1
votes
1 answer

How to write same codeception acceptance test case with many different set of inputs

In codeception acceptance testing, how to run/write same test case for many different set of inputs. Here is my sample acceptance test (I am using page object oncept) loginCept.php code $I = new AcceptanceTester($scenario); $I->wantTo('perform…
-1
votes
1 answer

How to Implement Acceptance test with Codeception on Javascript Page

I am currently working on test solutions, so far I have been implementing: Unit Test Functional Test Both with Codeception, a php test framework. I want to run an acceptance test but the phpBrowser module is for non javasript pages. I came accross…
william.eyidi
  • 2,315
  • 4
  • 27
  • 39
-1
votes
1 answer

How to test Socket + API

I have an API written in PHP, which works with nodejs sockets. I want to test this project with PHPUnit or codeception. How to do it? What is the best way to do it? I didn't found any documentation.
user3185208
  • 47
  • 1
  • 1
  • 7
-2
votes
1 answer

Is there a variable in which the console output is stored? (Codeception)

Is there a variable in which the console output is stored? If I have this variable I can save it in a file and open it later.
METAPum4
  • 25
  • 3
-2
votes
1 answer

How to pass information from Codeception to my app?

I'm setting up a test suite with Codeception. I need both my app and Codeception to connect to the same test database, but for my app to connect to the dev database when it's not being tested. I'm looking for some way to tell my app that it's being…
user3356802
  • 141
  • 2
  • 8
-2
votes
1 answer

Can't understand why I'm receiving an error with codecept

I'm writing a small test program where I want to reach login form and to fill it. However, I receive an error. Here's what I got in my code:
HenrikasB
  • 321
  • 1
  • 9
-2
votes
2 answers

Find out URL response to check broken Url's in Codeception

I have fetched multiple URL's using grabMultiple() method. I want to check its response to check whether it is broken(i.e.404) or not. Can I use HTTP Response in Codeception ? If yes what is the syntax ?
-2
votes
2 answers

not able to Install codeception in windows

C:\wamp\www\project\automation\codeception> php codecept.phar bootstrap PHP Parse error: syntax error, unexpected '[' in phar://C:/wamp/www/project/aut omation/codeception/codecept.phar/vendor/guzzlehttp/guzzle/src/functions.php on …
-3
votes
1 answer

Cannot add a NOT NULL column with default value NULL

I'm testing a laravel site using codeception and I've followed the following tute: http://www.phplab.info/categories/laravel/how-to-specify-a-separate-database-for-unit-testing-on-laravel-5 I'm getting the following…
Jerome Papalie
  • 21
  • 2
  • 10
-3
votes
1 answer

Download Selenium Server

Can any one help me to guide, how can I download Selenium web driver? I have already installed codeception and already perform acceptance testing in php browser.
-5
votes
1 answer

Write a test that clicks on a date

My register view:
1 2 3
97
98