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

  •  

    Manual method linking

    There are two ways to link methods manually: using attributes in the code of the software product and using project settings.

    The TestingRelief.LinkAttributes.dll assembly contains 2 classes of attributes: AnalysisCallLinkAttribute and AnalysisCallerLinkAttribute.

    You can use the AnalysisCallLinkAttribute class to specify the method that the attribute owner calls and vice versa: you can use the AnalysisCallerLinkAttribute class to specify the method that calls the method that owns this attribute.

    Both classes have the same constructor parameters: «Type type, string method, params Type[] parameters»

    • type – the class the method that is called or being called is declared in;
    • method – method name;
    • parameters – an array of types corresponding to method parameters.

    You can get the code of attributes using the Get Custom Call Link Code command from the context menu.

    Besides specifying links in the project code, you can specify links on the level of metadata in the Testing Relief project. To do it, you should select the method you need on the Contents tab and execute the Edit Custom Call Links command from the context menu.

    You can specify one or more methods that are called by the selected method in the new dialog box. Information about links is stored in the project metadata after you save changes using the File – Save All command from the main menu


    Previous: Checking the reliability of the analysis results Next: Analyzing changes again
    Home Product Info Download Support
     
    Copyright © 2006-2010 TestingRelief.net. All rights reserved.  
    support@TestingRelief.net