Esempio n. 1
0
        static IXN()
        {
            DriverCodeBase = Assembly.GetExecutingAssembly().CodeBase;
            TestShellRuntimeLocator runtimeLocator = new TestShellRuntimeLocator("8.2.0");

            DriverRuntimeAssembly = runtimeLocator.RuntimeAssembly;
            DriverRuntimeTypeName = runtimeLocator.RuntimeTypeName;
        }
Esempio n. 2
0
        public IXN()
        {
            m_DriverIdentifier = Guid.NewGuid();

            Type runtimeType        = DriverRuntimeAssembly.GetType(DriverRuntimeTypeName);
            bool IsSupportedVersion = (bool)runtimeType.GetMethod("IsSupportedRuntimeVersion").Invoke(null, new object[] { "8.2.0" });

            if (!IsSupportedVersion)
            {
                throw TestShellRuntimeLocator.NoMatchingRuntimeException("8.2.0");
            }

            runtimeType.GetMethod("InitializeRuntime").Invoke(null, new object[] { Assembly.GetExecutingAssembly().CodeBase, "IXN", m_DriverIdentifier.ToString() });

            m_Load_ConfigurationFunctionInterpreter = CreateFunctionInterpreter("IXN\\ixNetwork\\Config\\Load Configuration.tsdrv");
            m_Send_ARPFunctionInterpreter           = CreateFunctionInterpreter("IXN\\ixNetwork\\Protocols\\Send ARP.tsdrv");
            m_Start_ProtocolsFunctionInterpreter    = CreateFunctionInterpreter("IXN\\ixNetwork\\Protocols\\Start Protocols.tsdrv");
            m_Get_StatisticsFunctionInterpreter     = CreateFunctionInterpreter("IXN\\ixNetwork\\Statistics\\Get Statistics.tsdrv");
            m_Start_TrafficFunctionInterpreter      = CreateFunctionInterpreter("IXN\\ixNetwork\\Traffic\\Start Traffic.tsdrv");
            m_Stop_TrafficFunctionInterpreter       = CreateFunctionInterpreter("IXN\\ixNetwork\\Traffic\\Stop Traffic.tsdrv");
            m_killFunctionInterpreter = CreateFunctionInterpreter("IXN\\Session\\kill.tsdrv");
            m_setFunctionInterpreter  = CreateFunctionInterpreter("IXN\\Session\\set.tsdrv");
        }