Contributions
Re: Calculate within the request before sending - Property Expansion, Dynamic Properties, Request
Sorry! I diddn't understand your respons properly at first. I tried it with your suggestion and it works like charm! THANK YOU SO MUCH! :heart: The solution who ever is also looking for something simliar. :smileywink: {=def bla=${#TestSuite#Counter};bla.plus(1).toString().padLeft(2,'0');} It gets an testsuite propert, increases it by 1 and occurs as 02. Best Regards Sten1.8KViews2likes1CommentCalculate 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.9KViews0likes4CommentsRe: SoapUI 4.6.3 Template for an SOAP Request and Groovy Scripts
SiKing wrote: Creating a SOAP template is done in the endpoint definition. This will be useful only for creating new test steps, not for existing test steps. Do you know how to archive that? It's probably usefull for me as well to do that. SiKing wrote: For Groovy scripts, you would want to use the script library. http://www.soapui.org/Scripting-Propert ... pt-library Dude? Thats SoapUI Pro1.1KViews0likes0CommentsRe: SoapUI 4.6.3 Modify Property without Groovy
Thanks SiKing, the solution you suggested works fine for me. Here the litle script I'm using now. //**get properties from testCase, testSuite and project //def testCaseProperty = testRunner.testCase.getPropertyValue( "WSTMP1" ) def testSuiteProperty = testRunner.testCase.testSuite.getPropertyValue( "WSTMP1" ) String newWSTMP1 = testSuiteProperty[0..-2] //**setting values is equally straigh forward //testRunner.testSuite.setPropertyValue( "WSTMP1", var ) testRunner.testCase.testSuite.setPropertyValue( "WSTMP1", newWSTMP1 )1.8KViews0likes0CommentsRe: SoapUI 4.6.3 Assertion Contains with Regex
For those who are interested, the solution I use now. She is not beautiful and not what I was looking for, but does his job. If I need to check a timestamp, I set by groovy script the corresponding value in a test case property and check by XPath and this variable Condition The time stamp is for example created at the beginning of the test and is later tested in another test step so that I could transfer it via property transfer step Nachteil Mehr steps und testcase properties notwendig1KViews0likes0CommentsSoapUI 4.6.3 Template for an SOAP Request and Groovy Scripts
Heyho every one, I'm searching for a way to improve the handling of soap requests a little bit. The development is changing the WSDL/request a certain times and I would like to put a full request with all soap parameters somewhere and then load it somehow as an template. I guess this would help to apply the changes of the development team in just one place instead of put the change in every test I used? In addition to that I would like to do that with my Groovy scripts as well. They are frequently used for assertions or modify data/properties and every time I fix or change something within this script I need to adjust this as oft as I used it in every test case. I´ve been searching for this for a while and used google and the board search function as well but I just found something about security testing which is probably not applicable for me. I’m open for any suggestions Regards Sten2KViews0likes5CommentsRe: SoapUI 4.6.3 Assertion Contains with Regex
Well, the first time I’ve seen this checkbox I thought this would be awesome to use it. I’ve been working for a couple of years with Regex in QTP with VBS scripting and really enjoyed it. It’s quite bad to see this function almost unused within soap. Thanks for your expertise and passion SiKing. Best Regards Sten1KViews0likes0CommentsRe: SoapUI 4.6.3 Modify Property without Groovy
Heyho SiKing, The step I would like to do is cutting off a few digits at the end of an value which ive got from the response of an request to use it within the next request to compare. For example Request1 gets an Response like “value234234” and I would like to use this response value like “value23” (cut of a few at the end) in another response to verify. Is there any soapui function which could be used to achieve this (without using complex groovy scripting)? Best Regards Sten1.8KViews0likes0Comments