Skip to content
This repository was archived by the owner on Feb 20, 2019. It is now read-only.

Conversation

@individual-it
Copy link
Contributor

documenting how to run UI tests locally

the full scope of this process will work after owncloud/core#27838 is merged

for implementation see also owncloud/core#27316

Copy link
Contributor

@phil-davis phil-davis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have just checked how it reads.
Next I should try to follow the instructions...

Set Up test
~~~~~~~~~~~
- place the selenium standalone server jar file and the webdriver(s) somewhere in the same folder
- start the selinium server ``java -jar selenium-server-standalone-3.0.1.jar -port 4445``
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

s/selinium/selenium

~~~~~~~~~~~
- place the selenium standalone server jar file and the webdriver(s) somewhere in the same folder
- start the selinium server ``java -jar selenium-server-standalone-3.0.1.jar -port 4445``
- set following environment variables:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"set the following..."

Known issues
~~~~~~~~~~~~

- webdriver for current Firefox is not working correctly, so we need to test on 47.0.2 and to use selenium server 2.53.1 for it
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"the webdriver for the current Firefox..."
I think the little words here make it read more nicely.


Requirements:
~~~~~~~~~~~~~
- ownCloud >= 10.0 (make sure you have an running instance of ownCloud complete setup)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

s/complete/completely/g

Requirements:
~~~~~~~~~~~~~
- ownCloud >= 10.0 (make sure you have an running instance of ownCloud complete setup)
- admin user called "admin" with the password "admin"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"An admin" not "admin".

export BROWSER=chrome


- if you don't have a webserver already running start php development server with:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

suggestion: "start the PHP development server", not "start php development server"


- if you don't have a webserver already running start php development server with:
``bash tests/travis/start_php_dev_server.sh`` (leave SRV_HOST_URL empty in that case. ``export SRV_HOST_URL=""``)
The server will bind to: $SRV_HOST_NAME:$SRV_HOST_PORT
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd suggest that you surround $SRV_HOST_NAME:$SRV_HOST_PORT with double backticks, to render it as code.

- if you don't have a webserver already running start php development server with:
``bash tests/travis/start_php_dev_server.sh`` (leave SRV_HOST_URL empty in that case. ``export SRV_HOST_URL=""``)
The server will bind to: $SRV_HOST_NAME:$SRV_HOST_PORT
- run tests: ``bash tests/travis/start_behat_tests.sh``
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

suggestion: "run the tests", not "run tests"

Known issues
~~~~~~~~~~~~

- the webdriver for the current Firefox is not working correctly, so we need to test on 47.0.2 and to use selenium server 2.53.1 for it
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

suggestion: "for the current version of Firefox", not "the current Firefox"

~~~~~~~~~~~~

- the webdriver for the current Firefox is not working correctly, so we need to test on 47.0.2 and to use selenium server 2.53.1 for it
- download and install version 47.0.2 of firefox from here: https://ftp.mozilla.org/pub/firefox/releases/47.0.2/
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you need a specific version of Firefox, or will the latest version work properly?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we need version 47.0.2 of Firefox and version 2.53.1 of selenium server

- place the selenium standalone server jar file and the webdriver(s) somewhere in the same folder
- start the selenium server ``java -jar selenium-server-standalone-3.0.1.jar -port 4445``
- set the following environment variables:
- SRV_HOST_NAME (the hostname where ownCloud runs)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd suggest surrounding SRV_HOST_NAME, and the other three environment variables in double backticks

Copy link
Contributor

@settermjd settermjd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On the whole it looks fine, comments aside. I can't comment on it working, as I've not tested it, however.

@phil-davis phil-davis mentioned this pull request May 11, 2017
9 tasks
~~~~~~~~~~~~~
- ownCloud >= 10.0 (make sure you have an running instance of ownCloud completely setup)
- default language set to "en" (in ``config/config.php`` set ``'default_language' => 'en',``)
- skeletondirectory set to ``<owncloud-base-folder>/tests/ui/skeleton``
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

s/skeletondirectory/skeleton directory/g

Copy link
Contributor

@settermjd settermjd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One last change, then it's fine by me.

@settermjd settermjd merged commit 9de8e3c into master May 11, 2017
@settermjd settermjd deleted the ui-tests branch May 11, 2017 13:54
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants