ReadyAPI - How to use code in the custom properties of a test step ?
Say we have a test step which actually calls/runs some test case. One of the properties, say ID has a variable value which is set by something else (script, another test step etc.). E.g. like this: ID :${TestCase-GetId#ID}. Can I use code inside the value box/field to alter the value of ID? This will be useful for ad hoc testing or could be used normally in the test. E.g. ID : ${TestCase-GetId#ID}.subString(0, 5). I don't want to create another groovy script for minor changes to property values. I know that we can prepend or append constants to the value easily like this - ID : MyId_${TestCase-GetId#ID}. But, I don't know if we can use code there instead. If we can use code, then are there any limitations (e.g. the code should be 100 characters or less) ? Keywords - script in custom properties editor, code in custom properties editor, alter the value of a custom property, code in the value of a custom property, script in the value of a custom property, code in the custom properties of a test step.Solved1.1KViews0likes2CommentsCalling all Developers: We want to hear from you!
We're thrilled to launch our7th Annual State of Code Review Survey! For 7 years, our State of Code Reviewshave highlighted the most prevalent trends relative to prior years, approaches to code review, and the top best practices shared by you and your peers. And now we need your help for this year's report! Take the survey!Share your perspective on code and document review in 2020. $100 Amazon Gift Card Giveaway You'll be entered to win a $100 Amazon Gift Card for participating, AND you'll be one of the first to receive a copy of our 2020 report. Thank you for everyone's participation.774Views1like0CommentsNow Live: 7th Annual State of Code Review Survey
We're thrilled to launch our 7th Annual State of Code Review Survey! For 7 years, our State of Code Reviewshave highlighted the most prevalent trends relative to prior years, approaches to code review, and the top best practices shared by you and your peers. And now we need your help for this year's report! Take the survey!Share your perspective on code and document review in 2020. $100 Amazon Gift Card Giveaway You'll be entered to win a $100 Amazon Gift Card for participating, AND you'll be one of the first to receive a copy of our 2020 report. Thank you for everyone's participation.898Views1like0Comments