Testing steps:
- Create a Class Library project, right-click menu to add a "Unit Test" cs file and add Test Method in that file.
- Right-click on the project above, add a "load test".
- Continue default settings until "Test Mix" page, click "Add" button to select unit test method into load test.
- In "Counter Sets" page, we can use controller-agent mode to do load testing on multiple machines (one controller, multiple agents).
- Right-click scenario, "Edit Test Mix", select unit test method as initialize test(execute before other tests) and terminate test(execute after other tests).
- Right-click scenario, "Run Test".