Absent Member.
Absent Member.
2177 views

Filter on "test attribute not empty"

Hi

I want to set up a new filter for tests, that filters on a test attribute "review" of type "text". All tests with review != "" should be shown, but I did not manage to compare against "empty string" or "not set" . Even SQL wild cards ([ ], _) seem not supported. 

Is such a filter possible with SCTM 2012?

With best regards,

Bernd

0 Likes
3 Replies
Micro Focus Expert
Micro Focus Expert

Hi Bernd

You mention that you wish to filter all tests where the review attribute is NULL.  However, in SCTM when you add an attribute to a test, you must give it a value.  It cannot be empty or NULL.  If you attempt this you will receive:-

Suggestion

- You could add the review attribute to a test and give it a value of "---" (specifying empty).

- Then create a filter where Test Attribute "review" not equal to "---".  See screenshot below:-

Mark

0 Likes
Micro Focus Expert
Micro Focus Expert

The error was not displayed in the last post.  If you attempt to leave an attribute value null you will receive:-

Mark

0 Likes
Absent Member.
Absent Member.

Hi,

you can set up the wanted filter by this configuration:

Selection criteria: "Test Attribute"

Property: "review"

Operator: "like"

Value: "*"

Regards

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.