Warning: Can't synchronize with repository "(default)" (/home/git/ome.git does not appear to be a Git repository.). Look in the Trac log for more information.
- Timestamp:
-
02/23/11 10:18:33 (13 years ago)
- Author:
-
wmoore
- Comment:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
-
-
Property
Status
changed from
new
to
accepted
-
v2
|
v5
|
|
1 | 1 | Write Selenium tests for web, aiming for as much coverage as possible! |
2 | 2 | |
3 | | To get started running tests, download Selenium RC from http://seleniumhq.org/download/ unzip and run |
| 3 | To get started running tests locally, download Selenium RC from http://seleniumhq.org/download/ unzip and run |
4 | 4 | |
5 | 5 | {{{ |
… |
… |
|
8 | 8 | }}} |
9 | 9 | |
| 10 | You need to set up ice.config and various Python paths. This setup (below) works for running OmeroPy unit tests and seems to work for Selenium too. |
| 11 | |
| 12 | Put ice.config in components/tools/OmeroPy |
| 13 | {{{ |
| 14 | omero.host=localhost |
| 15 | omero.port=4064 |
| 16 | omero.user=root |
| 17 | omero.pass=omero |
| 18 | omero.rootpass=omero |
| 19 | }}} |
| 20 | |
| 21 | Go to components/tools/OmeroPy and do: |
| 22 | {{{ |
| 23 | export PYTHONPATH=`pwd`/build/lib:`pwd`/test:$PYTHONPATH |
| 24 | export HDF5_DISABLE_VERSION_CHECK=2 |
| 25 | export ICE_CONFIG=`pwd`/ice.config |
| 26 | }}} |
| 27 | |
10 | 28 | Then run tests: |
11 | 29 | |
12 | | E.g. to run the webmobile test |
13 | | (at {{{omeroweb/webmobile/tests/seleniumtests.py}}} with Selenium server at 'localhost' and the OMERO web pages available at localhost:4080 using firefox: |
| 30 | E.g. to run the webadmin test |
| 31 | (at {{{omeroweb/webadmin/tests/seleniumtests.py}}} with Selenium server at 'localhost' and the OMERO web pages available at localhost:4080 using firefox: |
14 | 32 | |
15 | 33 | {{{ |
16 | | $ bin/omero web seleniumtest webmobile localhost http://localhost:4080 firefox |
| 34 | $ bin/omero web seleniumtest webadmin localhost http://localhost:4080 firefox |
17 | 35 | }}} |
1.3.13-PRO © 2008-2011
Agilo Software all
rights reserved
(this page was served in: 0.12362 sec.)