diff --git a/tests/README b/tests/README deleted file mode 100644 index 60dff673d..000000000 --- a/tests/README +++ /dev/null @@ -1,13 +0,0 @@ -Airtime Tests - -Selenium: -- No prerequisites required. -- To set it up and run it, run: - $ ./run_selenium.sh - - -Airtime web app unit tests: -- See airtime_mvc/tests/README - -Airtime Analyzer unit tests -- See python_app/airtime_analyzer/README diff --git a/tests/run_selenium.sh b/tests/run_selenium.sh deleted file mode 100755 index 7647eddde..000000000 --- a/tests/run_selenium.sh +++ /dev/null @@ -1,47 +0,0 @@ -#!/bin/bash - -SELENIUM_BIN=selenium-server-standalone-2.42.2.jar -SELENIUM_URL=http://selenium-release.storage.googleapis.com/2.42/selenium-server-standalone-2.42.2.jar - -printUsage() -{ - echo "Usage: ${0} airtime_url" - echo " Example: ${0} http://bananas.airtime.pro" -} -if [ -z "$1" ] -then - printUsage - exit 1 -fi - -AIRTIME_URL="${1}" - -# Check if java is installed -which java >& /dev/null -if [ $? -gt 0 ] -then - echo "java not found. Please install it." -fi - -# Check for selenium-server -if [ ! -f ${SELENIUM_BIN} ] -then - echo "Selenium not found, downloading it..." - wget ${SELENIUM_URL} -fi - -# Check for xvfb-run, which lets us run Firefox in a headless X server -which xvfb-run >& /dev/null -if [ $? -gt 0 ] -then - echo "xvfb-run not found, apt-getting it now..." - sudo apt-get install xvfb -fi - -# Livechat is very slow to load sometimes, which can make the tests fail. Here we tell Selenium to replace "livechatinc" in any HTML with -# some non-existent domain. -REMOVE_LIVECHAT_PARAMS="-userContentTransformation livechatinc foobar1234567testtest" - -# You must pass the full path to the HTML suite and the results file to Selenium: -xvfb-run java -jar ${SELENIUM_BIN} -proxyInjectionMode ${REMOVE_LIVECHAT_PARAMS} -htmlSuite "*firefox" "${AIRTIME_URL}" "${PWD}"/selenium/Airtime.html "${PWD}"/results.html - diff --git a/tests/selenium/Add Media Skeleton Present.html b/tests/selenium/Add Media Skeleton Present.html deleted file mode 100644 index d9def30cf..000000000 --- a/tests/selenium/Add Media Skeleton Present.html +++ /dev/null @@ -1,37 +0,0 @@ - - - -
- - -Add Media Skeleton Present | ||
open | -/Showbuilder | -- |
clickAndWait | -//ul[@id='nav']/li[2]/a/span | -- |
verifyElementPresent | -id=recent_uploads | -- |
verifyElementPresent | -id=plupload_files_container | -- |
Calendar Add Show Skeleton | ||
open | -/Library | -- |
clickAndWait | -link=Calendar | -- |
waitForTable | -css=table.fc-header.0.0 | -todayShow | -
click | -link=Show | -- |
click | -//div[@id='schedule-add-show']/h3[2] | -- |
click | -//div[@id='schedule-add-show']/h3[3] | -- |
click | -//div[@id='schedule-add-show']/h3[4] | -- |
click | -//div[@id='schedule-add-show']/h3[5] | -- |
verifyElementPresent | -id=schedule-add-show | -- |
verifyElementPresent | -//div[@id='schedule-add-show']/div/button | -- |
verifyElementPresent | -id=add_show_name | -- |
verifyElementPresent | -id=add_show_url | -- |
verifyElementPresent | -id=add_show_genre | -- |
verifyElementPresent | -id=add_show_description | -- |
verifyElementPresent | -id=add_show_start_date | -- |
click | -id=add_show_start_date-label | -- |
click | -id=add_show_duration-label | -- |
verifyElementPresent | -id=add_show_duration | -- |
verifyElementPresent | -id=add_show_timezone | -- |
verifyValue | -id=add_show_repeats | -off | -
verifyElementPresent | -id=add_show_repeats | -- |
verifyElementPresent | -id=add_show_hosts_autocomplete | -- |
verifyElementPresent | -id=cb_airtime_auth | -- |
verifyElementPresent | -id=cb_custom_auth | -- |
verifyElementPresent | -id=add_show_background_color | -- |
verifyElementPresent | -id=add_show_color | -- |
Calendar Day Week Month Views | ||
open | -/Schedule | -- |
clickAndWait | -css=li.top.active > a.top_link > span | -- |
click | -//div[@id='schedule_calendar']/table/tbody/tr/td[3]/span/span/span | -- |
verifyElementPresent | -css=select.schedule_change_slots.input_select | -- |
selectWindow | -null | -- |
waitForTable | -css=table.fc-header.0.2 | -dayweekmonth | -
click | -//div[@id='schedule_calendar']/table/tbody/tr/td[3]/span[3]/span/span | -- |
verifyElementPresent | -//div[@id='schedule_calendar']/div/div/table/thead/tr/th[4] | -- |
verifyElementPresent | -//div[@id='schedule_calendar'] | -- |
click | -//div[@id='schedule_calendar']/table/tbody/tr/td[3]/span[5]/span/span | -- |
verifyElementPresent | -//div[@id='schedule_calendar']/div/div/table/thead/tr/th | -- |
Calendar Skeleton Present | ||
open | -/Library | -- |
selectWindow | -null | -- |
clickAndWait | -link=Calendar | -- |
waitForTable | -id=schedule_block_table.0.1 | -todayShowNovember 2014dayweekmonthSunMonTueWedThuFriSat26 27 28 29 30 31 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 1 2 3 4 5 6 11:00 - 15:00Weekend Morning Blues 11:00 - 12:00naregggg 11:00 - 18:00TestNareg 11:00 - 18:00TestNareg 11:50 - 12:55nareg51 11:00 - 18:00TestNareg 11:00 - 16:00Weekend Morning Blues 13:45 - 16:55nareg55 13:45 - 14:57nareg55 15:00 - 15:07nareg88 11:00 - 16:00Weekend Morning Blues 11:00 - 16:00Weekend Morning Blues 12:10 - 14:30nareg4 15:00 - 19:00nareg5 11:00 - 16:00Weekend Morning Blues 11:00 - 16:00Weekend Morning Blues 12:10 - 14:30nareg4 15:00 - 19:00nareg5 11:00 - 16:00Weekend Morning Blues 11:00 - 16:00Weekend Morning Blues 12:10 - 14:30nareg4 22:01 - 23:00Untitled Show 23:00 - 0:00Untitled Show 15:00 - 19:00nareg5 11:00 - 16:00Weekend Morning Blues 11:00 - 16:00Weekend Morning Blues 12:10 - 14:30nareg4 15:00 - 19:00nareg5 11:00 - 16:00Weekend Morning Blues 11:00 - 16:00Weekend Morning Blues 12:10 - 14:30nareg4 15:00 - 19:00nareg5 |
-
verifyElementPresent | -id=schedule_calendar | -- |
waitForTable | -css=table.fc-header.0.2 | -dayweekmonth | -
verifyElementPresent | -//div[@id='schedule_calendar']/table/tbody/tr/td[3]/span[3]/span/span | -- |
verifyElementPresent | -//div[@id='schedule_calendar']/table/tbody/tr/td[3]/span[5]/span/span | -- |
verifyElementPresent | -link=Show | -- |
verifyElementPresent | -//div[@id='schedule_calendar']/table/tbody/tr/td[3]/span/span/span | -- |
Library Skeleton Present | ||
open | -/Plupload | -- |
clickAndWait | -//ul[@id='nav']/li[3]/a/span | -- |
verifyElementPresent | -id=library_content | -- |
verifyElementPresent | -id=side_playlist | -- |
Login and Logout | ||
open | -/login/logout | -- |
open | -/login | -- |
type | -id=username | -test | -
type | -id=password | -test | -
clickAndWait | -id=submit | -- |
verifyElementPresent | -css=a.listen-control-button > span | -- |
clickAndWait | -link=Logout | -- |
verifyElementPresent | -id=submit | -- |
Login | ||
open | -/login | -- |
type | -id=username | -test | -
type | -id=password | -test | -
clickAndWait | -id=submit | -- |
Preferences Skeletons | ||
open | -/Schedule | -- |
clickAndWait | -link=Preferences | -- |
verifyElementPresent | -//div[@id='content']/div | -- |
clickAndWait | -link=Users | -- |
verifyElementPresent | -//div[@id='content']/div | -- |
clickAndWait | -link=Streams | -- |
verifyElementPresent | -//div[@id='content']/div | -- |
verifyElementPresent | -id=icecast_vorbis_metadata | -- |
clickAndWait | -link=Status | -- |
verifyElementPresent | -css=table.statustable | -- |
clickAndWait | -link=Listener Stats | -- |
verifyElementPresent | -id=listenerstat_content | -- |
verifyElementPresent | -css=span.ui-icon.ui-icon-search | -- |
System Menu Contents | ||
open | -/Schedule | -- |
verifyElementPresent | -link=Preferences | -- |
verifyElementPresent | -link=Users | -- |
verifyElementPresent | -link=Streams | -- |
verifyElementPresent | -link=Status | -- |
verifyElementPresent | -link=Support Feedback | -- |
verifyElementPresent | -link=Listener Stats | -- |