Contributions
Re: Unable to add Property to Groovy TestStep
HimanshuTayalwrote: HiSatyadip28, I think you are using Excel sheet in data source to fetch the data, instead use groovy to fetch the data from Excel Sheet. Refer below article, hope it will help you in resolving your issue DataSource step with groovy This doesn't solve my problem as this just programmatically adds value to Properties. I want to add Properties programmatically. If you don't have properties in the Properties List then we can't run the Groovy code itself.5 years agoPlace ReadyAPI QuestionsReadyAPI Questions2KViews0likes1CommentRe: Unable to add Property to Groovy TestStep
I want to create a generic DataSource step that could be used for all my Test Scripts without needing to have a different DataSource Step in each of my testCase. All my TestCases have different DataSource Properties. Though i can parameterize the Excel Sheet and the Workbook for the DataSource TestStep based on my Test Scenario but i cannot dynamically change the Parameters list. So the whole idea fails. HimanshuTayalwrote: HiSatyadip28, I think you want to dynamically add properties to the DataSource Step, but i am not sure you can do this because the properties in DataSoruce step are ReadOnly, so the below command testRunner.testCase.getTestStepByName("Name").setPropertyValue("foo",bar) will not work. Can you elaborate why you want to do this, so in case we can discuss on any alternate available to your problem.5 years agoPlace ReadyAPI QuestionsReadyAPI Questions2KViews0likes3CommentsUnable to add Property to Groovy TestStep
String rec = "Test1" testRunner.testCase.getTestStepByName("Env_SetUp").setPropertyValue("TestCase",rec) ------------------------------- Using the above code to add a Custom Property to a DataSource TestStep programatically. This Executes without any error or warning, but the Custom Property to a DataSource Test Step in SOAPUI Pro. Is there a way we can programatically add the DataSource Custom Properties rather than importing them manually. The above method setPropertyValue works when adding properties to a TestCase or TestSuite but not to a TestStep. ReadyAPI Version 2.5.0. Can you please help.Solved5 years agoPlace ReadyAPI QuestionsReadyAPI Questions2KViews0likes6CommentsRe: How can I programatically set (or write to) a "Properties" test step value?
testRunner.testCase.getTestStepByName("Name of properties step").setPropertyValue("foo","bar"); Iam doing the same using setPropertyValue to add Custom Property to TESTSTEP but it doesnt add atall. This works when adding to TestCase or TestSuite but not to a TestStep. ReadyAPI Version 2.5.0. Can you please help.5 years agoPlace ReadyAPI QuestionsReadyAPI Questions1.8KViews0likes1Comment