Contributions
- 7 years agoPlace ReadyAPI QuestionsReadyAPI Questions2.5KViews0likes0Comments
Project already exists in the workspace
In SoapUI Pro: I have2 projects I use in a workspace; they are very similar (but not exactly the same): Project1 and Project2. I cannot open both of them without answering a prompt. Why does this happen? I created Project1 first. Then I saved it and removed it from the workspace. Tocreate Project2 - I imported Project1, renamed it (from Project1 to Project2 and renamed some of the test cases/steps), and saved it to a different location (on my harddrive). Now, whenever Project2 is opened in the workspace - if I try to import or open Project 1, I get a popup saying "This project already exists in the workspace." I can choose "Import project again" so that I can have both Project1 and Project2 open in the workspace simultaneously. But what is the reason for this? And can it be avoided? I thought that renaming the 're-imported' project (and saving it to a different location) would be enough for SoapUI to recognize that Project1 and Project2 are 2 different projects.Solved7 years agoPlace ReadyAPI QuestionsReadyAPI Questions2.6KViews0likes2Commentstestrunner.bat log files for Ready! API
When running testrunner.bat (from DOS)forSoapUI-PRO 5.1.2, thesoapui.log &soapui-errors.log files go to the bin directory. When running testrunner.bat (from DOS) for Ready! API 1.3.1, I see error.log file in the bin directory, but that's it. Where are the files equivalent tosoapui.log &soapui-errors.log going for Ready! API?Solved9 years agoPlace ReadyAPI QuestionsReadyAPI Questions3.5KViews0likes2CommentsRe: OAuth 2 Flow - Error getting token due to bad request
Hi Marcus, Thanks for your reply. Prior to my post, I had already reviewed the details (at length) in the Microsoft link (http://msdn.microsoft.com/en-us/library ... 45542.aspx) you provided. I played with this for hours! I had already tried including the resource in both the "Authorization URI" and "Access Token URI" textboxes in the SoapUI popup titled "Get Access Token from the authorization server". I am getting the authorization code without issue. However, regardless of whether or not I include the resource in the "Authorization URI" or include it in the "Access Token URI", I still get the error I listed in my original post. So - if you're suggesting that I include the resource in one of the textboxes: Which textbox? And what is the syntax that SoapUI popup expects so that it passes the proper syntax to Windows? Thanks, Kelli10 years agoPlace ReadyAPI QuestionsReadyAPI Questions5.7KViews0likes2CommentsOAuth 2 Flow - Error getting token due to bad request
I have SoapUI Pro 5.1.2. I am attempting to get a token using OAuth2 Flow = "Authorization Code Grant". In the SoapUI popup (titled "Get Access Token from the authorization server") I provide all of the following: Client Identification Client Secret Authorization URI Access Token URI Redirect URI I then click the "Get Access Token" button and I'm prompted to sign into Microsoft Azure (where my service resides). Next, I enter my credentials (which are accepted), and see the "Received authorization code" message (within the SoapUI popup (titled "Get Access Token from the authorization server")). Next, A window with the message "The page could not be loaded" pops up. When I close that window - the "Received authorization code" message (on SoapUI popup (titled "Get Access Token from the authorization server")) is replaced with "Retrieval canceled". So I never get the token. However - Looking at the HTTP log: I DO get the Authorization Code. Here is the error I see in the HTTP log: Thu Dec 04 18:23:48 EST 2014:DEBUG:<< "HTTP/1.1 400 Bad Request[\r][\n]" Thu Dec 04 18:24:44 EST 2014:DEBUG:<< "{"error":"invalid_request","error_description":"ACS50001: The required field \u0027resource\u0027 is missing.\r\nTrace ID: 79c923cb-4cc6-4a4d-9dcf-fb578f3a8c01\r\nCorrelation ID: 11a3007a-4387-436f-9669-b52fcf222a49\r\nTimestamp: 2014-12-04 23:24:45Z","error_codes":[50001],"timestamp":"2014-12-04 23:24:45Z","trace_id":"79c923cb-4cc6-4a4d-9dcf-fb578f3a8c01","correlation_id":"11a3007a-4387-436f-9669-b52fcf222a49"}" The problem is that I don't see where I can supply the resource in the SoapUI popup (titled "Get Access Token from the authorization server"). And if the solution is that I need to add it to the input string for the "Access Token URI" textbox, what is the proper syntax? I am currently using "https://login.windows.net/mckdev.onmicrosoft.com/oauth2/token?api-version=1.0" as input for the "Access Token URI" textbox. Any help with getting past this error would be greatly appreciated. Thank you, Kelli10 years agoPlace ReadyAPI QuestionsReadyAPI Questions6KViews0likes4CommentsRe: [Res] Help with setting variable endpoint based on environm
Hi Giscard, Thank you for your reply. I had already done all that you suggest. This is not the problem. Before I was trying to run from the command line, I did not need to use any custom project properties to successfully run my test suite from each of the environments. I created the default environment (as you say) with NO custom properties. I then went to the Environments tab and created 4 environments (using the "Copy endpoints & credentials from the project") and then changed the endpoint for my service for each of the 4 environments. Again, no custom properties were in play here and the test suite ran from each of the 4 environments using the proper endpoint (defined at the project level for each of the 4 environments). I understand how to do this when not using a custom project property for the endpoint. Later - I needed to be able to run my test from the command line. So I then added the custom project property CPServiceEndpoint (on the Overview tab). I then went to each of the 4 environments and entered ${#Project#CPServiceEndpoint} as the value for the CPServiceEndpoint. Then I tested passing the value for CPServiceEndpoint via the command line and this works fine for each of my 4 environments. The problem came in after adding the CPServiceEndpoint custom project property and NOT executing the test suite from the command line. I have a different value that I need to pass to the CPServiceEndpoint for each of the 4 environments. Easy to do with command line. I am stuck with how to do it from within SoapUI. (I have tried creating a 2nd custom project property to hold the value I want for each of the 4 environments and then transferring this 2nd project property into CPServiceEndpoint, but this doesn't work.) Does my question make sense? Thanks, Kelli10 years agoPlace ReadyAPI QuestionsReadyAPI Questions3.1KViews0likes0Comments[Res] Help with setting variable endpoint based on environm
Hi, I need to be able to run a SoapUI Pro Test Suite based on two different variables: 1. Environment 2. Endpoint for the environment: To be clear: the same environment can use different endpoints for the same service. In addition, I would like to be able to execute the same Test Suite both from the command line AND from within SoapUI ideally without any manual manipulation of the test itself. (I am OK with disabling a test case for the purpose of the test being available for the command line.) I have accomplished the above goal for the command line only using the following command: testrunner.bat -r -EQA -PCPServiceEndpoint=https://mck-cs-customer-profile-qa.cloudapp.net "C:\Users\ehda1tq\Desktop\SoapUI projects\CustomerProfile.xml" (where "QA" is the environment and "CPServiceEndpoint" is a project-level property). This works. I can execute the above command using whatever environment and endpoint I like. The problem is trying to execute the exact same Test Suite from within SoapUI itself (versus the command line). I cannot populate the CPServiceEndpoint project property with the desired endpoint at the time that I am trying to run the test. I have tried using a a property transfer step and this doesn't work. Example: Preconditions: - CPServiceEndpoint is a custom project-level property - My service endpoint is set to ${#Project#CPServiceEndpoint} also at the project level. - Using the CPServiceEndpoint property (as the value for my service endpoint) allows me to successfully pass in the endpoint from the command line (to be used by my Test Suite) as shown above. To allow the same exact Test Suite to be run from within SoapUI I did the following: 1. Created a new project property "X" 2. At the project level, for each (of my 4) environments - assigned "X" the hardcoded value for the endpoint 3. Switched my active environment to Default 4. In my Test Suite - created a brand new property transfer step to assign the value of "X" (based on the active environment) to CPServiceEndpoint 5. When I run the Test Suite, it doesn't work because the source value "X" is missing. 6. I determined that the issue in step 5 (value of "X" missing) is because I created the property transfer while the active environment was "Default" SO onto step 7 7. Switched my active environment to Stage & repeated step 4 8. It did work for Stage (because I created the property transfer step while Stage was the active environment) BUT the 3 other environments do NOT work since the value of "X" being transferred to CPServiceEndpoint is for Stage only I also tried writing a Groovy script to circumvent this property transfer issue (described above). However - I am new to SoapUI and was not able to successfully do this. Nor am I sure that this is the best approach. What is the best way to set CPServiceEndpoint project property to a specific (hardcoded) value BASED ON ENVIRONMENT to be used every time the Test Suite is run manually? As I said - I am new to this - any tips/advice would be greatly appreciated. Thanks, Kelli10 years agoPlace ReadyAPI QuestionsReadyAPI Questions3.5KViews0likes4Comments