Forum Discussion

PavloRaketa's avatar
PavloRaketa
New Contributor
5 years ago
Solved

How to change a format from symbol to number?

Hi! I have one row,in request, where data is in symol format, i need insert data in another request, but i need plus number. How can i change format, from symbol to number in SoapUI?

  • Hey ,

    you stated "For example, i have in one request field in char format, i need this data transfer to another request but add some number. For that, i need change from char to varchar. Can i change it in SoapUi?"

     

    Is this XML or JSON?

    REST or SOAP?

    How are you populating the request with data?  Are you hard coding the data values or are you building the content of the request via say a Datasource?

    If it's .json rather than .xml - datatypes are maintained more visually in .json - so if "3" is considered text, 3 is considered numeric

     

    so if you had a .json name value pair as follows:

     

    "attributevalue" : "3"  << the value would be considered text

     

    "attributevalue" : 3  << the value would be considered numeric

     

    If the above doesn't help - providing more detail for your use case (consider the questions above and others I haven't specified) can only help people diagnose the issue


    Cheers,

    Richie

     

4 Replies

  • richie's avatar
    richie
    Community Hero

    Hey ,

    you stated "For example, i have in one request field in char format, i need this data transfer to another request but add some number. For that, i need change from char to varchar. Can i change it in SoapUi?"

     

    Is this XML or JSON?

    REST or SOAP?

    How are you populating the request with data?  Are you hard coding the data values or are you building the content of the request via say a Datasource?

    If it's .json rather than .xml - datatypes are maintained more visually in .json - so if "3" is considered text, 3 is considered numeric

     

    so if you had a .json name value pair as follows:

     

    "attributevalue" : "3"  << the value would be considered text

     

    "attributevalue" : 3  << the value would be considered numeric

     

    If the above doesn't help - providing more detail for your use case (consider the questions above and others I haven't specified) can only help people diagnose the issue


    Cheers,

    Richie

     

    • Olga_T's avatar
      Olga_T
      SmartBear Alumni (Retired)

      Thanks everyone for your participation.

      PavloRaketa , have you tried what Richie suggested? Did this help?

       

  • Lucian's avatar
    Lucian
    Community Hero

    Can you tell us a little bit more about this question? Maybe upload a print screen so we can better understand?

    • PavloRaketa's avatar
      PavloRaketa
      New Contributor

      For example, i have in one request field in char format, i need this data transfer to another request but add some number. For that, i need change from char to varchar. Can i change it in SoapUi?