This is a migrated thread and some comments may be shown as answers.

OnAfterTestListCompleted is not getting invoked after the Test List execution

5 Answers 174 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Raosaheb
Top achievements
Rank 1
Raosaheb asked on 20 Dec 2013, 12:05 PM
I have followed the steps mentioned in http://www.telerik.com/automated-testing-tools/support/documentation/user-guide/code-samples/general/execution-extensions.aspx

Create a Class Library
Added the necesssary references

Below is the Code:
It is the same as given in the above link.

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using System.Data;
using System.Data.OleDb;
using System.Windows.Forms;
using ArtOfTest.WebAii.Design.Execution;

namespace ClassLibrary1
{
    public class Class1 : IExecutionExtension
    {
        public void OnAfterTestCompleted(ExecutionContext executionContext, TestResult result)
        {
            
        }

        public void OnBeforeTestStarted(ExecutionContext executionContext, ArtOfTest.WebAii.Design.ProjectModel.Test test)
        {
            
        }

        public DataTable OnInitializeDataSource(ExecutionContext executionContext)
        {
            return null;
        }

        public void OnStepFailure(ExecutionContext executionContext, ArtOfTest.WebAii.Design.AutomationStepResult stepResult)
        {
           
        }

        public void OnAfterTestListCompleted(RunResult result)
        {
            string msg = string.Format("TestList '{0}' completed on '{1}'. ({2}/{3}) Passed", result.Name, result.EndTime, result.PassedCount, result.TestResults.Count);
            StreamWriter file = new StreamWriter("c:\\test-list-results.txt");
            file.WriteLine(msg);
            file.Close();
        }

        public void OnBeforeTestListStarted(TestList list)
        {
           
        }
    }
}


I have build the code and copied the dll ClassLibrary1.dll to bin folder of Telerik.
Also add the ClassLibrary1.dll in the refernces of Telerik.
Still the OnAfterTestListCompleted is not getting invoked

5 Answers, 1 is accepted

Sort by
0
Ivaylo
Telerik team
answered on 24 Dec 2013, 09:24 AM
Hello Raosaheb,

It seems this is a known issue which we have logged here. You can follow the item in order to keep track of the progress and get notified when fixed.

Unfortunately there is no proper workaround on this.

Thank you for your understanding and patience regarding this matter.

Regards,
Ivaylo
Telerik
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
0
MRMC
Top achievements
Rank 1
answered on 13 Jun 2014, 11:18 AM
Hi Ivaylo, is there any update on this issue? I am also trying to do the same thing as Raosaheb, running test list locally.
0
Ivaylo
Telerik team
answered on 18 Jun 2014, 08:36 AM
Hello,

Please take a look at the workaround provided in the feedback item in this link.

Regards,
Ivaylo
Telerik
 
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
0
Pravallika
Top achievements
Rank 1
answered on 11 Jun 2015, 05:19 PM

Hi Ivaylo,

 I have tried with the workaround provided in the above link, but still the OnAfterTestListCompleted method is not getting invoked. Any update on this is appreciated.

 

Thanks,

Pravallika.

0
Ivaylo
Telerik team
answered on 16 Jun 2015, 06:58 AM
Hello,

I am sorry you are not able to handle it, since this is the only suitable workaround we do have for this issue.

Thank you for your understanding.

Regards,
Ivaylo
Telerik
 
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
Tags
General Discussions
Asked by
Raosaheb
Top achievements
Rank 1
Answers by
Ivaylo
Telerik team
MRMC
Top achievements
Rank 1
Pravallika
Top achievements
Rank 1
Share this question
or