public void Run(string jubenName, JubenType jubenType, RunJuben juben, string title,
            IDictionary<string, string> pars,
            Action<IDictionary<string, string>> completed,
            Action<Exception> failed)
        {
            ClearCookies();
            JubenName = jubenName;
            JubenType = jubenType; 
            mLogBuilder.Clear();
            Juben = juben; 
            mParamers = pars;
            mCompletedAction = completed;
            this.Owner = Application.Current.MainWindow; 

            this.Title = title;
            this.Show();
            Init();  
            RecordLog("开始运行剧本", LogLevel.Info);
            Run();

        }
 public void RunTesting(RunJuben juben,
     IDictionary<string, string> pars,
     Action<IDictionary<string, string>> completed,
     Action<Exception> failed)
 {
     ClearCookies();
     mLogBuilder.Clear();
     IsTestingMode = true;
     IsWaitingUserRunNextStep = false;
     
     Run("test", JubenType.TaobaoBuy,  juben,"测试",pars,completed,failed);
 }