Esempio n. 1
0
        public void SwitchToSearchTab()
        {
            MainWindowWrapper mainWindowWrapper = new MainWindowWrapper(Program.MainWindow);

            // Select the XenCenter node
            VirtualTreeView treeView = mainWindowWrapper.TreeView;
            MW(delegate() { treeView.SelectedNode = treeView.Nodes[0]; });

            // Switch to the Search tab
            GoToTabPage(Program.MainWindow.TabPageSearch);
        }
Esempio n. 2
0
        void Start()
        {
            if (testProcess == null)
            {
                EnsureCleanState();
                string exe = typeof(Walkabout.MainWindow).Assembly.Location;

                ResignAssembly(exe);

                // start ofx test server
                string serverExe = typeof(OfxTestServer).Assembly.Location;
                serverProcess = Process.Start(new ProcessStartInfo(serverExe));
                serverProcess.WaitForInputIdle();
                ofxServerWindow = OfxServerWindowWrapper.FindMainWindow(serverProcess.Id);

                // start money
                ProcessStartInfo psi = new ProcessStartInfo(exe, "/nosettings");
                testProcess = Process.Start(psi);
                testProcess.WaitForInputIdle();
                window = MainWindowWrapper.FindMainWindow(testProcess.Id);

                SetDirectoryPermissions();
            }
        }