Forum Discussion

nagoorkj's avatar
nagoorkj
Contributor
5 years ago
Solved

Is there any way to read different project properties in groovy through soap ui

 

 

I am preparing summary report for my soap ui project but in have more than 3 projects but not sure how to read /get the total test case ,passed count from each project suite and make consolidated report ??

Currently I have individual project reports but need help on this part, do I need to use global property?

  • Hi,

     

    Reading the project workspace and then finding the project by name will get your access for all the projects under the work space.

     

    Workspace = testRunner.testCase.testSuite.project.workspace

    SOAP_Proj = Workspace.getProjectByName("Name of your project" );

     

    Regards

    Valla

6 Replies

  • Vallalarasu_P's avatar
    Vallalarasu_P
    Frequent Contributor

    Hi,

     

    Reading the project workspace and then finding the project by name will get your access for all the projects under the work space.

     

    Workspace = testRunner.testCase.testSuite.project.workspace

    SOAP_Proj = Workspace.getProjectByName("Name of your project" );

     

    Regards

    Valla

    • nmrao's avatar
      nmrao
      Champion Level 3
      Reading "workspace" object is not recommended for Automation as that is not available when project is executed with testrunner utility.
      • nagoorkj's avatar
        nagoorkj
        Contributor
        Please let me know if any other options are there?? So that it will be very helpful for me
    • nmrao's avatar
      nmrao
      Champion Level 3
      Another thing is it violates the thumb rule, Each test case should be independent. Here adding dependency between projects.