ContributionsMost RecentMost LikesSolutionsId regeneration using groovyHi I'm working with soapUI and groovy to do a test whether a particular value regenerates again? I'll have a soapUI request with JSON which gives a id in the response, i should extract tat id and store it in a dynamic location so that the when i run the test case again, i should be able to compare the prev value(s). if it both matches then the test case should fail, if not then the new value should be added and the when the test case runs now, it should compare the prev two values. This goes on for a min of 10000 runs. so that 10000th id should get compared with all the 9999th id to check for repetition. If it exists, it should fail else the test should pass. Please help me.. Thanks in advance!Re: Load UI Reports SmartBear Support wrote: The soapUI assertions are displayed in the loadUI Summary Report as Total number of failed assertions, which in your case is 102. It's hard for us to know what you expect that number to be without knowing how you executed your test. Did you just hammer the server at 100/Sec, etc? (I moved this topic to the loadUI forum.) Regards! /Henrik eviware.com Henrik, In the report attached by ATokeley, how the report's status be "PASSED"? There are 102 assertion failures in it, shouldn't it be "FAILED"? If the status is right, please help me on how to change the report's status? Expecting a quick reply from you.Re: Need passed assertion count in summary report Sharath wrote: SmartBear Support wrote: Hi! No, this cannot be done (except if you save these numbers yourself using an Assertion component and a TableLog). However, we have this in our backlog [LUCO-2741] -- although it will probably not make it into loadUI 2.0. Regards Henrik SmartBear Software Henrik, Please help me on this. I'm waiting for your response! Henrik, I couldn't move further coz of this report. Help me to get out of this!Re: Need passed assertion count in summary report SmartBear Support wrote: Hi! No, this cannot be done (except if you save these numbers yourself using an Assertion component and a TableLog). However, we have this in our backlog [LUCO-2741] -- although it will probably not make it into loadUI 2.0. Regards Henrik SmartBear Software Henrik, Please help me on this. I'm waiting for your response!Re: Help on Failed Assertions on SummaryHi Henrik, Kilofajardo has merely got my attention with his post. How can the status be "PASSED" after some assertion failures? Shouldn't it be "FAILED"? Please let me know the process behind using the status.. Thanks Re: Need passed assertion count in summary report SmartBear Support wrote: Hi! No, this cannot be done (except if you save these numbers yourself using an Assertion component and a TableLog). However, we have this in our backlog [LUCO-2741] -- although it will probably not make it into loadUI 2.0. Regards Henrik SmartBear Software Hi Henrik, I'm new to loadUI and using it for a couple of days. I got to notice one thing in the report that's possibly generated after performing the load test. I have 50 failures out of 100 requests for a test case, but the status of the test is "PASSED". I don't know in what notation has this been mentioned since there are 50 assertion failures. Could you pls clarify me on this? I have already checked the checkbox "Fail on error" in soapUI. In the snapshot attached, there is 1 failure out of 1793 requests and the status is "PASSED". How?Re: Property Transfer Between Test Cases ankitaT wrote: For JSON format, instead of XPath, usage of jsonslurper is recommended. An example to achieve this is as: import groovy.json.JsonSlurper def response = messageExchange.response.responseContent def slurper = new JsonSlurper() def json = slurper.parseText response def ExpectedResultMessage = context.expand( '${#TestCase#ResultMessage}' ).toString() log.info 'ExpectedResultMessage ' + ExpectedResultMessage log.info 'json response ' + json."nsms.Response"."nsms.msg" assert json."nsms.Response"."nsms.msg" == ExpectedResultMessage Hope it helps. Regards, Ankita Hi Ankita.. Let me give you the scenario and the steps I've tried to make things work. Scenario: I should maintain a id throughout the test suite which contains 10 or more Test cases. The ID which I get on executing the first Test case, should be passed as a part of the endpoint for the next coming test cases, say wwww.google.com/{id} I tried: Creating the test suite and test cases, then adding HTTP Test request test step for each test cases. And then, after the test case has finished executing, the response is written to a xml file by using a Groovy script as a test step. BTW both the request and response are in JSON format not in XML. After writing the response to a file, I use another script to read the response from the file, and parse the JSON content to get only the value I need. Then I added the parameter to the endpoint for the next Test step, say http://www.google.com/$id. However, this failed! And I tried your code but its showing some error and it is "No property found:json" Now, how to pass this value as a part of the next test step's endpoint?Re: Property Transfer Between Test CasesHi all.. I use JSON format for the request and response for a Web Test case. So how would u use XPATH in this? Does XPATH work for JSON? I m a Novice, excuse if this is silly. Now.. I wanna append the values returned from a response of a HTTP Request test step, to be a part of an endpoint of another HTTP Request test step. I tried by selecting "Endpoint" as my target but its replacing the complete end point. I need to append only the value. Help me out or list the steps to do this.. I tried, to select a HTTP Test step as a source and select the property as the value from Response, then set another HTTP Test step as the target with its endpoint as the target property. What i need is, juz append the value from the source as a part of the endpoint, say www.google.com/{the property} How to do this? Is it possible in soapUI? If so, pls let me know the steps!Passing properties as a part of the endpointHi all.. I use JSON format for the request and response for a Web Test case. So how would u use XPATH in this? Does XPATH work for JSON? I m a Novice, excuse if this is silly. Now.. I wanna append the values returned from a response of a HTTP Request test step, to be a part of an endpoint of another HTTP Request test step. I tried by selecting "Endpoint" as my target but its replacing the complete end point. I need to append only the value. Help me out or list the steps to do this.. I tried, to select a HTTP Test step as a source and select the property as the value from Response, then set another HTTP Test step as the target with its endpoint as the target property. What i need is, juz append the value from the source as a part of the endpoint, say www.google.com/{the property} How to do this? Is it possible in soapUI? If so, pls let me know the steps!