- Menta is a testing framework for PHP that provides components and utilities for automating tests using Selenium WebDriver.
- It includes components for common tasks like assertions, waiting, taking screenshots. Page object components are used to represent pages under test.
- Menta manages Selenium sessions, handles configuration, and integrates with PHPUnit to allow writing and running automated tests. It aims to provide reusable tools for test automation.
8. timespent
task size
does it
manually
does it
manually
gets annoyed
writes script to
automate
runs script
wins
loses
Geeks vs. Non-Geeks
Makes fun of geek’s
complicated method
9. — Ovidiu Platon
We are not shipping your machine!
if it works on your machine!
I don’t care
21. Unit Tests Integration Tests
AOE PMD
(for Magento)
broken links,
HTTP headers,
W3C validity,…
Test features that rely on other
parts (e.g. framework, external
services,…)
External components
(SSL, Redis, Varnish,…)
Basically this is also
PHPUnit, but
addressing other stuff
40. So what?
A thin layer is good!
But not enough…
no test logic
no higher level
components
dealing with
Selenium specific tasks
not compatible to
legacy test cases
No abstraction /
structure
47. Features
MentaThe framework.
Not the cat…
Components Session Management
?Bonus Features :)Event / ObserverConfiguration Management
PHPUnit integration
49. Menta for PHPUnit
Abstract test class
PHPUnit_Framework_TestCaseMenta_PHPUnit_Testcase_Selenium2ProjectY_Abstract_TestCase
Very thin layer on
top of PHPUnit
ProjectY_TestCase_Registration ProjectY_TestCase_Checkout
the “magic” happens
in the components