Forum Discussion

euller_lisowski's avatar
euller_lisowski
Occasional Visitor
7 years ago

Property Transfer always sending strings to a JSON request

Hi everybody!

There is Property test step in my test case with a some data.

And I'm able to transfer it to my other step a JSON request with sucess, but doesn't matter wich data type is defined in my Property test step, it's always transfered as a string.

What can I do to transfer properties respecting it's own data type?

  • JHunt's avatar
    JHunt
    Community Hero

    If I understand, you want to see

    "codigoEmpresa": 5

    instead of

    "codigoEmpresa": "5"

    I don't know if that's possible with PropertyTransfer. Instead you can refer to the property directly in your JSON:

     

    "clienteId:" {
        "codigoEmpresa": ${DADO que tenho esta massa de dados#codigoEmpresa}
  • luluberlu's avatar
    luluberlu
    Occasional Contributor

    hello

     

    i think the problem with type properties is not clearly explained; need precision to answer. 

    what type you have in source ? string ? what type you want in exit ?

    types are the same ? or need to convert one ?