-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Selenium implementation #27056
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Selenium implementation #27056
Conversation
the tests are run on http://saucelabs.com/
only run the selenium tests whe SAUCE_USERNAME & SAUCE_ACCESS_KEY are configured. That way a PR from an external, that does not have access to the sauce env., will not trigger the selenium tests
…al-it/owncloud-core into selenium-implementation
|
@individual-it, thanks for your PR! By analyzing the history of the files in this pull request, we identified @DeepDiver1975 and @PVince81 to be potential reviewers. |
|
Note: The Selenium tests cannot get started in this PR because the pull is from a separate repo, and Travis does not export the credentials, as documented at https://docs.travis-ci.com/user/pull-requests Otherwise SauceLabs credentials would have to be put in the clear somewhere, and anyone could then take them and run lots of SauceLabs jobs using them. That would open a DOS vector, where a malevolent person could clog up the SauceLabs account with lots of irrelevant jobs, delaying genuine jobs. |
|
@owncloud/qa @DeepDiver1975 @felixboehm |
|
See #27058 for a local branch with this code. The tests still do not run, but that is because credentials for SauceLabs would need to be added to the ownCloud Travis account. |
|
closing this in favour of a behat based solution |
|
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
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 this are front-end bugs. This PR implements 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 my own sauce-labs account is used. Of course it would be good that a oC account would be used in future.
run this 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?
I've joined travis with my own account on sauce labs and 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: