public Package1Fixture(RemoteBehaviorGraph remoteGraph, NavigationDriver navigation)
        {
            _remoteGraph = remoteGraph;
            _navigation = navigation;

            Title = "For TestPackage1 (Assembly 'TestPackage1')";
        }
Exemple #2
0
        public Package1Fixture(RemoteBehaviorGraph remoteGraph, NavigationDriver navigation)
        {
            _remoteGraph = remoteGraph;
            _navigation  = navigation;

            Title = "For TestPackage1 (Assembly 'TestPackage1')";
        }
 public SearchSteps(TextBoxDriver textBoxDriver, NavigationDriver navDriver,
                    FormDriver formDriver, SeleniumController seleniumController)
 {
     _textBoxDriver      = textBoxDriver;
     _navDriver          = navDriver;
     _formDriver         = formDriver;
     _seleniumController = seleniumController;
 }
        public void SetUp()
        {
            var context = new TestContext();
            theSystem = new InProcessSerenitySystem<KayakApplication>();
            theSystem.Setup();
            theSystem.RegisterServices(context);

            theDriver = context.Retrieve<NavigationDriver>();
        }
        public void GoTo(string name)
        {
            // Add to ScreenFixture
            var driver = new NavigationDriver(Application);

            driver.NavigateTo(new TextModel {
                Name = name
            });
        }
Exemple #6
0
        public Package4Fixture(RemoteBehaviorGraph remoteGraph, NavigationDriver navigation)
        {
            _remoteGraph = remoteGraph;
            _navigation = navigation;

            Title = "For TestPackage4 - Spark (Assembly 'TestPackage4')";

            this["SetUp"] = Embed<PackagingSetupFixture>("If the packaging setup is");
        }
Exemple #7
0
        public Package4Fixture(RemoteBehaviorGraph remoteGraph, NavigationDriver navigation)
        {
            _remoteGraph = remoteGraph;
            _navigation  = navigation;

            Title = "For TestPackage4 - Spark (Assembly 'TestPackage4')";

            this["SetUp"] = Embed <PackagingSetupFixture>("If the packaging setup is");
        }
Exemple #8
0
 public void Setup()
 {
     _context = new TestContext();
     _system  = new InProcessSerenitySystem <ProductsManagementApplication>();
     _system.Setup();
     _system.SetupEnvironment();
     _system.RegisterServices(_context);
     _navigation = _context.Retrieve <NavigationDriver>();
     _navigation.NavigateToHome();
 }
Exemple #9
0
        public void SetUp()
        {
            var context = new TestContext();

            theSystem = new InProcessSerenitySystem <KayakApplication>();
            theSystem.Setup();
            theSystem.RegisterServices(context);

            theDriver = context.Retrieve <NavigationDriver>();
        }
        public void SetUp()
        {
            var context = new TestContext();
            theSystem = new InProcessSerenitySystem<KayakApplication>();
            theSystem.Setup();
            theSystem.RegisterServices(context);

            theApplication = theSystem.Get<IApplicationUnderTest>();
            theDriver = theApplication.Navigation;
        }
        public void SetUp()
        {
            FubuMvcPackageFacility.PhysicalRootPath = FileSystem.Combine("..", "..", "..", "KayakTestApplication");

            var context = new TestContext();
            theSystem = new InProcessSerenitySystem<KayakApplication>();
            theSystem.Setup();
            theSystem.RegisterServices(context);

            theApplication = theSystem.Get<IApplicationUnderTest>();
            theDriver = theApplication.Navigation;
        }
Exemple #12
0
        private void buildApplication()
        {
            _application = new SerenityJasmineApplication();
            var configLoader = new ConfigFileLoader(_input.SerenityFile, _application);

            configLoader.ReadFile();


            var applicationSettings = new ApplicationSettings {
                RootUrl = "http://localhost:" + _input.PortFlag
            };

            var browserBuilder = _input.GetBrowserBuilder();

            _applicationUnderTest = new ApplicationUnderTest(_application, applicationSettings, browserBuilder);

            _driver = new NavigationDriver(_applicationUnderTest);
        }
Exemple #13
0
        private void buildApplication()
        {
            _application = new SerenityJasmineApplication();
            var fileSystem   = new FileSystem();
            var loader       = new JasmineConfigLoader(fileSystem);
            var configurator = new JasmineConfigurator(fileSystem, loader);

            _configuration = configurator.Configure(_input.SerenityFile, _application);


            var applicationSettings = new ApplicationSettings
            {
                RootUrl = "http://localhost:" + _input.PortFlag
            };

            IBrowserLifecycle browserBuilder = _input.GetBrowser();

            _applicationUnderTest = new ApplicationUnderTest(_application, applicationSettings, browserBuilder);

            _driver = new NavigationDriver(_applicationUnderTest);
        }
Exemple #14
0
        public void by_default_uses_a_nullo_after_navigation()
        {
            var driver = new NavigationDriver(null);

            driver.AfterNavigation.ShouldBeOfType <NulloAfterNavigation>();
        }
 public void Setup()
 {
     _context = new TestContext();
     _system = new InProcessSerenitySystem<ProductsManagementApplication>();
     _system.Setup();
     _system.SetupEnvironment();
     _system.RegisterServices(_context);
     _navigation = _context.Retrieve<NavigationDriver>();
     _navigation.NavigateToHome();
 }
 public void by_default_uses_a_nullo_after_navigation()
 {
     var driver = new NavigationDriver(null);
     driver.AfterNavigation.ShouldBeOfType<NulloAfterNavigation>();
 }
Exemple #17
0
        private void buildApplication()
        {
            _application = new SerenityJasmineApplication();
            var configLoader = new ConfigFileLoader(_input.SerenityFile, _application);
            configLoader.ReadFile();

            var applicationSettings = new ApplicationSettings{
                RootUrl = "http://localhost:" + _input.PortFlag
            };

            var browserBuilder = _input.GetBrowserBuilder();

            _applicationUnderTest = new ApplicationUnderTest(_application, applicationSettings, browserBuilder);

            _driver = new NavigationDriver(_applicationUnderTest);
        }
 public CommonSteps(AssertLogin assertLogin, NavigationDriver navigationDriver, LoginDriver loginDriver)
 {
     this.assertLogin      = assertLogin;
     this.navigationDriver = navigationDriver;
     this.loginDriver      = loginDriver;
 }
 public ScriptLoadingFixture(NavigationDriver navigation)
 {
     _navigation = navigation;
     this["SetUp"] = Embed<PackagingSetupFixture>("If the packaging setup is");
 }
        private void buildApplication()
        {
            _application = new SerenityJasmineApplication();
            var fileSystem = new FileSystem();
            var loader = new JasmineConfigLoader(fileSystem);
            var configurator = new JasmineConfigurator(fileSystem, loader);
            _configuration = configurator.Configure(_input.SerenityFile, _application);

            var applicationSettings = new ApplicationSettings
            {
                RootUrl = "http://localhost:" + _input.PortFlag
            };

            IBrowserLifecycle browserBuilder = _input.GetBrowser();

            _applicationUnderTest = new ApplicationUnderTest(_application, applicationSettings, browserBuilder);

            _driver = new NavigationDriver(_applicationUnderTest);
        }
 public ScriptLoadingFixture(NavigationDriver navigation)
 {
     _navigation   = navigation;
     this["SetUp"] = Embed <PackagingSetupFixture>("If the packaging setup is");
 }