Forum Discussion

alfonsolft's avatar
alfonsolft
Occasional Contributor
7 years ago
Solved

Re: Property Transfer Test Step adding extra bracket in the value

Hi, I have the same problema that Nhan.  I have the following response JSON´s service {    "data":    {       "idSesion": 7,       "seed": "EFER642XVE5PF2OE"    },    "idAplicacion": 1,    "i...
  • PaulMS's avatar
    7 years ago

    Add the JSON path expression $.data.seed under the source Login Request 1 then you should see the transferred value.

  • alfonsolft's avatar
    alfonsolft
    7 years ago

    Thanks ,

    The solutions is ok,  with JSON path.

  • nmrao's avatar
    nmrao
    7 years ago
    alfonsolft, it was mentioned in the earlier reply

    ie., use ${#TestCase#SEED} in other steps.
  • nmrao's avatar
    nmrao
    7 years ago
    As you can see the error message:
    It is line 1, column1

    where the script is even not started. May be so copy paste or special invisible characters? not sure.
  • PaulMS's avatar
    PaulMS
    7 years ago

    Hi

    The script assertion would need to be added to the first request. If added to the second request the response will be different and the script would fail.

    The result of the property transfer step is the same anyway so you can choose whichever method is easier.