Exemplo n.º 1
0
        private void InitRepl()
        {
            var servicesBuilder = new ReplScriptServicesBuilder(new ScriptConsole(), new Common.Logging.Simple.NoOpLogger()).Repl(true);
            servicesBuilder.ScriptName("F14N.REPL");

            this.scriptServices = servicesBuilder.Build();
            this.scriptServices.Executor.Initialize(new string[] { }, this.scriptServices.ScriptPackResolver.GetPacks());
            this.scriptServices.Executor.AddReferenceAndImportNamespaces(new[] { typeof(FluentAutomation.FluentTest), typeof(FluentAutomation.SeleniumWebDriver) });

            this.repl = this.scriptServices.Executor as Repl;
            this.settingsManager = new SettingsManager((scriptString) =>
            {
                return this.repl.Execute(scriptString);
            });
        }
Exemplo n.º 2
0
        private void InitRepl()
        {
            var servicesBuilder = new ReplScriptServicesBuilder(new ScriptConsole(), new Common.Logging.Simple.NoOpLogger()).Repl(true);

            servicesBuilder.ScriptName("F14N.REPL");

            this.scriptServices = servicesBuilder.Build();
            this.scriptServices.Executor.Initialize(new string[] { }, this.scriptServices.ScriptPackResolver.GetPacks());
            this.scriptServices.Executor.AddReferenceAndImportNamespaces(new[] { typeof(FluentAutomation.FluentTest), typeof(FluentAutomation.SeleniumWebDriver) });

            this.repl            = this.scriptServices.Executor as Repl;
            this.settingsManager = new SettingsManager((scriptString) =>
            {
                return(this.repl.Execute(scriptString));
            });
        }