Selenium automation suite for www.provokesolutions.com: Difference between revisions

From Vincents CV Wiki
Jump to navigation Jump to search
No edit summary
mNo edit summary
 
(2 intermediate revisions by one other user not shown)
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.
[[Curriculum_Vitae_-_Vincent_Dirks#New_things_I.27m_learning_and_trying_out|<< return to main page]]


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 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.  


Here's a [https://youtu.be/4sWtshokJYM YouTube] clip of the test execution.  
I created a java '''page object''' to implement all the page specific aspects and then a seperate '''test object''' to run through the checks.


<syntaxhighlight lang="java" line>
Here's a '''[https://youtu.be/4sWtshokJYM YouTube]''' clip of the test execution.
/**
*
*/
package MyTestSuite;


import static org.junit.Assert.*;
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/>
import java.util.concurrent.TimeUnit;
[http://dirksonline.net/SeleniumFun/ProvokeTestSuite/SKC_OLE_Scraper/src/test/java/MyTestSuite/TestProvokeHomePage.java TestProvokeHomePage.java] (test object) <br/>
 
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>

Latest revision as of 22:42, 21 May 2024

<< return to main page

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)