03-17-2017 10:33 AM
Hello
I want to create a UUT report file with the following format :
C:\\temp\\Reports\\ + Partnumber_Revision + \\Filetime\\FileDate\\Unique.xml
Therefore i have selected the "Specify report file path by expression" option and created the following path :
"C:\\temp\\Reports\\" + Locals.UUT.UUTPartNumber + "[$(FileTime)][$(FileDate)]$(Unique).$(FileExtension)"
But this doesn't work. Problem is the "locals.uut.uutpartnumber".
How can i get my partnumber and revision, stored in my UUT sequencefile as Fileglobals, in the reportname ?
03-17-2017 11:10 AM
Try Runstate.Root.Locals.UUT.UUTPartNumber
03-20-2017 03:49 AM
Hello
I have tried that but that doesn't work.
I get errormessage " Cannot invoke API member 'SequenceContext.locals' on NULL object reference 'Root' "
03-22-2017 12:26 PM
Hmm, the dialog seems to be too strict on validation.
Maybe try:
(Runstate.Root == Nothing ? "" : Runstate.Root.Locals.UUT.UUTPartNumber)
07-19-2017 07:43 AM
hii there,
i hjave also similar issue,
well atleast while editting the Expression is right if we add (Runstate.Root == Nothing ? "" : RunState.Root.Caller.FileGlobals.mySpecificDataStr)
the issue is I want to insert in the Report a specific data generated during the test.
I wonder how does the Report Filepathe take " <UUTStatus>" macro, as this is delivered only after test is complete.
can I custom define macros?