public override UE4Game.UE4TestConfig GetConfiguration() { UE4Game.UE4TestConfig Config = base.GetConfiguration(); string ErrorParam = Context.TestParams.ParseValue("ErrorType", null); if (string.IsNullOrEmpty(ErrorParam) == false) { ErrorType = (ErrorTypes)Enum.Parse(typeof(ErrorTypes), ErrorParam); } ErrorDelay = Context.TestParams.ParseValue("ErrorDelay", ErrorDelay); Server = Context.TestParams.ParseParam("Server"); string Args = string.Format(" -errortest.type={0} -errortest.delay={1}", ErrorType, ErrorDelay); if (Server) { var ServerRole = Config.RequireRole(UnrealTargetRole.Server); ServerRole.Controllers.Add("ErrorTest"); ServerRole.CommandLine += Args; } else { var ClientRole = Config.RequireRole(UnrealTargetRole.Client); ClientRole.Controllers.Add("ErrorTest"); ClientRole.CommandLine += Args; } return(Config); }
public override UE4Game.UE4TestConfig GetConfiguration() { UE4Game.UE4TestConfig Config = base.GetConfiguration(); Config.RequireRole(UnrealTargetRole.Editor); return(Config); }
public override UE4Game.UE4TestConfig GetConfiguration() { string ReportOutputPath = Globals.Params.ParseValue("ReportOutputPath", ""); string DisplayReportOutputPath = Globals.Params.ParseValue("DisplayReportOutputPath", ""); string SessionID = Guid.NewGuid().ToString(); string HostIP = UnrealHelpers.GetHostIpAddress(); UE4Game.UE4TestConfig Config = base.GetConfiguration(); Config.MaxDuration = 60.0f * 60.0f * 2.0f; // set to 2 hours. var ClientRole = Config.RequireRole(UnrealTargetRole.Client); ClientRole.ExplicitClientCommandLine = string.Format("-sessionid={0} -messaging -log -TcpMessagingConnect={1}:6666", SessionID, HostIP); var EditorRole = Config.RequireRole(UnrealTargetRole.Editor); EditorRole.CommandLine = string.Format("-nullrhi -ExecCmds=\"Automation StartRemoteSession {0};RunTests Project+System; Quit\" -TcpMessagingListen={1}:6666 -log -ReportOutputPath=\"{2}\" -DisplayReportOutputPath=\"{3}\"", SessionID, HostIP, ReportOutputPath, DisplayReportOutputPath); return(Config); }