Forum Discussion

mmoser18's avatar
mmoser18
Frequent Contributor
8 years ago

Strange bug where <string>.replace(...) does not work.

In one of my scripted assertion I need to replace a substring with another value. For some strange reason that doesn't work:   My expression reads: ${=context.endpoint.replace("http","https")}   ...
  • mmoser18's avatar
    8 years ago

    When I tried again today for some reason the original

    ${=context.endpoint.replace('http','https')}

     

    suddenly worked!

    Beats me, why this was not properly handled last time! Really weird!