Hi there! I'm Thiromi π, a passionate IT student and Testing Enchantor π§ββοΈ. I love diving into the vast ocean of knowledge, searching for new skills to master, and finding the best match for me ππ. If you're as excited about automation as I am, let's connect and work some magic together! β¨
π§ Email: dasanayakathiromi@gmail.com π π LinkedIn: https://www.linkedin.com/in/thiromi-dasanayaka-307441250/
This repository contains a fun and exciting test automation project for buying a mobile phone from eBay.com using Selenium WebDriver with Java. Let's automate like a boss! πͺ
The main goal of this project is to magically automate the entire process of purchasing a shiny new mobile phone from eBay.com. Our automation sorcery includes:
π Searching for mobile phones in the "Cell Phones & Accessories" category. π― Filtering search results by selecting a specific brand (e.g., Apple). π± Choosing the first search result - the chosen one! β¨ π‘ Extracting and verifying product details like name, price, quantity, and condition. π Adding the product to the cart and comparing it with the product details - poof! It's there! π
The magical code is structured into four enchanted classes:
-
ebayTest
: The master class that sets up the WebDriver, opens the browser, and executes test cases like a wizard using TestNG annotations. π§ββοΈ -
HomePage
: The mystical class representing the eBay.com homepage. It conjures methods to interact with homepage elements, such as searching for mobile phones and selecting the "Cell Phones & Accessories" category. π§ββοΈ -
SearchResultPage
: The enigmatic class embodying the search result page. It weaves methods to filter results with magical brand selection and choose the first search result - all in one wave of the wand! π§ββοΈ -
ProductPage
: The arcane class holding the secrets of product page details. It reveals the item name, price, quantity, and condition, as if by magic. And, with a wave and a flick, adds the product to the cart! πͺ
To experience the magical tests yourself, follow these enchanted steps:
π§ββοΈ Clone this repository to your local machine - don't forget the magic word!
π§ββοΈ Open the project in your favorite spellbook - ahem, I mean IntelliJ IDE.
π§ββοΈ Make sure you've conjured the necessary dependencies mentioned in the pom.xml
file (Selenium WebDriver, TestNG, and other magic spells).
π§ββοΈ Feel free to modify the TestNG XML file (testing.xml
) to invoke different browsers (Chrome, Edge) and their respective URLs.
π§ββοΈ With a grand flourish, right-click on the TestNG XML file and select "Run 'testing.xml'" to unleash the magic of test execution! π
We welcome fellow sorcerers and witches to join in the magical fun! If you discover any hidden charms or have mystical ideas for improvements, cast your spell by opening an issue or conjuring a pull request.
This magical project is licensed under the MIT License. Abra Kadabra! π
ββ¨ Experience the enchantment of automation! Don't forget to leave a βοΈ if you found this spellbinding. Happy automating! π§ββοΈπ