Skip to content
Snippets Groups Projects
Commit 55b3397a authored by Righi Andrea (Student Com17)'s avatar Righi Andrea (Student Com17)
Browse files

added unit test draft

parent 44b94f84
No related branches found
No related tags found
No related merge requests found
## User
| Method | Static Test | Dynamic Test | Parameterized test |
| :------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | ----------------------------------------------------- |
| login | 1 working (right credentials) - 1 not working (wrong credentials) | | empty case, wrong mail |
| becomeSeller | | | empty case, wrong format, right format |
| searchItem | 1 working (item existent) - 1 not working (item not existent) | | title (empty, numbers, length), category not selected |
| searchAuction | 1 working (auction existent) - 1 not working (auction not existent) | date (start before end, malformation), price (wrong format, below zero) | title (empty, numbers, length), category not selected |
## Seller
| Method | Static Test | Dynamic Test | Parameterized test |
| :------------ | ----------- | -------------------------------------------- | -------------------------------------- |
| createAuction | | wrong and right (after creating items) cases | empty case, wrong format |
| addItem | | wrong and right cases | empty case, wrong format, right format |
## Auction
| Method | Static Test | Dynamic Test | Parameterized test |
| :----------- | ----------- | ------------ | -------------------------- |
| subscribe | | | user and auction existence |
| assignToUser | | | user and item existence |
## AuctionManager
| Method | Static Test | Dynamic Test | Parameterized test |
| :----------- | ---------------------------- | ---------------- | ------------------ |
| placeBid | two bids with same timestamp | random timestamp | |
| computePrice | | random values | |
| checkTime | | random timestamp | |
## Item
| Method | Static Test | Dynamic Test | Parameterized test |
| :--------- | ----------- | -------------------------------------------------- | ----------------------------------- |
| delete | | random ID (error if they do not exist) | |
| modify | | random ID and strings (error if they do not exist) | empty case, wrong format |
| addPicture | | | 0 < images <= 10 and item existence |
## ItemPicture
| Method | Static Test | Dynamic Test | Parameterized test |
| :----- | ----------- | -------------------------------------- | ------------------ |
| remove | | random ID (error if they do not exist) | |
togliere bid is valid??
US
- sistemare place bid
- titoli devono essere i nomi dei metodi
......@@ -11,4 +13,5 @@ AT
- scrivere descrizioni --> cosa fa il metodo
FITNESSE
- completare righe --> fitnesse riconosceva ma non completava il test
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment