Implement front-end Selenium Tests #27058
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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: