Contributions
Async API Version 2.4 not supported?
Hi, we are beginning to set up Kafka communication and created a AsyncAPI with version 2.4 as json file. On import ReadyAPI shows an error and the log says that the version is not supported. Version 2.4 isn't that old, current version seems to be 2.5. I couldn't find any details on which versions are supported and if there is anything else to be considered when creating the API definition. Does anyone have experience with importing AsyncAPI definitions? Am i missing some dependecies to properly import the file? Just for fun i increased the version in the json file to 2.5 or 3 and the same error occurs. version in definition file: "asyncapi": "2.4.0", Error Log: Fri Jan 27 11:27:51 CET 2023: ERROR: Version 2.4.0 is not supported. Please use latest version of the specification. Fri Jan 27 11:27:51 CET 2023: ERROR: com.smartbear.readyapi.js.JavaScriptException: Version 2.4.0 is not supported. Please use latest version of the specification. com.smartbear.readyapi.js.JavaScriptException: Version 2.4.0 is not supported. Please use latest version of the specification.2 years agoPlace ReadyAPI QuestionsReadyAPI Questions228Views0likes0CommentsJSON Schema Compliance Exception for http code 204
Hello community, i'm using the JSON Schema Compliance assertion for my Rest services. Which works well, except for http code 204. The description in JSON is: "204": { "description": "No Content" }, The error log shows: Thu Aug 04 16:09:07 CEST 2022: ERROR: Error while performing assertion Thu Aug 04 16:09:07 CEST 2022: ERROR: java.lang.NullPointerException java.lang.NullPointerException The assertion itself says: IllegalArgumentException: argument "content" is null That is of course true but also expected for 204. Is there a fix or workaround for this issue? I'm using ReadyAPI 3.40.1566Views0likes1CommentRe: ReadyAPI 3.9.2 - Deactivate check for incorrect endpoint?
HiPrathapR, this is how i did it and it seems to work. I added the option in ReadyAPI's testrunner call as a custom argument and then checked the result. Long story short: it puts the argument at the end, so it looks like this: testrunner.bat -sTestsuite -cTestCase -r -a -j -f${WORKSPACE} project.xml -Dreadyapi.skip.endpoints.checks=true3 years agoPlace ReadyAPI QuestionsReadyAPI Questions1.6KViews0likes0CommentsRe: ReadyAPI 3.9.2 - Deactivate check for incorrect endpoint?
Got this from the support: We are glad to inform you that we have just released ReadyAPI 3.10.0 in which you can disable the endpoint check by passing the following parameter: -Dreadyapi.skip.endpoints.checks=true Depending on the way you run ReadyAPI, provide the parameter in the .vmoptions file or the .bat\.sh file. To learn how to do this, please see the Modifying Advanced Settings help topic. Adding the option to the vmoptions worked for me.3 years agoPlace ReadyAPI QuestionsReadyAPI Questions3.5KViews1like4CommentsRe: How can i find a specific data constellation in an array
Hirichie Here is an example of the structure (better formatted in the attachment) [ {"user" : { "id" : "1", "name" : "user1"}, "roles" : [{ "id" : "a", "roleName" : "role a"} ] }, {"user" : { "id" : "2", "name" : "user2"}, "roles" : [{ "id" : "a", "roleName" : "role a",}, { "id" : "b", "roleName" : "role b"} ] } ]3 years agoPlace ReadyAPI QuestionsReadyAPI Questions942Views0likes0CommentsHow can i find a specific data constellation in an array
Hi, i'm trying to verify a change of roles for a user in a report. The report is an array of [user,[roles]]. Which means every user is one entry in the array and next to the user information is an array of the roles of the user. I know the username and the role that i added or removed. I can search the array for the username ($[*][?(@.name=='username')] which returns the complete user information without the roles. Similar i can search for the role and that returns the role information (several times) but without the user information. Can i combine those two to find the one item that has the correct username and role? Or change the query so that it returns the roles as well? Or is there a way to identify the position of that user in the list and then query that specific entry in the array? Thanks in advance964Views0likes2Comments