Skip to content

Simplistic web browser test automation framework for C#

Notifications You must be signed in to change notification settings

githubdingguagua/Splint

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 

Repository files navigation

Splint

Simplistic web browser test automation framework for C#

What is Splint?

Why Splint

  • UI test code is ugly
  • UI test code is redundant
  • UI tests are expensive to write

Core Concepts

  • Clean Test Specification
  • Configurable Driver Groups
  • Extensible Driver Configuration
  • Fluid API Chaining

Examples - Basic Usage

Run Test Against a Single Browser Type

[Test]
public void GoogleSearchPageTest()
{
    Splint.Test(()=> {
  GoogleHomePage homePage = new GoogleHomePage();
  GoogleResultsPage resultsPage = homePage.Search("Test Search");
  
  Assert.IsTrue(resultsPage != null)
  
}).WithDriver(DriverType.InternetExplorer)
  .Run()

}

Run Test Against Multiple Browser Type(s)

[Test]
public void GoogleSearchPageTest()
{
    Splint.Test(()=> {
  GoogleHomePage homePage = new GoogleHomePage();
  GoogleResultsPage resultsPage = homePage.Search("Test Search");
  
  Assert.IsTrue(resultsPage != null)
  
}).WithDrivers(new[]{DriverType.InternetExplorer,DriverType.Chrome})
  .Run()

}

Run Test Against All Browser Types

[Test]
public void GoogleSearchPageTest()
{
    Splint.Test(()=> {
  GoogleHomePage homePage = new GoogleHomePage();
  GoogleResultsPage resultsPage = homePage.Search("Test Search");
  
  Assert.IsTrue(resultsPage != null)
  
}).WithAllDrivers()
  .Run()

}

Run Test Against Single Driver Group

[Test]
public void GoogleSearchPageTest()
{
    Splint.Test(()=> {
  GoogleHomePage homePage = new GoogleHomePage();
  GoogleResultsPage resultsPage = homePage.Search("Test Search");
  
  Assert.IsTrue(resultsPage != null)
  
}).WithDriverGroup("Web")
  .Run()

}

Run Test Against Multiple Driver Groups

[Test]
public void GoogleSearchPageTest()
{
    Splint.Test(()=> {
  GoogleHomePage homePage = new GoogleHomePage();
  GoogleResultsPage resultsPage = homePage.Search("Test Search");
  
  Assert.IsTrue(resultsPage != null)
  
}).WithDriverGroups("Web","Mobile")
  .Run()

}

Run Test Against All Driver Groups

[Test]
public void GoogleSearchPageTest()
{
    Splint.Test(()=> {
  GoogleHomePage homePage = new GoogleHomePage();
  GoogleResultsPage resultsPage = homePage.Search("Test Search");
  
  Assert.IsTrue(resultsPage != null)
  
}).WithAllDriverGroups()
  .Run()

}

About

Simplistic web browser test automation framework for C#

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 100.0%