private void SendStaticVirtualChannelTraffics(StaticVirtualChannel_InvalidType invalidType)
        {
            if (this.rdpefsAdapter == null)
            {
                this.rdpefsAdapter = this.TestSite.GetAdapter <IRdpefsAdapter>();
                this.rdpefsAdapter.Reset();
                this.rdpefsAdapter.AttachRdpbcgrAdapter(this.rdpbcgrAdapter);
            }

            this.TestSite.Log.Add(LogEntryKind.Comment, "Start to sending ref traffics.");
            this.rdpefsAdapter.GenerateStaticVirtualChannelTraffics(invalidType);
        }
Пример #2
0
        // Default is using RDPEFS static virtual channel. Now is using DVC named "rdpdr".
        private void EstablishTunnelingStaticVCTrafficConnection(string staticChannelName = "RDPDR")
        {
            this.TestSite.Log.Add(LogEntryKind.Comment, "Start RDP connection, support soft sync and UDP perferred.");
            StartRDPConnection(false, true, true);

            // Check whether 'rdpdr' channel has been created
            if (this.rdpbcgrAdapter.GetStaticVirtualChannelId(staticChannelName) == 0)
            {
                this.TestSite.Assume.Fail("The necessary channel {0} has not been created, so stop running this test case.", staticChannelName);
            }

            if (rdpefsAdapter == null)
            {
                this.TestSite.Log.Add(LogEntryKind.Comment, "Create rdpefs adapter.");
                this.rdpefsAdapter = (IRdpefsAdapter)this.TestSite.GetAdapter(typeof(IRdpefsAdapter));
                this.rdpefsAdapter.Reset();
                this.rdpefsAdapter.AttachRdpbcgrAdapter(this.rdpbcgrAdapter);
            }

            if (rdpedycServer == null)
            {
                rdpedycServer = new RdpedycServer(this.rdpbcgrAdapter.ServerStack, this.rdpbcgrAdapter.SessionContext);
            }

            this.TestSite.Log.Add(LogEntryKind.Comment, "Start Dynamic VC Version Negotiation");
            ushort version = rdpedycServer.ExchangeCapabilities(waitTime);

            if (version < 0x0003)
            {
                this.TestSite.Log.Add(LogEntryKind.TestError, "Client doesn's support Version 3 DYNVC.");
            }

            this.TestSite.Log.Add(LogEntryKind.Comment, "Create a dynamic virtual channel for MS-RDPEFS");
            rdpefsAdapter.ProtocolInitialize(rdpedycServer);

            this.TestSite.Log.Add(LogEntryKind.Comment, "Send and receive efs data over DVC");
            rdpefsAdapter.EfsInitializationSequenceOverDVC();
        }
        // Default is using RDPEFS static virtual channel. Now is using DVC named "rdpdr".
        private void EstablishTunnelingStaticVCTrafficConnection(string staticChannelName = "RDPDR")
        {
            this.TestSite.Log.Add(LogEntryKind.Comment, "Start RDP connection, support soft sync and UDP perferred.");
            StartRDPConnection(false, true, true);

            // Check whether 'rdpdr' channel has been created
            if (this.rdpbcgrAdapter.GetStaticVirtualChannelId(staticChannelName) == 0)
            {
                this.TestSite.Assume.Fail("The necessary channel {0} has not been created, so stop running this test case.", staticChannelName);
            }

            if (rdpefsAdapter == null)
            {
                this.TestSite.Log.Add(LogEntryKind.Comment, "Create rdpefs adapter.");
                this.rdpefsAdapter = (IRdpefsAdapter)this.TestSite.GetAdapter(typeof(IRdpefsAdapter));
                this.rdpefsAdapter.Reset();
                this.rdpefsAdapter.AttachRdpbcgrAdapter(this.rdpbcgrAdapter);
            }

            if (rdpedycServer == null)
            {
                rdpedycServer = new RdpedycServer(this.rdpbcgrAdapter.ServerStack, this.rdpbcgrAdapter.SessionContext);
            }

            this.TestSite.Log.Add(LogEntryKind.Comment, "Start Dynamic VC Version Negotiation");
            ushort version = rdpedycServer.ExchangeCapabilities(waitTime);
            if(version < 0x0003)
            {
                this.TestSite.Log.Add(LogEntryKind.TestError, "Client doesn's support Version 3 DYNVC.");
            }

            this.TestSite.Log.Add(LogEntryKind.Comment, "Create a dynamic virtual channel for MS-RDPEFS");
            rdpefsAdapter.ProtocolInitialize(rdpedycServer);

            this.TestSite.Log.Add(LogEntryKind.Comment, "Send and receive efs data over DVC");
            rdpefsAdapter.EfsInitializationSequenceOverDVC();
        }
        private void SendStaticVirtualChannelTraffics(StaticVirtualChannel_InvalidType invalidType)
        {
            if (this.rdpefsAdapter == null)
            {
                this.rdpefsAdapter = (IRdpefsAdapter)this.TestSite.GetAdapter(typeof(IRdpefsAdapter));
                this.rdpefsAdapter.Reset();
                this.rdpefsAdapter.AttachRdpbcgrAdapter(this.rdpbcgrAdapter);
            }

            this.TestSite.Log.Add(LogEntryKind.Comment, "Start to sending ref traffics.");
            this.rdpefsAdapter.GenerateStaticVirtualChannelTraffics(invalidType);
        }