Difference between revisions of "Selenium automation suite for www.provokesolutions.com"

From Vincents CV Wiki
Jump to: navigation, search
Line 1: Line 1:
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 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 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 tests.
+
I created a java '''page object''' to implement all the page specific aspects and then a seperate '''test object''' to run through the checks.
  
Here's a [https://youtu.be/4sWtshokJYM YouTube] clip of the test execution.  
+
Here's a '''[https://youtu.be/4sWtshokJYM YouTube]''' clip of the test execution.  
  
<syntaxhighlight lang="java" line>
+
And you can have a look at my code (I would love some feedback from a dev, I'm rather new to writing code) <br/>
/**
+
[http://dirksonline.net/SeleniumFun/ProvokeTestSuite/SKC_OLE_Scraper/src/test/java/MyTestSuite/ProvokeHomePage.java ProvokeHomePage.java] (page object) <br/>
*
+
[http://dirksonline.net/SeleniumFun/ProvokeTestSuite/SKC_OLE_Scraper/src/test/java/MyTestSuite/ProvokeHomePage.java TestProvokeHomePage.java] (test object) <br/>
*/
 
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:31, 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 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 the checks.

Here's a 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)
ProvokeHomePage.java (page object)
TestProvokeHomePage.java (test object)