Пример #1
0
        /// <summary>
        /// Performs the playback of actions in this module.
        /// </summary>
        /// <remarks>You should not call this method directly, instead pass the module
        /// instance to the <see cref="TestModuleRunner.Run(ITestModule)"/> method
        /// that will in turn invoke this method.</remarks>
        void ITestModule.Run()
        {
            Mouse.DefaultMoveTime        = 300;
            Keyboard.DefaultKeyPressTime = 100;
            Delay.SpeedFactor            = 1.0;

            //TODO: Databinding iteration(CDI || HART) -> protocol
            var repo = EH.PCPS.TestAutomation.DeviceCare.V10300.GUI.DeviceCareApplication.Instance;

            //Ask Anja how this DB will be handled when the automation Rack is ready

            //Initialize the Statusbar_Functions class
            Statusbar_Functions getCommunicationUnit = new Statusbar_Functions();

            //Set its parameter 'CommunicationUnit' -> will be passed into the IsUSBCommunicationUnitRecognized() method by its constructor
            //Passing any parameters into the method itself is not required therefore
            getCommunicationUnit.CommunicationUnit = var_CommUnitName;

            //Checks if HART FXA195 is connected
            if (!getCommunicationUnit.IsCommunicationUnitRecognized())
            {
                Report.Failure("No suitable communication unit has been found.");
            }
            else
            {
                Report.Success("Device is connected.");
            }
            repo.StatusArea.UsbCommunicationUnitList.Click();
        }
Пример #2
0
        /// <summary>
        /// Performs the playback of actions in this module.
        /// </summary>
        /// <remarks>You should not call this method directly, instead pass the module
        /// instance to the <see cref="TestModuleRunner.Run(ITestModule)"/> method
        /// that will in turn invoke this method.</remarks>
        void ITestModule.Run()
        {
            Mouse.DefaultMoveTime        = 300;
            Keyboard.DefaultKeyPressTime = 100;
            Delay.SpeedFactor            = 1.0;


            Statusbar_Functions getUSBCommunicationUnit = new Statusbar_Functions();

            getUSBCommunicationUnit.CommunicationUnit = Protocol.HART.commHardwareFXA195;
            if (!getUSBCommunicationUnit.IsCommunicationUnitRecognized())
            {
                Report.Failure("No suitable unit has been found.");
            }
            else
            {
                Report.Success("Device is connected.");
            }
        }