Forum Discussion

neerajan's avatar
neerajan
Occasional Contributor
8 years ago

Load different property values for the same property names across different test cases

Hi,

 

So I am trying to set different property values for a given set of test cases that have the same property names/keys. For example: In the below table I have 5 test cases and all 5 have the same 2 properties ( WorkflowStepName and MultiDimensional). Is there a way in SOAP UI Pro to load different values for the 2 properties for each of the test cases ??

 WorkflowStepNameMultiDimensional
TC-3.2-01Step 1TRUE
TC-3.2-02Step 4FALSE
TC-3.2-03Step 5FALSE
TC-3.2-04Step 1TRUE
TC-3.2-05Step 2TRUE
  • Nastya_Khovrina's avatar
    Nastya_Khovrina
    SmartBear Alumni (Retired)

    Neeraja,

     

    Thank you for your post!
    Using the UI you can only load properties for each testcase separately. The format of the properties file is the following:

    PropertyName=value
    PropertyName2=value2

     

    But, maybe using the Groovy script will be more suitable for you. To set a testcase property you can use the following method:

    testRunner.testCase.setPropertyValue('PropertyName', 'Value') 

    • neerajan's avatar
      neerajan
      Occasional Contributor

      Hi Nastya

       

      Thank you so much for your response but the idea was to create a reusable file (excel/notepad/csv) and keep pulling the 2 property values when the respective test case is run.

      Any ideas on that ?

       

      Thanks and Regards,

      Neeraja