Learn R Programming

valdr (version 2.2.0)

.build_test_attributes_long: Build long-format mapping of ForceDecks test attributes

Description

Given a list of test records (from parsed JSON), this returns one row per test-attribute combination, with a stable set of columns. Build long-format mapping of ForceDecks test attributes

Usage

.build_test_attributes_long(records)

Value

data.frame with columns:

  • testId

  • attributeTypeId

  • attributeTypeName

  • attributeValueId

  • attributeValueName

Arguments

records

list of test records (each may contain $attributes)

Details

Given a list of test records (from parsed JSON), this returns one row per test–attribute combination, with a stable set of columns.

Only attributes with at least one non-blank field are included. Tests with no attributes (or only blank attributes) do not appear in the result.