Example #1
0
        private static void HtmlParseFile(string filePath, List <XPathRuleItem> ruleItems)
        {
            if (!File.Exists(filePath))
            {
                return;
            }

            try
            {
                CaseFile cf = new CaseFile(filePath);
                cf.Parse(ruleItems);
                cf.Export(resultFolder);
                Console.WriteLine(string.Format("{0}\t{1}", cf.titleText, cf.SourcePath));
                foreach (var msg in cf.errmsgs)
                {
                    Console.WriteLine(msg);
                }
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex.Message);
                Console.WriteLine(ex.Source);
                Console.Write(ex.StackTrace);
            }
        }
Example #2
0
        private static void HtmlParseFile(string filePath, List <XPathRuleItem> ruleItems)
        {
            if (!File.Exists(filePath))
            {
                return;
            }

            CaseFile cf = new CaseFile(filePath);

            cf.Parse(ruleItems);
            cf.Export(resultFolder);
            Console.WriteLine(string.Format("{0}:casecount={1}", cf.exportFile, cf.listNode.Count));
            foreach (var msg in cf.errmsgs)
            {
                Console.WriteLine(msg);
            }
        }