Kenny K.
Milwaukee, WI
May 14, 2015
10
Posts
Re: Change Font and Text Color for print statement in TestLog
Two Part Question:
The customer has asked that the test sequence abort if the Firmware version on the UUT does not match the expected Firmware version. I can get the test program to do this, but the TestLog does not update with the value of the failed test, it aborts before the TestLog updates. So I added a print statement to show the failure, but it blends in with the rest of the Test Log.
Here is part of the code from the test: s_Temp is the variable from the vi that reads the Firmware Version
TestResult = s_Temp
!display test result before checking to abort.
i=6
if(TestResult = s_FWRevision)
sTestStatus = sTestStatus + ":"
else
sTestStatus = sTestStatus + "1:"
print ,
print "Firmware version expected: "
print s_FWRevision
print ". Firmware actual: "
print s_Temp
abort !abort if the firmware version does not match.
endif
A) Is it possible to have the "Firmware version expected: 2.11. Firmware Actual: 2.2" to be larger and red, like the "....Application Aborted" text when ATEasy aborts.
B) Is it possible to have the test results from the firmware test to post to the TestLog before the program runs the abort? This would allow me to not use the extra print statement. The TestLog would show "002 CheckFirmwareVersion - - 2.11 2.2 Fail" like a normal failed test.
File Attachment:
ateasy test.png