ArmirBujari (Talk | contribs) (New page: {| border="1" align="center" style="text-align:center;" |+ Testing Exercise - document your work on methods used | '''Number''' || '''Requirement tested''' || '''Method used''' || '''Test...) |
ArmirBujari (Talk | contribs) |
||
| Line 3: | Line 3: | ||
| '''Number''' || '''Requirement tested''' || '''Method used''' || '''Test applied''' || '''Error(s) found''' || '''Suggestions/ideas for solution''' || '''Additional notes''' | | '''Number''' || '''Requirement tested''' || '''Method used''' || '''Test applied''' || '''Error(s) found''' || '''Suggestions/ideas for solution''' || '''Additional notes''' | ||
|- | |- | ||
| − | | 0 || || only for students exercising with method guidelines || || || || | + | | 0 |A track has only one genre| || only for students exercising with method guidelines |Unit testing (track, genre) |
| + | Query: | ||
| + | SELECT ?p ?y | ||
| + | WHERE { | ||
| + | ?p a :Track . | ||
| + | ?p :genre ?y | ||
| + | } | ||
| + | |||
| + | | | | ||
| + | |||
| + | The track name can have more than one genre associated | ||
| + | | || || | ||
|- | |- | ||
| − | | 1 || || || || || || | + | |
| + | |||
| + | | 1 | | ||
| + | A track realizes only one song | ||
| + | | || | | ||
| + | Unit testing (track, associatedSong) | ||
| + | Query: | ||
| + | SELECT ?p ?y | ||
| + | WHERE { | ||
| + | ?p a :Track . | ||
| + | ?p :recordingOf ?y | ||
| + | } | ||
| + | | | | ||
| + | |||
| + | The track name can have more than one genre associated | ||
| + | | || || | ||
|- | |- | ||
| + | |||
| + | |||
| 2 || || || || || || | | 2 || || || || || || | ||
|- | |- | ||
| Number | Requirement tested | Method used | Test applied | Error(s) found | Suggestions/ideas for solution | Additional notes |
| A track has only one genre| | Unit testing (track, genre)
Query: SELECT ?p ?y WHERE { ?p a :Track . ?p :genre ?y } |
The track name can have more than one genre associated |
||||
|
A track realizes only one song |
Unit testing (track, associatedSong) Query: SELECT ?p ?y WHERE { ?p a :Track . ?p :recordingOf ?y } |
The track name can have more than one genre associated |
||||
| 2 | ||||||
| 3 | ||||||
| 4 |