白夜有点黑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 ContentReadyAPI Groovy script debugger - Evaluate Expression During DebuggingTestComplete Evaluation?Line 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 DiscussionsJDBC results are stored in the ReadyAPI projectAzure Git Integration?How to run specific test case in particular environment?How to remove (not clear) test case properties from SaveScriptSolvedParameterising JDBC Connection Settings..Can you do it?