Reference the project location in Extension Tool

Newbie17Newbie17 Posts: 2


I would like to get the SOAtest Project Location in an Extension Tool so that I can reference this location to open a file on the system.



  • [Deleted User][Deleted User] Posts: 0 admin
    edited January 2017

    Hi Newbie17,

    In Jython, you can use the following to get the project location.

    It would be similar calls in Groovy with different syntax.

    '# <<< Jython >>>
    '# write the project location to the console

    from com.parasoft.api import *

    def WriteProjectLocation(input, context):
    project = context.getAbsolutePathFile(" ") # get the absolute path to the project folder
    projectLocation = project.getAbsolutePath()
    Application.showMessage("the Application.showMessage - projectLocation is " + str(projectLocation))

  • Newbie17Newbie17 Posts: 2

    Thanks John Appeldorn! It works!

Sign In or Register to comment.