Contributions
Re: Is there a work around to import postman collection V2 into soapui?
Yes, First you need to download the postman plugin and then in the import of option you see the option to import from postman. Below are few links for reference. https://community.smartbear.com/discussions/readyapi-questions/import-postman-collection/150269 https://www.soapui.org/docs/extension-plugins/install-plugins/ https://www.soapui.org/docs/postman-collections/80Views1like1CommentRe: Hi, I want to format all the json files in a folder using groovy script. can someone please help me.
Sirisha2020 try this import groovy.json.*; def jsonSlurper = new JsonSlurper() String filePath = "C:\\DevCode\\lgs-nimbus\\result.json" def object = jsonSlurper.parse(new File(filePath)) def json = JsonOutput.toJson(object) def pretty = JsonOutput.prettyPrint(json) File file = new File(filePath) file.write(pretty)417Views0likes0CommentsRe: Hi, I want to format all the json files in a folder using groovy script. can someone please help me.
try this. import groovy.json.*; def jsonSlurper = new JsonSlurper() String filePath = "C:\\result.json" def object = jsonSlurper.parse(new File(filePath)) def json = JsonOutput.toJson(object) def pretty = JsonOutput.prettyPrint(json)469Views0likes2CommentsRe: how to load driver jar file to connect to database
Mr_Bro https://community.smartbear.com/t5/SoapUI-Open-Source-Questions/Upgraded-to-SoapUI-5-6-0-unable-to-load-jar-file/td-p/211524 looks like issue with the java version. don't you have accessSmartBear\SoapUI-5.6.0\bin\ext folder ?810Views0likes0CommentsRe: how to load driver jar file to connect to database
try this def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context ) def classpathHacker = new com.eviware.soapui.support.ClasspathHacker () log.info "utils=" + groovyUtils path = groovyUtils.getProjectPath() myfile = new java.io.File(path + "/ojdbc14.jar") mystring = "file://" + path + "/ojdbc14.jar" log.info "myfile=" + myfile classpathHacker.addFile( myfile ) com.eviware.soapui.support.ClasspathHacker.addFile( myfile ) com.eviware.soapui.support.ClasspathHacker.addURL( new URL(mystring) ) import groovy.sql.* def sql = groovy.sql.Sql.newInstance( db, userid, password, 'oracle.jdbc.driver.OracleDriver' ) https://community.smartbear.com/t5/SoapUI-Open-Source-Questions/Soapui-is-not-loading-external-jar-file-location-added-to/td-p/7619870Views0likes2Comments