Groovy - How to provide relative path to a input file when it is placed in the directory 2 nodes before the Project path
<p>Im using <code>SOAPUI 5.2.1</code> free version and my test suites are placed in Git. SOAPUI Test suites can be pulled by any one in the organisation and when they try to run the test, execution is aborted saying "File not found" exception as the path provided is local to my system</p>

<p>Test scenario - Import test data from csv </p>

<p>Input file location will be - 2 directory ahead of the Project path (retrieved using groovyUtils.projectPath)</p>

<p>Example:</p>

<p>SOAP UI test case (.xml file) location - <strong>C:\Tester\Demo\Day1\Login-soapui-project.xml</strong></p>

<p>Input file location - <strong>C:\Tester\Test-data.csv</strong></p>

<p>How to provide relative path in the groovy script for accessing the Input file </p>

<p><strong>UPDATE:</strong> Adding the script that is being used from the comment</p>

<pre class="lang-groovy prettyprint-override"><code>def groovyUtils = new com.eviware.soapui.support.GroovyUtils(context) 
def projectDir = groovyUtils.projectPath 
File file = new File(projectDir) 
def firstLevelDir = file.getParent()
</code></pre>