Forum Discussion

k3nsou's avatar
k3nsou
Occasional Contributor
15 years ago

using relative path in soapui

Hello everyone, I'm encountering a problem concerning the way I write my directory path.

Actually, I'm using soapui Api to launch my test using Junit. The problem is that I'm trying to use a file which is in the workspace of my project.

the xml file of the SOAPUI project is in the following directory : src/ressources/soapui-project/soapui-project.xml

In my soapui project I'm trying to use a file which is located in src/ressources/data

So using soapui ui I've specified the path of the file I want to use with the following description : ../../data/myfile.

I don't know if I explained that correctly but the point is that I can't write relative path like ./src/.. in soapui and I'm obliged to write an absolute one (d:/workspace/myproject...) which is not what I want.

So I want to know if it's possible to write a relative path in soapui ?

1 Reply

  • k3nsou's avatar
    k3nsou
    Occasional Contributor
    I've solved my problem using the project property ${projectDir}. I have an old version (very old) of soapui so this property wasn't present at that moment ...

    Otherwise I have another question concering the Definition URL of the webservice (pressing F5 on one webservice, there you can set the url of the wsdl file). Is it possible to make that path relative as well ? As it's going to run on a server or on several different computer I need that path to be relative ...

    Thank you !