Skip to content

HTTP headless testing via the browser, with a RESTful api

License

Notifications You must be signed in to change notification settings

danieltendaj/Syringe

 
 

Repository files navigation

Build status Documentation Status Coverage Status Average time to resolve an issue Percentage of issues still open release

Syringe

Syringe is a .NET automated HTTP testing tool for headless, Javascript-ignorant tests.

Syringe

Syringe's purpose in the universe

Syringe is a HTTP runner - if you can reach a server endpoint via HTTP, Syringe will be able to test it. It's purpose is:

  1. To check canary pages (HTML, XML, JSON, TXT etc.)
  2. To perform advanced smoke testing - get a HTML page (or other text-based resource) and assert that it contains some text.
  3. Basic end-to-end HTTP tests. For example logging into a website and checking a page.

Help

Our help files are hosted at ReadTheDocs.

Installation

Pre-requisites

Make sure you have IIS enabled.

Chocolatey
  • Install chocolatey
  • Install nuget command line : choco install nuget.commandline
  • Powershell 4+: choco install powershell4
Mongodb:
    # Work around for bug in the mongodb Chocolately package
    $env:systemdrive = "C:\ProgramData\chocolatey\lib\mongodata"
    choco install mongodb
Configure an OAuth2 provider

Syringe uses OAuth2 for its security. It currently supports Github, Google and Microsoft OAuth2 providers.

Downloading & Installing from Binaries

You can get the latest release of Syringe HERE

Installing Website

Once you have extracted the release, in Powershell run .\iis.ps1

Start the service

The Syringe REST API runs as Windows service, which can also be run as a command line app. This API is used to run all tests and is the data repository, it runs its own embedded HTTP server.

Building from source

Once you've cloned the repository, run setup.ps, this will:

  • Build the solution, restoring the nuget packages
  • Create an IIS site
  • Create C:\syringe folder with an example file.

Follow the "Configure OAuth" and "Start the service" steps above

About

HTTP headless testing via the browser, with a RESTful api

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C# 86.8%
  • CSS 8.3%
  • JavaScript 2.2%
  • TypeScript 1.5%
  • PowerShell 1.2%