Service Virtualization

Expand all | Collapse all

How to access property values from one test case to another test case

  • 1.  How to access property values from one test case to another test case

    Broadcom Employee
    Posted Feb 15, 2018 12:55 PM

    How to access property values from one test case to another test case. We tried the values using Project.properties (which are hard coded) and they are accessible but dynamically generated properties data is not able to access it in another test case.

     

    Can someone suggest us.

     

    Ex: Test case 1 -> Created a application and it generated an id and we stored that id value in app_id (using filter section)

           Test case 2 -> We would like to refer the value of app_id in this case and tried to access it by writing the code like {{app_id}}, however there is no value get generated and it is always blank.

     

    Note: We are running these steps using suite in sequence order.

     

     Can someone suggest us on this requirement?



  • 2.  Re: How to access property values from one test case to another test case
    Best Answer

    Posted Feb 15, 2018 11:14 PM

    Hi,

     

    You can save a property into a file in the first test case using Filters ->

    Java -> Store property value.

    Then read that file in the test case referring to that property.

     

    Regards,

    Shrikara

     

     

     

    On Thu, Feb 15, 2018 at 11:35 PM, ganva03 <