11# Homework 06 | Celvine Adi Putra
22
3- ___
4-
5- #### JDK Version
3+ ### JDK Version
64
75JDK : 20
86
9- #### Dependency
7+ ### Dependency
108
11- | No | Group Id | Artifact Id | Version |
12- | ----| -------------------------| -------------------| ---------|
13- | 1 | org.seleniumhq.selenium | selenium-java | 4.10.0 |
14- | 2 | org.junit.jupiter | junit-jupiter-api | 5.10.0 |
15- | 3 | io.github.bonigarcia | webdrivermanager | 5.4.1 |
9+ | No | Group Id | Artifact Id | Version |
10+ | ----| -------------------------| ------------------------| ---------|
11+ | 1 | org.seleniumhq.selenium | selenium-java | 4.10.0 |
12+ | 2 | org.junit.jupiter | junit-jupiter-api | 5.10.0 |
13+ | 3 | io.github.bonigarcia | webdrivermanager | 5.5.3 |
14+ | 4 | io.cucumber | cucumber-java | 7.14.0 |
15+ | 5 | io.cucumber | cucumber-junit | 7.14.0 |
16+ | 6 | org.junit.platform | junit-platform-console | 1.10.0 |
1617
1718### Test Information
1819
@@ -30,3 +31,52 @@ https://www.saucedemo.com/
3031| locked_out_user | secret_sauce |
3132| problem_user | secret_sauce |
3233| error_user | secret_sauce |
34+
35+ ### Report
36+
37+ #### Login Feature
38+
39+ ![ ] ( /home/celvine/Downloads/code/Tugas_06_CelvineAdiPutra/report/LoginReport.png )
40+
41+ ``` gherkin
42+ Feature: Login feature
43+
44+ Scenario Outline: User successfully logs in with valid credentials
45+ Given The user opens the web page or app
46+ When The user enters <username> as username
47+ And The user enters <password> as password
48+ And The user clicks the login button
49+ Then The user should be logged in successfully
50+ Examples:
51+ | username | password |
52+ | standard_user | secret_sauce |
53+
54+ Scenario Outline: User fails to log in with invalid credentials
55+ Given The user opens the web page or app
56+ When The user enters <username> as username
57+ And The user enters <password> as password
58+ And The user clicks the login button
59+ Then The user should see an authentication error message
60+ Examples:
61+ | username | password |
62+ | example | 123 |
63+ ```
64+
65+ #### Add to Cart
66+
67+ ![ ] ( /home/celvine/Downloads/code/Tugas_06_CelvineAdiPutra/report/AddToCartReport.png )
68+
69+ ``` gherkin
70+ Feature: Add Product to Cart
71+
72+ Background:
73+ Given The user is logged in
74+
75+ Scenario: User successfully adds a product to the cart
76+ When The user clicks the add to cart button
77+ Then The text on the add to cart button should change to remove
78+ Then The number of items in the cart icon should be 1
79+ When The user click the add to cart button other product
80+ Then The text on the add to cart button other product should change to remove
81+ Then The number of items in the cart icon should be 2
82+ ```
0 commit comments