Itunes Project testing
From MWCSWiki
Using a Framework
In the sections below we list the features to test and ways of testing.
It seems like a good idea to provide you with a testing framework; a Java program that provides a list of the tests or tasks to perform. The tests or tasks are displayed as output. You use this to build the test of your software. You modify the code of the testing program so you can enter the enter the commands as Java code or enter commands from the keyboard to perform the specific tasks. That way we can be sure of performing the same tests in the same order.
Please copy the program /users/ernie/public_html/cpsc220/ItunesTest.java to the directory that holds the iTunes project software. Use that program as the tester or applicationn to test your software.
It can be compiled by entering the following on the command line
javac ItunesTest.java
and then executed using
java ItunesTest
When you are ready to record your testing in a script file enter
script java ItunesTest .. .. exit
Then make the file typescript accessible to me in your Web space.
Let me know if you have questions.
Features to test for
- Add (tune, playlist)
- Remove (tune, playlist)
- Sort (tune)
- Search
- Create (playlist)
- Modify (tune, attributes, playlist)
- Shuffle (playlist)
- Merge (playlist) - optional
Test procedure
- Start software
- Load library
- display library
- Test for Create Playlist
- Create Playlist 1
- Add items to Playlist1 using data provided
- Display PlayList1
- Create Playlist 2
- Add items to Playlist2 using data provided
- Display PlayList2
- Create Playlist 3
- Add items to Playlist3 using data provided
- Display PlayList3
- Display Library
- Shuffle Playlist1
- Display Playlist1
- Display Library
- Add items to a library
- Add the following items to the library
- Midnight Pumpkins,Pat Chilla The Beat Gorilla,ccMixter,232,,
- 12 Variations on Händel s Oratorio Judas Maccabaeus (1796) G Major,The Gospel Messengers,50 Classical Highlights: Essential Classics, Classical,97
- Display the Library
- Add the following items to the library
- Add items to a playlist
- Add the second one to each of the playlists
- Display all Playlists
- Delete an item from a playlist
- Delete the following item from PlayList1 (but not from the library)
- "Another Time, Another Place",Benny Carter,In the Mood For Swing,382,,Jazz
- Display Playlist1
- Display Library
- Delete an item from the Library
- Delete the following item from the library - it will be an item in PLaylist 2 also
- I've Lived My Life to Stand in the Shadow of your Heart,A Place To Bury Strangers,sample,264,,Shoegazer Alternative
- Display the Library
- Delete the following item from the library - it will be an item in PLaylist 2 also
- Sort
- Sort library alphabetically by artist
- Display library
- Sort Library by time
- Display library
- Sort Playlist1 by genre
- Display PLaylist1
- Display Library
- Delete PLaylist
- Delete Playlist 2
- Display Library
- Modify attributes
- Change rating to 100 in the following
- Never Going Down,A Place To Bury Strangers,demo,199,,Shoegazer Alternative
- Change title of You Are the Sunbeam to My Day,A Place To Bury Strangers,Merry Christmas 2006,409,,Shoegazer Alternative
- so that the title is You Are the Sunbeam of My Day
- Display Library
- Display Playlist1
- Change rating to 100 in the following
- Search
- search for the string "tron" in library (same as iTunes - searches on all of the following fields title, artist, genre, album; upper/lower case doesn't matter)
- display results
- search for string "ZZ TOP" in library
- display results
- display playlist1
- search for the string "place" in playlist 1
- display results
Modify name of playlist
- Rename Playlist 1 to "Ernie's PLaylist"
- Display "Ernie's Playlist"
- (optional) Merge Ernie's Playlsit and Playlist and name it PLaylist 2
- display all playlists
- display library

