Search

TOPIC: Attribute metric limitation

Attribute metric limitation 4 months 4 weeks ago #24

  • javier-fernandez
  • javier-fernandez's Avatar
  • Offline
  • Administrador
  • Posts: 52
  • Thank you received: 1
  • Karma: 0
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.
The administrator has disabled public write access.

Attribute metric limitation 4 months 4 weeks ago #25

  • javier-fernandez
  • javier-fernandez's Avatar
  • Offline
  • Administrador
  • Posts: 52
  • Thank you received: 1
  • Karma: 0
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: 4 months 4 weeks ago by javier-fernandez.
The administrator has disabled public write access.