示例#1
0
        /// <summary>
        /// Init does the following :
        /// Store Parameter Info.
        /// Parse out the commonly required and universal tags
        /// </summary>
        public virtual void Init(CXmlDriverParam param)
        {
            varInfo = param;
            string resultType = varInfo.SelectExistingValue("Result/@Type", "Data");

            if (resultType == "Valid")
            {
                isValid = true;
            }
            else
            {
                isValid = false;
            }

            exceptionType = varInfo.SelectValue("Result/ExceptionType", "Data");
            exceptionMsg  = varInfo.SelectValue("Result/ExceptionMessage", "Data");
            xmlFile       = varInfo.SelectValue("Result/TestXmlFile", "Data");
            filePath      = varInfo.SelectValue("filepath", "Data");
            filePath      = FilePathUtil.ExpandVariables(filePath);
            if (filePath == null)
            {
                Log("Setting filePath = " + filePath);
            }
            httpPath = varInfo.SelectValue("httppath", "Data");
        }