Michael Bodnarchuk2_TestCon Vilnius

Taking Full-Stack Testing to PHP with Codeception

Codeception is a full stack testing framework for PHP. While it solves 90% of possible use
cases it can be hard to get it started from scratch. In this tutorial we will unleash its most
powerful features for acceptance UI and API testing, cover functional tests, and learn how to
accomplish test automation successfully with PHP.
● General overview of Codeception
● Why choose PHP for acceptance testing?
● Listing levels of testing
● Web UI Testing:
○ Legacy app testing using PhpBrowser
○ Running browser with WebDriver
○ Writing web tests using Codeception testing framework
○ Locating elements on a web page
○ Waiting for elements on a page
○ Dealing with customized UI elements
○ Refactoring tests with PageObjects
● REST API Testing:
○ How do functional tests work
○ How to deal with framework internals
○ Using database connection for data management
○ Testing APIs with REST module
○ Incorporating REST API for data management for browser tests

Target Audience
● Junior and middle level PHP developers
● Automation QA engineers familiar with PHP

● Characterization tests for legacy application using PhpBrowser module
● Acceptance tests for Laravel-Vue application with WebDriver module
● Functional tests for Laravel-based application
● REST API functional tests for Laravel-based application

● PHP 5.6+ installed
● MySQL installed
● Java installed
● Composer installed
● CURL and PHP-curl extension installed
● PHPStorm IDE (or Netbeans) installed
Don’t forget about terminal! We will use it a lot while this training.
Laravel-based application and WordPress will be used in this tutorials.