public SmokeTest CreateSmokeTest(IDictionary <string, string> parameters = null) { var smokeTest = new SmokeTest(Hub, this) { Parameters = parameters }; Hub.Queue.Add(smokeTest); return(smokeTest); }
public IActionResult Add(SmokeTestAddModel md) { if (ModelState.IsValid) { var st = new SmokeTest(); st.ExecuteScript = md.ExecuteScript; st.Name = md.Name; st.FilePath = md.FilePath; st.PassMatch = md.PassMatch; db.SmokeTest.Add(st); db.SaveChanges(); } else { Response.StatusCode = 400; return(Content("非法提交!!")); } return(RedirectToAction("Index")); }
/// <summary> /// /// <c>start</c> /// /// Description: The smoke test is called to ensure basic functionality of the system. /// The Smoke Test currently does the following: /// -Ensures there exists valid scenes in build /// -For each scene, ensures that the scene can run without issues /// -Ensure all assets are capable of loading properly /// -Ensures Vital GUI components can be created and function properly /// -Ensures Language Engine can be created properly /// /// Pre-condition: None /// /// Post-condition: builds a new smoke test. /// /// /// </summary> /// <returns>NULL</returns> /// <authors> /// Mathew Cathcart /// </authors> public static void Start() { SmokeTest smoke = new SmokeTest(); smoke.MainTest(); }