PHPackages                             magium/magento - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Testing &amp; Quality](/categories/testing)
4. /
5. magium/magento

ActiveLibrary[Testing &amp; Quality](/categories/testing)

magium/magento
==============

Magento-based functionality for the Magium test library

0.6.12(5y ago)275.4k↓85.7%7[1 issues](https://github.com/magium/MagiumMagento/issues)2ASL-2.0PHP

Since Jan 23Pushed 5y ago4 watchersCompare

[ Source](https://github.com/magium/MagiumMagento)[ Packagist](https://packagist.org/packages/magium/magento)[ Docs](http://www.magiumlib.com/)[ RSS](/packages/magium-magento/feed)WikiDiscussions master Synced 4w ago

READMEChangelog (10)Dependencies (2)Versions (43)Used By (2)

[![Scrutinizer Code Quality](https://camo.githubusercontent.com/bce282cb58dabaed0614fd204df72eefd932498d9700bacc0f4461ea079ca3b0/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6d616769756d2f4d616769756d4d6167656e746f2f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/magium/MagiumMagento/?branch=master)

Magium Magento
==============

[](#magium-magento)

A PHPUnit/Webdriver (Selenium (there for SEO)) based test framework for streamlining browser testing with Magento. It basically boils down to building out reusable Web Driver commands for Magento allowing you to bypass much of the boilerplate code that browser/functional testing may require. This is done through utility classes.

[Find much more information at magiumlib.com](http://www.magiumlib.com/?utm_source=github&utm_medium=website&utm_campaign=social)

I had some good talks with some good folks this past week. Now entering the 4th month of working on Magium I can honestly say that this past week was the most exciting week I've had. It was a week when I allowed myself to think "maybe I am right about this after all!"

But, truth be told, it's been a struggle to gain some traction. People know, and I mean **really** know, that they should be automating this part of testing. Every single person who I've talked about testing via the browser has said almost the exact same thing. It's a great idea, but it takes too long and is too tedious.

Browser testing fails, in my humble opinion, because of problems that almost all software has. It is a very common problem. And it's so common I'm going to put it in `` tags to make sure everyone sees it.

Software should have easy, early wins
=====================================

[](#software-should-have-easy-early-wins)

In other words,with software, especially new or unfamiliar software, you should have something useful to show with a minimal amount of effort. That's why, I believe, despite there being several good packages out there for testing Magento with Selenium, including good ones by Magento, I believe that the reason very few use them is because they are not able to "ease" into them.

So what I am going to do is show you how you can get started with Magium, testing Magento using Selenium, in under 10 minutes.

These quick wins are on me :-)

Step 1: Download and install Selenium Server and Chromedriver
-------------------------------------------------------------

[](#step-1-download-and-install-selenium-server-and-chromedriver)

Download [Selenium Server](http://www.seleniumhq.org/download/) and [Chrome WebDriver](https://sites.google.com/a/chromium.org/chromedriver/downloads)

Start it as so, replacing the jar file with whatever the current version is and the chromedriver.exe with whichever version you downloaded:

```
java -Dwebdriver.chrome.driver=chromedriver.exe -jar selenium-server-standalone-2.48.2.jar

```

Step 2: Download and install Magento CE 1.9 with the Sample Data
----------------------------------------------------------------

[](#step-2-download-and-install-magento-ce-19-with-the-sample-data)

*Note: this doesn't count against the 10 minutes*

Make sure that it is working first before you start the timer. (I presume you don't need instructions on how to do this)

**But shouldn't I start with my own code?**

No. Start with what is common, then move to what is unique. It will be a lot easier.

Step 3: Clone the sample test cases
-----------------------------------

[](#step-3-clone-the-sample-test-cases)

```
git clone https://github.com/magium/MagiumMagentoExample.git

```

Step 4 - Edit 4 files
---------------------

[](#step-4---edit-4-files)

Edit the following files:

- configuration/Magium/Magento/Identities/Admin.php - **Enter your admin credentials**
- configuration/Magium/Magento/Identities/Customer.php - **Enter some default user credentials**
- configuration/Magium/Magento/Themes/Admin/ThemeConfiguration.php - **Change the baseUrl setting**
- configuration/Magium/Magento/Themes/Magento19/ThemeConfiguration.php - **Change the baseUrl setting**

Step 5 - Run composer
---------------------

[](#step-5---run-composer)

```
composer install

```

or if you have a custom phar installed

```
php composer.phar install

```

Step 6 - Run PHPUnit
--------------------

[](#step-6---run-phpunit)

If you are using PHPStorm all you need to do is right click on phpunit.xml.dist and select 'Run phpunit.xml.dist'

If you are running PHPUnit from the command line you will need to exectue

```
phpunit -c tests/phpunit.xml.dist

```

And with that you should see 15 tests running and passed after a few minutes.

\[[![Tests Passed](https://camo.githubusercontent.com/6a8bcfe92e137ba625bacba4e74a542f6e15976b11e113435f319f6809ddf09d/687474703a2f2f6d616769756d6c69622e636f6d2f626c6f672f77702d636f6e74656e742f75706c6f6164732f323031362f30332f323031362d30332d30345f313230342e706e67)](https://camo.githubusercontent.com/6a8bcfe92e137ba625bacba4e74a542f6e15976b11e113435f319f6809ddf09d/687474703a2f2f6d616769756d6c69622e636f6d2f626c6f672f77702d636f6e74656e742f75706c6f6164732f323031362f30332f323031362d30332d30345f313230342e706e67)\]

Does it really work this easily? Check out the video below to see Magium in action.

[![Building a test in Magium](https://camo.githubusercontent.com/8c27e4bc553cf26964318c597e7cb4b5528afac98f6f43df7a336c61d26c61ae/68747470733a2f2f696d672e796f75747562652e636f6d2f76692f2d476857414f756a38474d2f302e6a7067)](https://www.youtube.com/watch?v=-GhWAOuj8GM)

###  Health Score

36

—

LowBetter than 79% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity29

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 99.1% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~48 days

Recently: every ~329 days

Total

40

Last Release

1880d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/cd1cf3c696e501a5d5b6813b0aff73169fef00eec3ab5aa437e1302027ded655?d=identicon)[kschroeder](/maintainers/kschroeder)

---

Top Contributors

[![kschroeder](https://avatars.githubusercontent.com/u/237332?v=4)](https://github.com/kschroeder "kschroeder (337 commits)")[![mobilizer](https://avatars.githubusercontent.com/u/333002?v=4)](https://github.com/mobilizer "mobilizer (2 commits)")[![Nolwennig](https://avatars.githubusercontent.com/u/8613704?v=4)](https://github.com/Nolwennig "Nolwennig (1 commits)")

---

Tags

testingmagentoseleniumwebdriver

### Embed Badge

![Health badge](/badges/magium-magento/health.svg)

```
[![Health](https://phpackages.com/badges/magium-magento/health.svg)](https://phpackages.com/packages/magium-magento)
```

###  Alternatives

[symfony/panther

A browser testing and web scraping library for PHP and Symfony.

3.1k16.2M140](/packages/symfony-panther)[php-webdriver/webdriver

A PHP client for Selenium WebDriver. Previously facebook/webdriver.

5.2k97.4M149](/packages/php-webdriver-webdriver)[behat/mink-selenium2-driver

Selenium2 (WebDriver) driver for Mink framework

51960.3M713](/packages/behat-mink-selenium2-driver)[instaclick/php-webdriver

PHP WebDriver for Selenium 2

43663.0M23](/packages/instaclick-php-webdriver)[phpunit/phpunit-selenium

Selenium Server integration for PHPUnit

61011.1M164](/packages/phpunit-phpunit-selenium)[lmc/steward

Steward - makes Selenium WebDriver + PHPUnit testing easy and robust

224167.4k1](/packages/lmc-steward)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
