Forum Discussion

Buschfunk's avatar
Buschfunk
Frequent Contributor
14 years ago

Test steps cannot contain # character

In a test case I have several test steps which perform similar actions. Thus I called them e.g.

Send Request #1
Send Request #2
Send Request #3

Doing so soapUI fails when getting data from previous test steps becase of the # character.
  • Hi,

    thanks - in what way does soapUI fail ? Do you get an error message, etc?

    regards,

    /Ole
    SmartBear Software
  • Buschfunk's avatar
    Buschfunk
    Frequent Contributor
    Sorry, should have mentioned this :-)

    Example:
    A test step is called "Send Request #1". In "Send Request #2" one message element shall be taken from "Send Request #1" so this would like this.

    Send Request #2:
    <myElement2>${#Send Request 1##myElement1}</myElement2>

    There is no error message when running the test but soapUI fails to get the element value, i.e. Send Request #2 will have an empty element: <myElement2 />
  • Thank you for clarifying.

    The reason it doesn't work is of course because soapUI mixes the hash sign in the TestStep name up with the hash signs that are part of the PropertyExpansion syntax.

    I agree that this could be handled much better (at least a warning). I have now reported this as an issue internally [SOAPUI-3562].

    Thank you for letting us know!

    Henrik
    SmartBear Software