Contributions
Re: How to make "Contains" assertion for matching one of 2 words?
I think I found the answer. Apparently, "When using regular expressions in an assertion in SoapUI, you have to take whitespace and line breaks into account. In the example code (?s).* works as a wildcard that includes all whitespace and line breaks." The following Contains assertion (with regex checkbox checked) seems to work: ((?s).*Deny(?s).*)|((?s).*Permit(?s).*) Thanks, Jim254Views0likes0CommentsHow to make "Contains" assertion for matching one of 2 words?
Hi, I want to make an assertion in a SOAPUI test step that matches one of two words, "Permit" or "Deny", but I can't seem to be able to do that. I've tried the Contains assertion with things like (this is with the "Regular expression" checkbox checked: Permit|Deny (Permit|Deny) But I keep getting different errors. Can someone tell me what the Contains assertion should look like? Thanks, Jim256Views0likes1CommentStrange question - I have client authenticated SSL working, but don't know where it is setup??
Hi, I am trying to modify one of our SOAPUI projects and it does client-authenticated/2-way SSL to the target endpoints. I KNOW that it is sending a client cert, because I can see the server-side logging and see the certificate subject string, etc. on the server logging, but I have looked all over the SOAPUI project and I *CANNOT* find where the certificate is configured in SOAPUI??? I have looked in File=>Preferences=>SSL, and that is all blank. I have looked in Project => View and I don't see the cert or keystore in there. So where else can that be configured in the SOAPUI project? Thanks, Jim345Views0likes0CommentsPossible to configure SOAPUI to automatically run specific test step when a Project is imported?
Hi, I have implemented a Groovy test step ("Setup Environment") (in a testcase/testsuite), in a project, that will prompt (via popups) the user to select some parameters (hostname, etc.) via UI dropdown, and then the Groovy code will construct some URLs and populate some project properties (which then get used in test steps' address bars). So, now, when our testers test, they start SOAPUI, import the project (which contains the "Setup Environment" test step), then they have to run that "Setup Environment" test step manually. Then, after that they can run some test suites, etc. What I would like to do is that, when they import that project, that the "Setup Environment" test step should get executed automatically. Is there a way to configure either the project, or SOAPUI, to do that? Thanks, Jim458Views0likes1CommentTrying to use Groovyscript step to set property that is in Project View
Hi, In our test steps' address bar, we have: ${#Project#centralized2} And I have a Groovy test step that constructs the value for the "centralized2" property, but when I run the test step, it is not setting the value of the property in the Project view. The code that is supposed to set the project property value is: testRunner.testCase.testSuite.project.setPropertyValue( "centralized2", finalTarget ); But, after I run the setup test step, the value of the "centralized2" property is not changed. Can someone tell why that is not working? Thanks, JimSolved668Views0likes1CommentRe: How to access TestCase custom property in a request?
Hi, I found the answer. The following works: ${#Username} The explanation is in the message from "richie" in https://community.smartbear.com/t5/SoapUI-Open-Source-Questions/SoapUi-Property-Expansion-within-the-json-of-the-request-body/m-p/217487#M32009. This part: "using the 'scope' thing, youre specifying the "level" at which your properties are held relative to your current focus" Since the property is at teststep level, and I am using the property at the same level, there is no need for any level above the current level. Jim869Views0likes0CommentsHow to access TestCase custom property in a request?
Hi, It has been a long time since I worked with SOAPUI, but I am trying to use a custom test step property in a request, but I cannot seem to get it working :(... In the test step custom properties, I have a property named "Username" with value "XXXXXXXXXX". The test step name is "TC57". Then, in the request I have I want to get the value of that property in the request. I have tried: ${#TC57#Username} ${#TestStep#Username} but neither of those cause the "XXXXXXXXXX" to be inserted into the request. If I try the same thing with ${#Project#Username} it works fine (it pulls in the value into the request, but I need the property to be at test step level. What am I doing wrong? Thanks, Jim ....Solved925Views0likes1CommentRe: Is there a way to manage teststep-level properties?
I think I have come up with a way to use a Property test step together with a Property Transfer test step to move properties into specific test steps. HOWEVER, for the HTTP test steps, there are only a few properties under "Custom Properties" and I need to add maybe 1 or 2 "Custom Properties" under the Custom Properties tab for test steps. Is that possible? I have searched and have not found a way to do that yet. WHERE in SOAPUI do you configure what Custom Properties appear for the HTTP test steps? "So close, yet so far" :(.... Thanks, Jim1.1KViews0likes1Comment