public override void OnTick() { UnrealLogParser Parser = new UnrealLogParser(WindowsServerLogContent); UnrealLogParser.FatalError FatalError = Parser.GetFatalError(); if (FatalError == null || FatalError.Callstack.Length == 0 || string.IsNullOrEmpty(FatalError.Message)) { throw new TestException("LogParser returned incorrect assert info"); } MarkComplete(TestResult.Passed); }
public override void OnTick() { string FilePath = Path.Combine(BaseDataPath, "OrionPS4ClientLogWithPerf.txt"); if (File.Exists(FilePath) == false) { throw new TestException("Missing data file {0}", FilePath); } UnrealLogParser Parser = new UnrealLogParser(File.ReadAllText(FilePath)); UnrealLogParser.FatalError FatalError = Parser.GetFatalError(); if (FatalError == null || FatalError.Callstack.Length == 0 || string.IsNullOrEmpty(FatalError.Message)) { throw new TestException("LogParser returned incorrect assert info"); } MarkComplete(TestResult.Passed); }