Permalink
Browse files

Environmental changes:

 PHPunit 3.6.10 ver. with PHPUnit Selenium extension 1.2.6 ver. now officially supported only.
 1. Updated architecture
     a. Uimaps inheritance
     b. Helpers inheritance
     c. Codepool and namespaces
 3. Uimap blocks including
 4. Crash recovery
 5. External observers
 6. Behat support
 7. Improved data load logic
 8. Client OS detection
 9. Improved screenshots functionality
 10. CE 1.7 compatible suite.
  • Loading branch information...
1 parent 888da24 commit 2ef06b82da50254ac6a3f420fb10b9a33155e277 @MTAF MTAF committed with Artem Dvornichenko May 18, 2012
Showing 393 changed files with 26,567 additions and 20,065 deletions.
View
@@ -1,6 +1,6 @@
-config/config.yml
config/local.yml
+config/config.yml
phpunit.xml
-tmp/*
+var/*
/.idea
/nbproject
Binary file not shown.
Binary file not shown.
View
@@ -22,16 +22,21 @@
* @package selenium
* @subpackage runner
* @author Magento Core Team <core@magentocommerce.com>
- * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
+ * @copyright Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
+if (version_compare(PHPUnit_Runner_Version::id(), '3.6.0', '<')) {
+ throw new RuntimeException('PHPUnit 3.6.0 (or later) is required.');
+}
define('SELENIUM_TESTS_BASEDIR', realpath(dirname(__FILE__)));
define('SELENIUM_TESTS_SCREENSHOTDIR',
- realpath(SELENIUM_TESTS_BASEDIR . DIRECTORY_SEPARATOR . 'tmp' . DIRECTORY_SEPARATOR . 'screenshot'));
+ realpath(SELENIUM_TESTS_BASEDIR . DIRECTORY_SEPARATOR . 'var' . DIRECTORY_SEPARATOR . 'screenshots'));
+define('SELENIUM_TESTS_LOGS',
+ realpath(SELENIUM_TESTS_BASEDIR . DIRECTORY_SEPARATOR . 'var' . DIRECTORY_SEPARATOR . 'logs'));
set_include_path(implode(PATH_SEPARATOR, array(
- realpath(SELENIUM_TESTS_BASEDIR . DIRECTORY_SEPARATOR . 'lib'),
- realpath(SELENIUM_TESTS_BASEDIR . DIRECTORY_SEPARATOR . 'tests'), //To allow load tests helper files
+ realpath(SELENIUM_TESTS_BASEDIR . DIRECTORY_SEPARATOR . 'framework'),
+ realpath(SELENIUM_TESTS_BASEDIR . DIRECTORY_SEPARATOR . 'testsuite'), //To allow load tests helper files
get_include_path(),
)));
@@ -41,3 +46,6 @@
require_once 'functions.php';
Mage_Selenium_TestConfiguration::getInstance();
+
+//Mage_Listener_EventListener::autoAttach(SELENIUM_TESTS_BASEDIR
+// . implode(DIRECTORY_SEPARATOR, array('', 'framework', 'Mage', 'Listener', 'Observers', '*.php')));
View
@@ -21,34 +21,51 @@
# @package selenium
# @subpackage configuration
# @author Magento Core Team <core@magentocommerce.com>
-# @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
+# @copyright Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
# @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
#
---
+################################################################################
+# #
+# Browsers for running tests #
+# #
+################################################################################
browsers:
- firefox: &firefox
- name: Firefox
- browser: '*firefox'
- host: 127.0.0.1
- port: 4444
- doNotKillBrowsers: false
- browserTimeoutPeriod: 40000
- iexplore: &iexplore
- name: Internet Explorer
- browser: '*iexplore'
- host: 127.0.0.1
- port: 4444
- doNotKillBrowsers: false
- browserTimeoutPeriod: 40000
googlechrome: &googlechrome
- name: Google Chrome
- browser: '*googlechrome'
- host: 127.0.0.1
- port: 4444
- doNotKillBrowsers: false
- browserTimeoutPeriod: 40000
- default: *chrome
-default:
+ name: 'Google Chrome'
+ browser: '*googlechrome'
+ host: 'localhost'
+ port: 4444
+ timeout: 40
+ firefox: &firefox
+ name: 'Firefox'
+ browser: '*chrome'
+ host: 'localhost'
+ port: 4444
+ timeout: 40
+ iexplorer: &iexplorer
+ name: 'Internet Explorer'
+ browser: '*iexplore'
+ host: 'localhost'
+ port: 4444
+ timeout: 60
+ default: *firefox
+################################################################################
+# #
+# Framework configuration #
+# #
+################################################################################
+framework:
+ fixture_base_path: 'fixture'
+ testsuite_base_path: 'testsuite'
+ #work only if tests are run for single browser
+ shareSession: true
+ coverageScriptUrl: ''
+ #captureScreenshotOnFailure works only for browsers that support it: Firefox/Chrome, IE with snapsIE tool
+ captureScreenshotOnFailure: true
+ saveHtmlPageOnFailure: false
+ load_all_uimaps: true
+ load_all_data: true
cache:
frontend:
name: 'core'
@@ -59,25 +76,57 @@ default:
backend:
name: 'file'
options:
- cache_dir: 'tmp/cache'
- uimaps:
- basePath: uimaps
- applications:
- magento: &magento
- adminLogin: admin
- adminPassword: admin
- storeName: Store Name
- areas:
- admin:
- url: 'http://www.localhost.com/magento/admin/'
- uimap_path: 'admin'
- frontend:
- url: 'http://www.localhost.com/magento/'
- uimap_path: 'frontend'
- paypal-sandbox:
- url: 'https://www.sandbox.paypal.com/'
- uimap_path: 'third-party/paypal-sandbox'
- paypal-developer:
- url: 'https://developer.paypal.com/'
- uimap_path: 'third-party/paypal-developer'
- default: *magento
+ cache_dir: 'var/cache'
+################################################################################
+# #
+# Applications for running tests #
+# #
+################################################################################
+applications:
+ mage: &mage
+ fallbackOrderFixture: 'default'
+ fallbackOrderHelper: 'Core'
+ areas:
+ admin:
+ url: 'http://www.localhost.com/magento/admin/'
+ base_page_uimap: 'log_in_to_admin'
+ uimap_path: 'admin'
+ login: 'admin_login'
+ password: 'admin_password'
+ frontend:
+ url: 'http://www.localhost.com/magento/'
+ base_page_uimap: 'home_page'
+ uimap_path: 'frontend'
+ login: ''
+ password: ''
+ paypal_sandbox: &paypalSandbox
+ url: 'https://www.sandbox.paypal.com/'
+ base_page_uimap: 'paypal_sandbox'
+ uimap_path: 'paypal_sandbox'
+ login: 'paypal_sandbox_login'
+ password: 'paypal_sandbox_password'
+ paypal_developer: &paypalDeveloper
+ url: 'https://developer.paypal.com/'
+ base_page_uimap: 'paypal_developer_home'
+ uimap_path: 'paypal_developer'
+ login: 'paypal_developer_login'
+ password: 'paypal_developer_password'
+ other_app: &other_app
+ fallbackOrderFixture: 'other_app, default'
+ fallbackOrderHelper: 'Other_app, Core'
+ areas:
+ admin:
+ url: 'http://www.localhost.com/magento_enterprise/admin/'
+ base_page_uimap: 'log_in_to_admin'
+ uimap_path: 'admin'
+ login: 'admin_login'
+ password: 'admin_password'
+ frontend:
+ url: 'http://www.localhost.com/magento_enterprise/'
+ base_page_uimap: 'home_page'
+ uimap_path: 'frontend'
+ login: ''
+ password: ''
+ paypal_sandbox: *paypalSandbox
+ paypal_developer: *paypalDeveloper
+ default: *mage
Oops, something went wrong.

0 comments on commit 2ef06b8

Please sign in to comment.