Forum Discussion

mfields's avatar
mfields
New Contributor
12 years ago

Property transfer into URL

In a case of REST web service request, the incoming response contains a property value I'd like to transfer into the next request's URL.
It does not seem to work. I know the property value transfers fine, but the URL does not take that value.
Any suggestions?

3 Replies

  • Aaronliu's avatar
    Aaronliu
    Frequent Contributor
    Firstly extract the property value from response and then save into property of test suite or test case level. using getPropertyValue() method to fetch this property value, and then concatenate string so that getting a complete URL.in next test request, using ${#TestSuite#PropertyName} to replace exact URL.
  • rdimayuga's avatar
    rdimayuga
    New Contributor
    Hi there,

    I'm new in SoapUI. I have a property value that I want to concatenate in a URL (specifically using the property transfer).
    Here's what I want to do:

    declare namespace ns1="http://someURL/method" + xVariable;

    xVariable is the property value from a previous test request step. Do I use the "${#TestSuite#PropertyName}"? If so, how do I add this on the URL?

    Thanks.
  • rdimayuga's avatar
    rdimayuga
    New Contributor
    rdimayuga wrote:
    Hi there,

    I'm new in SoapUI. I have a property value that I want to concatenate in a URL (specifically using the property transfer).
    Here's what I want to do:

    declare namespace ns1="http://someURL/method" + xVariable;

    xVariable is the property value from a previous test request step. Do I use the "${#TestSuite#PropertyName}"? If so, how do I add this on the URL?

    Thanks.



    Update: Got it to work.
    Example:
    declare namespace ns1="http://someURL/method/${#TestSuite#PropertyName}"

    Thanks!!