Skip to content

Dynamic test case error: Accessing an element of a template of type x at or after an AnyElementsOrNone (*)

Summary

Dynamic test case error occurs in the following code.

Dynamic test case error: Accessing an element of a template of type @DIAMETER_Types.AVP_list at or after an AnyElementsOrNone (*).

    var template PDU_DIAMETER tr_diameter :=
    {
        version := ?,
        message_length := ?,
        RPETxxxx := ?,
        command_code := ?,
        application_id := ?,
        hop_by_hop_id := ?,
        end_to_end_id := ?,
        avps := { * }
    };

    var integer vl_i := 0;

    while (isbound(tr_diameter.avps[vl_i]))
    {
        vl_i := vl_i + 1;
    }

Dynamic test case error: Accessing an element of a template of type @PreGenRecordOf.PREGEN_RECORD_OF_CHARSTRING at or after an AnyElementsOrNone (*), which is not the last element in the template.

    var template Charstrings strings := { "aa", * }

    var integer vl_i := 0;

    while (isbound(strings[vl_i]))
    {
        vl_i := vl_i + 1;
    }
Edited by Adam Knapp