예제 #1
0
        private void LoadCfgFromXml(step cfg)
        {
            //var indexHeader = strAll.IndexOf(StaticStrings.HeaderSplitor);
            //var bp = strAll.IndexOf(StaticStrings.BodySplitor);
            //var indexBody = bp == -1 ? strAll.Length : bp;
            header = cfg.post_header;
            body   = cfg.post_body.Trim().Replace("\n", "").Replace("\r", "");

            var parameterPlace = Utility.GetRegxMatchs(StaticStrings.ParameterSpaceRegex, header).Concat(Utility.GetRegxMatchs(StaticStrings.ParameterSpaceRegex, body));

            parameters = parameterPlace.Distinct().ToArray();
        }
예제 #2
0
 public Page(step cfg)
 {
 }
예제 #3
0
 public PostPageTemplate(step cfg)
     : base(cfg)
 {
     LoadCfgFromXml(cfg);
 }
예제 #4
0
 public PostBackPageTemplate(step cfg)
     : base(cfg)
 {
     InputParameter = cfg.pastback;
 }