public void Start(IRemoteController remoteController) { _agent = new StorytellerAgent(_project.Port, _system); _agent.Receive(new StartProject { Project = _project }); }
public static void Main(string[] args) { // GrammarSystem is a custom ISystem // that "knows" how to bootstrap and // gracefully shut down the system under test StorytellerAgent.Run(args, new GrammarSystem()); }
public static void Run <T>(string[] args) where T : class { var system = new AspNetCoreSystem(); system.UseStartup <T>(); StorytellerAgent.Run(args, system); }
public void Start(Project project) { if (_running != null) { Console.WriteLine($"AGENT: Trying to start specification runner for {_running.GetType().Name} at {project.ProjectPath} and port {project.Port}"); } Project.CurrentProject = project; _project = project; Type systemType = null; try { if (_running == null) { buildRunningSystem(); } if (project.Mode == EngineMode.ExportOnly) { EventAggregator.SendMessage(_running.RecycledMessage); return; } _engine = project.Mode == EngineMode.Interactive ? buildUserInterfaceEngine() : buildBatchedEngine(project.TracingStyle); _engine.Start(project.StopConditions); ConsoleWriter.Write("AGENT: Specification running engine ready at " + project.ProjectPath); } catch (Exception e) { StorytellerAgent.LogFailure(e); ConsoleWriter.Write(ConsoleColor.Red, e.ToString()); var message = new SystemRecycled { error = e.ToString(), success = false, }; EventAggregator.SendMessage(message); } }
private static int Main(string[] args) { // SAMPLE: adding-external-node var host = new JasperStorytellerHost <MyJasperAppRegistry>(); host.AddNode(new OtherApp()); return(StorytellerAgent.Run(args, host)); // ENDSAMPLE /* * // SAMPLE: bootstrapping-storyteller-with-Jasper * JasperStorytellerHost.Run<MyJasperAppRegistry>(args); * // ENDSAMPLE */ }
public static void Main(string[] args) { DateTime time = DateTime.MinValue; DateTime.TryParse("anything", out time); Console.WriteLine(time); DependencyContext.Default.RuntimeLibraries.Each(x => { Console.WriteLine($"{x.Name}: {x.Version}"); }); // GrammarSystem is a custom ISystem // that "knows" how to bootstrap and // gracefully shut down the system under test StorytellerAgent.Run(args, new GrammarSystem()); }
public override bool Execute(StorytellerInput input) { try { var running = RunningSystem.Create(input.System); if (running.RecycledMessage.success) { Console.WriteLine("Able to create the FixtureLibrary"); } Console.WriteLine("System ready."); writeFixtures(running); Console.WriteLine("Trying the Warmup now..."); var warmup = running.System.Warmup(); warmup.Wait(1.Minutes()); if (warmup.IsCompleted) { ConsoleWriter.Write(ConsoleColor.Green, "StorytellerAgent started without any exceptions"); } return(true); } catch (Exception e) { StorytellerAgent.LogFailure(e); ConsoleWriter.Write(ConsoleColor.Red, "StorytellerAgent startup failed!"); ConsoleWriter.Write(ConsoleColor.Yellow, e.ToString()); return(false); } }
public void Start(Project project) { if (_running != null) { Console.WriteLine($"AGENT: Trying to start specification runner for {_running.GetType().Name} at {project.ProjectPath} and port {project.Port}"); } Project.CurrentProject = project; _project = project; try { _engine = buildUserInterfaceEngine(); _engine.Start(project.StopConditions); ConsoleWriter.Write("AGENT: Specification running engine ready at " + project.ProjectPath); } catch (Exception e) { StorytellerAgent.LogFailure(e); ConsoleWriter.Write(ConsoleColor.Red, e.ToString()); var message = new SystemRecycled { error = e.ToString(), success = false, }; EventAggregator.SendMessage(message); } }
public static void Main(string[] args) { StorytellerAgent.Run(args, new DatabaseSystem()); }
public static void Run <T>(string[] args) where T : JasperHttpRegistry, new() { StorytellerAgent.Run(args, For <T>()); }
public void Main(string[] args) { // SAMPLE: running-MyJasperStorytellerHarness StorytellerAgent.Run(args, new MyJasperStorytellerHarness()); // ENDSAMPLE }
public static void Main(string[] args) { StorytellerAgent.Run(args, new MartenSystem()); }
// ENDSAMPLE public static void Main(string[] args) { StorytellerAgent.Run(args, new SpecificationSystem()); }
public static void Run <T>(string[] args) where T : class { var system = new AspNetCoreSystem(() => SystemUnderTest.ForStartup <T>()); StorytellerAgent.Run(args, system); }
public static int Main(string[] args) { return(StorytellerAgent.Run <Program>(args)); }
public static int Main(string[] args) { // If you do not need a custom ISystem return(StorytellerAgent.Run(args)); }
public static void Main(string[] args) { StorytellerAgent.Run(args); }
public static void Main(string[] args) { StorytellerAgent.Run(args, new ReduxSampleSystem()); }
public static void Main(string[] args) { StorytellerAgent.Run(args, new SeleniumSystem()); }
public void Start(Project project) { if (_system != null) { Console.WriteLine($"AGENT: Trying to start specification runner for {_system.GetType().Name} at {project.ProjectPath} and port {project.Port}"); } Project.CurrentProject = project; _project = project; Type systemType = null; try { if (_system == null) { systemType = _project.DetermineSystemType(); _system = Activator.CreateInstance(systemType).As <ISystem>(); _disposables.Add(_system); } if (project.Mode == EngineMode.ExportOnly) { var recycled = _system.Initialize(lib => { }); EventAggregator.SendMessage(recycled); return; } _engine = project.Mode == EngineMode.Interactive ? buildUserInterfaceEngine() : buildBatchedEngine(project.TracingStyle); _engine.Start(project.StopConditions); ConsoleWriter.Write("AGENT: Specification running engine ready at " + project.ProjectPath); } catch (Exception e) { StorytellerAgent.LogFailure(e); ConsoleWriter.Write(ConsoleColor.Red, e.ToString()); var message = new SystemRecycled { error = e.ToString(), success = false, }; if (systemType != null) { message.system_name = systemType.AssemblyQualifiedName; } EventAggregator.SendMessage(message); } }
private static int Main(string[] args) { return(StorytellerAgent.Run(args)); }
public void Start(IEngineController remoteController) { _agent = new StorytellerAgent(_project.Port, _system); _agent.Receive(new StartProject {Project = _project}); }
public static void Main(string[] args) { StorytellerAgent.Run(args, new HelloWorldSystem()); }
public static void Run <T>(string[] args) where T : JasperOptions, new() { StorytellerAgent.Run(args, For <T>()); }
public static void Main(string[] args) { // If you do not need a custom ISystem StorytellerAgent.Run(args); }
public static int Main(string[] args) { return(StorytellerAgent.Run <SpecSystem>(args)); }