0

I've been using readyapi! SoapUI for API testing. I'm using the testrunner batchfile for commandline execution.

However, my Project Path is static, ex. -fC:\example-soapui-project.html.

How do I make the path relative to the batch file?

Thank you in advance for your answers.

Rao
  • 20,781
  • 11
  • 57
  • 77
creulo
  • 9
  • 5
  • soapui projects are owned by customers or end users and they will be in a different location and absolute path is passed to test runner. What is problem with this approach? or what are you trying to achieve? – Rao Oct 03 '16 at 02:04
  • Currently, we commit our projects on `tfs`. For the `testrunner` to work, We and our clients should have the same folder path for the project passed to the `testrunner`. Our goal is to make the `testrunner` work on different paths. Thank you – creulo Oct 03 '16 at 02:26
  • Not sure how does it matter. Of course, most of the users uses some kind of repository for their projects. By the way, each one will checkout in different location. Why not use an environment variable to the checkout location? – Rao Oct 03 '16 at 04:12
  • We've been searching this day and finally we found a solution. We've used `%~dp0`. Thank you very much for your time and interest in answering! – creulo Oct 03 '16 at 04:33

0 Answers0