Open APIs

 View Only
  • 1.  Issues in CTK TMF687-Stock-v4.0.0/TMF629-Customer-v4.0.0

    Posted Aug 12, 2021 09:19
    We have discovered the following issues in the CTK postman scripts.

    When we run the CTK, the test for value held on validFor always fails (as shown below).

    AssertionError: Instance has only id, href and filtered attribute
    Descriptiom : expected [ 'id', 'href', 'id' ] to be a superset of [ Array(12) ]


    From looking at the postman scripts, we suspect that the reason is due to the following:

    " pm.test('Instance must have id, href and filtered attribute', function () { pm.expect(Object.keys(instance)).to.include.members(requiredAttributes)});",
    " pm.test('Instance has only id, href and filtered attribute', function () { pm.expect(requiredAttributes).to.include.members(Object.keys(instance))});",
    " });",

    Here, the second test case is expecting the response block contain only id, href and filtered attribute always which is invalid scenario

    The solution is to keep the 1st test case (Instance must have id, href and filtered attribute) alone and remove the 2nd test case (Instance has only id, href and filtered attribute)

    pm.test('Instance must have id, href and filtered attribute', function () { pm.expect(Object.keys(instance)).to.include.members(requiredAttributes)});"


     



    ------------------------------
    Murugesan P
    Tech Mahindra Limited
    ------------------------------


  • 2.  RE: Issues in CTK TMF687-Stock-v4.0.0/TMF629-Customer-v4.0.0

    Posted Aug 12, 2021 11:55
    Hi Murugesan
    I've notified the relevant focals about your CTK problem, hopefully you'll get some help.

    ------------------------------
    Jonathan Goldberg
    Amdocs Management Limited
    Any opinions and statements made by me on this forum are purely personal, and do not necessarily reflect the position of the TM Forum or my employer.
    ------------------------------