Syringe is a .NET automated HTTP testing tool for headless, Javascript-ignorant tests. It is compatable with the webinject HTTP testing tool XML syntax.
Make sure you have IIS enabled.
- Install chocolatey
- Install nuget command line :
choco install nuget.commandline - Powershell 4+:
choco install powershell4
# Work around for bug in the mongodb Chocolately package
$env:systemdrive = "C:\ProgramData\chocolatey\lib\mongodata"
choco install mongodb
Note: this will configure Syringe on port 80. You should remove any site you have on Port 80, or pass in arguments to use a different port if you don't want to use 80.
choco source add -n "myget" -s "https://www.myget.org/F/syringe/api/v2"
choco install syringe
Syringe uses OAuth2 for its security. Currently it only supports Github, Google and Microsoft OAuth2 providers.
- Register an Syringe OAuth2 app in Github. The callback url should be
http://localhost:1980 - Edit the configuration.json file in the service directory to use the OAuth2 client id/secret.
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.
- Run
.\start-service.ps1 - Browse to http://localhost:1980 and login.
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