Karate API - Why response in not returning to called feature file

前端 未结 1 667
青春惊慌失措
青春惊慌失措 2021-01-23 11:05

I am calling login feature from another feature under background tag by passing un, pwd and endpoint url like below. Login feature is running successfully but the response of it

1条回答
  •  遥遥无期
    2021-01-23 11:24

    When you pass a data table/ JSON array to the called feature you will get JSON array in return.

    Here result object will have JSON array/list like data, so you have to read that variable accordingly

    for the above example try,

    * print result[0].response
    * print result[0].responseCookies
    

    0 讨论(0)
提交回复
热议问题