Exemplo n.º 1
0
        /// <summary>
        /// 任务入口及任务流执行后处理
        /// </summary>
        public void TestTaskMain(string labelImei)
        {
            this.labelImei   = labelImei;
            runState         = true;
            flagCreateNewRow = false;

            readWriteIdHandle.FlagDisplayUart = true;

            //执行流程
            int ret = TestTaskFlow();

            //frmMain.DisplayLog(string.Format("标签IMEI:{0}\r\n", labelImei));
            //结果判断
            Result.ResultJudge resultJudge = Result.ResultJudge.GetResultJudge(frmMain);
            if (ProductionInfo.Type == ProductionInfo.SystemType.iMES || ProductionInfo.Type == ProductionInfo.SystemType.GSMMES)
            {
                resultJudge.Imei  = labelImei;
                resultJudge.Sn    = snRead;
                resultJudge.Eid   = eidRead;
                resultJudge.Iccid = iccidRead;
            }
            resultJudge.PutResult(eidRead, ret);

            runState = false;
            readWriteIdHandle.FlagDisplayUart = false;
        }
Exemplo n.º 2
0
        /// <summary>
        ///开启测试线程
        /// </summary>
        public void StartTest()
        {
            //测试开始
            runState = true;

            //开始测试
            int ret = flow.TestTaskFlow();

            //结果判断
            Result.ResultJudge result = new Result.ResultJudge(frmMain);
            result.PutResult(ret);

            //Eid请求,获取Imei,iccid....,生成Log


            //生成Log
            Log.LogHelper log = new Log.LogHelper(frmMain);
            log.WriteLog(eid, ret);


            //测试完成
            runState = false;
        }