Ask a Question

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

neerajan
Occasional Contributor

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
4 REPLIES 4
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') 


Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
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

Nastya_Khovrina
SmartBear Alumni (Retired)

Hi Neeraja,

 

Unfortunately, I cannot fully understand your scenario. Can you provide more details? Maybe, it is better to open a new support case here: https://support.smartbear.com/message/?prod=ReadyAPI.


Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
nmrao
Champion Level 3

Not sure the use case.

Thumb rule I follow is to have each test case independent.

No need to make to too complex. Just have data file does not take much resources of your system which makes things simple. Isn't it?


Regards,
Rao.
cancel
Showing results for 
Search instead for 
Did you mean: