Submit and vote on feature ideas.

Welcome to the new Parasoft forums! We hope you will enjoy the site and try out some of the new features, like sharing an idea you may have for one of our products or following a category.

Space is converted to characters in REST URL

tapan1986
tapan1986 Posts: 27
edited February 2019 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

  • NHawk
    NHawk 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?

  • tapan1986
    tapan1986 Posts: 27

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

  • jakubiak
    jakubiak Posts: 795 admin

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

Tagged