protected virtual void OnTestFinished(TestFinishedEventArgs e) { if (TestFinished != null) { TestFinished(this, e); } }
private void TestFinished(object sender, TestFinishedEventArgs e) { //if first login fails re-try login if (!e.IsInitializeTest && !e.Result.Passed) { if (GenericScenarioNameList[e.TestName].scenarioUserCount.ContainsKey(e.UserContext.UserId) && GenericScenarioNameList[e.TestName].scenarioUserCount[e.UserContext.UserId] == 1) { GenericScenarioNameList[e.TestName].scenarioUserCount[e.UserContext.UserId] = 0; } } if (vsoTransactionContext.IsSaveTransactionInAzure) { //VSOnline Logging if (!e.IsInitializeTest && !e.Result.Passed) { //if (GenericScenarioNameList[e.TestName].scenarioUserCount.ContainsKey(e.UserContext.UserId) && GenericScenarioNameList[e.TestName].scenarioUserCount[e.UserContext.UserId] == 1) // GenericScenarioNameList[e.TestName].scenarioUserCount[e.UserContext.UserId] = 0; //vsoTransactionContext._loadtestTestCase[e.TestName].TestCaseId + "_" + e.UserContext.UserId.ToString() //vsoTransactionContext._testTransactiondetails.Enqueue((DataTable)e.UserContext[e.UserContext.UserId.ToString()]); //vsoTransactionContext._testTransactiondetails.Enqueue((DataTable)e.UserContext[vsoTransactionContext._loadtestTestCase[e.TestName].TestCaseId + "_" + e.UserContext.UserId.ToString()]); } if (vsoTransactionContext.IsSaveTransactionInAzure) { try { vsoTransactionContext._testTransactiondetails.Enqueue((DataTable)e.UserContext[vsoTransactionContext._loadtestTestCase[e.TestName].TestCaseId + "_" + e.UserContext.UserId.ToString()]); vsoTransactionContext._testdetails.Enqueue(e.Result.StartTime.ToString() + "|" + e.Result.EndTime.ToString() + "|" + e.Result.Duration.ToString() + "|" + e.Result.Passed.ToString() + "|" + e.UserContext[vsoTransactionContext._loadtestTestCase[e.TestName].TestCaseId + "_T_" + e.UserContext.UserId.ToString()].ToString()); } catch (Exception x) { // throw x; } } } }
void OnTestFinished(TestFinishedEventArgs e) { if (TestFinished != null) { TestFinished(this, e); } }
void testRunner_TestFinished(object sender, TestFinishedEventArgs e) { mainThread.InvokeAsyncAndForget(delegate { ShowResult(e.Result); }); }
private void testControl_TestFinished(object sender, TestFinishedEventArgs e) { //TODO: show statistics for testing this.Close(); }
void webTest_TestFinished(object sender, TestFinishedEventArgs e) { var scenario = ScenarioList.FirstOrDefault(x => x.Scenario.Name == e.ScenarioName); scenario.CompleteTest(); }