Open APIs

 View Only
Expand all | Collapse all

Successful Example of CTK test

  • 1.  Successful Example of CTK test

    Posted Jul 26, 2023 06:09

    I work on CTK test for product catalog but I need some successful examples of html results so I can get more understanding about what are requirements to make the test pass.



    ------------------------------
    Hassan Kamel
    Deloitte
    ------------------------------


  • 2.  RE: Successful Example of CTK test

    Posted Jul 26, 2023 10:41

    And also I need to know how can I pass query params to the CTK test ? how can I put them in the config json file?



    ------------------------------
    Hassan Kamel
    Deloitte
    ------------------------------



  • 3.  RE: Successful Example of CTK test

    Posted Jul 28, 2023 11:34

    Perhaps @Victor Rodriguez can assist here.



    ------------------------------
    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.
    ------------------------------



  • 4.  RE: Successful Example of CTK test

    Posted Jul 28, 2023 11:54

    I need also some instructions about how can I test a PATCH method? what should I do or write in the config json file for PATCH?



    ------------------------------
    Hassan Kamel
    Deloitte
    ------------------------------



  • 5.  RE: Successful Example of CTK test

    Posted Aug 02, 2023 07:48

    Hi Hassan,

    The ctk doesn´t support customizing query attributes. To add them, the postman collection needs to be modified. If that was necessary we could look at your specific usecase to see how to make it possible.



    ------------------------------
    Victor Mari Rodriguez
    TM Forum
    ------------------------------



  • 6.  RE: Successful Example of CTK test

    Posted Aug 02, 2023 08:48

    Thanks a lot @Victor Rodriguez. I really appreciate that



    ------------------------------
    Hassan Kamel
    Deloitte
    ------------------------------



  • 7.  RE: Successful Example of CTK test

    Posted Sep 25, 2023 14:07

    Hi Victor

    will that be ok to make changes to ctk/index.js to read more from config.json for my queryParamters 

    ------------------------------
    Reham Shedid
    Vodafone 
    ------------------------------



    ------------------------------
    Reham Shedid
    Vodafone Group
    ------------------------------



  • 8.  RE: Successful Example of CTK test

    Posted Oct 10, 2023 14:46

    @Victor Mari Rodriguez

    1. I tried that with the documentation example and it also fails to Instance has all mandatory attributes, 

    2.  I have mandatory query params, can I add it or make changes to the collection 

    3.  why do we have this /tmf-api/productInventory/v4/product?id=g265-tf85
    and not /tmf-api/productInventory/v4/product/g265-tf85 while it's the same 

    Thanks



    ------------------------------
    Reham Shedid
    Vodafone Group
    ------------------------------



  • 9.  RE: Successful Example of CTK test

    Posted Jul 30, 2023 13:02
    Edited by Hassan Kamel Jul 30, 2023 15:40

    I can't test the PATCH method of my API. and I don't know if I should to put a payload for the PATCH method like POST or what to do?  and keep in mind the I found the CTK test generated a small payload and send it to the method and It's failing.
    Jonathan Goldberg    @Victor Rodriguez
     



    ------------------------------
    Hassan Kamel
    Deloitte
    ------------------------------



  • 10.  RE: Successful Example of CTK test

    Posted Jul 31, 2023 10:22

    I'm sorry but I'm not an expert on the details of the CTK working, which is why I referred you to Victor. I hope he'll get back to you.



    ------------------------------
    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.
    ------------------------------



  • 11.  RE: Successful Example of CTK test

    Posted Aug 02, 2023 07:42
      |   view attached

    Hi hassan,

    I will attach a passing ctk html file. The role of the ctk is to test mandatory attributes in the conformance document of the api. They need to have valid values (If specified by conformance) and be present in the response payloads of your implementation. 

     



    ------------------------------
    Victor Rodriguez
    TM Forum
    ------------------------------

    Attachment(s)

    html
    htmlResults.html   409 KB 1 version


  • 12.  RE: Successful Example of CTK test

    Posted Aug 03, 2023 07:19

    Hello Victor, I'm running the CTK for TMF620 and for now I don't have any error but, I notice by your success file that you have more tests than I. For example, this
    run 17 tests and in your file run 116 tests. Can you please clarify why this difference occurs? Why does your file have more tests than my file? Was I'm doing something wrong while running the CTK (I do not change anything in my CTK it's the one that you can download from TMF page)

    Thank you for your help



    ------------------------------
    Rui Ferreira
    Celfocus
    ------------------------------



  • 13.  RE: Successful Example of CTK test

    Posted Aug 04, 2023 07:13

    Hi @Rui Ferreira

    The reason you are seeing a difference in the tests has to do with the objects present in the collection. That request lists all objects present and runs the same tests for each of them. I had several more object on the database and therefore the ammount of tests increases.



    ------------------------------
    Victor Mari Rodriguez
    TM Forum
    ------------------------------



  • 14.  RE: Successful Example of CTK test

    Posted Aug 04, 2023 07:25

    Thanks for your answer @Victor Rodriguez. So, if I understand correctly, my results are valid and you populate your database before running the tests.



    ------------------------------
    Rui Ferreira
    Celfocus
    ------------------------------



  • 15.  RE: Successful Example of CTK test

    Posted Aug 04, 2023 07:30

    Yes that is correct. As long as all your tests are passing your results are valid



    ------------------------------
    Victor Mari Rodriguez
    TM Forum
    ------------------------------



  • 16.  RE: Successful Example of CTK test

    Posted Aug 04, 2023 09:34

    Hi - also a quick question on this. O we need to implement all the mandatory structures for the test? For example, on TMF620 do we need to implement ProductOffering, ProductOfferingPrice and ProductSpecification? Or can we leave the ProductSpecification out and just not run the test for those? So, then we only pass the test that we run and exclude some test? Or do we need a 100% pass rate on ALL the test on the CTK for API compliance?



    ------------------------------
    Elzahn Oosthuizen
    Altron Systems Integration
    ------------------------------



  • 17.  RE: Successful Example of CTK test

    Posted Aug 05, 2023 16:04

    Hi @Elzahn Oosthuizen

    The tests are derived from the conformance specification of the api.

    For certification it is expected to have a report with all passing tests. There are cases where it is possible to certify a subset of the resources in those cases the ctk is configurable to only run tests against the specific resources.



    ------------------------------
    Victor Mari Rodriguez
    TM Forum
    ------------------------------