Custom-coded metrics - Minimum requirements

7 years 8 months ago - 7 years 1 month ago #62 by javier-fernandez
Custom-coded metrics - Minimum requirements was created by javier-fernandez
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: 7 years 1 month ago by javier-fernandez.

Please Log in or Create an account to join the conversation.

  • javier-fernandez
  • Topic Author