Testing Relief - .NET applications pretesting tool
Home Product Info Download Support
Try it Learn more
Home / Product info / Quick start / Preparation
Quick Start Movie
  • Windows Media Video (8 356 993 bytes) TestingReliefQuickStart.wmv
  • Archived Windows Media Video (5 917 467 bytes) TestingReliefQuickStart.zip

  •  

    Preparation

    Before you make changes in the code of the Task Vision application, it is necessary to prepare the base version of application executable files. Since Testing Relief detects modifications by examining the MSIL code of the software product, it is necessary to compile all versions of the software product using one version of the compiler.

    So, first of all, you should compile the release version of the Task Vision software product. The executable file you get should be copied to a separate directory. The binary files will be added to the Testing Relief project as base assemblies.

    Now you can make changes in the source code of Task Vision. Modify the TaskVision.DataLayer.GetTasks method in the file DataLayer.cs. The made changes are highlighted in yellow.

    C#
    public DataLayerResult GetTasks(int projectID, bool clearData)
    {
        DataSetTasks ds;
        int dummy = 0;
    		    
        try
        {
            ds = m_WsData.GetTasks(m_Ticket, projectID);
    
            if (ds == null)
            {
                DataLayerResult ticketResult = GetAuthorizationTicket();
    			
                if (ticketResult != DataLayerResult.Success)
                    return ticketResult;
    
                ds = m_WsData.GetTasks(m_Ticket, projectID);
    
                if (ds == null)
                return DataLayerResult.AuthenticationFailure;
    
            }
        }
        catch (Exception ex)
        {
            return HandleException(ex);
        }
    
        if (0 == dummy && clearData)
            DsTasks.Tasks.Clear();
    
        DsTasks.Merge(ds);
        return DataLayerResult.Success;
    }

    As you can see in this example, the logics of executing the GetTasks method has not been modified since it is unimportant for this example, but, however, Testing Relief will detect these changes because the source code of the method has been modified.

    After you make changes in the code, compile the release version of Task Vision. These binary files will be added to the Testing Relief project as last assemblies.


    Previous: Introduction Next: Objective
    Home Product Info Download Support
     
    Copyright © 2006-2010 TestingRelief.net. All rights reserved.  
    support@TestingRelief.net