コード例 #1
0
        protected override void TestInitialize()
        {
            VerifyInteractiveOrDeviceNeededRdpeusbTestCase();

            base.TestInitialize();

            if (null == rdpeusbAdapter)
            {
                rdpeusbAdapter         = Site.GetAdapter <IRdpeusbAdapter>();
                ReqCapturer.Site       = Site;
                ReqCapturer.NeedVerify = true;
            }
            else
            {
                rdpeusbAdapter.Reset();
                context = new EusbTestContext();
            }

            this.rdpbcgrAdapter.TurnVerificationOff(TurnOffRDPEUSBVerification);

            //Start RDP listening.
            this.TestSite.Log.Add(LogEntryKind.Comment, "Starting RDP listening with transport protocol: {0}", transportProtocol.ToString());
            this.rdpbcgrAdapter.StartRDPListening(transportProtocol);

            StartRDPConnection();
        }
コード例 #2
0
        protected override void TestInitialize()
        {
            base.TestInitialize();

            if (null == rdpeusbAdapter)
            {
                rdpeusbAdapter = Site.GetAdapter<IRdpeusbAdapter>();
                ReqCapturer.Site = Site;
                ReqCapturer.NeedVerify = true;
            }
            else
            {
                rdpeusbAdapter.Reset();
                context = new EusbTestContext();
            }

            this.rdpbcgrAdapter.TurnVerificationOff(true);

            //Start RDP listening.
            this.TestSite.Log.Add(LogEntryKind.Comment, "Starting RDP listening with transport protocol: {0}", transportProtocol.ToString());
            this.rdpbcgrAdapter.StartRDPListening(transportProtocol);

            StartRDPConnection();
        }