Forum Discussion

richie's avatar
richie
Community Hero
6 years ago

An Assertion To Verify Repeating Attribute Contains All Upper Case Chars?

Hey!   nmrao  and New2API have repeatedly helped me with some scripts to check repeating attributes in my .json response has certain attributes.   I now have tests that require me to verify a...
  • nmrao's avatar
    nmrao
    6 years ago
    richie,

    See adding this to existing script and helps!

    //assumes json is defined and field name is DataSourceId_Name
    json.data.DataSourceId_Name.each {
    assert it == it.toUpperCase()
    }