Welcome to the new Parasoft forums! We hope you will enjoy the site and try out some of the new features, like sharing an idea you may have for one of our products or following a category.

Reference the project location in Extension Tool

Newbie17 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))

  • Newbie17
    Newbie17 Posts: 2

    Thanks John Appeldorn! It works!