User Authentication: Testing the login process.
Shopping Cart: Ensuring that products can be added, and removed from the cart smoothly.
Checkout Process: Testing the complete checkout process.
TestNG: For organizing and running test cases.
Selenium WebDriver: For automating browser interactions.
Java: The primary programming language used in the test scripts.
Maven: For project management and build automation.
Java JDK 8 or above
Maven
TestNG
Selenium WebDriver
EcommerceDemoWeb_Testing/src/main/java/Swag_labs
Incorrect Behavior After Removing Items from Cart
During testing, an issue was identified where, after removing an item from the cart, the "Continue" button still appears. Clicking this button allows the user to proceed through the checkout process, and the system incorrectly displays a "You ordered successfully" message, even though no items are present in the cart.
Steps to Reproduce:
Add an item to the cart.
Remove the item from the cart.
Observe that the "Continue" button is still displayed.
Click "Continue" and proceed through the checkout process.
Note that the system displays a "You ordered successfully" message.
Expected Behavior:
After removing all items from the cart, the "Continue" button should not be displayed, and the user should not be able to proceed with the checkout process.