How to capture the 'Type' of the message in current row of the Test Item Log
Hi,
I have a python script which generate a customised log from the test log.
In the script I need to capture the type of of the message in each row in the test log item.
I have used the following script for that. I was working fine. However after sometime (maybe because I closed the project and re-opened) the id's used have changed.
Appreciate if someone can help me with another method to capture the type of the message.
Thank you !
# Obtain the type of the current row & write this to the log file
TypeVal = Row.ValueByName["Type"]
if (TypeVal == 822415382):
Type = "Event"
elif (TypeVal == 990187621):
Type = "Message"
elif (TypeVal == 18446744073223342617):
Type = "Checkpoint"
elif (TypeVal == 1174736231):
Type = "Warning"
elif (TypeVal == 923080487):
Type = "Error"
ExportFile.WriteLine(aqConvert.VarToStr(TypeVal))