コード例 #1
0
        public override void Debug(Object sender, runClient.DebugEventArgs e)
        {
            //DEBUG 目录
            string rPath = System.Environment.CurrentDirectory + "\\runTemp\\webClient_" + port + "\\";

            this.debugPath = rPath;

            webHelper.caseXml = this.caseXml = e.caseXml;


            //创建结果目录
            if (!Directory.Exists(rPath))
            {
                Directory.CreateDirectory(rPath);
            }
            else
            {
                DirectoryInfo dirInfo = new DirectoryInfo(rPath);
                FileInfo[]    files   = dirInfo.GetFiles();

                //删除不了会报错
                foreach (FileInfo file in files)
                {
                    try { file.Delete(); }
                    catch (Exception ex)
                    {
                        logHelper.error(ex);
                    }
                }
            }

            webHelper.run(rPath);
        }
コード例 #2
0
        /// <summary>
        /// Debug执行
        /// </summary>
        /// <returns></returns>
        public override void Debug(Object sender, runClient.DebugEventArgs e)
        {
            if (this.status == phoneStatus.Busy)
            {
                return;
            }
            //DEBUG 目录
            string rPath = System.Environment.CurrentDirectory + "\\runTemp\\" + this.device + "\\";

            this.debugPath = rPath;

            this.caseXml = e.caseXml;


            RunInit(rPath);


            caseHelper.run(rPath);
        }