Implement front-end Selenium Tests#27058
Conversation
|
The credentials fail here because the ownCloud Travis account needs to be set up with the necessary credentials that can access a valid account on SauceLabs. |
|
Closing this as there will be significant differences in the list of files to be added, after review is done. So no point continuing to have this version for testing. |
|
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Description
This is a set-up for frontend test via selenium. The builds are run on travis-ci.org and it triggers selenium tests on sauce labs
This is a PR from a local branch in owncloud/core to demonstrate that the Selenium credentials work when the Travis job is triggered to run tests on a local branch.
#27056 for the PR from a forked repo by @individual-it
Related Issue
#27055 (Proposal to run selenium tests)
#26975 (PR that is not covered by tests, but can be covered by selenium tests)
Motivation and Context
Some bugs are hard to catch with karma & PHPUnit tests. Primarily these are front-end bugs. This PR implements an end-to-end testing environment run on real browsers. Currently only Chrome browser is used, but it can be extended to multiple browsers/platforms including mobile browsers.
Currently @individual-it sauce-labs account is used. Of course it would be good that an oC account would be used in future.
run these tests locally
java -jar selenium-server-standalone-3.0.1.jarSRV_HOST_NAME, SRV_HOST_URL and SRV_HOST_PORTe.g.:bash tests/travis/start_php_dev_server.shit will bind to:
$SRV_HOST_NAME:$SRV_HOST_PORTphpunit --configuration tests/phpunit-selenium-autotest.xmlHow Has This Been Tested?
@individual-it joined travis with their own account on sauce labs and has run multiple tests. Created bugs and run tests again to see if they are failing.
Screenshots (if appropriate):
Examples of travis jobs:
https://travis-ci.org/individual-it/owncloud-core/jobs/196827720
https://travis-ci.org/individual-it/owncloud-core/jobs/196571894
Sauce-Labs view:

Types of changes
Checklist: