We are building a new experience for our SmartBear Community.
This site is now read-only. You can still browse and search as usual. Learn More

Forum Discussion

richie's avatar
richie
Community Hero
7 years ago
Solved

Insert Prefix to a Groovy Generated Substring value?

Hi,   I have the following groovy script step which grabs a property value in the Properties step (Properties), parses it using a substring like function and writes this substring value to anothe...
  • CharlesHarold's avatar
    7 years ago

    Try:

    namePropertyvaluePartial = "~" + namePropertyvaluePartial
    // or
    namePropertyvaluePartial = "~${namePropertyvaluePartial}"