Contributions
JSONPath expressions do NOT follow basic syntax
Hi, ReadyAPI 1.5.0 We have a LOT of JsonPath assertions with expressions like $.elements[*].id[0] This should work according to basic syntaxhttp://goessner.net/articles/JsonPath/ and it worked in previous versions. However it does not work anymore. We cannot select explicit element from the array! ReadyAPI fails with "Invalid JSONPath" expression$.elements[*].id works fine but returns String of ALL elements. This is really a blocker for 1.5.0... Is there any info about this? ThanksSolved9 years agoPlace ReadyAPI QuestionsReadyAPI Questions1.4KViews0likes1CommentRe: ERROR [AbstractTestCaseRunner] Error notifying listener
Sorry for interrupting but this is not a workaround if one uses Jenkins to run tests withinjected environment variables. For examplewe usually create one test project and would like to run it agains different environments and databases. In this case we use "None" as connection and inject database connection string from corresponding Jenkins job. As fas as i know there is no way to modify "database connection" setting for readyapi test projects from the outside (e.g. Jenkins again) of ReadyAPI client. Andthis would be an environment hardcoding in project file in any case....9 years agoPlace ReadyAPI QuestionsReadyAPI Questions3.1KViews1like6CommentsRe: Exception when trying to use ReadyAPI maven plugin
Seems to be resolved by SmartBear team. 1.Repository should be<id>SmartBearPluginRepository</id> in the POM file. 2. ReadyAPI plugin dependencies - just <dependency> <groupId>com.oracle</groupId> <artifactId>ojdbc7</artifactId> <version>12.1.0.1</version> </dependency> Thanks9 years agoPlace ReadyAPI QuestionsReadyAPI Questions2.9KViews1like0CommentsRe: Exception when trying to use ReadyAPI maven plugin
Not really... i'll explain our story from the beginning. The problem is - we already have hundreds of tests configured to work with SoapUI. We use hudson/jenkins to run them. Several weeks ago we decided to move to ReadyAPI, we've implemented new tests and then realized that we can't run them with SoapUI maven plugin as some features are supported by ReadyAPI only (i think). So we tried to update existing POM's and point them to ReadyAPI plugin instead. As a result -"No valid SoapUIPro license exists". OK, explainable. The next step was to install license on Jenkins slave - we did this and now we faced this new "READY_API_TITLE" problem. So, I believe we already have valid POMs with correct configuration and settings to run tests.The link you provided hastotally different pom's and looks like this is not what we are looking for. We have already raised support ticket around this, but it would be nice to know what causes our problem as many of community members would face the same problem sooner or later. Thanks, Andrei9 years agoPlace ReadyAPI QuestionsReadyAPI Questions3KViews0likes2CommentsRe: How to assert count of a certain field in a JSON response is lesser than or equal to a certain value
Try XPath Match assertion with Xpath Expression like boolean(count(//Response[1]/matchingAddresses[1]/addressList[1]/e) < 50) and Expected Result =True9 years agoPlace ReadyAPI QuestionsReadyAPI Questions8.8KViews1like0CommentsException when trying to use ReadyAPI maven plugin
Hi. Weare trying to migrate our api tests from soapui to readyapi and there is a problem with ready api maven plugin... all pom files were updated to use ready-api-maven-plugin : <pluginRepository> <id>smartbear-sweden-plugin-repository</id> <url>http://www.soapui.org/repository/maven2/</url> </pluginRepository> ... <groupId>com.smartbear</groupId> <artifactId>ready-api-maven-plugin</artifactId> <version>1.4.0</version> <dependencies> <dependency> <groupId>com.oracle</groupId> <artifactId>ojdbc6</artifactId> <version>11.2.0.3</version> </dependency> <dependency> <groupId>soap.ahr.plugins</groupId> <artifactId>soap-ahr-plugin</artifactId> <version>0.6-plugin</version> </dependency> <dependency> <groupId>org.reflections</groupId> <artifactId>reflections</artifactId> <version>0.9.9-RC1</version> </dependency> <dependency> <groupId>org.apache.poi</groupId> <artifactId>poi-ooxml</artifactId> <version>3.10-FINAL</version> <exclusions> <exclusion> <groupId>org.apache.xmlbeans</groupId> <artifactId>xmlbeans</artifactId> </exclusion> </exclusions> </dependency> </dependencies> But job fails with exception [INFO] ------------------------------------------------------------------------ [ERROR] FATAL ERROR [INFO] ------------------------------------------------------------------------ [INFO] READY_API_TITLE [INFO] ------------------------------------------------------------------------ [INFO] Trace java.lang.NoSuchFieldError: READY_API_TITLE at com.smartbear.ready.cmd.runner.SoapUITestCaseRunner.<clinit>(SoapUITestCaseRunner.java:83) at com.eviware.soapui.maven2.TestMojo.execute(TestMojo.java:41) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490) at hudson.maven.agent.PluginManagerInterceptor.executeMojo(PluginManagerInterceptor.java:182) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180) at org.apache.maven.lifecycle.LifecycleExecutorInterceptor.execute(LifecycleExecutorInterceptor.java:65) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138) at org.apache.maven.cli.MavenCli.main(MavenCli.java:362) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at hudson.maven.agent.Main.launch(Main.java:205) at hudson.maven.MavenBuilder.call(MavenBuilder.java:154) at hudson.maven.Maven2Builder.call(Maven2Builder.java:79) at hudson.maven.Maven2Builder.call(Maven2Builder.java:55) at hudson.remoting.UserRequest.perform(UserRequest.java:121) at hudson.remoting.UserRequest.perform(UserRequest.java:49) at hudson.remoting.Request$2.run(Request.java:325) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68) at java.util.concurrent.FutureTask.run(FutureTask.java:262) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:745) [INFO] ------------------------------------------------------------------------ [INFO] Total time: 4 minutes 53 seconds [INFO] Finished at: Fri Oct 16 15:19:08 CEST 2015 [INFO] Final Memory: 45M/962M Is it a problem with plugin or we have incorrectly configured POM?Solved9 years agoPlace ReadyAPI QuestionsReadyAPI Questions3KViews0likes4CommentsCan't add WADL ReadyAPI 1.4.0
Hi, we are trying to add the following WADL to ReadyAPI 1.4.0 project: <application xmlns="http://wadl.dev.java.net/2009/02" xmlns:xs="http://www.w3.org/2001/XMLSchema"><grammars><xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" attributeFormDefault="unqualified" elementFormDefault="unqualified"> <xs:element name="address" type="address"/> <xs:element name="addresses" type="addresses"/> <xs:element name="contactInformation" type="contactInformation"/> <xs:element name="contactInformations" type="contactInformations"/> <xs:element name="contactPerson" type="contactPerson"/> <xs:element name="contactPersons" type="contactPersons"/> <xs:element name="organisation" type="organisation"/> <xs:element name="subOperation" type="subOperation"/> <xs:element name="subOperations" type="subOperations"/> <xs:complexType name="subOperations"> <xs:sequence> <xs:element maxOccurs="unbounded" minOccurs="0" name="subOperations" nillable="true" type="subOperation"/> </xs:sequence> </xs:complexType> <xs:complexType name="subOperation"> <xs:sequence/> </xs:complexType> <xs:complexType name="organisation"> <xs:sequence/> </xs:complexType> <xs:complexType name="addresses"> <xs:sequence> <xs:element maxOccurs="unbounded" minOccurs="0" name="addresses" nillable="true" type="address"/> </xs:sequence> </xs:complexType> <xs:complexType name="address"> <xs:sequence> <xs:element minOccurs="0" name="districtCode" type="xs:string"/> </xs:sequence> </xs:complexType> <xs:complexType name="contactPersons"> <xs:sequence> <xs:element maxOccurs="unbounded" minOccurs="0" name="contactPersons" nillable="true" type="contactPerson"/> </xs:sequence> </xs:complexType> <xs:complexType name="contactPerson"> <xs:sequence/> </xs:complexType> <xs:complexType name="contactInformations"> <xs:sequence> <xs:element maxOccurs="unbounded" minOccurs="0" name="contactInformations" nillable="true" type="contactInformation"/> </xs:sequence> </xs:complexType> <xs:complexType name="contactInformation"> <xs:sequence/> </xs:complexType> </xs:schema> </grammars><resources base="http://neo.ist.local:8383/cxf/organisation-service/repository"><resource path="/v1/organisation"><method name="GET"><request><param name="_search" style="query" default="" type="xs:string"/><param name="rootId" style="query" default="" type="xs:string"/><param name="_expand" style="query" default="" type="xs:string"/><param name="_sort" style="query" default="" type="xs:string"/></request><response><representation mediaType="application/json"/><representation mediaType="application/xml"/></response></method><method name="GET"><request><param name="_search" style="query" default="" type="xs:string"/><param name="rootId" style="query" default="" type="xs:string"/><param name="_expand" style="query" default="" type="xs:string"/></request><response><representation mediaType="application/json"/><representation mediaType="application/xml"/></response></method><resource path="/addresses"><method name="GET"><request><param name="_search" style="query" default="" type="xs:string"/><param name="_sort" style="query" default="" type="xs:string"/></request><response><representation mediaType="application/json"/><representation mediaType="application/xml"/></response></method></resource><resource path="/contacts"><method name="GET"><request><param name="_search" style="query" default="" type="xs:string"/><param name="_sort" style="query" default="" type="xs:string"/></request><response><representation mediaType="application/json"/><representation mediaType="application/xml"/></response></method></resource><resource path="/persons"><method name="GET"><request><param name="_search" style="query" default="" type="xs:string"/><param name="_sort" style="query" default="" type="xs:string"/></request><response><representation mediaType="application/json"/><representation mediaType="application/xml"/></response></method></resource><resource path="/sub-operations"><method name="GET"><request><param name="_search" style="query" default="" type="xs:string"/><param name="_sort" style="query" default="" type="xs:string"/></request><response><representation mediaType="application/json"/><representation mediaType="application/xml"/></response></method></resource><resource path="/synchronization"><method name="POST"><response status="204"></response></method></resource></resource></resources></application> It fails with multiple errors like Source: http://neo:9020/api/platform/organisation-repository/v1/organisation/?_wadl Error: Could not find type 'address@http://wadl.dev.java.net/2009/02'. Do you mean to refer to the type named address (in _3F_5Fwadl)? Source: http://neo:9020/api/platform/organisation-repository/v1/organisation/?_wadl Error: Could not find type 'addresses@http://wadl.dev.java.net/2009/02'. Do you mean to refer to the type named addresses (in _3F_5Fwadl)? Source: http://neo:9020/api/platform/organisation-repository/v1/organisation/?_wadl Error: Could not find type 'contactInformation@http://wadl.dev.java.net/2009/02'. Do you mean to refer to the type named contactInformation (in _3F_5Fwadl)? However works fine if importing the same WADL from local file OR using SOAP UI 5.1.2 Is it a problem with Ready API?9 years agoPlace ReadyAPI QuestionsReadyAPI Questions1.7KViews1like2Comments