白夜有点黑Contributor5 years agoSolvedHow to evaluate a String which one like a classname.methodname in SoapUI with Groovy?I have groovy code as below: def randomInt = RandomUtil.getRandomInt(1,200); log.info randomInt def chars = (("1".."9") + ("A".."Z") + ("a".."z")).join() def randomString = RandomUtil.getRandomStrin...Show MoreTIM截图20190523225711.png165 KB白夜有点黑 to 白夜有点黑5 years agoMarked as Solutionsolved it use full package path include evaluate String: evaluate("com.test.apitest.util.RandomUtil.getRandomString(chars, randomInt)")
白夜有点黑 to 白夜有点黑5 years agoMarked as Solutionsolved it use full package path include evaluate String: evaluate("com.test.apitest.util.RandomUtil.getRandomString(chars, randomInt)")
白夜有点黑 to 白夜有点黑5 years agoMarked as Solutionsolved it use full package path include evaluate String: evaluate("com.test.apitest.util.RandomUtil.getRandomString(chars, randomInt)")
白夜有点黑Contributor to TanyaYatskovskaAlready get the solution here: https://stackoverflow.com/questions/56278994/how-to-evaluate-a-string-which-one-like-a-classname-methodname-in-soapui-with-gr/56281496?noredirect=1#comment99222491_56281496
白夜有点黑Contributor to 白夜有点黑5 years agosolved it use full package path include evaluate String: evaluate("com.test.apitest.util.RandomUtil.getRandomString(chars, randomInt)")
Related ContentTestComplete Evaluation?ReadyAPI Groovy script debugger - Evaluate Expression During DebuggingLine level profiling evaluation[SoapUI] Groovy script calling evaluate(File) function has problems with my project's packageHow to return value of a JavaScript function evaluated by Groovy
Recent DiscussionsTest Runner - Report All in One FileGroovyScript Help - Repeating JSON Attributes Have Specific Value.....some of the time?SolvedParameterising JDBC Connection Settings..Can you do it?JDBC results are stored in the ReadyAPI projectSolvedMyFirstPlugin - button Project menu in Ready Api