Contributions
Execution default of goal com.smartbear:ready-api-maven-plugin:2.3.0:test failed
Execution default of goal com.smartbear:ready-api-maven-plugin:2.3.0:test failed: A required class was missing while executing com.smartbear:ready-api-maven-plugin:2.3.0:test: liquibase/exception/LiquibaseException Any idea how to fix this. in m2 repositoryliquibase-core 3.5.3 version was downloaded from smartbear.6 years agoPlace ReadyAPI QuestionsReadyAPI Questions772Views1like1CommentRe: SCRAM-SHA-1 mongodb authentication using SOAP UI grrovy
Hi Tanya, I was using Ready API version 1.7. Downloaded the updated version 1.8.5, I have been facing the same issue. As indicated earlier i am able to run a similar Java code in eclipse successfully. @Grab(group='com.gmongo', module='gmongo', version='1.3') import com.mongodb.BasicDBObject import com.mongodb.DB import com.mongodb.DBCollection import com.mongodb.DBCursor import com.mongodb.MongoClient import com.mongodb.MongoClientURI MongoClientURI uri = new MongoClientURI("mongodb://xxxxx:xxxx123@xx.xx.xx.x:27017/xxxxxdb?ssl=true&mechanism='SCRAM-SHA-1'"); MongoClient mongoClient = new MongoClient(uri) DB db = mongoClient.getDB("xxxxxdb") DBCollection collec = db.getCollection("yyyyyy") BasicDBObject query = new BasicDBObject() DBCursor cursor = collec.find(query) while (cursor.hasNext()) { BasicDBObject test= (BasicDBObject)(cursor.next()) log.info test }8 years agoPlace ReadyAPI QuestionsReadyAPI Questions2KViews0likes1CommentSCRAM-SHA-1 mongodb authentication using SOAP UI grrovy
I am trying to write a script for connecting mongodb on the server using groovy, MongoDB uses 'SCRAM-SHA-1' auth mechanism, application is in SSL mode. I have imported key strokes in VM options file, SSL settings in preference. Code is executable in eclipse successfully but failing in ReadyAPI. getting following error com.mongodb.MongoTimeoutException: Timed out after 30000 ms while waiting for a server that matches ReadPreferenceServerSelector{readPreference=primary}. Client view of cluster state is {type=UNKNOWN, servers=[{address=xx.xx.xx.xx, type=UNKNOWN, state=CONNECTING, exception={com.mongodb.MongoSocketWriteException: Exception sending message}, caused by {javax.net.ssl.SSLHandshakeException: java.security.cert.CertificateException: No subject alternative names present}, caused by {java.security.cert.CertificateException: No subject alternative names present}}] error at line: 28. Any suggestions.Solved8 years agoPlace ReadyAPI QuestionsReadyAPI Questions2.1KViews0likes3CommentsRe: How to validate response using script assertion when the Rest Response has multiple nodes?
I tried to put everything in the same script, now challenge arises on assertion. I am not able to compare below database and rest responses getting assertion failed. Please advise. Database Groovy Script response { "_id" : {"$oid" : "57560fb04c4013fef4e31d20"} , "Datarequest1" : "A001" , "Datarequest2" : "B001" , "Datarequest3" : "C001" , "Response1" : "D001" , "Response2" : "E001" } { "_id" : {"$oid" : "57560fb04c4013fef4e31d20"} , "Datarequest1" : "A001" , "Datarequest2" : "B001" , "Datarequest3" : "C001" , "Response1" : "D003" , "Response2" : "E003" } { "_id" : {"$oid" : "57560fb04c4013fef4e31d20"} , "Datarequest1" : "A001" , "Datarequest2" : "B001" , "Datarequest3" : "C001" , "Response1" : "D005" , "Response2" : "E005" } REST Response: [{"id":"57560fb04c4013fef4e31d20", "Datarequest1":"A001", "Datarequest2":"B001", "Datarequest3":"C001", "propertyKey":"D001", "propertyValue":"E001" }, {"id":"57560fb04c4023fef4e31d20", "Datarequest1":"A001", "Datarequest2":"B001", "Datarequest3":"C001", "propertyKey":"D003", "propertyValue":"E003"}, {"id":"5761aa6a02d875aeb096bc22", "Datarequest1":"A001", "Datarequest2":"B001", "Datarequest3":"C001", "propertyKey":"D005", "propertyValue":"E005"}]8 years agoPlace ReadyAPI QuestionsReadyAPI Questions2.8KViews0likes0CommentsRe: How to validate response using script assertion when the Rest Response has multiple nodes?
I tried to put everything in the same script, now challenge arises on assertion. I am not able to compare below database and rest responses getting assertion failed. Please advise. Database Groovy Script response { "_id" : {"$oid" : "57560fb04c4013fef4e31d20"} , "Datarequest1" : "A001" , "Datarequest2" : "B001" , "Datarequest3" : "C001" , "Response1" : "D001" , "Response2" : "E001" } { "_id" : {"$oid" : "57560fb04c4013fef4e31d20"} , "Datarequest1" : "A001" , "Datarequest2" : "B001" , "Datarequest3" : "C001" , "Response1" : "D003" , "Response2" : "E003" } { "_id" : {"$oid" : "57560fb04c4013fef4e31d20"} , "Datarequest1" : "A001" , "Datarequest2" : "B001" , "Datarequest3" : "C001" , "Response1" : "D005" , "Response2" : "E005" } REST Response: [{"id":"57560fb04c4013fef4e31d20", "Datarequest1":"A001", "Datarequest2":"B001", "Datarequest3":"C001", "propertyKey":"D001", "propertyValue":"E001" }, {"id":"57560fb04c4023fef4e31d20", "Datarequest1":"A001", "Datarequest2":"B001", "Datarequest3":"C001", "propertyKey":"D003", "propertyValue":"E003"}, {"id":"5761aa6a02d875aeb096bc22", "Datarequest1":"A001", "Datarequest2":"B001", "Datarequest3":"C001", "propertyKey":"D005", "propertyValue":"E005"}]8 years agoPlace ReadyAPI QuestionsReadyAPI Questions2.8KViews0likes0CommentsRe: How to validate response using script assertion when the Rest Response has multiple nodes?
Hi Rao, I have downloaded and placed the files in the respective directory. I have written groovy script (Named the script as Script1) for retrieving values from Database. I added one more groovy script and trying to access the response from the groovy script in the new script, but I was getting 'null' value. Any suggestions please.8 years agoPlace ReadyAPI QuestionsReadyAPI Questions2.8KViews0likes0CommentsRe: How to validate response using script assertion when the Rest Response has multiple nodes?
Hi Rao, I have a challenge here in building JDBC request, I am using Mongo Client and there is no inbuilt JDBC congiguration for MongoDB. My expectations are listed in the DataSource step. I have to compare the JSON response with respective to Data Source Step. Regards, Saradhi8 years agoPlace ReadyAPI QuestionsReadyAPI Questions2.8KViews0likes5CommentsHow to validate response using script assertion when the Rest Response has multiple nodes?
Trying to perform an End to End Test using readyapi/soap ui pro, if any solution please advise.. I have rest URI as http:localhost/DataRequest1/DataRequest2/DataRequest3. All the Data request I have created as a Template. I created a test step 'Data Source' & 'Data Source Loop' and passed data. TestCaseStatus DataRequest1 DataRequest2 DataRequest3 Response1 Response2 A001 B001 C001 D001 E001 A002 B002 C002 D002 E002 A001 B001 C001 D003 E003 A002 B002 C002 D004 E004 A001 B001 C001 D005 E005 A002 B002 C002 D006 E006 In response I have getting response in below JSON if I perform 1st Step as Rest request Reuest URI:http:localhost/A001/B001/C001. Response JSON: [ { "DataRequest1": "A001", "DataRequest2": "B001", "DataRequest3": "C001", "Response1": "D001", "Response2": "E001" }, { "DataRequest1": "A001", "DataRequest2": "B001", "DataRequest3": "C001", "Response1": "D003", "Response2": "E003" }, { "DataRequest1": "A001", "DataRequest2": "B001", "DataRequest3": "C001", "Response1": "D005", "Response2": "E005" } ] As you see on the above I get multiple responses on a request. My challenge is to validate whether I am getting the response correctly or not in form of Script Assertion and store it as aTestCaseStatus for each iteration from the Data Source Step and validate the response with property response on Data Source Step. Any suggestions please?8 years agoPlace ReadyAPI QuestionsReadyAPI Questions2.8KViews0likes7Comments