Creating a New Silk Performer .NET Project

To create a new Silk Performer .NET project, you can either create a new project of type Web Services > .NET Explorer in Silk Performer or you can use one of the Silk Performer .NET project wizards in Visual Studio .NET.
With both approaches you can choose one of the following three implementation languages:
  • C#
  • VB.NET
  • C++

If you choose one of the .NET project wizards in Visual Studio .NET, the result is a new project with a template class that defines three methods, which are the init, main, and end transactions of your Silk Performer virtual user.

To develop a .NET test driver in another language, create an empty project using the language of your choice and perform the following steps:

  1. Add a reference to perfdotnetfw.dll. This DLL is located in the Silk Performer installation directory.
  2. Add a new class to your project.
  3. Add the VirtualUser custom attribute to your class.
  4. Add public member functions to your class to serve as your user transactions.
  5. Add the Transaction attribute to the functions you have created and pass the corresponding transaction type.
    • init
    • main
    • end