Forum Discussion

baechu123's avatar
baechu123
Occasional Contributor
8 years ago
Solved

Dynamically attach file in SOAPUI Pro

Hello,   I'm currently in the process of migrating jmeter scr Hello,   I'm currently in the process of migrating jmeter scripts to soapUI. In jmeter, you just have to put the file path of the fi...
  • nmrao's avatar
    nmrao
    8 years ago
    You can define two custom properties at test case level.

    DIRECTORY_NAME - provide the directory where the file is present; use "/" as path separator even on windows.

    FILE_NAME - provide name of the file.

    The above can be done thru script as well in case you are getting the value automatically.

    For the request step, there are two columns it requires to be filled

    1. Name - ${#TestCase#DIRECTORY_NAME}/${#TestCase#FILE_NAME}

    2. ContentID - ${#TestCase#FILENAME}

    Then, I believe, you are done.