Contributions
- 6 years agoPlace ReadyAPI QuestionsReadyAPI Questions3.5KViews0likes6Comments
Re: Setting Environment Rest Services properties from a Groovy script.
Lucian Thank you for responding to the question. I must admit, I was dissapointed initially thinking I would never get a response. You are correct with the thought that the endpoints and the name of the services are not saved as project properties, so I am unable to find a solution to set them. In case anyone else sees this and wonders what the solution was. My work around for this problem is to within the Endpoint reference multiple soapui project properties, (whose values will be set by a Project.Run Groovy script). That way if a change is required it will only need to be changed in one place (The Groovy Script). It will look something like this: Endpoint: https://${Project#ServiceName}-${Project#branchName}.com6 years agoPlace ReadyAPI QuestionsReadyAPI Questions3.6KViews0likes10CommentsSetting Environment Rest Services properties from a Groovy script.
hello, I was curious if I could SET Rest Service, properties(name,endpoint) in the Environments section in SoapuiPro with a Groovy Script. I was only able to find information regarding retrieving information in the Environment with a Groovy Script. (see photo)4.3KViews0likes15Commentsoauth2 groovy script
Hi. Is there a way that I can retrieve an token using oAuth2 from a groovy script? I basically want to replicate a profile in the authorization manager (see screenshot) but within a groovy script. I want to do this because SoapUI is not automatically getting a new token after it expires. -Stew7 years agoPlace ReadyAPI QuestionsReadyAPI Questions3.2KViews0likes1CommentOAuth 2.0 Flow: User Credentials cached
I am running into an issue when using different user credentials with the OAuth 2.0 flow. I have 4 users - whom use the same information to get a token (client id, client secret etc..) the only difference between these users is their username and passwords. I have used the Authorization Code Grant before in the past and have tried the other OAuth 2 Flow Grants. The problem persists after I have retrieved 1 token for a user. After I have retreived 1 token for a user I then try and retreive a token for another user, and after I select the get token button the pop up does quickly closes and does not prompt me for my log in informationand the token received is actually the first users credentials. It appears that the user credentials are cached while the token is valid. I have looked online to find that other people have had this isse with earlier versions of soapui many years ago. I am using ReadyAPI 2.1.0 https://community.smartbear.com/t5/SoapUI-Open-Source/While-testing-my-REST-APIs-the-previously-posted-request-details/m-p/105660/highlight/true#M18318 The documentation for this in Soapui does not give me enough information. Can someone please help me with this issue? The only other solution I can find is to use an automation script, that forces to the user to logout. Thank you, Stewart MoonSolved7 years agoPlace ReadyAPI QuestionsReadyAPI Questions1.6KViews0likes1CommentRunning multiple Soapui Projects from the command line
Hello, I'm new to SoapUI and automation in general, so I apologize in advance for asking a question that appears to have already been asked. I'm able to execute a single project using "testrunner.bat "c:\my projects\my-project.xml"" from the command line. I have about 10 soapui projects that I want to execute from the command line from 1 keystroke. (doesn't matter the order they are executed in.) I was thinking of creating some type of file and using a for loop to iterate through and at each step in the loop I could execute the testrunner.bat and just point it to a different project. I'm just not sure what type of file to create and how to execute it. Any information would be greatly apprecaited. I found alot of similar questions online, so feel free to link to those. I'm currently running Windows 7. for(int i = 0;i<=10;i++) { if (int i = 0) { testrunner.bat "c:\my projects\project1.xml" } if (int i = 1) { testrunner.bat "c:\my projects\project2.xml" } if (int i = 2) { testrunner.bat "c:\my projects\project3.xml" } if (int i = 3) { testrunner.bat "c:\my projects\project4.xml" } if (int i =4) { testrunner.bat "c:\my projects\project5.xml" } if (int i = 5) { testrunner.bat "c:\my projects\project6.xml" } if (int i = 6) { testrunner.bat "c:\my projects\project7.xml" } if (int i = 7) { testrunner.bat "c:\my projects\project8.xml" } if (int i = 8) { testrunner.bat "c:\my projects\project9.xml" } if (int i = 9) { testrunner.bat "c:\my projects\project10.xml" } }Solved7 years agoPlace ReadyAPI QuestionsReadyAPI Questions2.2KViews0likes1CommentRe: Modifying existing Headers in REST request using Event Handlers
Hello Bill and nmrao, To clarify it was really two questions: Question 1: What is the code that Deletes an existing Header. Question2: What is the code that Modifys an existing Header. From looking at the answers it appears I will first need to delete then re-add the header if I want to modify it. Both of my questions were answered through this thread. Thank you.7 years agoPlace ReadyAPI QuestionsReadyAPI Questions4.7KViews0likes1CommentModifying existing Headers in REST request using Event Handlers
Hello, Currently I have an Event Handler that uses RequestFilter.filterRequest to add a Handler to only certain Test Cases. My question is how to Modify existing headers in a REST request using Event Handlers. Specifically - How would I use an Event Handler to Delete this header, and or Modify the Value of this header. I have tried to use the soapui/api (http://www.soapui.org/apidocs/overview-summary.html) to find classes that I can use, however I am new to it and am unable to find what I am looking for. If you do answer this question can you please provide a link to how you found the answer in the api/docs? Thank youSolved7 years agoPlace ReadyAPI QuestionsReadyAPI Questions4.8KViews0likes6CommentsRe: RequestFilter.filterRequest Script applied to only specific Test Cases
hi nmaro, Thank you very much for that solution that fixed my issue with getting the test case name when not using the testrunner. I have two questions: 1. What resources did you use to get this answer? I looked at thehttp://www.soapui.org/apidocs/overview-summary.html to try and find what methods are avaiable for that class, but was unable to find the solution there. 2. How can I check if there is already a Header named "X-Active-Customer-ID" present within the request. thank you!!7 years agoPlace ReadyAPI QuestionsReadyAPI Questions4.3KViews0likes1Comment