How do i fetch raw request for REST, the one that you see by clicking on the RAW button,using groovy
How do i fetch a raw request using a Groovy script. Understand that I don't want the raw request shown in the custom property, but the one which you can see when you click on the RAW tab. it includes, the endpoint details, headers, body etc. something like this. GET https://chrus.au.club.io/orders/0754855/memo HTTP/1.1 Accept-Encoding: gzip,deflate X-Transaction-Id: gfr456d03ygh38s2 Host: chorus-scg-api-v1-sit.au.cloudhub.io Connection: Keep-Alive User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_112)Solved4.6KViews0likes2CommentsCalculate within the request before sending - Property Expansion, Dynamic Properties, Request
Hey, i would like to calculate a value within the request based on another property. The current issue i have is that he calculates the value but the soap request isnt correct or he dont calculate and the value is correct. Counter=01,02,03-20 <---always needs an leading 0, till 10 is reached. But with an leading 0 the code dosent work. ${=def bla=${#TestSuite#Counter};bla.plus(1); } What i want to archive, if "count" is less than 10, add an leading 0, if its bigger than 9, do nothing. But at both situations i need to increase it by 1. Best Regards Sten FladeSolved1.9KViews0likes4Comments