selenium testing

13 views
Skip to first unread message

John Wiseman

unread,
Dec 30, 2012, 7:27:52 PM12/30/12
to mave...@googlegroups.com
I've started creating a selenium webdriver testing script, selenium_test.py.

To use it, first do sudo pip install selenium and make sure you have firefox installed.  Then start a software-in-the-loop simuation and start mavelous.  Arm the vehicle.  Now you can run the script and it will run a couple tests in Firefox:

[jwiseman@ubuntu mavelous (master)]$ python selenium_test.py -v
Ensure that the simulated uav is ARMED.
test_flight_mode_buttons (__main__.MavelousWebTest)
Testing flight mode buttons ... ok
test_gps_button (__main__.MavelousWebTest)
Testing GPS button ... ok

It's already helped make one issue with the navbar buttons clearer (https://github.com/wiseman/mavelous/issues/38).


John

Reply all
Reply to author
Forward
0 new messages