Contributions
Re: Parameterising JDBC Connection Settings..Can you do it?
richie I do have onlySoapUI Open Source edition of specific version and that does not have a separate field for password as shown below. In this case, credentials can be part of Connection String itself. such as: jdbc:postgresql:dbserver:5432:ProductDB&user=root&password=secret May be you can try including the password in the connection string and leave Password blank to see if that helps. Of course, use parameterized values for each of the above in the connection string, assign below string to JDBC_CONNECTION_STRING project propertyand use it in JDBC Step's connection string and see what happens, leave password blank jdbc:postgresql:${#Project#DB_HOST}:${#Project#DB_PORT}:${#Project#DB_NAME}&user=${#Project#DB_USER}&password=${#Project#DB_PASSWORD}5 hours agoPlace ReadyAPI QuestionsReadyAPI Questions1View0likes0CommentsRe: Test Runner - Report All in One File
It is very much possible to combine those all into single file using one liner command both on windows and linux platforms Here is some examples: Linux: cat Workflow*.txt >> CombinedFile.txt Windows: copy /b Workflow*.txt CombinedFile.txt15 hours agoPlace ReadyAPI QuestionsReadyAPI Questions3Views0likes0CommentsRe: GroovyScript Help - Repeating JSON Attributes Have Specific Value.....some of the time?
every- method checks all the items meet the given condtion. Now, you needanymethod which checks any one item in the list meet the given condition. To illustrate a simple example, the items should at least have a juice list = ['fruit', 'milk', 'juice'] assert list.any { it == 'juice' }, 'list doe not contain juice' Of course, there is another way in this particular case to check if the list contains item. assert list.contains('milk'), 'list does not contain milk' See the beauty of the groovy language, as if we are talking in English, same verbs.8Views0likes0CommentsRe: GroovyScript Help - Repeating JSON Attributes Have Specific Value.....some of the time?
Here is the complete script which uses the attached file and asserts the codes Please follow the inline comments: //Script Assertion def json = new groovy.json.JsonSlurper().parseText(context.response) def expectedCode = 'SPX' //find all non empty handling_codes def hc_list = json.data.'handling_codes'.findAll() //List the non empty handling_codes item count log.info hc_list.size //Iterate thru each handling_codes, then check the code list contains at least expectedCode hc_list.each { hc -> log.info hc.code assert hc.code.any {it == expectedCode} , "$hc does not contain $expectedCode" } EDIT: Use the above script as Script Assertion where you get the response (not separate groovy script test step) There are some empty handling_codes are there in the dataand assuming that you want to ignore them, hence .findAll() used as shown below (line #5 of the script) def hc_list = json.data.'handling_codes'.findAll() if you also need to consider them, then change it to def hc_list = json.data.'handling_codes'4Views1like1Comment