HomeSUPPORT QUESTIONS

Need help with StresStimulus? Start here.

Create a test case from code instead of recorder Messages in this topic - RSS

Unregistered User
Unregistered User
Posts: 509


1/29/2018
Unregistered User
Unregistered User
Posts: 509
Can I build a test in StresStimulus without recording a test case. Example, running a C# class to do the creation of data?
0 link
George @StresStimulus
George @StresStimulus
Administrator
Posts: 554


1/29/2018
George @StresStimulus
George @StresStimulus
Administrator
Posts: 554
You cannot create a test case without recording it because it must have at least one HTTP request. But if I understood your question correctly, this should not be an obstacle to what you want to achieve. Here is the workaround.
Create your C# class inside an asp.net webpage (let’s call it MyClass.aspx). Execute this class inside the Page_Load event of the page. This page does not need to return any HTML. You can host this page in IIS or IIS Express that comes with Visual Studio.
Then, record a test case consisting of one HTTP request opening MyClass.aspx in a browser.
After that, when you replay this test case, it will execute your C# class. You can emulate the number of virtual users that you need and StresStimulus will capture performance metrics.
0 link






Copyright © 2024 Stimulus Technology