Support Team wrote:Please give me a few more details about this use case. Our variables are just properties as you know them from C#, so of course it is possible to override this properties during the runtime.
Abstract:I want to set a variable in the "Record Module" (not in UserCode).
I will try to explain as simple as possible:
1) What I want to do
2) How I implement a workaround
What I want to do:1) I create a smoke test for a lot of "hardware configuration".
2) For each "hardware configuration" I need to create "dumps" at different moment of the smoke test.
3) I create a "Code module" or "UserCode" to create the "dumps". Each dump is stored in an directory (bounded with data) and has a FileName.
The "Test Case" (pseudo code):
- Code: Select all
- TestPart1
- Variable FileNameForDump ="Part1"
- Dump()
- TestPart2
- Variable FileNameForDump ="Part2"
- Dump()
...
- TestPartn
- Variable FileNameForDump ="Partn"
- Dump()
Workaround (idea, not fully implemented, but near)
1) I create a small dummy application with just one textbox
2) I launch this dummy application
3) In the test case, I set the Textbox text to "Part1"
4) In the code I get the Textbox text and so I can set the dump FileName.
5) Dump
...
I hope it is clear enough...