Selenium automation suite for www.provokesolutions.com: Difference between revisions
(Created page with "I made a selenium WebDriver automation suite using java and JUnit to test the menu functionality on the web page www.provokesolutions.com. I created a java page object to imp...") |
No edit summary |
||
Line 1: | Line 1: | ||
I | 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 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 tests. | |||
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 tests. | |||
Here's a [https://youtu.be/4sWtshokJYM YouTube] clip of the test execution. | |||
<syntaxhighlight lang="java" line> | |||
/** | |||
* | |||
*/ | |||
package MyTestSuite; | |||
import static org.junit.Assert.*; | |||
import java.util.concurrent.TimeUnit; | |||
import org.junit.After; | |||
import org.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; | |||
} | |||
</syntaxhighlight> |
Revision as of 00:16, 8 November 2016
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 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 tests.
Here's a YouTube clip of the test execution.
<syntaxhighlight lang="java" line> /**
* */
package MyTestSuite;
import static org.junit.Assert.*;
import java.util.concurrent.TimeUnit;
import org.junit.After; import org.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;
} </syntaxhighlight>