Forum Discussion

k15's avatar
k15
New Member
6 years ago

Workspace null in SOAPUI while running from unix

i am trying to run below :

 

project = testRunner.getTestCase().getTestSuite().getProject().getWorkspace().getProjectByName("Automation Base")

While this runs successfully when i do it from SOAPUI GUI but when i am triggering same script from unix, its not returning workspace.

testRunner.getTestCase().getTestSuite().getProject().getWorkspace() is null.

 

  • Hi k15,

     

    Try to use this code:

    project = new WsdlProject("Full path to the project")

  • Hi k15,

     

    Try to use this code:

    project = new WsdlProject("Full path to the project")

    • Olga_T's avatar
      Olga_T
      SmartBear Alumni (Retired)

      Hi all,

       

      KirillZakharov, thank you for the suggestion.

       

      k15, have you had a chance to try this? Does this help?