Exemple #1
0
        private NeoloadDesignAPIWrapper()
        {
            string globalMode = null;

            try
            {
                globalMode = TestSuite.Current.Parameters[OPT_RANOREX_NEOLOAD_MODE];
            }
            catch (Exception e)
            {
                // Do nothing
            }

            if (!String.IsNullOrEmpty(globalMode))
            {
                _mode = (Mode)Enum.Parse(typeof(Mode), globalMode.ToUpper());
            }
            else
            {
                _mode = ModeHelper.getPropertyValue(OPT_RANOREX_NEOLOAD_MODE, Mode.NO_API);
            }
        }