Ask a Question

All variables/let in memory when execute one scenario of test

SOLVED
Noriduki
New Contributor

All variables/let in memory when execute one scenario of test

When I run a single test scenario, all variables are loaded in memory, from other scenarios, is it possible to change this in the testComplete settings?

3 REPLIES 3
Marsha_R
Community Hero

This is how variables are sorted out in TestComplete

https://support.smartbear.com/testcomplete/docs/testing-with/variables/collections/index.html

 

You may need to move some of your variables to a lower level, for example from Project to Keyword, in order to isolate them in the way you are expecting.


Marsha_R
[Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame

Sorry. I didn't express myself correctly.
The variables I mentioned are referring to the test script made in JS.
Today we are declaring with 'let' in the units

There is some discussion of javascript variables here:

https://support.smartbear.com/testcomplete/docs/scripting/specifics/javascript.html


Marsha_R
[Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
cancel
Showing results for 
Search instead for 
Did you mean: