Skip to content

galapoto/Robot-framework-projects

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

<<<<<<< HEAD

Robot-framework-projects

Project Screenshot

Test Results Screenshot

Form Validation Project

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.

βœ… Test Site Used

URL: https://practice.expandtesting.com/form-validation

πŸ“‚ Folder Structure

form-validation-project/ β”œβ”€β”€ resources/ β”‚ └── expanded/ β”‚ β”œβ”€β”€ keywords.robot β”‚ └── variables.robot β”œβ”€β”€ tests/ β”‚ └── test_expanded_validation.robot β”œβ”€β”€ output.xml β”œβ”€β”€ report.html β”œβ”€β”€ log.html └── README.md

πŸ§ͺ Test Suite: test_expanded_validation.robot

This suite includes 3 test cases:

  1. Submit Empty Form Should Trigger Validation
    Asserts that submitting an empty form triggers validation messages.

  2. Submit Form With Invalid Contact Number Should Fail
    Asserts that entering an invalid phone number shows appropriate errors.

  3. Submit Form With Valid Data Should Succeed
    Fills out all required fields correctly and asserts successful submission.

πŸ”§ Dependencies

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)

About

Robot Framework automation projects: API testing and SauceDemo UI testing

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published