Open APIs

 View Only

TMF667 - Document Management CTK

  • 1.  TMF667 - Document Management CTK

    TM Forum Member
    Posted Jun 18, 2021 10:56
    Hi,

    I am implementing Document Management and will be using the CTK for baseline test.

    Referring to the Post Document in folder TC_DocMng_N4 - Create Document, there is a test as the following:

    tests["POST Body Response equals Request Body"  ] = objectEquals(sentData, receivedData);

    My understanding is that this test is expecting the request to be the same as the response.

    While looking at the Body, the attachment array is having attachmentId and attachmentHref but the test is testing:

    var attachmentRequiredFields = ["id", "href", "sizeUnit", "size", "mimeType"];

    tests["Required attachment fields are present [ "+attachmentRequiredFields+" ]"] = findFieldsInBody(attachmentRequiredFields,attachmentArray);

    Snippet of the request:
      "attachment": [
        {
          "URL""string",
          "size""1",
          "sizeUnit""MB",
          "attachmentId": "54321",
          "attachmentHref": "string"
        }
      ]

    Should it be id or attachmentId?
    Should it be href or attachmentHref?

    Thanks and regards,
    Sarah



    ------------------------------
    Sarah Hayati
    CSG
    ------------------------------