Support

Expand all | Collapse all

Duration for test run

  • 1.  Duration for test run

    Posted 10-17-2018 16:16

    I am working at the organization of  adacel.jamacloud.com

     

    I am currently updating our scripts from soap to rest.  I am almost done but I do have a small problem.

     

    With soap, I was updating the testrun.duration with suds with a python.time object as follow :

     

    self.client.service.executeTestRun(self.auth, testRun.testRun.id,time, result,False,testRun.steps)

     

    time was something like this : 0:01:03 (1 minute 3 seconds)

     

    Now, I did not find the format of the duration that json needs.  The following is the payload :

            payload ={

                "fields": {

                    "actualResults":result,

                    "duration":??,

                    "testRunSteps":[

                        {

                            "status" : status

                        }

                    ]

                }

            }

     

    I already tried integer such as 1, 2 or 3, but it gives incorrect result.  If I push 1, the duration shown on contour is 02:00:00, which doesn't make sense!

     

    So, what is the format need for duration?

     

    Thx a lot



    ------------------------------
    Pierre-Luc Boily
    Adacel
    Montreal QC
    5143941165
    ------------------------------


  • 2.  RE: Duration for test run

    Posted 10-18-2018 10:22

    Hi Pierre,

    Thanks for reaching out to us.

    For our API, the duration field is in milliseconds as an integer. So if you were to set the duration to be exactly 1 minute 3 seconds, you would have it be 63000.



    ------------------------------
    Justin Phang
    Developer Support Engineer
    Jama Software
    Portland OR
    ------------------------------



  • 3.  RE: Duration for test run

    Posted 10-18-2018 13:39
    Thx, it works!

    ------------------------------
    Pierre-Luc Boily
    Adacel
    Montreal QC
    5143941165
    ------------------------------