Forum Discussion
hutabarat2014
12 years agoContributor
Hi Marek,
Thank you for your solution:
One thing, I would like to ask you is that, instead of the name of one property, if for example, I got various properties.
Some of them starts with certain alphabet like "c_", for example "c_IP_Address" (without the quote marks).
Now, how do we put a regex in the name for that? Is it going to be like this?
Thank you,
Leo
Thank you for your solution:
for (testSuite in project.getTestSuiteList()){
for (testCase in testSuite.getTestCaseList()){
testCase.setPropertyValue("IP_Address", project.getPropertyValue("IP_Address"))
}
}One thing, I would like to ask you is that, instead of the name of one property, if for example, I got various properties.
Some of them starts with certain alphabet like "c_", for example "c_IP_Address" (without the quote marks).
Now, how do we put a regex in the name for that? Is it going to be like this?
for (testSuite in project.getTestSuiteList()){
for (testCase in testSuite.getTestCaseList()){
testCase.setPropertyValue("c_*", project.getPropertyValue("c_*"))
}
}Thank you,
Leo