private void btnRunTest_Click(object sender, System.EventArgs e) { sveDataStore.Title = "Location to save GUI test data"; sveDataStore.Filter = "XML Files (*.xml)|*.xml|All Files (*.*)|*.*"; if (sveDataStore.ShowDialog() == DialogResult.OK) { TestCaseStore = sveDataStore.FileName; } else { return; } GUITestSeqList.AUTStartupForm = startupForm; GUITestUtility.SerilizeInfo(TestCaseStore, GUITestSeqList); //chapter 8 string verifyStore = TestCaseStore.Replace(".xml", "_verify.xml"); GUITestUtility.SerilizeInfo(verifyStore, TypesToVerify); GUITestScript guiTS = new GUITestScript(TestCaseStore, currDir); GUITestSeqList = null; }
private void tmrVerifyTest_Tick(object sender, System.EventArgs e) { tmrVerifyTest.Enabled = false; string resultDataStore = guiTestDataStore.Replace(".xml", "_result.xml"); GUITestUtility.SerilizeInfo(resultDataStore, resultList); this.Dispose(); }
private void tmrVerifyTest_Tick(object sender, System.EventArgs e) { tmrVerifyTest.Enabled = false; string resultDataStore = guiTestDataStore.Replace(".xml", "_result.xml"); //GUITestUtility.SerilizeInfo(resultDataStore, resultList); GUITestUtility.SerilizeInfo(resultDataStore, testResult); //Display the test result try { XmlTreeViewer.Form1 xmlTV = new XmlTreeViewer.Form1(); xmlTV.OpenXmlDoc(resultDataStore); xmlTV.Show(); } catch {} //Test completed this.Dispose(); }