<<<<<<< HEAD
This Robot Framework project automates the validation of web form inputs using SeleniumLibrary. It tests common front-end validations such as required fields, invalid data formats, and successful form submission.
URL: https://practice.expandtesting.com/form-validation
form-validation-project/ βββ resources/ β βββ expanded/ β βββ keywords.robot β βββ variables.robot βββ tests/ β βββ test_expanded_validation.robot βββ output.xml βββ report.html βββ log.html βββ README.md
This suite includes 3 test cases:
-
Submit Empty Form Should Trigger Validation
Asserts that submitting an empty form triggers validation messages. -
Submit Form With Invalid Contact Number Should Fail
Asserts that entering an invalid phone number shows appropriate errors. -
Submit Form With Valid Data Should Succeed
Fills out all required fields correctly and asserts successful submission.
Make sure you have these installed inside your virtual environment:
pip install robotframework
pip install robotframework-seleniumlibrary
You must also have ChromeDriver installed and available in your PATH.
π Run the Tests
robot tests/test_expanded_validation.robot
πΈ Screenshot on Failure (Optional)
You can enable screenshot capture by adding this to the test suite:
Suite Teardown Run Keyword If Test Failed Capture Page Screenshot
π Author
Created by Vitus Idi as part of a QA Automation Portfolio.
>>>>>>> 97a0b04 (Add form validation project with expanded validation tests)