HomeSUPPORT QUESTIONS

Need help with StresStimulus? Start here.

Can I create custom plugin? Messages in this topic - RSS

Unregistered User
Unregistered User
Posts: 514


4/29/2020
Unregistered User
Unregistered User
Posts: 514
Hi Team,

StressStimulus is a very useful performance tool. Do we have any feature to write custom plugin?
Ex: In visualstudio, we have PostRequest code block which is executed post execution.
https://docs.microsoft.com/en-us/visualstudio/test/how-to-create-a-web-performance-test-plug-in?view=vs-2019

Thanks,
Anil
0 link
George @StresStimulus
George @StresStimulus
Administrator
Posts: 566


4/29/2020
George @StresStimulus
George @StresStimulus
Administrator
Posts: 566
In StresStimulus, you can create .NET external components that can be used to modify StresStimulus standard event handling, access test objects, and modify some of them.
For example, you can change requests and responses based on the test context information.

To create a post request code block, implement the OnAfterResponse method, as described here http://support.stresstimulus.com/display/doc51/Creating+External+Components
0 link
anilkumar
anilkumar
Posts: 1


5/4/2020
anilkumar
anilkumar
Posts: 1
Hi George,

Thanks for the inputs.
Do we have any videos on adding these code to performance test.
Like we have videos under, https://www.stresstimulus.com/videos/catalog
0 link
George @StresStimulus
George @StresStimulus
Administrator
Posts: 566


5/4/2020
George @StresStimulus
George @StresStimulus
Administrator
Posts: 566
Unfortunately, we don’t have videos for creating external components, however, I can share the essential steps.
  1. Using a .NET IDE of your choice, i.e. VS, create a new class library project.
  2. Add a reference to the StresStimulus.Core.dll to your project. This .dll is located in the StresStimulus installation directory. If you are running tests using StresStimulus Fiddler Addon version, reference the StresStimulus.Core.Fiddler.dll instead
  3. Create a class and implement the StresStimulus.Extensibility.IExternalComponent interface.
  4. Compile the .dll and copy it into the bin subfolder in the test folder. For example, for the test MyTest.ssconfig, copy the .dll to MyTest\bin folder.
  5. Reopen your .ssconfig in StresStimulus and start your test.
External components are helpful to create custom processing. If you need more typical processing or those that are frequently used in load testing, it may very well be already implemented in StresStimulus and can be invoked via UI. If you can describe your test requirements, I may be able to help you achieve your goal without writing custom scripting.
0 link






Copyright © 2024 Stimulus Technology