AwesomeFrequent Contributor16 years agohow do you access the global project properties from groovyhi all,How do you read the project (global) properties value within a groovy script.I tried the following to read the property "SQL_Instance" set as a property for the project, but none seem to work:x = testRunner.testCase.testSuite.project.properties("SQL_Instance")x = $(#Project#("SQL_Instance"))x = ${#Project#SQL_Instance}Thanks in advance for your help!
1 ReplyReplies sorted by Most LikedSort ByMost LikedOldestNewestAwesomeFrequent Contributor16 years agoah ha! got it:def x = context.expand( '${#Project#SQL_Instance}' )
AwesomeFrequent Contributor16 years agoah ha! got it:def x = context.expand( '${#Project#SQL_Instance}' )
Related ContentAccessing Project Properties from a Groovy script (NOT Custom Properties)Accessing Test Case Property in Project's TearDown scriptAccess custom properties programmatically ?Service name property from project propertyProject Playback Properties
Recent DiscussionsHow to read and use SoapUI API for non Dev people?SolvedSOAPUI - Proxy_vole dll running from User ProfileBug in documentation generation? Complex type is not properly aligned.Support for java 17 using SoapUI-maven-plugin.XQuery assertions are broken with SoapUI 5.6.0