02-06-2025 05:04 AM
Hello,
I am new to Testsand. by reading some chats I have convert the "Station Id" to "Project ID". As you can see it in below attachment figure 1. Now, I want to change the Value of it. As of now I change it manually, as shown in below figure 2 . So I want to change it for each sequence. When I run the sequence, It will automatically get the value from the globle variable and add it in to the report in the front of Project Id. Can someone help me do that. or if someone has better idea than mein, Please guide me
Solved! Go to Solution.
02-06-2025 05:39 AM - edited 02-06-2025 05:40 AM
During Runtime, you have access via
RunState.Root.Locals.StationInfo.StationID
Use an ExpressionStep to assign a value.
Having said that: having to assign this in every sequence file is not maintainable code
02-06-2025 06:29 AM
Hi,
Thank you for the reply, This same Expression I have already used in my code but I got an error "unknown Variable or Property name".
Is there any alternative idea, I just want to add project name in to the Header section of the Report
02-06-2025 06:57 AM
Works on my machine as long as you run vi SinglePass or Test UUTs
02-06-2025 07:13 AM
I can not understand this things. Still I am getting error. Expression is exactly same .
Are you writting it in the Main Seq. or PreUUT or else?
02-06-2025 07:26 AM
Yes, from MainSequence.
Which is the location you'd like to access this from?
02-07-2025 01:00 AM
I could not get your question. I am also writing in the main sequence.
Basically, I can find Runstate.Root , however, could not find stationInfo in the Variables.
Please check below figure 3
02-07-2025 01:10 AM
RunState.Root is an object that gets populated during run-time
You need to suspend the execution in order to see it
My screenshot referes to a suspended execution
02-07-2025 01:58 AM
Yes, I got the solution
Thank you for the support
Best regards,
RS