Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Solving issues with VM on USB flash drive to run functional tests

ashugayev edited this page · 2 revisions

Current VMs on USB flash drive have some issues which should be considered during their configuration. First, please, pay attention that installed Magento has sample data, which can cause some test cases failures, because functional test have been written for clear Magento instance. That's why in order to run existent tests, it's better to deploy Magento on clear database. If you are going to use current Magento instance installation you should receive the latest changes from github. You can just pull current Magento via git pull, in this case you will face with an error:

fatal: http://github.com/magento/bugbash_march_2013/info/refs not found: did you run git update-server-info on the server?

If you get this error, please, edit .git/config file, change this line

url = http://github.com/magento/bugbash_march_2013

to

url = http://github.com/magento/bugathon_march_2013

In other case, you should manually create var folder in taf directory with two subfolders logs and screenshots. The second thing you must to consider, it's functional test configuration. To set up you instance open ../taf/config directory and copy config.yml.dist to new one local.yml. Then open created file for editing. You should update frontend and backend urls and admin login credentials. The end file should look like:

################################################################################
#                                                                              #
#                  Applications for running tests                              #
#                                                                              #
################################################################################
applications:
    mage: &mage
        fallbackOrderFixture: 'community1701, community17, default'
        fallbackOrderHelper: 'Community1701, Community17, Core'
        areas:
            admin:
                url: 'http://magento-hackathon.com/mage/index.php/admin/'
                base_page_uimap: 'log_in_to_admin'
                uimap_path: 'admin'
                login: 'admin'
                password: '123123q'
            frontend:
                url: 'http://magento-hackathon.com/mage/index.php/'
                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'
    default: *mage

Please note, that for launching functional test you need to start selenium server manually by command

java -jar selenium-server-standalone-2.30.0.jar -trustAllSSLCertificate

To run test from command line you should navigate to /home/user/mage/taf and then you can execute

phpunit testsuite/Core/Mage/Product/Create/SimpleTest.php

Enjoy writing functional test!

Something went wrong with that request. Please try again.