Forum Discussion
Yasar
New Contributor
Hi richie ,
I've tried moving toInteger() outside setProperty method, like below
testRunner.testCase.testSuite.project.setPropertyValue("country_name",cin_value).toInteger()
and getting below error
java.lang.NullPointerException: cannot invoke method toInteger() on null object error at line: 19
Yasar
5 years agoNew Contributor
Hi richie ,
I've found the mistake, i've created a test suite level property but I used setProperty method on project level property in my groovy script, below works fine
code change:
testRunner.testCase.testSuite.setPropertyValue("country_name",cin_value)
thanks a lot for ur precious time
Related Content
Recent Discussions
- 6 hours ago
- 5 days ago