Forum Discussion

alfonsolft's avatar
alfonsolft
Occasional Contributor
8 years ago

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
    8 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
    8 years ago

    Thanks ,

    The solutions is ok,  with JSON path.

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

    ie., use ${#TestCase#SEED} in other steps.
  • nmrao's avatar
    nmrao
    8 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
    8 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.