TOPIC: Custom-coded metrics - Minimum requirements

Custom-coded metrics - Minimum requirements 3 years 9 months ago #62

  • javier-fernandez
  • javier-fernandez's Avatar
Hello everyone!

The custom-coded metric is an extensibility from RQA that allows users to develop their own quality metrics. Not only for Correctness, it is able for Completeness and Consistency.

Dealing with Custom-coded metrics is not a easy task. There are some requirements important to take care before starting:
  • Visual Studio 2010 or newer
  • .NET Framework 4.5
  • The code language shall be C# or .NET
  • In order to access to the functions of RQA, it is necessary to add the following references (that you MUST get from the RQA installation path)
  • o Cake.Engine
    o Cake.ConnectionFactory
    o Cake.IConnectionFactory
    o Cake.Indexer
    o Rqa.Dal
    o Rqa.IndividualMetrics

After having the code done and built, then you need to provide the following information to RQA:
  1. Assembly: the .DLL file generated after building the project. It is necessary to include the entire path of the .DLL file or add it into the RQA installation path.
  2. Class: the name of the class in the project. RQA should help you choosing this field using the provided assembly.
  3. Method: the name of the method containing the code of the metric. RQA should help you choosing this field using the provided class.

As you can see, it is necessary to have some background in developing code. I attached an example of an entire project.

IMPORTANT: In order to let RAT or RAT Plugin (for DOORS or Integrity) to work with this custom-coded metrics, it is necessary to have fully access to the assembly (DLL file). We recommend storing the DLL in a shared folder or network drive so every tool can access to it. There is another way that is duplicating and storing the DLL on the Installation folder of each tool.

Bye! :D
Last Edit: 3 years 2 months ago by javier-fernandez.
The administrator has disabled public write access.