白夜有点黑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 DiscussionsExecuting test case loop multiple timesError connecting to Postgress DB in ReadyAPI 3.52.0SolvedGroovyScript - Extract specific number of attribute values from variable content responseSolvedHow to create Identical GET request with different parameters in same projectSolvedPath parameter always gives default response