Forum Discussion
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')
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_Khovrina8 years agoSmartBear 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.
- nmrao8 years agoChampion Level 3Not 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?
Related Content
- 4 years ago