コード例 #1
0
        public void RemoteServerUITests_EditRemotePluginService_PluginServiceIsEdited()
        {
            // NOTE :
            // Requires PluginSource points the correct location as set below...

            // Requires a Plugin Directory on server with :
            // Plugins\PrimativesTestDLL.dll
            // And Plugins\PrimativesTestDLL - Copy.dll

            const string TextToSearchWith = "PluginService";

            //Edit remote plugin service
            ExplorerUIMap.DoubleClickService(TextToSearchWith, "REMOTEUITESTS", RemoteServerName);
            PluginServiceWizardUIMap.ClickActionAtIndex(4);
            KeyboardCommands.SendTabs(8, 250);
            KeyboardCommands.SendEnter(500); // test it

            KeyboardCommands.SendTabs(5, 250);
            KeyboardCommands.SendEnter(500); // save it

            //Change it back
            ExplorerUIMap.DoubleClickService(TextToSearchWith, "REMOTEUITESTS", RemoteServerName);
            string actionName = PluginServiceWizardUIMap.GetActionName();

            PluginServiceWizardUIMap.ClickActionAtIndex(13);
            KeyboardCommands.SendTabs(8, 250);
            KeyboardCommands.SendEnter(500); // test it

            KeyboardCommands.SendTabs(5, 250);
            KeyboardCommands.SendEnter(500); // save it

            StringAssert.Contains(actionName, "FetchCharVal");
        }