Skip to content

okiabrian123/automation-test-scripts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TestCase : https://docs.google.com/spreadsheets/d/1HXb5DLRzLOL-kWwRqxHVg-43aDwis0hcODhdLyP8Zmw/edit?usp=sharing

Example Automation Test Script Mobile Browser with Appium in Java : https://github.com/okiabrian123/Automation-Test-Mobile-Browser

Automation Test With Selenium in Java - Web Testing

This project contains automation test scripts using Selenium WebDriver. The framework supports multiple browsers such as Chrome, Firefox, and Safari, and can be run using Maven.

Prerequisites

Before running the tests, ensure that you have the following installed:

Java Development Kit (JDK) 11+ Maven Git Getting Started Clone the Repository:

git clone https://github.com/okiabrian123/automation-test-scripts.git
cd automation-test-scripts

Install Dependencies:

Maven will automatically download the required dependencies when you run the tests. However, you can also install them manually:

mvn clean install

Running Tests

You can run the tests on different browsers (Chrome, Firefox, Safari) by specifying the browser in the command line.

Running on Safari

need to allow remote automation in Develop -> Developer Settting.

checklist : allow remote automation

mvn test -Dbrowser=safari

Running on Chrome

mvn test -Dbrowser=chrome

Running on Firefox

mvn test -Dbrowser=firefox

Project Structure

The project structure is as follows:

.
├── pom.xml                # Maven configuration file
├── src
│   └── test
│       ├── java           # Test scripts written in Java
│       └── resources      # Test resources and configuration files
└── README.md              # Project documentation

Maven Profiles

You can also use predefined Maven profiles to run tests in specific environments or configurations.

Example Profile Usage:

mvn test -Pios
mvn test -Pchrome
mvn test -Pfirefox

WebDriver Setup

This project uses WebDriverManager to automatically manage the browser drivers.

Contributions

Feel free to fork the repository and submit pull requests if you'd like to contribute. Issues and feature requests are welcome!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages