HomeSUPPORT QUESTIONS

Need help with StresStimulus? Start here.

Creating modular scripts Messages in this topic - RSS

Unregistered User
Unregistered User
Posts: 322


10/21/2019
Unregistered User
Unregistered User
Posts: 322
Is there a way to create modular pieces of code and put them together with Stresstimulus ?
I know you can record a piece and then move that to another script if a call changed etc.
I think the normal way is to record and modify script and each flow is a script correct ?
We are at least wanting to reuse things like Home , Login , Logout etc.
0 link
George @StresStimulus
George @StresStimulus
Administrator
Posts: 244


10/21/2019
George @StresStimulus
George @StresStimulus
Administrator
Posts: 244
You can try the following:
1. Record a test case (TC) consisting of transactions: Login, Operation_A, Operation_B, ... Logout.
2. Clone the TC several times http://support.stresstimulus.com/display/doc50/Creating+Multiple+Test+Cases
3. In every clone, delete all transactions except one and call the clones by their name, e.g., TC_Login.
4. Save the test with the name Library. The TC in Library will be somewhat similar to modular pieces of code.
Now, when you create a new test, you can import from Library any TC containing the required transaction http://support.stresstimulus.com/display/doc50/Import+Test+Cases+from+another+test
You can also export transactions from Library to your new test http://support.stresstimulus.com/display/doc50/Clone+Objects
This method may not always work. There are several reasons for this:
• Your application does not support the sequence of transactions you are creating.
• The reusable transactions were created with extra or missing requests.
0 link






Copyright © 2019 Stimulus Technology