Load different property values for the same property names across different test cases
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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 ??
WorkflowStepName | MultiDimensional | |
TC-3.2-01 | Step 1 | TRUE |
TC-3.2-02 | Step 4 | FALSE |
TC-3.2-03 | Step 5 | FALSE |
TC-3.2-04 | Step 1 | TRUE |
TC-3.2-05 | Step 2 | TRUE |
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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. ⬇️⬇️⬇️
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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. ⬇️⬇️⬇️
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
