Forum Discussion

singhtester's avatar
singhtester
Contributor
14 years ago

Unable to get Integer from response - java.lang.NumberFormat

Hi ,

I am new to soapUI tool & started to look into this tool for my webservices & API testing.

While working on it today , I have noticed the below issue, Any update on this will be really helpful:

1 <inf:status>${Project - Request 1#Response#status}</inf:status>
2 <inf:time>${Project - Request 1#Response#time}</inf:time>

In above 2 response variables, Pass1 gives correct output, where as pass2 gives the error " java.lang.NumberFormatException: For input string: """

I am expecting as the expected result from pass1 is integer.

Can any one guide me any syntax change to make it work

Regards,

1 Reply

  • I am still not able to get through this, but for workaround i use the value as 1, as it is same for any response.
    But still unable to get the logic, why the value of node "time" throws java.lang.NumberFormat

    ${Project - Request 1#Response#time}

    Thanks.