Skip to content

J300-0/Wikipedia-Automation

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Wikipedia Automation

A basic test automation project for Wikipedia using Selenium, Cucumber, and TestNG. This repository contains practice scripts for automating interactions with the Wikipedia website.

Tech Stack

  • Language: Java
  • Automation Tool: Selenium WebDriver
  • BDD Framework: Cucumber
  • Test Runner: TestNG
  • Build Tool: Maven

Here is a generic README.md file designed to help anyone clone and run an existing automation project in Eclipse.


How to Setup & Run This Project in Eclipse

This guide provides step-by-step instructions on how to clone this repository, import it correctly into the Eclipse IDE, and run the automation tests.

Prerequisites

1. Clone the Repository

Open your terminal or command prompt and run:

git clone https://github.com/ElementZ76/Wikipedia-Automation.git

2. Import into Eclipse

  1. Open Eclipse.
  2. Go to File > Import...
  3. Expand the Maven folder and select Existing Maven Projects.
  4. Click Next.
  5. Click Browse and select the root folder of the project you just cloned (the folder containing the pom.xml file).
  6. Ensure the pom.xml checkbox is ticked.
  7. Click Finish.

Note: Wait for the progress bar at the bottom right (Building Workspace) to finish. Eclipse is downloading dependencies.

3. How to Run the Tests

Run via TestNG

  1. In the Project Explorer, locate the testng.xml file (usually in the root or src/test/resources).
  2. Right-click testng.xml.
  3. Select Run As > TestNG Suite.

Troubleshooting

  • Red Exclamation Mark on Project:

  • Right-click the project > Maven > Update Project...

  • Check Force Update of Snapshots/Releases.

  • Click OK.

  • src/test/java: Contains the Step Definitions and Test Runner files.

  • src/test/resources: Contains the Cucumber Feature files (.feature).

  • pom.xml: Manages project dependencies and build configuration.

About

A basic automation project using Cucumber + TestNG + Selenium for practice. Nothing fancy.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Java 88.1%
  • Gherkin 11.9%