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 - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Add Media Skeleton Present
open/Showbuilder
clickAndWait//ul[@id='nav']/li[2]/a/span
verifyElementPresentid=recent_uploads
verifyElementPresentid=plupload_files_container
- - diff --git a/tests/selenium/Airtime.html b/tests/selenium/Airtime.html deleted file mode 100644 index c15631cb4..000000000 --- a/tests/selenium/Airtime.html +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - Test Suite - - - - - - - - - - - - - -
Test Suite
Login and Logout
Login
Add Media Skeleton Present
Library Skeleton Present
Calendar Skeleton Present
System Menu Contents
Calendar Add Show Skeleton
Calendar Day Week Month Views
Preferences Skeletons
- - diff --git a/tests/selenium/Calendar Add Show Skeleton.html b/tests/selenium/Calendar Add Show Skeleton.html deleted file mode 100644 index c369c304b..000000000 --- a/tests/selenium/Calendar Add Show Skeleton.html +++ /dev/null @@ -1,146 +0,0 @@ - - - - - - -Calendar Add Show Skeleton - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Calendar Add Show Skeleton
open/Library
clickAndWaitlink=Calendar
waitForTablecss=table.fc-header.0.0todayShow
clicklink=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]
verifyElementPresentid=schedule-add-show
verifyElementPresent//div[@id='schedule-add-show']/div/button
verifyElementPresentid=add_show_name
verifyElementPresentid=add_show_url
verifyElementPresentid=add_show_genre
verifyElementPresentid=add_show_description
verifyElementPresentid=add_show_start_date
clickid=add_show_start_date-label
clickid=add_show_duration-label
verifyElementPresentid=add_show_duration
verifyElementPresentid=add_show_timezone
verifyValueid=add_show_repeatsoff
verifyElementPresentid=add_show_repeats
verifyElementPresentid=add_show_hosts_autocomplete
verifyElementPresentid=cb_airtime_auth
verifyElementPresentid=cb_custom_auth
verifyElementPresentid=add_show_background_color
verifyElementPresentid=add_show_color
- - diff --git a/tests/selenium/Calendar Day Week Month Views.html b/tests/selenium/Calendar Day Week Month Views.html deleted file mode 100644 index 6cefa5625..000000000 --- a/tests/selenium/Calendar Day Week Month Views.html +++ /dev/null @@ -1,71 +0,0 @@ - - - - - - -Calendar Day Week Month Views - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Calendar Day Week Month Views
open/Schedule
clickAndWaitcss=li.top.active > a.top_link > span
click//div[@id='schedule_calendar']/table/tbody/tr/td[3]/span/span/span
verifyElementPresentcss=select.schedule_change_slots.input_select
selectWindownull
waitForTablecss=table.fc-header.0.2dayweekmonth
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
- - diff --git a/tests/selenium/Calendar Skeleton Present.html b/tests/selenium/Calendar Skeleton Present.html deleted file mode 100644 index 994200394..000000000 --- a/tests/selenium/Calendar Skeleton Present.html +++ /dev/null @@ -1,66 +0,0 @@ - - - - - - -Calendar Skeleton Present - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Calendar Skeleton Present
open/Library
selectWindownull
clickAndWaitlink=Calendar
waitForTableid=schedule_block_table.0.1todayShowNovember 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
verifyElementPresentid=schedule_calendar
waitForTablecss=table.fc-header.0.2dayweekmonth
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
verifyElementPresentlink=Show
verifyElementPresent//div[@id='schedule_calendar']/table/tbody/tr/td[3]/span/span/span
- - diff --git a/tests/selenium/Library Skeleton Present.html b/tests/selenium/Library Skeleton Present.html deleted file mode 100644 index a6f01315b..000000000 --- a/tests/selenium/Library Skeleton Present.html +++ /dev/null @@ -1,37 +0,0 @@ - - - - - - -Library Skeleton Present - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Library Skeleton Present
open/Plupload
clickAndWait//ul[@id='nav']/li[3]/a/span
verifyElementPresentid=library_content
verifyElementPresentid=side_playlist
- - diff --git a/tests/selenium/Login and Logout.html b/tests/selenium/Login and Logout.html deleted file mode 100644 index 23a742959..000000000 --- a/tests/selenium/Login and Logout.html +++ /dev/null @@ -1,56 +0,0 @@ - - - - - - -Login and Logout - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Login and Logout
open/login/logout
open/login
typeid=usernametest
typeid=passwordtest
clickAndWaitid=submit
verifyElementPresentcss=a.listen-control-button > span
clickAndWaitlink=Logout
verifyElementPresentid=submit
- - diff --git a/tests/selenium/Login.html b/tests/selenium/Login.html deleted file mode 100644 index 5e25b5a6b..000000000 --- a/tests/selenium/Login.html +++ /dev/null @@ -1,37 +0,0 @@ - - - - - - -Login - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Login
open/login
typeid=usernametest
typeid=passwordtest
clickAndWaitid=submit
- - diff --git a/tests/selenium/Preferences Skeletons.html b/tests/selenium/Preferences Skeletons.html deleted file mode 100644 index 47f114551..000000000 --- a/tests/selenium/Preferences Skeletons.html +++ /dev/null @@ -1,82 +0,0 @@ - - - - - - -Preferences Skeletons - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Preferences Skeletons
open/Schedule
clickAndWaitlink=Preferences
verifyElementPresent//div[@id='content']/div
clickAndWaitlink=Users
verifyElementPresent//div[@id='content']/div
clickAndWaitlink=Streams
verifyElementPresent//div[@id='content']/div
verifyElementPresentid=icecast_vorbis_metadata
clickAndWaitlink=Status
verifyElementPresentcss=table.statustable
clickAndWaitlink=Listener Stats
verifyElementPresentid=listenerstat_content
verifyElementPresentcss=span.ui-icon.ui-icon-search
- - diff --git a/tests/selenium/System Menu Contents.html b/tests/selenium/System Menu Contents.html deleted file mode 100644 index a064cabbb..000000000 --- a/tests/selenium/System Menu Contents.html +++ /dev/null @@ -1,52 +0,0 @@ - - - - - - -System Menu Contents - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
System Menu Contents
open/Schedule
verifyElementPresentlink=Preferences
verifyElementPresentlink=Users
verifyElementPresentlink=Streams
verifyElementPresentlink=Status
verifyElementPresentlink=Support Feedback
verifyElementPresentlink=Listener Stats
- -