Contributions
readyapi groovy script library
I am using readyapi 3.51.0 and using readyapi groovy script for customization. Where can I get info about the readyapi groovy script libraries, for example; project.getContext().report.getTestSuiteResultList() any help with where the documentation is located? Thank you,Solved59Views0likes4Commentsmultiple groovy files
in my readyapi, I am using FrameworkUtils.groovy which located in C:\Program Files\SmartBear\ReadyAPI-3.2.0\bin\scripts\test and I don't want to add all my code inside of FrameworkUtils.groovy so I created different groovy classes in the same directory. But the problem is that even though I use import statement it is not importing file. Here is my class how I import it, in here FrameworkUtils, Common and DBUtils are in the same directory C:\Program Files\SmartBear\ReadyAPI-3.2.0\bin\scripts\tes: import com.eviware.soapui.model.support.MessageExchangeUtil import groovy.json.JsonSlurper import Common import DBUtils public class FrameworkUtils implements Common{ } Thanks in advance for your help,Solved34Views0likes2CommentsRe: using groovy script in readyapi
I tried that, when I have the following it gives error that can't find the Utilities import Utilities def utilities = new Utilities(context, context.testCase.testSuite, log) utilities.loadConfigurations()2 months agoPlace ReadyAPI QuestionsReadyAPI Questions45Views0likes1Commentusing groovy script in readyapi
I have maven project for my readyapi, have java and groovy script in it, and placed jar into C:\Program Files\SmartBear\ReadyAPI-3.51.0\lib my groovy script directory is in src/main/groovy directory. So I am able to use java classes but when I try to use groovy script in readyapi step it doesn't work, not able to find groovy class. I can add my groovy script to C:\Program Files\SmartBear\ReadyAPI-3.51.0\bin\scripts and that works as expected, but how can I use groovy script in my maven project from jar file I added it to C:\Program Files\SmartBear\ReadyAPI-3.51.0\lib ? Here is the groovy script I use in my readyapi to call groovy script in maven project: import src.main.groovy.Utilities def utilities = new Utilities(context, context.testCase.testSuite, log) utilities.loadConfigurations() Thanks in advance,71Views0likes6CommentsRe: radyapi maven integration
Thanks, I checked the documentation and followed the steps in here https://support.smartbear.com/readyapi/docs/integrations/maven/example.html#pom but still didn't work, but seeing different error since I changed the pom based on the instrcution it says. The only step I am missing is Sample-SOAP-project.xml from readyapi installation directory, I don't see that file in installation folder.2 months agoPlace ReadyAPI QuestionsReadyAPI Questions2Views0likes1Commentradyapi maven integration
I am using maven version 3.9.5 and would like to integrate with readyapi by following instructions from here https://support.smartbear.com/readyapi/docs/integrations/junit.html but it seems not working. Any help how I can integrate readyapi project with maven versions 3.** Thanks in advance here is my pom.xml <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>com.example.pr</groupId> <artifactId>readyapi</artifactId> <version>0.0.1</version> <packaging>jar</packaging> <properties> <java.version>11</java.version> </properties> <repositories> <repository> <id>SmartBearPluginRepository</id> <url>http://smartbearsoftware.com/repository/maven2</url> </repository> </repositories> <dependencies> <dependency> <groupId>ch.qos.logback</groupId> <artifactId>logback-classic</artifactId> <version>1.4.11</version> </dependency> <dependency> <groupId>com.oracle.database.jdbc</groupId> <artifactId>ojdbc10</artifactId> <version>19.20.0.0</version> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-jdbc</artifactId> <version>5.3.29</version> </dependency> <!-- https://mvnrepository.com/artifact/io.github.openfeign/feign-core --> <dependency> <groupId>io.github.openfeign</groupId> <artifactId>feign-core</artifactId> <version>12.5</version> </dependency> <!-- https://mvnrepository.com/artifact/io.github.openfeign/feign-jackson --> <dependency> <groupId>io.github.openfeign</groupId> <artifactId>feign-jackson</artifactId> <version>12.5</version> </dependency> <dependency> <groupId>io.github.openfeign</groupId> <artifactId>feign-hc5</artifactId> <version>12.5</version> </dependency> <dependency> <groupId>com.fasterxml.jackson.core</groupId> <artifactId>jackson-databind</artifactId> <version>2.15.3</version> </dependency> <!-- https://mvnrepository.com/artifact/org.junit.jupiter/junit-jupiter-api --> <dependency> <groupId>org.junit.jupiter</groupId> <artifactId>junit-jupiter-api</artifactId> <version>5.10.0</version> <scope>test</scope> </dependency> <!-- https://mvnrepository.com/artifact/com.appland/appmap-agent --> <dependency> <groupId>com.appland</groupId> <artifactId>appmap-agent</artifactId> <version>1.26.1</version> <scope>runtime</scope> </dependency> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>4.13.2</version> <scope>test</scope> </dependency> <!-- <dependency>--> <!-- <groupId>org.mockito</groupId>--> <!-- <artifactId>mockito-all</artifactId>--> <!-- <version>1.10.19</version>--> <!-- <scope>test</scope>--> <!-- </dependency>--> <dependency> <groupId>org.mockito</groupId> <artifactId>mockito-core</artifactId> <version>4.2.0</version> <scope>test</scope> </dependency> <!-- Used to combine JUnit 5 with Mockito --> <dependency> <groupId>org.mockito</groupId> <artifactId>mockito-junit-jupiter</artifactId> <version>4.2.0</version> <scope>test</scope> </dependency> <dependency> <groupId>com.smartbear</groupId> <artifactId>ready-api-maven-plugin</artifactId> <version>2.7.0</version> <exclusions> <exclusion> <groupId>com.google.guava</groupId> <artifactId>guava</artifactId> </exclusion> </exclusions> </dependency> </dependencies> <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <configuration> <source>11</source> <target>11</target> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-shade-plugin</artifactId> <version>3.4.1</version> <configuration> <finalName>${project.artifactId}</finalName> </configuration> <executions> <execution> <phase>package</phase> <goals> <goal>shade</goal> </goals> </execution> </executions> </plugin> </plugins> </build> </project>26Views0likes3CommentsRe: readyapi can't find custom groovy script
thanks, the documentation link you shared solved the problem, Preferences > ReadyAPI was pointing to different version and I didn't have that version so it was not finding that file.2 months agoPlace ReadyAPI QuestionsReadyAPI Questions9Views0likes1Commentreadyapi can't find custom groovy script
I added my custom groovy script Utilities.groovy file to C:\Program Files\SmartBear\ReadyAPI-3.49.0\bin\scripts but when I add following to groovy script step it is giving error; import Utilities error: org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed: Script8.groovy: 1: unable to resolve class Utilities @ line 1, column 1. import Utilities ^ org.codehaus.groovy.syntax.SyntaxException: unable to resolve class Utilities @ line 1, column 1. at org.codehaus.groovy.ast.ClassCodeVisitorSupport.addError(ClassCodeVisitorSupport.java:262) at org.codehaus.groovy.control.ResolveVisitor.visitClass(ResolveVisitor.java:1434) at org.codehaus.groovy.control.ResolveVisitor.startResolving(ResolveVisitor.java:262) at org.codehaus.groovy.control.CompilationUnit.lambda$new$16(CompilationUnit.java:739) at org.codehaus.groovy.control.CompilationUnit$ISourceUnitOperation.doPhaseOperation(CompilationUnit.java:902) at org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:628) at groovy.lang.GroovyClassLoader.doParseClass(GroovyClassLoader.java:389) at groovy.lang.GroovyClassLoader.lambda$parseClass$3(GroovyClassLoader.java:332) at org.codehaus.groovy.runtime.memoize.StampedCommonCache.compute(StampedCommonCache.java:163) at org.codehaus.groovy.runtime.memoize.StampedCommonCache.getAndPut(StampedCommonCache.java:154) at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:330) at groovy.lang.GroovyShell.parseClass(GroovyShell.java:526) at groovy.lang.GroovyShell.parse(GroovyShell.java:538) at groovy.lang.GroovyShell.parse(GroovyShell.java:570) at groovy.lang.GroovyShell.parse(GroovyShell.java:565) at com.eviware.soapui.support.scripting.groovy.SoapUIGroovyScriptEngine.recompileWithNewName(SoapUIGroovyScriptEngine.java:167) at com.eviware.soapui.support.scripting.groovy.SoapUIGroovyScriptEngine.compile(SoapUIGroovyScriptEngine.java:155) at com.eviware.soapui.support.scripting.groovy.SoapUIGroovyScriptEngine.run(SoapUIGroovyScriptEngine.java:98) at com.eviware.soapui.support.scripting.groovy.SoapUIProGroovyScriptEngineFactory$SoapUIProGroovyScriptEngine.run(SoapUIProGroovyScriptEngineFactory.java:98) at com.eviware.soapui.impl.wsdl.teststeps.WsdlGroovyScriptTestStep.run(WsdlGroovyScriptTestStep.java:159) at com.eviware.soapui.impl.wsdl.panels.teststeps.GroovyScriptStepDesktopPanel$RunAction$1.run(GroovyScriptStepDesktopPanel.java:344) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) at java.base/java.lang.Thread.run(Thread.java:833) 1 error See Error Log for details. the followings groovy jars I have in C:\Program Files\SmartBear\ReadyAPI-3.49.0\lib not sure what is missing? thanks in advanceSolved23Views0likes3Comments