Contributions
- 6 years agoPlace ReadyAPI QuestionsReadyAPI Questions1.9KViews0likes0Comments
ReadyAPI TestSuite not opening (XML Error)
Hi, I created TestSuite in ReadyAPI, it was working fine till yesterday, Todat when i opened the tool, my test suite was grayed out and i am not able to open it. I tried to open the TestSuite XML it gives error: error on line 39605 at column 36: Extra content at the end of the document. But nothing seems wrong there. Yesterday i just added new test cases and today it stopped working. There are approx 40k lines in XML, as i haven't much experience in XML so i am not able to fix it. And now all my testing activities stopped as XML not opening. Please provide some suggestion how i can fix the XML.Solved6 years agoPlace ReadyAPI QuestionsReadyAPI Questions2KViews0likes3CommentsJSON Path Match Assertion - To compare the decimal values (.0)
Hi, I am using the JSON Path Match Assertion to match the response value with my excel (Data Driven). I am using data driven (Data Source excel) having all Inputs and Outputs (expected result). Now in API response i want o compare the Value with my Excel value.(Expected output) Problem is, say in response value is 1344.0 but in excel value is 1344 so it fails (snapshot attached). So please help how to handle it in assertion (Asset for content > JSON Path Expression) editor so that it compare the response value 1344.0 (or 134.00) with excel value 1344 and pass it6 years agoPlace ReadyAPI QuestionsReadyAPI Questions1.1KViews0likes1CommentRe: SoapUI (Pro) > DataDriven > Message Content Assertion - How to handle decimal values
I tried in JSONPath Asertion: Here in example, API Response -$['availableIncome'] = 1420.0 And in Expected result, I am checking the value from my excel (test Data expected output = 1420) In expected result i added: def data = ${TestData-StandardLoan#Output_AvailableIncome} def newData = new Double(data).round(2) printf("${newData}") But it doen't work6 years agoPlace ReadyAPI QuestionsReadyAPI Questions602Views0likes1CommentRe: SoapUI (Pro) > DataDriven > Message Content Assertion - How to handle decimal values
Hi, I tired but no luck :( So where to add this code: def data = 45 def newData = new Double(data).round(2) printf("${newData}") In excel or Assetion JSON Path Expression6 years agoPlace ReadyAPI QuestionsReadyAPI Questions2.3KViews0likes3CommentsRe: SoapUI (Pro) > DataDriven > Message Content Assertion - How to handle decimal values
Hi, I tired but no luck :( So where to add this code: def data = 45 def newData = new Double(data).round(2) printf("${newData}") In excel or Assetion window (JSON Path Expression)6 years agoPlace ReadyAPI QuestionsReadyAPI Questions2.3KViews0likes0CommentsRe: SoapUI (Pro) > DataDriven > Message Content Assertion - How to handle decimal values
Hi avidCode, Thnaks for your reply. I am little bit confuser here, i tried but assetion is always pass even for wrong values as well. I need youe help to create the assetion: (we are using JSON as API request/response) Scenarios: DataSource Testing In Excel I have inputs as well ouputs, for one of scenario My excel (DataSource) output is : ( '${DataSource#Output_LoanTerm}' ) --> Value is 45 Now when i used Data Source for executing my test case API returns: $['LoanTerm'] --> Value is 45.0 I want to match( ${DataSource#Output_LoanTerm}) =$[LoanTerm] (45 = 45.0) Assertion failed, (due to .0). I tried the Assertion using Groovy script but no luck (may be i have no experience of Groovy Script). Can you please send me an example with above case. Or can we use the JSONPath Asseretion for contect match as well, If yes please help, sorry as i have no knowledge of JSON :)6 years agoPlace ReadyAPI QuestionsReadyAPI Questions2.4KViews0likes6CommentsRe: SoapUI (Pro) > DataDriven > Message Content Assertion - How to handle decimal values
Hi avidCode, Thnaks for your reply. I am little bit confuser here, i tried but assetion is always pass even for wrong values as well. I need youe help to create the assetion: (we are using JSON as API request/response) Scenarios: DataSource Testing In Excel I have inputs as well ouputs, for one of scenario My excel (DataSource) output is : ( '${DataSource#Output_LoanTerm}' ) --> Value is 45 Now when i used Data Source for executing my test case API returns: $['LoanTerm'] --> Value is 45.0 I want to match( '${DataSource#Output_LoanTerm}' ) =$['LoanTerm'] (45 = 45.0) Assertion failed, (due to .0). I tried the Assertion using Groovy script but no luck (may be i have no experience of Groovy Script). Can you please send me an example with above case. Or can we use the JSONPath Asseretion for contect match as well, If yes please help, sorry as i have no knowledge of JSON :)6 years agoPlace ReadyAPI QuestionsReadyAPI Questions2.4KViews0likes0CommentsRe: SoapUI (Pro) > DataDriven > Message Content Assertion - How to handle decimal values
HiavidCoder, Thank you so much for your reply, your solution '176.98 works. But in my spreadsheet (which I'm using for Data Source) there are so many columns which are using formulas. And if im doing the changes ('176.98 ) then formulas does not work. Regrading your 2nd solution, I am not sure where to add this code as i am new to ReadyAPI (SoapUI Pro) so please provide my more details where i need to add the code in ReadyAPI. Do i need to add custom properties? I will be very thankful to you :) Thanks, Amit6 years agoPlace ReadyAPI QuestionsReadyAPI Questions2.4KViews0likes9CommentsSoapUI (Pro) > DataDriven > Message Content Assertion - How to handle decimal values
I am using ReadyAPI(SoapUI Pro) for testing of a RestAPI. For TestData I'm using DataSource (DataDriven), where i am giving the Inputs (API Input) from excel. And to test the API response i am comparing the Output from Excel (Expected results are already in excel). For that I am using Message Content Assertion (as its easy and im not much technical). Now problem is, In excel Expected Output is say 10.0 but when i use this excel field for assertion in SoapUI (Pro) it reads 10.0 > 10. But from API Response value is 10.0. So Assertion failed. I tried to handle it in excel but no luck. So need help. In SoapUI we can handle it? (so that API response(10.0) match with Assertion value 10) If its not possible using Message Content Assertion, then is it possible with JSONPath Existence Match ( I have not much knowledge of Json)6 years agoPlace ReadyAPI QuestionsReadyAPI Questions2.7KViews0likes11Comments