Forum Discussion

faisal6621's avatar
faisal6621
Occasional Contributor
7 years ago

${=System.currentTimeMillis()} not working in version 5.4

In order to have random string I have been using ${=System.currentTimeMillis()}. Since I have updated the version of SoapUI from 5.3 to 5.4 this is not working and the request is not sent to the server.

In the SoapUI log it says:

Fri Dec 29 16:27:43 IST 2017:INFO:Error getting response for [ServiceSoapBinding.operationName:SoapUI-Project-Name]; null

  • It seems something went wrong during the upgrade of SoapUI v5.3 to v5.4. I was unable to find the real cause of this issue but

    the issue has been resolved after re-installing the SoapUI v5.4.

     

    Thanks Nastya_Khovrina, JHunt, nmrao for your inputs.

     

  • faisal6621's avatar
    faisal6621
    Occasional Contributor

    It seems something went wrong during the upgrade of SoapUI v5.3 to v5.4. I was unable to find the real cause of this issue but

    the issue has been resolved after re-installing the SoapUI v5.4.

     

    Thanks Nastya_Khovrina, JHunt, nmrao for your inputs.

     

  • JHunt's avatar
    JHunt
    Community Hero

    I can't see why it wouldn't work - possibly some other problem with your request, like an unclosed bracket somewhere?

     

    Have you tried it on a new (empty) request, or even a new project?

     

    You could also try using ${=UUID.randomUUID()} to generate a random string.

    • faisal6621's avatar
      faisal6621
      Occasional Contributor

      Hi JHunt, nmrao,

       

      The SOAP request is correct and there is no unclosed bracket. Even with ${=UUID.randomUUID()} the request is not sent to the server. Check my previous reply.

  • Nastya_Khovrina's avatar
    Nastya_Khovrina
    SmartBear Alumni (Retired)

    Hi, 

     

    Thank you for your post. I've checked the behavior in both versions (5.3.0 nd 5.4.0) and it works fine for me, so it looks like the issue is caused by something else.

    • faisal6621's avatar
      faisal6621
      Occasional Contributor

      Hi Nastya_Khovrina,

       

      Thank you for the reply.

       

      Until I have the  = symbol ( ${=} ), the request is not sent to the server. If I remove the = symbol then the request is sent successfully to the server but the value is left empty.

      • ${=System.currentTimeMillis()} : the request is not sent to server
      • ${System.currentTimeMillis()} : the request is sent to server but the value remains empty.

      Can you suggest me where should I look for the cause of this issue?

       

      Regards,

      Mohammad Faisal

      • nmrao's avatar
        nmrao
        Champion Level 3
        faisal6621, I can see it working in REST in 5.4.0 like it was already mentioned by Anastasia

        Are you using it SOAP or REST requests? or somewhere else?