Changes

Jump to: navigation, search

Selenium automation suite for www.provokesolutions.com

204 bytes removed, 00:31, 8 November 2016
no edit summary
I wanted to have a practice at writing a Selenium WebDriver automation suite using java and JUnit to test. I decided to automate the menu functionality on the web page of www.provokesolutions.com.
I created a java '''page object''' to implement all the page specific aspects and then a seperate '''test object''' to run through a series of teststhe checks.
Here's a '''[https://youtu.be/4sWtshokJYM YouTube] ''' clip of the test execution.
And you can have a look at my code (I would love some feedback from a dev, I'm rather new to writing code) <syntaxhighlight lang="java" linebr/>[http://dirksonline.net/SeleniumFun/ProvokeTestSuite/SKC_OLE_Scraper/src/test/** * *java/package MyTestSuite; import static org/ProvokeHomePage.junitjava ProvokeHomePage.Assert.*; import java.util.concurrent.TimeUnit;] (page object) <br/> import org[http://dirksonline.junitnet/SeleniumFun/ProvokeTestSuite/SKC_OLE_Scraper/src/test/java/MyTestSuite/ProvokeHomePage.After;import orgjava TestProvokeHomePage.junit.AfterClass;import org.junit.Before;import org.junit.BeforeClass;import org.junit.Test;import org.openqa.selenium.WebDriver;import org.openqa.selenium.firefox.FirefoxDriver; public class TestProvokeHomePage { private static final int DEMO_DELAY = 100; private static final int IMPLICIT_TIMEOUT = 10; private static WebDriver driver; private static long startMillis; private static ProvokeHomePage homePage; }java] (test object) <br/syntaxhighlight>
Staff
470
edits

Navigation menu