Platform for Internet Site Testing Over Long Distances
- A simple automation test project - using Selenium - built using Maven
- The sample connects to GitHub in Chrome/Firefox/IE web Driver(s) and clicks a link
- has examples of using Data Driven and Behavior Driven Testing frameworks
- Here's a test run of a sample project: https://youtu.be/7fYD-rgSaR0
- Requires git, maven, selenium (Jar files and webdriver EXEs), JDK (1.8 or greater)
- For the IDE, we can use Eclipse, VS Studio Code, etc
- Clone/download this repo
git clone https://github.com/clynton/Pistold.git MyAutomationTestr
- If using eclipse: Import Project > Maven > Existing Maven Project
- Change the values of 'groupId' and 'artifactId' in pom.xml
- Update the project after changing the POM: Right-Click project > Maven > Update Project
- Right-Click project > Properties > Libraries
- Edit the JDK/JRE setting if required: (or Add Library > JRE System Library > select one)
- Change the paths to the log files in log4j.properties
- Change the paths for SeleniumDriverPaths in configSettings.java
- Right-Click loadHomepageInDiffBrowsers.java > Run as TestNG Test
- Right-Click bddRunnerTest.java > Run as JUnit Test
- Run our tests using maven (can be done in a bat file - using 'call mvn test' if so)
cd MyAutomationTestr
mvn test
- The Console/Output might show some warnings, but there shouldn't be any major errors
- Errors might result from missing/outdated Jar/Lib files, bad path or config values, etc
- Check that there's stuff in app.log after the test run
- Check files under target like htmlreports/index.html and cucumber-reports/report.html
- Change the url and title page in testData.java
- Remove extra things if desired - ex: testDataFromPropertyFile
- Add test case classes similar to loadHomepageInDiffBrowsers.java
- Use the batch file in jenkins, windows task manager, etc
- maybe use POI to pull test data from Excel files - keyword driven framework
- maybe setup a Selenium Grid environment - having a local hub and nodes...