Attribute metric limitation

7 years 8 months ago #24 by javier-fernandez
Attribute metric limitation was created by javier-fernandez
Hello

The attribute metric works very well with attributes from DOORS specifications. However, it does not work with attributes that allows multiple values. It seems that only detect one of them (the first one), so it is not possible to analyze requirements using this type of attributes.

Is there any workaround?

Thank you in advance.

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

  • javier-fernandez
  • Topic Author
7 years 8 months ago - 7 years 8 months ago #25 by javier-fernandez
Replied by javier-fernandez on topic Attribute metric limitation
Hi!

This is a really good point.

As you noticed, this parameterized metric has a limitation when the attribute allows multiple values.

When the attribute has a single value, RQA gets just the value as a plain text in a single line. However, when the attribute has multiple values, it returns the values as a plain text but one value per line.

If you select = as operator, the metric will check if the value in the metric configuration matches at a 100% with the one found in the requirements, so it will never get any results if the requirements has multiple values. However, there is a workaround that is selecting Regular Expression as operator. This way, it will work as a “contains”, so you will get the results you want to achieve same than attributes with single value.

There is already a new issue to the development team in order to remove this limitation as an improvement for next releases.

Regards,
Last edit: 7 years 8 months ago by javier-fernandez.

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

  • javier-fernandez
  • Topic Author