Invalid UTF-8 start byte 0xa0
I am not able to fix the below issue in ReadyAPI - Invalid UTF-8 start byte 0xa0.Getting this error message in response. However same request payload is working in Postman. { "replyHeader" : { "rqUID" : null, "transactionRequestTs" : null, "responseTs" : "2022-01-14T08:24:16.645811-05:00" }, "modifiedRequest" : null, "quoteNumber" : null, "policyNumber" : null, "premium" : null, "errorMessages" : [ { "code" : "E010", "desc" : "Invalid UTF-8 start byte 0xa0" } ], "infoMessages" : null, "legalDisclaimer" : null }Solved22KViews0likes2Commentshow to get xml joint value and output in groovy
i have a xml '''<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://abc" > <Cool Type="abc" > </Cool> <Cool Type="abk" > <Line LineID="0" Main="1"> <Info updateDate="17-05-2028" > <Selection Tag="A" Status="Offer"/> <Selection Tag="A" Status="Offer"/> <Selection Tag="A" Status="Offer"/> </Info> </Line> </Cool> <Cool Type="abg" > <Line LineID="0" Main="1"> <Info updateDate="17-05-2028" > <Selection Tag="C" Status="Offer"/> <Selection Tag="B" Status="Offer"/> <Selection Tag="B" Status="Offer"/> </Info> </Line> </Cool> <Cool Type="abg" > <Line LineID="0" Main="1"> <Info updateDate="17-05-2028" > <Selection Tag="A" Status="Offer"/> <Selection Tag="A" Status="Offer"/> <Selection Tag="B" Status="Offer"/> </Info> </Line> </Cool> <Cool Type="abg" > <Line LineID="0" Main="1"> <Info updateDate="17-05-2028" > <Selection Tag="A" Status="Offer"/> <Selection Tag="A" Status="Offer"/> <Selection Tag="A" Status="Offer"/> </Info> </Line> </Cool> </SOAP-ENV:Envelope> ''' I want to get Cool Type ='abg' and Selection Tag="A" then output value ='A' what should i do? I try to using this script but only can get Type='abg' or Tag='A' I want Joint these Attributes then output attributes def res = ''' ''' xml = new XmlParser().parseText(res) results = xml.'**'.findAll { it.@Type == 'abg' } results.each { log.info(it.@Type) } I want to log.info (@Tag ) I try toresults = xml.'**'.findAll { it.@Type == 'abg' && it.@Tag== 'A'} resuluts.each{ log.info(it.@Tag) } butit onlylog@Tag=A, Nolog@Type==abg>@Tag=A *-*Solved5.3KViews1like10CommentsBearer Auth Token - How to pass as header for each API resource
Hello People, I am new to Ready API and API automation in general. For our API testing (JSON), initially we have to authorize with a bearer token in SWAGGER UI. Two API resources are present /auth/login & /auth/base64 and both these return an access token and user details respectively in encrypted format. The final bearer token format is: </auth/login: accesstoken>.</auth/base64 : message> The bearer token has session time of 15 minutes after which we need to generate a new one. Could anyone please let me know resources or steps on how to set the bearer token details for every Test Case in Ready API?Solved5KViews0likes2CommentsIterating through Data source values and verifying the matched value
This is the scenario that I am trying to test: 1. I have a REST API step that returns number of ids and names for locations. (Sometimes zero records are returned, sometimes one and sometimes multiple records are returned) 2. I have to write a test to iterate through the REST Response and verify the location name and get the corresponding id. ------------------------------------ I tried to test this by 1. Creating a Data source from the Json response of the REST API step. 11 rows of id and name were returned. 2. I am trying to write a groovy script to iterate through all the rows of Data source but couldn't do it. I can only get the last row in the groovy script. Please let me know how to test this scenario.Solved4.6KViews0likes10Commentsencountering with com.amazon.coral.service#UnknownOperationException
while trying to generate an Authorization token using ready API , encountered an error below. Though tired with by adding headersX-Amz-Target andContent-Type . { "Output" : { "__type" : "com.amazon.coral.service#UnknownOperationException" }, "Version" : "1.0" } Can someone help me out over here ?Solved3.4KViews0likes1CommentGroovy script - Sum two values of REST response and pass the sum on to the next request
Hi! I'm currently utilizing ReadyAPI for functional tests of our API. I am already using "simple" property transfer / Get Data to pass on a value from one test step REST response to the next REST request like: ${TestStep1#Response#$['ABC']['Array'][0]['Price']['value']} Now what I want to achieve is passing on the sum of two values of a response to the next request. E.g. let's say Test Step 1 Response gives me the following data: Now I want to pass on the sum of the prices (1.4 + 2 = 3.4) to a field of the next request. I was told by Smartbear Support that this can be achieved using Groovy scripts but they do not offer customer support for scripts and I was referred to this Community form. As I am totally new to Groovy Script and not sure about how to use it for my goal which isn't complex at all but again, I have never used Groovy Script before, I am asking if someone could help of an example of how this would look like? Maybe also with an example if the values were returned in string format and I would need to parse them to Double first? Thank you!Solved3.3KViews0likes7CommentsHow do we handle empty string dynamically in assertions in ReadyAPI
ERROR: An error occurred [empty String], see error log for details Hi i have a need to validate two data sources using nested loop on multiple records in several tables Steps Build a Rest Request get the datasource getting the data from db as expected result write a groovy script inorder to get a value to be validated with db Asert the values are equal Issue : I have multiple empty values in the data sources from the api(actual value) and expected value db Question : When i run my script i am getting this errorERROR: An error occurred [empty String], see error log for detailsfor empty values asserted . Please help as i am on a deadline and am aunable to find a solution online .Solved3.2KViews0likes6CommentsMissingMethodException: No signature of method
RE: MissingMethodException: No signature of method Error on LINE 5 I'm trying to increment a param in the xml payload" ReferenceID, and getting the above-mentioned error: I changed the "setPropertyMethod" to "getPropertyMethod" and the error changed to "groovy.lang.MissingPropertyException: No such property: ReferenceID Again, I'm trying to increment the parameter, so the SET method makes sense to me def ReferenceID = context.expand ('${#TestCase#ReferenceID}'); ReferenceID = ReferenceID.toInteger() + 1; if (ReferenceID < 990000) { testRunner.testCase.setPropertyValue('${TestCase#ReferenceID}'); //LINE 5 Error log.infor "ReferenceID" + ReferenceID; testRunner.gotoStepByName("ReferenceID") } Any idears? Thanks, wiseAcre3.1KViews0likes13CommentsIntegration tab shows "Browser Component is disabled"
ReadyAPI 3.6.0 Integration tab shows "Browser Component is disabled" Log:ERROR: An error occurred [com.teamdev.jxbrowser.engine.ChromiumProcessStartupFailureException: Failed to initialize the Chromium process], see error log for detailsSolved3KViews0likes10Comments