You download and install GrinderScript.Net in two parts
Installing the binaries into The Grinder consist of these four steps:
Add the GrinderScript.Net lib folder to the classpath of your Grinder Agent start up script. E.g. if you extracted the binaries into C:\tools\GrinderScript.Net-1.1 then you should use
Verify that The Grinder can run GrinderScript.Net load tests. The binaries distribution contains some example load tests in the verifier folder. See C:\tools\GrinderScript.Net-1.1\verifier\README.html for further instructions.
By now you should have verified that load tests written with GrinderScript.Net are working in The Grinder. Its now time to install the GrinderScript.Net NuGet packages into your load test project.
This is the preferred way to start using GrinderScript.Net in your load test projects. Just open the Package Manager Console, make sure you select the correct project in the Default project drop down list and issue the command
Visual Studio will open the packages readme.txt file when the installation is complete. Just follow the instructions here to get going!
If you have not installed the NuGet command line tool already, download it from CodePlex. Install it to a local folder, e.g. C:\Util. You install the GrinderScript.Net.Samples package into C:\MySolution\ExternalLibs by running NuGet.exe from the command line, e.g.:
C:\Util\NuGet.exe install GrinderScript.Net.Samples -OutputDirectory C:\MySolution\ExternalLibs
You should get output similar to this (the version numbers might differ)
Attempting to resolve dependency GrinderScript.Net.Core (= 22.214.171.124).
Attempting to resolve dependency GrinderScript.Net.Csv (= 126.96.36.199).
Attempting to resolve dependency CsvHelper (= 1.17.0).
Attempting to resolve dependency GrinderScript.Net.CsScript (≥ 188.8.131.52).
Attempting to resolve dependency CS-Script (≥ 184.108.40.206).
Successfully installed GrinderScript.Net.Core 220.127.116.11.
Successfully installed CsvHelper 1.17.0.
Successfully installed GrinderScript.Net.Csv 18.104.22.168.
Successfully installed CS-Script 22.214.171.124.
Successfully installed GrinderScript.Net.CsScript 126.96.36.199.
Successfully installed GrinderScript.Net.Samples 188.8.131.52.
The sample code can then be found under C:\MySolution\ExternalLibs\GrinderScript.Net.Samples.184.108.40.206\Content. The required assemblies are also found in separate folders under C:\MySolution\ExternalLibs. Include these into your Visual Studio project and follow the instructions in C:\MySolution\ExternalLibs\GrinderScript.Net.Samples.220.127.116.11\Content\Samples\GrinderScript.Net\README.html to run the samples.
Please note that CS-Script automatically installs a Scripting.cs with CS-Script examples in the root of your project. You can safely remove this file.
The NuGet packages are also provided on the GrinderScript.Net 1.1 download page. If you are unable to access the NuGet Gallery, you could still download and extract GrinderScript.Net-1.1-nupck.zip from our download page, and feed the local copy to NuGet.exe with the -Source option. See the NuGet command line reference for usage details.
When you have completed the installation you are ready to write your first load tests. You might want to read the introduction to writing load test with GrinderScript.Net, before you explore your newly installed samples.