ContributionsMost RecentMost LikesSolutionsAdd Built-In Support for Amazon Cognito I would love to see a built-in auth profile for Amazon Cognito. It is based on Oath2 and OpenID but adds a layer on top of that. Currently in order to implement an auth scheme for Cognito, it must be inserted manually using test requests and parameterization, and cannot make use of the Authorization Manager. Getting URIException: Invalid Query but HTTP query is correct Hi, I have a very simple URI call which cannot be run in SoapUI because a Java error is returned. The call (as shown in the raw request area) is simply: GET https://melissa.lcm2.c7ks7s.com/ HTTP/1.1 Accept-Encoding: gzip,deflate However SoapUI will not return the response and shows a Java error when I hit Send: Mon Nov 05 12:13:00 CST 2018: ERROR: org.apache.commons.httpclient.URIException: Invalid query Meanwhile, running the same query via CURL works just fine. Also, the HTTP log within SoapUI shows that the query was sent and correct response received (see copy and paste below). My question is, why is the SoapUI request editor erroring out and not showing the response? I need to grab a few of the parameters that are returned in the response and parameterize them. Is there a way to get around this issue? Mon Nov 05 12:13:00 CST 2018: DEBUG: http-outgoing >> GET / HTTP/1.1 referer: https://lcm-c7ks7s.auth.us-west-2.amazoncognito.com/login?client_id=673ufjii204p53c89lt92ht19c&redirect_uri=https%3A%2F%2Fmelissa.lcm2.c7ks7s.com%2Foauth2%2Fidpresponse&response_type=code&scope=openid%20profile&state=YNr7F0hyS%2FRqMUiTZyri1lmB4VdtpydZEOtM667hl%2FrOXo6itLyUf%2FsycZ52YqNr7dAqBHM%2Bx4Nmp53vrwdu0wYnwF6JQ%2FtcJRQ6hU8x4gPHn8Xt0FShFJVPt%2BA28XXZ36u%2BdC35RJhDHpzy6hg3Mr9n8%2BsTXLZFbML5mcg2jq%2FuqFV9plI2dMF0T9adCplmCDmT4runwM%2B3 accept-language: en-US,en;q=0.9 cookie: pragma: no-cache accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8 :method: GET :scheme: https upgrade-insecure-requests: 1 :path: / cache-control: no-cache :authority: melissa.lcm2.c7ks7s.com accept-encoding: gzip, deflate, br user-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.77 Safari/537.36 Content-Length: 0 Host: melissa.lcm2.c7ks7s.com Connection: Keep-Alive Amazon Cognito Hi all, My company recently implemented Amazon Cognito as the authorization method for our APIs. It doesn't appear that this fits neatly into the box of any of the auth schemes available in SoapUI (such as Oauth2 for example). It's entirely possible of course that I'm wrong and I just missed it. I was wondering if anyone has experience with Amazon Cognito and could recommend either a built in auth method, or a manual method of using SoapUI with Cognito? Currently I am looking at just setting up the auth requests as functional tests and then passing the returned token/cookies to all my tests, but that doesn't seem very slick. Any help would be appreciated. Thanks! Melissa Re: Tests fail when run using Test Runner, but not manually Hi all, Thanks for the responses, they were really helpful. It turned out that one of my project variables got overridden (I don't remember entering this variable, so I'm not quite sure how it got in there). Once I corrected that, everything ran OK in test runner. Tests fail when run using Test Runner, but not manually HI all, I'm pretty new to SoapUI, so I may be completely missing something, but I have a Testsuite that works when I run it "manually" (i.e. I push the green arrow in the testsuite itself). However, when I "Launch Test Runner" in the GUI and attempt to run it that way, the test fails - returns http 404 instead of http 200. Any idea how this could happen? I really haven't messed with the settings in the Test Runner GUI much. I thought it would just run my tests the same as if I were pressing the green arrow Run button manually. Thanks!! SolvedRe: New here - need some help with a Groovy script. I found a way to do it using the "project" object. Thank you so much! Re: New here - need some help with a Groovy script. nmraoah, that may explain it then, if the testRunner isn't available in a project level script. This test suite functions as a test yes, but it also is a procedure that I need to run as setup/teardown, and multiple times throughout my testing process. If testRunner won't work, is there another way to run this in the project setup? New here - need some help with a Groovy script. Hi! I've just started with SoapUI and Groovy scripting. I can write code, but have never really worked with Java before (I'm more of a Python and C++ gal). I'm trying to write a Project level setup script that will utilize an existing test case that I have. Basically, all I want to do is run this particular test case as a project setup script. I've attached a picture of the test case setup. To summarize, I need to grab the value of the property that is returned in the DataSource step, and then use said value in the test case that follows it (just as would happen if I were simply running the test case from the GUI). I have the following code: // get TestCase def tc = testRunner.testCase.testSuite.project.testSuites["Basic Operations"].testCases["Get and Clone Scenario"] //get simulation_id from data source def sim_id = content.expand( '${Get Model ID#simulation_id}' ) log.info "Project level model simulation ID = $sim_id" // set model clone properties tc.setPropertyValue("id", "sim_id") // run test synchronously def runner = tc.run( null, false ) // log the results log.info "Status: $runner.status, time taken for TestCase was: $runner.timeTaken ms" I get the following error: Caused by: groovy.lang.MissingPropertyException: No such property: testRunner for class: Script6 I also have a hard time reading Java tracebacks and am not sure exactly what line this error is happening in, though I'm guessing it's in the "tc.setPropertyValue" line. I am obviously missing something but have no idea what. Any help would be much appreciated! Thanks! Solved