OnAfterTestListCompleted is not getting invoked after the Test List execution

6 posts, 0 answers
  1. Raosaheb
    Raosaheb avatar
    1 posts
    Member since:
    Apr 2013

    Posted 20 Dec 2013 Link to this post

    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

  2. Ivaylo
    Admin
    Ivaylo avatar
    750 posts

    Posted 24 Dec 2013 Link to this post

    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!
  3. MRMC
    MRMC avatar
    1 posts
    Member since:
    Jun 2014

    Posted 13 Jun 2014 in reply to Ivaylo Link to this post

    Hi Ivaylo, is there any update on this issue? I am also trying to do the same thing as Raosaheb, running test list locally.
  4. Ivaylo
    Admin
    Ivaylo avatar
    750 posts

    Posted 18 Jun 2014 Link to this post

    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!
  5. Pravallika
    Pravallika avatar
    14 posts
    Member since:
    Dec 2014

    Posted 11 Jun 2015 Link to this post

    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.

  6. Ivaylo
    Admin
    Ivaylo avatar
    750 posts

    Posted 16 Jun 2015 Link to this post

    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!
Back to Top