Ejemplo n.º 1
0
 public void TestInitialize()
 {
     if (Process.GetProcessesByName(testProcess).Length == 0)
     {
         testApp = ApplicationUnderTest.Launch(Path.Combine(AppDomain.CurrentDomain.BaseDirectory, testProcess + ".exe"));
     }
 }
Ejemplo n.º 2
0
        public void TestInitialize()
        {
            // Launch Calculator if not already running
            if (Process.GetProcessesByName(testProcess).Length == 0)
            {
                //TODO: do not hard code paths
                testApp = ApplicationUnderTest.Launch(@"C:\Windows\system32\" + testProcess + ".exe");
            }

            // Make sure the view is Standard
            WinCalculator mainWindow = new WinCalculator();
            if (!mainWindow.miStandard.Checked)
            {
                mainWindow.miView.Click();
                mainWindow.miStandard.Click();
            }
        }
        public void LaunchLowisServer()
        {
            LowisConnectDialog lconndlg = new LowisConnectDialog();
            LowisSettingsDialog lsettings = new LowisSettingsDialog();
            LowisMainWindow lwin = new LowisMainWindow();
            try
            {
                TestApp = ApplicationUnderTest.Launch(lowisclientbinlocation);
                lconndlg.selectServer(lowisserver);
                if (lowisusername.Length == 0 && lowispassword.Length == 0)
                {
                    //use default readio button Simply connect
                    lconndlg.Settings.Click();
                    lsettings.storepath.Text = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile).ToString(), "csstore", DateTime.Now.ToString("ddMMMyyyyhhmmss"));
                    lsettings.btnSavesettings.Click();
                    lconndlg.Connect.Click();
                    lwin.Analysis.WaitForControlReady();
                    lwin.Analysis.Click();

                }
                else
                {
                    lconndlg.usecredentails.Click();
                    lconndlg.txtuserName.Text = lowisusername;
                    lconndlg.txtuserName.Text = lowispassword;
                    lconndlg.Settings.Click();
                    lsettings.storepath.Text = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile).ToString(), "csstore", DateTime.Now.ToString("ddMMMyyyyhhmmss"));
                    lsettings.btnSavesettings.Click();
                    lconndlg.Connect.Click();
                    lwin.Analysis.WaitForControlReady();
                    lwin.Analysis.Click();

                }
            }
            catch (Exception ex)
            {
                TestContext.WriteLine("Encountered Exception: " + ex.Message);
            }
        }
Ejemplo n.º 4
0
        /// <summary>
        /// 关闭测试用的UI进程
        /// </summary>
        public void CloseApp(ApplicationUnderTest app)
        {
            try
            {
                app.Close();
            }
            catch
            {

            }
            if (!app.WaitForControlNotExist(5000))
            {
                try
                {
                    app.Process.Kill();
                }
                catch
                {

                }
            }
        }
Ejemplo n.º 5
0
 public void MyTestInitialize()
 {
     _uut = ApplicationUnderTest.Launch(_path);
 }
Ejemplo n.º 6
0
 /// <summary>
 /// Launch Window.
 /// </summary>
 /// <param name="urlString">Path for the application.</param>
 /// <returns>Application path.</returns>
 public static ApplicationUnderTest Launch(string urlString)
 {
     return(ApplicationUnderTest.Launch(urlString));
 }
Ejemplo n.º 7
0
 public void MyTestInitialize()
 {
     app = ApplicationUnderTest.Launch(@"D:\c#\LanguageTools\Dictionary\bin\Debug\Dictionary.exe");
     //UITestControl buttonAdd = app.
 }
Ejemplo n.º 8
0
 /// <summary>
 /// StartApp - Используйте "StartAppParams" для передачи параметров в этот метод.
 /// </summary>
 public void StartApp()
 {
     // Запуск "%VisualStudioDir%\Projects\UKPO_5\Debug\UKPO_5.exe"
     ApplicationUnderTest uKPO_5Application = ApplicationUnderTest.Launch(this.StartAppParams.ExePath, this.StartAppParams.AlternateExePath);
 }
 void SetUpMockDomain()
 {
     domain = new Mock <ApplicationDomain>();
     applicationUnderTest = new ApplicationUnderTest(domain.Object);
 }
 public ViewGameResultsScreen(ApplicationUnderTest app)
     : base(app)
 {
 }
Ejemplo n.º 11
0
 public BaseScreen(ApplicationUnderTest app)
 {
     App = app;
 }
 public void TestInitialize()
 {
     _app = ApplicationUnderTest.Launch(@"C:\PokerLeagueManager.UI.Wpf\PokerLeagueManager.UI.Wpf.exe");
     _gamesListScreen = new ViewGamesListScreen(_app);
 }
 public void LaunchApplication()
 {
     ApplicationUnderTest.Launch(AUT);
 }
Ejemplo n.º 14
0
 /// <summary>
 /// StartApplication - Use 'StartApplicationParams' to pass parameters into this method.
 /// </summary>
 public void StartApplication()
 {
     // Launch '%USERPROFILE%\Documents\Visual Studio 2015\Projects\TestsettingDoublication\TestTarget\bin\Debug\TestTarget.exe'
     ApplicationUnderTest uITestTargetVerknüpfunWindow = ApplicationUnderTest.Launch(this.StartApplicationParams.UITestTargetVerknüpfunWindowExePath, this.StartApplicationParams.UITestTargetVerknüpfunWindowAlternateExePath);
 }
Ejemplo n.º 15
0
 public void startApp()
 {
     Directory.SetCurrentDirectory(currPath);
     ApplicationUnderTest.Launch(Directory.GetCurrentDirectory() + @"\AlarmClock\bin\Release\AlarmClock.exe");
 }
Ejemplo n.º 16
0
 public static void SetUp()
 {
     Aut = Fluently.Launch(Utility.GetApplicationPath()).WaitUntilMainWindowIsLoaded().WithDefaultMainWindow();
 }
Ejemplo n.º 17
0
 public void Initialize()
 {
     this.containingWindow = ApplicationUnderTest.Launch(appPath);
 }
Ejemplo n.º 18
0
 /// <summary>
 /// Launch an app
 /// Assusmes that the app is not already open
 /// </summary>
 private static void LaunchApp()
 {
     string path = Path.Combine(Directory.GetCurrentDirectory(), AppBinary);
     _a = ApplicationUnderTest.Launch(path);
 }
Ejemplo n.º 19
0
 public void MyTestInitialize()
 {
     pathToApp = @"D:\Projects\CSharpPrograms\ORT\Task2_02\bin\Debug";
     appToTest = ApplicationUnderTest.Launch(Path.Combine(pathToApp, "Task2_02.exe"));
 }
Ejemplo n.º 20
0
 /// <summary>
 /// StartAccess - Use 'StartAccessParams' to pass parameters into this method.
 /// </summary>
 public void StartAccess()
 {
     // Launch '%ProgramW6432%\Microsoft Office 15\ClientX64\integratedoffice.exe' with arguments 'LAUNCH app "root\Office15\MSACCESS.EXE" apparg ""'
     ApplicationUnderTest integratedofficeApplication = ApplicationUnderTest.Launch(this.StartAccessParams.ExePath, this.StartAccessParams.AlternateExePath, "LAUNCH app \"root\\Office15\\MSACCESS.EXE\" apparg \"\"");
 }
Ejemplo n.º 21
0
 public void TestInitialize()
 {
     ApplicationUnderTest.Launch(ApplicationFilePath);
     mainScreen = new MainScreen();
 }
Ejemplo n.º 22
0
 public void TestInit()
 {
     _app = this.UIMap.OpenApp();
 }
Ejemplo n.º 23
0
 public void TestInitialize()
 {
     this.server = ApplicationUnderTest.Launch(Path.Combine(Directory.GetCurrentDirectory(), "YAEM.Server.exe"));
     this.client = ApplicationUnderTest.Launch(Path.Combine(Directory.GetCurrentDirectory(), "YAEM.DesktopClient.exe"));
 }
 public RecordAndReplay()
 {
     test = new ApplicationUnderTest();
 }
        public static UITestControl Initialize(string path, string title)
        {
            Playback.PlaybackSettings.DelayBetweenActions = 0;
            Playback.PlaybackSettings.ThinkTimeMultiplier = 0.0d;
            Playback.PlaybackSettings.SkipSetPropertyVerification = true;
            Playback.PlaybackSettings.ShouldSearchFailFast = true;
            _aut = ApplicationUnderTest.Launch(path);

            _cache = new Dictionary<string, UITestControl>();
            WinWindow window = new WinWindow();
            window.SearchProperties.Add(WinWindow.PropertyNames.Name, title);
            CacheComponentFound(window, title);
            _root = window;
            return _root;
        }
 /// <summary>
 /// StartCL - Use 'StartCLParams' to pass parameters into this method.
 /// </summary>
 public void StartCL()
 {
     // Launch '%ProgramFiles%\BuildingLink\ConciergeLink\ConciergeLink.exe'
     ApplicationUnderTest conciergeLinkApplication = ApplicationUnderTest.Launch(this.StartCLParams.ExePath, this.StartCLParams.AlternateExePath);
 }
Ejemplo n.º 27
0
 public void MyTestInitialize()
 {
     pathToApp = @"D:/Projects/CSharpPrograms/ORT/Task1_5/bin/Debug";
     appToTest = ApplicationUnderTest.Launch(Path.Combine(pathToApp, "Task1_5.exe"));
 }
Ejemplo n.º 28
0
 /// <summary>
 /// LaunchRecipe - Use 'LaunchRecipeParams' to pass parameters into this method.
 /// </summary>
 public void LaunchRecipe()
 {
     // Launch '%SmartViewDir%\RecipeManager.exe'
     ApplicationUnderTest recipeManagerApplication = ApplicationUnderTest.Launch(this.LaunchRecipeParams.ExePath, this.LaunchRecipeParams.AlternateExePath);
 }
 public ViewGamesListScreen(ApplicationUnderTest app)
     : base(app)
 {
 }
Ejemplo n.º 30
0
 public void LaunchRecipe(String exePath, String alternateExePath)
 {
     // Launch '%SmartViewDir%\RecipeManager.exe'
     ApplicationUnderTest recipeManagerApplication = ApplicationUnderTest.Launch(exePath, alternateExePath);
 }
 public void MyTestInitialize()
 {
     app = ApplicationUnderTest.Launch(@"C:\ws\brian\SimpleCalculator\Main\SimpleCalculatorUI\bin\Debug\SimpleCalculatorUI.exe");
 }
Ejemplo n.º 32
0
 public void TestSetUp()
 {
     TestedApp = ApplicationUnderTest.Launch(ApplicationPath);
 }
Ejemplo n.º 33
0
 [SetUp] public void SetUp()
 {
     applicationUnderTest = new ApplicationUnderTest();
 }
Ejemplo n.º 34
0
 /// <summary>
 /// StartApp - Use 'StartAppParams' to pass parameters into this method.
 /// </summary>
 public void StartApp()
 {
     // Launch '%USERPROFILE%\Desktop\RegExTester.exe'
     ApplicationUnderTest regExTesterApplication = ApplicationUnderTest.Launch(this.StartAppParams.ExePath, this.StartAppParams.AlternateExePath);
 }
Ejemplo n.º 35
0
 public void TestInitialize()
 {
     _app             = ApplicationUnderTest.Launch(@"C:\PokerLeagueManager.UI.Wpf\PokerLeagueManager.UI.Wpf.exe");
     _gamesListScreen = new ViewGamesListScreen(_app);
 }
Ejemplo n.º 36
0
 public static Shared Start()
 {
     _instance = ApplicationUnderTest.Launch(@"c:\windows\system32\calc.exe");
     return(new Shared());
 }
Ejemplo n.º 37
0
        /// <summary>
        /// AddingNewCategory2 - Use 'AddingNewCategory2Params' to pass parameters into this method.
        /// </summary>
        public void AddingNewCategory2()
        {
            #region Variable Declarations
            WinPane     uIListakategoriimojaapPane      = this.UIListakategoriimojaapWindow.UIListakategoriimojaapPane;
            WinPane     uIHomePagemojaaplikacjPane      = this.UIListakategoriimojaapWindow.UIHomePagemojaaplikacjPane;
            WinPane     uICreatemojaaplikacjapPane      = this.UIListakategoriimojaapWindow.UICreatemojaaplikacjapPane;
            WinControl  uICreatemojaaplikacjapDocument  = this.UIListakategoriimojaapWindow.UIChromeLegacyWindowWindow.UICreatemojaaplikacjapDocument;
            WinControl  uIChromeLegacyWindowDocument    = this.UIListakategoriimojaapWindow.UIChromeLegacyWindowWindow1.UIChromeLegacyWindowDocument;
            WinMenu     uIAutouzupełnianieMenu          = this.UIItemWindow.UIItemClient.UIAutouzupełnianieMenu;
            WinMenuItem uINowaKategoriaMenuItem         = this.UIItemWindow.UIItemClient.UINowaKategoriaMenuItem;
            WinControl  uICreatemojaaplikacjapDocument1 = this.UIListakategoriimojaapWindow.UIChromeLegacyWindowWindow2.UICreatemojaaplikacjapDocument;
            WinControl  uICreatemojaaplikacjapDocument2 = this.UIListakategoriimojaapWindow.UIChromeLegacyWindowWindow3.UICreatemojaaplikacjapDocument;
            WinControl  uIChromeLegacyWindowDocument1   = this.UIListakategoriimojaapWindow.UIChromeLegacyWindowWindow4.UIChromeLegacyWindowDocument;
            WinControl  uIChromeLegacyWindowDocument2   = this.UIListakategoriimojaapWindow.UIChromeLegacyWindowWindow5.UIChromeLegacyWindowDocument;
            WinControl  uIChromeLegacyWindowDocument3   = this.UIListakategoriimojaapWindow.UIChromeLegacyWindowWindow6.UIChromeLegacyWindowDocument;
            #endregion

            // Click 'Lista kategorii — moja aplikacja platformy ASP.NET...' pane
            Mouse.Click(uIListakategoriimojaapPane, new Point(416, 225));

            // Launch '%ProgramFiles(x86)%\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\PrivateAssemblies\ScriptedSandbox64.exe' with arguments '"Software\Microsoft\VisualStudio\15.0_5bd3f5c7\ScriptedPlugins" "Software\Microsoft\VisualStudio\15.0_5bd3f5c7_Config\ScriptedPlugins" 1098e 2f24 "C:/Program Files (x86)/Microsoft Visual Studio/2017/Enterprise/Common7/IDE/PrivateAssemblies/plugin.vs.js"'
            ApplicationUnderTest scriptedSandbox64Application = ApplicationUnderTest.Launch(this.AddingNewCategory2Params.ExePath, this.AddingNewCategory2Params.AlternateExePath, "\"Software\\Microsoft\\VisualStudio\\15.0_5bd3f5c7\\ScriptedPlugins\" \"Software\\Microso" +
                                                                                            "ft\\VisualStudio\\15.0_5bd3f5c7_Config\\ScriptedPlugins\" 1098e 2f24 \"C:/Program Fil" +
                                                                                            "es (x86)/Microsoft Visual Studio/2017/Enterprise/Common7/IDE/PrivateAssemblies/p" +
                                                                                            "lugin.vs.js\"");

            // Click 'Home Page — moja aplikacja platformy ASP.NET - Goo...' pane
            Mouse.Click(uIHomePagemojaaplikacjPane, new Point(816, 128));

            // Click 'Lista kategorii — moja aplikacja platformy ASP.NET...' pane
            Mouse.Click(uIListakategoriimojaapPane, new Point(439, 225));

            // Click 'Create — moja aplikacja platformy ASP.NET - Google...' pane
            Mouse.Click(uICreatemojaaplikacjapPane, new Point(670, 280));

            // Type 'Kategoria 8' in 'Create — moja aplikacja platformy ASP.NET - Google...' document
            Keyboard.SendKeys(uICreatemojaaplikacjapDocument, this.AddingNewCategory2Params.UICreatemojaaplikacjapDocumentSendKeys, ModifierKeys.None);

            // Click 'Create — moja aplikacja platformy ASP.NET - Google...' pane
            Mouse.Click(uICreatemojaaplikacjapPane, new Point(633, 343));

            // Click 'Home Page — moja aplikacja platformy ASP.NET - Goo...' pane
            Mouse.Click(uIHomePagemojaaplikacjPane, new Point(799, 126));

            // Click 'Lista kategorii — moja aplikacja platformy ASP.NET...' pane
            Mouse.Click(uIListakategoriimojaapPane, new Point(430, 221));

            // Click 'Create — moja aplikacja platformy ASP.NET - Google...' pane
            Mouse.Click(uICreatemojaaplikacjapPane, new Point(652, 296));

            // Type 'n' in 'Chrome Legacy Window' document
            Keyboard.SendKeys(uIChromeLegacyWindowDocument, this.AddingNewCategory2Params.UIChromeLegacyWindowDocumentSendKeys, ModifierKeys.None);

            // Type 'owa{Space}{Down}' in 'Autouzupełnianie' popup menu
            Keyboard.SendKeys(uIAutouzupełnianieMenu, this.AddingNewCategory2Params.UIAutouzupełnianieMenuSendKeys, ModifierKeys.None);

            // Type '{Space}' in 'Nowa Kategoria' menu item
            Keyboard.SendKeys(uINowaKategoriaMenuItem, this.AddingNewCategory2Params.UINowaKategoriaMenuItemSendKeys, ModifierKeys.None);

            // Type '{Back}' in 'Create — moja aplikacja platformy ASP.NET - Google...' document
            Keyboard.SendKeys(uICreatemojaaplikacjapDocument1, this.AddingNewCategory2Params.UICreatemojaaplikacjapDocumentSendKeys1, ModifierKeys.None);

            // Type 'kategoria{Space}2' in 'Autouzupełnianie' popup menu
            Keyboard.SendKeys(uIAutouzupełnianieMenu, this.AddingNewCategory2Params.UIAutouzupełnianieMenuSendKeys1, ModifierKeys.None);

            // Click 'Create — moja aplikacja platformy ASP.NET - Google...' pane
            Mouse.Click(uICreatemojaaplikacjapPane, new Point(621, 346));

            // Move 'Lista kategorii — moja aplikacja platformy ASP.NET...' pane
            Mouse.StartDragging(uIListakategoriimojaapPane, new Point(441, 348));
            Mouse.StopDragging(uIListakategoriimojaapPane, 54, -4);

            // Click 'Lista kategorii — moja aplikacja platformy ASP.NET...' pane
            Mouse.Click(uIListakategoriimojaapPane, new Point(495, 344));

            // Click 'Lista kategorii — moja aplikacja platformy ASP.NET...' pane
            Mouse.Click(uIListakategoriimojaapPane, new Point(474, 344));

            // Type 'Control, Shift + i' in 'Create — moja aplikacja platformy ASP.NET - Google...' document
            Keyboard.SendKeys(uICreatemojaaplikacjapDocument2, this.AddingNewCategory2Params.UICreatemojaaplikacjapDocumentSendKeys2, (ModifierKeys.Control | ModifierKeys.Shift));

            // Click 'Lista kategorii — moja aplikacja platformy ASP.NET...' pane
            Mouse.Click(uIListakategoriimojaapPane, new Point(1896, 109));

            // Type 'Control, Shift + l' in 'Chrome Legacy Window' document
            Keyboard.SendKeys(uIChromeLegacyWindowDocument1, this.AddingNewCategory2Params.UIChromeLegacyWindowDocumentSendKeys1, (ModifierKeys.Control | ModifierKeys.Shift));

            // Type 'Control, Shift + l' in 'Chrome Legacy Window' document
            Keyboard.SendKeys(uIChromeLegacyWindowDocument2, this.AddingNewCategory2Params.UIChromeLegacyWindowDocumentSendKeys2, (ModifierKeys.Control | ModifierKeys.Shift));

            // Type 'Control, Shift + i' in 'Chrome Legacy Window' document
            Keyboard.SendKeys(uIChromeLegacyWindowDocument3, this.AddingNewCategory2Params.UIChromeLegacyWindowDocumentSendKeys3, (ModifierKeys.Control | ModifierKeys.Shift));

            // Click 'Lista kategorii — moja aplikacja platformy ASP.NET...' pane
            Mouse.Click(uIListakategoriimojaapPane, new Point(1906, 115));
        }
Ejemplo n.º 38
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);
        }
Ejemplo n.º 39
0
 public void BeforeScenario()
 {
     //TODO: implement logic that has to run before executing each scenario
     _app = ApplicationUnderTest.Launch(@"C:\Windows\System32\calc.exe");
 }
Ejemplo n.º 40
0
        }                                               // todo: test only -> factory

        public Service(Memory memory) : base(memory, memory.GetItem <Operators>())
        {
            ApplicationUnderTest.AddNamespace("fit");
            ApplicationUnderTest.AddAssembly(Assembly.GetExecutingAssembly().CodeBase);
            memory.GetItem <Operators>().AddNamespaces(ApplicationUnderTest);
        }
Ejemplo n.º 41
0
 /// <summary>
 /// LaunchClassifierManager - Use 'LaunchClassifierManagerParams' to pass parameters into this method.
 /// </summary>
 public void LaunchClassifierManager()
 {
     // Launch '%SmartViewDir%\ClassifierManager.exe'
     ApplicationUnderTest classifierManagerApplication = ApplicationUnderTest.Launch(this.LaunchClassifierManagerParams.ExePath, this.LaunchClassifierManagerParams.AlternateExePath);
 }
 public void AddNamespaces(ApplicationUnderTest applicationUnderTest)
 {
     applicationUnderTest.AddNamespace("fitSharp.Fit.Operators");
     applicationUnderTest.AddNamespace("fit.Operators");
 }
Ejemplo n.º 43
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 ApplicationDriver(_applicationUnderTest);
        }
Ejemplo n.º 44
0
 public void dodavanjeUXml()
 {
     ApplicationUnderTest.Launch(System.Reflection.Assembly.GetAssembly(typeof(Form1)).Location);
     this.UIMap.dodavanjePosiljke();
 }
        public void TestInitialize()
        {
            // Launch Calculator if not already running
            if (Process.GetProcessesByName(testProcess).Length == 0)
            {
                testApp = ApplicationUnderTest.Launch(@"C:\Program Files (x86)\Weatherford\WellFlo\WellFlo.exe");
                common.Maximized = true;
            }
            // Initialize logging
            LogMessageRouter.Instance.AddDestination(new LogMessageWriterCSV("C:\\Logs\\", "DemoTestLogs"));
            LogMessageRouter.Instance.Ready();

            _log.Log(LogMessageSeverity.Information, "Demo Test Initialized");
        }
Ejemplo n.º 46
0
 public void TestInitialize()
 {
     ApplicationUnderTest.Launch(@"C:\Codep\John.SocialClub\John.SocialClub.Desktop\bin\Debug\John.SocialClub.Desktop.exe");
 }
Ejemplo n.º 47
0
 protected void BaseSetUp()
 {
     this.Aut = Fluently.Launch(Utility.GetApplicationPath()).WaitUntilMainWindowIsLoaded().WithMainWindowAs<MainWindow>();
 }
 public void MyTestInitialize()
 {
     this.applicationUnderTest = ApplicationUnderTest.Launch(ApplicationPath);
 }
Ejemplo n.º 49
0
 public BaseScreen(ApplicationUnderTest app)
 {
     App = app;
 }
Ejemplo n.º 50
0
        private void DoOpen(ObjectLocator locator, string waitTime)
        {
            string url = locator.ActualLocator;

            try
            {
                try
                {
                    // Resetting static values
                    qWin = null;
                    application = null;
                    if (url.ToLower().StartsWith("http://") || url.ToLower().StartsWith("https://"))
                    {
                        qWin = BrowserWindow.Launch(new System.Uri(url));
                        //qWin.WaitForControlReady(Int32.Parse(waitTime));
                    }
                    else
                    {
                        application = ApplicationUnderTest.Launch(url);
                    }
                }
                catch (Exception e)
                {
                    log.Error(e);
                }
                reportResults("Open", "Open URL : " + url, LogLevel.Success);
            }
            catch (AssertFailedException e)
            {
                throw e;
            }
            catch (Exception e)
            {
                log.Error(e);
                reportResults(true,
                         "Open",
                         "Open URL : " + url + " Failed. Actual error : " + e.Message,
                         LogLevel.Error,
                         e.StackTrace);
            }
        }
Ejemplo n.º 51
0
 public void MyTestInitialize()
 {
     // To generate code for this test, select "Generate Code for Coded UI Test" from the shortcut menu and select one of the menu items.
     // For more information on generated code, see http://go.microsoft.com/fwlink/?LinkId=179463
     app = ApplicationUnderTest.Launch(@"..\..\..\SpreadsheetGUI\bin\Debug\SpreadsheetGUI.exe");
 }
Ejemplo n.º 52
0
 public void SetUp()
 {
     this.aut = Fluently.Launch(Utility.GetApplicationPath()).WaitUntilMainWindowIsLoaded().WithMainWindowAs<MainWindow>();
 }