diff --git a/src/test/resources/features/book.feature b/src/test/resources/features/book.feature new file mode 100644 index 0000000..8306bf1 --- /dev/null +++ b/src/test/resources/features/book.feature @@ -0,0 +1,23 @@ +# language: en + +Feature: Manage books + + Background: + Given the system has the following books: + | isbn | title | author | editor | publication date | price | stock | categories | description | language | + | 9782700284324 | La quête d'Ewilan Tome 1 | Pierre Bottero | Rageot | 2026-02-18 | 7.90 | 150 | Fantasy | | fr | + | 9782266293730 | Phobos Tome 1 | Victor Dixen | Pocket Jeunesse | 2019-11-07 | 8.70 | 85 | Science-Fiction | | fr | + | 9782075187541 | Harry Potter Tome 1 | J.K. Rowling | Gallimard Jeune | 2023-05-25 | 8.95 | 127 | Fantastique | Un classique | fr | + + Scenario: Set a new book + + Scenario: Retrieve a book by isbn + + Scenario: Set new price + + Scenario: Remove from stock for purchase + + Scenario: Add books to stock + + Scenario: Edit description + \ No newline at end of file diff --git a/src/test/resources/features/review.feature b/src/test/resources/features/review.feature new file mode 100644 index 0000000..5e57bf5 --- /dev/null +++ b/src/test/resources/features/review.feature @@ -0,0 +1,14 @@ +# language: en + +Feature: Submit a review + + Background: + Given the system has the following books: + | clientId | livreIsbn | note | commentaire | dateAchat | + + + Scenario: Submit book review + + Scenario: Replace my book review + + Scenario: Delete my book review diff --git a/src/test/resources/features/shop.feature b/src/test/resources/features/shop.feature new file mode 100644 index 0000000..633b060 --- /dev/null +++ b/src/test/resources/features/shop.feature @@ -0,0 +1,3 @@ +# language: en + +Feature: Buy a book \ No newline at end of file diff --git a/src/test/resources/features/subscription.feature b/src/test/resources/features/subscription.feature new file mode 100644 index 0000000..4bfd727 --- /dev/null +++ b/src/test/resources/features/subscription.feature @@ -0,0 +1,16 @@ +# language: en + +Feature: Create subscription + + Background: + Given the system has the following books: + | clientId | duree | mode de paiment | date de début | + + + Scenario: Subscribe + + Scenario: Read begining date of subscription + + Scenario: Read ending date of subscription + + Scenario: Read the monthly amount