private void FormPrincipal_Load(object sender, EventArgs e) { this.Text = "Motorola - MOD Factory Test - " + String.Format("Version {0}", Assembly.GetExecutingAssembly().GetName().Version.ToString()); this.dgvTestResult.DefaultCellStyle.Font = new Font("Consolas", 12); dgvTrackId.DataSource = null; dgvTrackId.DataSource = bindingListTS; bindingListTS.Clear(); stationType = (TestCoreMessages.StationType)Enum.Parse(typeof(TestCoreMessages.StationType), data["SETTINGS"]["STATION"]); //Find all today trackids and put on datagridview..... tsBtnDay_Click(null, null); //Configure station screen ConfigureScreen(data["SETTINGS"] ["SIDE"]); tsTxtBoxTrackId.AcceptsReturn = true; tsTxtBoxTrackId.AcceptsTab = true; tsTxtBoxTrackId.Focus(); //Instanciate TestCoreController and TestSuite try { tc = new TestCoreController(WriteTestSummary); } catch (Exception ex) { WriteTestSummary(TestCoreMessages.TypeMessage.ERROR, ex.Message); WriteTestSummary(TestCoreMessages.TypeMessage.ERROR, "TestCoreController = null"); isOkToRunTests = false; return; } }
public TestCaseChargerVerification(TestCoreController tcc) { base.Code = "2B"; base.Name = rm.GetString("tcChargerVerificationName"); base.Description = rm.GetString("tcChargerVerificationDescription"); base.ExpectedResults = rm.GetString("tcChargerVerificationExpectedResults"); base.ResulTest = TestEvaluateResult.NOT_RUN; base.Timeout = Int32.Parse(tcc.GetValueConfiguration("TC_CHARGER_VERIFICATION", "TIMEOUT")); base.TestPoints.Add("TP004"); // BATT+ base.TestPoints.Add("TP005"); // BATT- base.TimeStamp = DateTime.Now; this.tcc = tcc; this.hightLimit = Double.Parse(tcc.GetValueConfiguration("TC_CHARGER_VERIFICATION", "HIGHT_LIMIT")); this.lowLimit = Double.Parse(tcc.GetValueConfiguration("TC_CHARGER_VERIFICATION", "LOW_LIMIT")); this.recycle = Int32.Parse(tcc.GetValueConfiguration("TC_CHARGER_VERIFICATION", "RECYCLE")); this.units = tcc.GetValueConfiguration("TC_CHARGER_VERIFICATION", "UNIT"); this.isMQSEnable = Boolean.Parse(tcc.GetValueConfiguration("TC_CHARGER_VERIFICATION", "MQS_ENABLE").ToLower()); }
public TestCaseAntennaTest(TestCoreController tcc) { base.Code = "4C"; base.Name = rm.GetString("tcAntennaTestName"); base.Description = rm.GetString("tctcAntennaTestDescription"); base.ExpectedResults = rm.GetString("tcAntennaTestExpectedResults"); base.ResulTest = TestEvaluateResult.NOT_RUN; base.Timeout = Int32.Parse(tcc.GetValueConfiguration("TC_ANTENNA_TEST", "TIMEOUT")); base.TimeStamp = DateTime.Now; this.tcc = tcc; this.adb = new AdbManager(); this.isMQSEnable = Boolean.Parse(tcc.GetValueConfiguration("TC_ANTENNA_TEST", "MQS_ENABLE").ToLower()); this.frequency = Int32.Parse(tcc.GetValueConfiguration("TC_ANTENNA_TEST", "FREQUENCY")); this.hightLimit = Double.Parse(tcc.GetValueConfiguration("TC_ANTENNA_TEST", "HIGHT_LIMIT")); this.lowLimit = Double.Parse(tcc.GetValueConfiguration("TC_ANTENNA_TEST", "LOW_LIMIT")); this.units = tcc.GetValueConfiguration("TC_ANTENNA_TEST", "UNIT"); this.recycle = Int32.Parse(tcc.GetValueConfiguration("TC_ANTENNA_TEST", "RECYCLE")); }
public TestCaseMobileInterfaceCommunicationStationC(TestCoreController tcc) { base.Code = "2C"; base.Name = rm.GetString("tcMobIntStationCComName"); base.Description = rm.GetString("tcMobIntStationCDescription"); base.ExpectedResults = rm.GetString("tcMobIntStationCExpectedResults"); base.ResulTest = TestEvaluateResult.NOT_RUN; base.TestPoints.Add("M001"); base.Timeout = Int32.Parse(tcc.GetValueConfiguration("TC_MOBILE_INTERFACE_COMMUNICATION_STATION_C", "TIMEOUT")); base.TimeStamp = DateTime.Now; this.tcc = tcc; this.adb = new AdbManager(); this.recycle = Int32.Parse(tcc.GetValueConfiguration("TC_MOBILE_INTERFACE_COMMUNICATION_STATION_C", "RECYCLE")); this.units = tcc.GetValueConfiguration("TC_MOBILE_INTERFACE_COMMUNICATION_STATION_C", "UNIT"); this.hightLimit = Double.Parse(tcc.GetValueConfiguration("TC_MOBILE_INTERFACE_COMMUNICATION_STATION_C", "HIGHT_LIMIT")); this.lowLimit = Double.Parse(tcc.GetValueConfiguration("TC_MOBILE_INTERFACE_COMMUNICATION_STATION_C", "LOW_LIMIT")); this.isMQSEnable = Boolean.Parse(tcc.GetValueConfiguration("TC_MOBILE_INTERFACE_COMMUNICATION_STATION_C", "MQS_ENABLE").ToLower()); }
public TestCaseTunerVerification(TestCoreController tcc) { base.Code = "5B"; base.Name = rm.GetString("tcTunerVerificationName"); base.Description = rm.GetString("tcTunerVerificationDescription"); base.ExpectedResults = rm.GetString("tcTunerVerificationExpectedResults"); base.ResulTest = TestEvaluateResult.NOT_RUN; base.TestPoints.Add("TP030"); //RF base.TestPoints.Add("TP038"); //GND base.Timeout = Int32.Parse(tcc.GetValueConfiguration("TC_TUNE_VERIFICATION", "TIMEOUT")); base.TimeStamp = DateTime.Now; this.tcc = tcc; this.adb = new AdbManager(); this.frequency = Int32.Parse(tcc.GetValueConfiguration("TC_TUNE_VERIFICATION", "FREQUENCY")); this.recycle = Int32.Parse(tcc.GetValueConfiguration("TC_TUNE_VERIFICATION", "RECYCLE")); this.units = tcc.GetValueConfiguration("TC_TUNE_VERIFICATION", "UNIT"); this.hightLimit = Double.Parse(tcc.GetValueConfiguration("TC_TUNE_VERIFICATION", "HIGHT_LIMIT")); this.lowLimit = Double.Parse(tcc.GetValueConfiguration("TC_TUNE_VERIFICATION", "LOW_LIMIT")); this.isMQSEnable = Boolean.Parse(tcc.GetValueConfiguration("TC_TUNE_VERIFICATION", "MQS_ENABLE").ToLower()); }
public TestCasePowerOn(TestCoreController tcc) { base.Code = "1B"; base.Name = rm.GetString("tcPowerOnName"); base.Description = rm.GetString("tcPowerOnDescription"); base.ExpectedResults = rm.GetString("tcPowerOnExpectedResults"); base.ResulTest = TestEvaluateResult.NOT_RUN; base.TestPoints.Add("USB"); base.Timeout = Int32.Parse(tcc.GetValueConfiguration("TC_POWER_ON", "TIMEOUT")); base.TimeStamp = DateTime.Now; this.tcc = tcc; this.adb = new AdbManager(); this.voltageStandard = tcc.GetValueConfiguration("TC_POWER_ON", "VOLTAGE_STANDARD"); this.currentStandard = tcc.GetValueConfiguration("TC_POWER_ON", "CURRENT_STANDARD"); this.hightLimit = Double.Parse(tcc.GetValueConfiguration("TC_POWER_ON", "CURRENT_HIGHT_LIMIT")); this.lowLimit = Double.Parse(tcc.GetValueConfiguration("TC_POWER_ON", "CURRENT_LOW_LIMIT")); this.channel = Int32.Parse(tcc.GetValueConfiguration("TC_POWER_ON", "CHANNEL")); this.state = tcc.GetValueConfiguration("TC_POWER_ON", "STATE"); this.recycle = Int32.Parse(tcc.GetValueConfiguration("TC_POWER_ON", "RECYCLE")); this.units = tcc.GetValueConfiguration("TC_POWER_ON", "UNIT"); this.isMQSEnable = Boolean.Parse(tcc.GetValueConfiguration("TC_POWER_ON", "MQS_ENABLE").ToLower()); }
public TestCaseMagneticTest(TestCoreController tcc) { base.Code = "1C"; base.Name = rm.GetString("tcMagneticName"); base.Description = rm.GetString("tcMagneticDescription"); base.ExpectedResults = rm.GetString("tcMagneticExpectedResults"); base.ResulTest = TestEvaluateResult.NOT_RUN; base.TestPoints.Add("I/O Shield Box"); base.Timeout = Int32.Parse(tcc.GetValueConfiguration("TC_MAGNETIC_TEST", "TIMEOUT")); base.TimeStamp = DateTime.Now; this.tcc = tcc; this.voltageStandard = tcc.GetValueConfiguration("TC_MAGNETIC_TEST", "VOLTAGE_STANDARD"); this.currentStandard = tcc.GetValueConfiguration("TC_MAGNETIC_TEST", "CURRENT_STANDARD"); this.channel = Int32.Parse(tcc.GetValueConfiguration("TC_MAGNETIC_TEST", "CHANNEL")); this.state = tcc.GetValueConfiguration("TC_MAGNETIC_TEST", "STATE"); this.hightLimit = Double.Parse(tcc.GetValueConfiguration("TC_MAGNETIC_TEST", "HIGHT_LIMIT")); this.lowLimit = Double.Parse(tcc.GetValueConfiguration("TC_MAGNETIC_TEST", "LOW_LIMIT")); this.recycle = Int32.Parse(tcc.GetValueConfiguration("TC_MAGNETIC_TEST", "RECYCLE")); this.units = tcc.GetValueConfiguration("TC_MAGNETIC_TEST", "UNIT"); this.isMQSEnable = Boolean.Parse(tcc.GetValueConfiguration("TC_MAGNETIC_TEST", "MQS_ENABLE").ToLower()); }
public TestCaseLedVerificationWithCamera(TestCoreController tcc) { base.Code = "5C"; base.Name = rm.GetString("tcLedVerifyWithCamName"); base.Description = rm.GetString("tcLedVerifyWithCamDescription"); base.ExpectedResults = rm.GetString("tcLedVerifyWithCamExpectedResults"); base.ResulTest = TestEvaluateResult.NOT_RUN; base.Timeout = Int32.Parse(tcc.GetValueConfiguration("TC_LED_VERIFY_WITH_CAM", "TIMEOUT")); base.TestPoints.Add("PC_USB"); base.TimeStamp = DateTime.Now; this.tcc = tcc; this.adb = new AdbManager(); this.adbManagerLed = new AdbManager.LED(); this.screenX = Int32.Parse(tcc.GetValueConfiguration("TC_LED_VERIFY_WITH_CAM", "SCREEN_X")); this.screenY = Int32.Parse(tcc.GetValueConfiguration("TC_LED_VERIFY_WITH_CAM", "SCREEN_Y")); this.hightLimit = Double.Parse(tcc.GetValueConfiguration("TC_LED_VERIFY_WITH_CAM", "HIGHT_LIMIT")); this.lowLimit = Double.Parse(tcc.GetValueConfiguration("TC_LED_VERIFY_WITH_CAM", "LOW_LIMIT")); this.recycle = Int32.Parse(tcc.GetValueConfiguration("TC_LED_VERIFY_WITH_CAM", "RECYCLE")); this.units = tcc.GetValueConfiguration("TC_LED_VERIFY_WITH_CAM", "UNIT"); this.isMQSEnable = Boolean.Parse(tcc.GetValueConfiguration("TC_LED_VERIFY_WITH_CAM", "MQS_ENABLE").ToLower()); }