Contributions
Read assertion results in ServiceV
Dear community members, Could you please guide me how to proceed with this following situation: 1. I have a mock in ServiceV which gets an input request from a service and the mock is configured to throw a response of either HTTP 200 or HTTP 400 depending on the inputs received 2. Additionally there is an assertion in the mock which validates the input parameters of the request. My intention is to read the result of the assertion and accordingly set the test to fail or pass IRRESPECTIVE of whether the service returns a HTTP 200 or HTTP 400. Which means the test should fail or pass depending on the result of input assertion. How to read this assertion result is not known to me. I can see the result (Failed or passed) in the Transaction Log but how can I read the result of this transaction log and feed it back to my test. There is an option to export transaction log results but this is not helping me because it is showing me the results of step 1 above (of the service) but not of the assertion (step 2). Any help or further info in this regard will be helpful. Thanks.7 years agoPlace ReadyAPI QuestionsReadyAPI Questions895Views0likes0CommentsRe: Copy assertion
nmrao wrote: Isn't it comes under Data driven test instead of copying the same steps again and again for n times? Thanks for reply. If I understand your point correctly, if the same data set with same values are used for all tests, then it is a Data Driven test. But in my case, the data for every test is different and specific for that test only, and thats the reason why I need n number of Data Sets, one for each test.7 years agoPlace ReadyAPI QuestionsReadyAPI Questions1.3KViews0likes0CommentsCopy assertion
Dear community members, I would like to know how can I copy assertions from 1 test case to another, such that the referred expected values are also updated accordingly. Here is my scenario: Test Case 1: contains DataSet1, RestRequest1, Assertion1 Test Case 2: contains DataSet2, RestRequest2 .... and so on... upto Test Case 60: contains DataSet60, RestRequest60 The Assertion1 (of test case 1) is a Message content assertion and its expected value is referred as ${DataSet1#out_value}. My intention is to copy assertion1 to the other 59 test cases. But when I copy assertion 1 to TestCase n, the copied assertion is still referring to ${DataSet1#out_value}. And then I have to manually modify each copied assertion to DataSet n. Is there a mechanism where when I copy assertion to testCase n, it automatically refers to ${DataSet n#out_value}. Thanks in advance.1.3KViews0likes3Comments