Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

To

create an external scriptable variable, in Visual Studio create This section outlines how to create more complex extensions (scriptable variables and components) with a more advanced IDE (such as Visual Studio). 

Project

Create a new class library project. Then add a reference to StresStimulus extensibility API located in the  StresStimulus.Extensibility  namespace using the following assembly:

...

If you wish to use your custom External Scriptable Variables with extensions with both StresStimulus versions, create/compile two versions of the extensions using the same codebase, but referencing two different StresStimulus assemblies.

Your assembly should be stored into in the Bin subfolder in the test folder. For example, for the test called MyTest.ssconfig, copy the assembly .dll to MyTest\bin folder.

Programming of the External Scriptable Variables is extensions is similar to programming the Internal Scriptable Variablesthem using the code editor. 

.NET versions

StresStimulus is built on .NET 3.5, however, it runs seamlessly on machines that have .NET 3.5 and/or .NET 4 Framework. However, this becomes important when building external StresStimulus extensions. Particularly, extensions built in .NET 4 will not load on .NET 3.5. If you built an extension in .NET 4 and have .NET 3.5 and .NET 4 installed on your machine then do the following:

Standalone Version:

In StresStimulus install directory, find file StresStimulus.Application.exe.config.  Open and remove the line <supportedRuntime version="v2.0.50727"/> and save it. After that, StresStimulus will launch under .NET 4.0.  You would need to make this change again after every StresStimulus reinstall/update.

Fiddler addon:

Use Fiddler4 (not Fiddler2). StresStimulus will run inside Fiddler process under .NET 4.0. This workaround does not require you to make any changes after StresStimulus reinstall/update. StresStimulus add-on version has all features of the standalone version plus Fiddler integration, therefore extensions must also be built on .NET Framework 4 or higher.

Distributed Testing:

If using external variables in a distributed testing environment, it's important to consider what version of StresStimulus is running on the controller and agents being used.

  • If the controller is running standalone version, the agents must be running a standalone version or as a Windows service.
  • If the controller is running Fiddler add-on version, the agents must be running Fiddler add-on version.

...

titleExternal Components

...

  • .