Download Network Resource Scheduling Entity

Transcript
CHAPTER 6. TESTING
58
Figure 6.3: JUnit choice of tests
6.1.1
Test details
Suite
Auth
Test
Sign
Authenticate
Verify
Description
Sign SLS and verify signature
Sign SLS and authenticate user from database
Create and verify good and bad signatures - bad signature must fail
Client
SendSLS
Reads SLS parameters (from file) to client which should
then create and send SLS to NRSE
Delete
Creates request for deletion and uses client to it send to
NRSE
Database Delete
Adds SLS to database, deletes it, checks it has gone
Query
Adds two SLSs to database, then queries for them.
QueryXML
Processes XML query and executes it
Add
Adds some SLSs into database, pulls them out, checks
they are the same as before they went in.
Check
Adds lots SLSs into database, some of which exceed
bandwidth limits. Check method should notice this.
User
Checks behaviour correct for adding, deleting and querying users.
Non-realtime Ensures database makes correct changes to SLS to meet
a non-realtime request.
Notify
Notify
Launches a client and sends it a notification.
Util
Clone
Tests that SLS.clone() works
DeleteSLS
Processes deletion request XML and checks against
known correct values
ReadSLS
Reads XML format SLS from file and compare to knowncorrect values.
WriteSLS
Write SLS to XML format file and read it back again.