Space is converted to characters in REST URL

tapan1986tapan1986 Posts: 24
edited February 11 in SOAtest

When I am Passing this value Real Estate Test from Excel Data source to Rest URL it converts space as below.

Real%20Estate%20Test

Tagged:

Comments

  • NHawkNHawk Posts: 9 admin

    This is expected. Special characters used in a REST URL in SOAtest will be URL encoded.

    %20 is the URL code for space.

    Below is a site that you can see what codes different special characters will be converted to:
    https://www.w3schools.com/tags/ref_urlencode.asp

    Just to double check though, this isn't causing this test to fail, is it?

  • tapan1986tapan1986 Posts: 24

    Test is not failed but result validation though scripts failing as its a string comparison.

  • jakubiakjakubiak Posts: 424 admin

    Before performing the string comparison you could use a script to URL encode or decode one of the strings.

Sign In or Register to comment.