checkout New Feature shipping

Validating Individual Shipping Methods

Out of the box Magium will select the first shipping method on the screen. But there might be some times when you need to validate a particular shipping method, or force an error to be thrown if a shipping method does not exist. ’tis now easy to do. use MagiumMagentoAbstractMagentoTestCase; class ShippingTest extends AbstractMagentoTestCase {Continue Reading “Validating Individual Shipping Methods”

assertions New Feature Performance

Asserting page load times in Magento with Magium

Validating SLAs (Service Level Agreements) is often part of executing browser tests. With Magium you can now include page timings as part of your test. Say, for example, that part of your SLA is that a page must be rendered in less than 5 seconds. This is done by using the TTFBLoadedLessThan, DOMPageLoadedLessThan or DOMContentLoadedLessThanContinue Reading “Asserting page load times in Magento with Magium”

New Feature

Validating that page assets are cached

It’s not just HTML elements that need to be tested, and sometimes not even testing that images or CSS files are being tested. Sometimes you need to test things like server configurations. Magium’s position is that there are a wealth of different areas where browser testing can benefit your organization. Validating browser testing configurations isContinue Reading “Validating that page assets are cached”

Selenium

ChromeDriver hangs with Selenium Server and Xvfb

I have spent several hours working on an issue while running Selenium Server under Xvfb with ChromeDriver.  There would basically be a 30 second timeout when connecting to Selenium Server from WebDriver with this being the exception: 1) Tests\Magium\AbstractTestCase\CoreAssertionTest::testElementDisplayed Facebook\WebDriver\Exception\WebDriverCurlException: Curl error thrown for http POST to /session with params: {“desiredCapabilities”:{“browserName”:”chrome”,”platform”:”ANY”}} Operation timed out after 30001 milliseconds with 0Continue Reading “ChromeDriver hangs with Selenium Server and Xvfb”

authentication New Feature twitter

Browser Testing Twitter OAuth Accounts

I added a Twitter OAuth integration in @magiumlib so you can easily do authentication automation. pic.twitter.com/NjHvvRDG9G — Kevin Schroeder (@kpschrade) April 6, 2016 This is a simple library to help browser tests perform OAuth logins to Twitter. To install composer require magium/twitter To use: use MagiumTwitterActionsAuthenticateTwitter; class TwitterTest extends MagiumAbstractTestCase { public function testLogin() {Continue Reading “Browser Testing Twitter OAuth Accounts”

admin Good To Know Instructions

Logging in to the Magento Admin UI

Logging in to the admin UI is fairly simple, but there are a few things you need to do ahead of time. The actual functionality looks like this: class LoginTest extends MagiumMagentoAbstractMagentoTestCase { public function testLogin() { $this->getAction(MagiumMagentoActionsAdminLoginLogin::ACTION)->login(); } } That is all that is needed to log in… from the perspective of an action.Continue Reading “Logging in to the Magento Admin UI”