From 3acacf040c2760546520b2c2e4e909cdd79e16c5 Mon Sep 17 00:00:00 2001 From: amary Date: Thu, 26 Mar 2026 12:09:13 +0100 Subject: [PATCH] =?UTF-8?q?D=C3=A9but=20de=20r=C3=A9daction=20des=20featur?= =?UTF-8?q?es?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/test/resources/features/book.feature | 23 +++++++++++++++++++ src/test/resources/features/review.feature | 14 +++++++++++ src/test/resources/features/shop.feature | 3 +++ .../resources/features/subscription.feature | 16 +++++++++++++ 4 files changed, 56 insertions(+) create mode 100644 src/test/resources/features/book.feature create mode 100644 src/test/resources/features/review.feature create mode 100644 src/test/resources/features/shop.feature create mode 100644 src/test/resources/features/subscription.feature 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