ContributionsMost RecentMost LikesSolutionsRe: How to Select Auth method during run time Here's what I ultamitely used to get this working. def step = testRunner.testCase.getTestStepByName("TestStepName").getHttpRequest(); step.setSelectedAuthProfile(authProfile); How to Select Auth method during run time I've got a project that needs to run in several different Azure environments. Each one has it's own authorization profile. I need to be able to set this value based on the test environment. Has anyone dealt with this Conversly I could also possible populate the auth profile values based on the env. I could just store the tenant, secret, resource values and create the profile at run time. I'm not sure if this is even feasible but just trying to think of options. Thanks, Billy SolvedHow to Run Coverage for APIs I have 3 distinct API sets in my project. When I run the API coverage it is only giving me results for one of the 3. Is there a way to enable code coverage for certain API groups in my project and disable others? SolvedRe: run testcase from different testsuite from CLI Thank you so much! This avoids having to get the workspace which is what the problem was. Works great! Re: run testcase from different testsuite from CLI Thanks, I will give this a try. run testcase from different testsuite from CLI I have a test suite that contains a testcase called Send Results. It sends the results of the test case that calls it and write those results into our test case repo execution cycle. All the testsuite/cases live in the same project. When I run this in readyAPI it works fine. When I run it via the CLI I get a null pointer exection on the getProjectByName(). ERROR [SoapUI] An error occurred [Cannot invoke method getProjectByName() on null object], see error log for details ERROR [errorlog] An error occurred in the script of the Groovy Script test step [Send Result]: ERROR [errorlog] java.lang.NullPointerException: Cannot invoke method getProjectByName() on null object I understand why I get this error when running via the CLI but I don't understand how to correct it. How can I make it so that the testcases can call the getProjectByName and access the desired testcase. Code for calling the testcase: testCase = testRunner.getTestCase().getTestSuite().getProject().getWorkspace().getProjectByName("EL-Web").getTestSuiteByName("Zephyr").getTestCaseByName("Set-TestCaseStatus") def runner = testCase.run(new com.eviware.soapui.support.types.StringToObjectMap(), false) SolvedOAuth 2.0 (Azure) ReadyAPI supports OAuth 2.0 (Azure) authentication. SoapUI doesn't seem to support Azure; there is no resource field in the OAuth 2.0 profile page. Is there a way to get around this or is this support expected soon? Thanks, Billy How to ignore representations for code coverage calculations I want to get code coverage numbers without it taking the representations into the calculation. I unchecked Auto-Create Representations but that did not help. I want to keep parameters in the calculation though. Any help would be appreciated. Billy Re: How do I create a key/value array. So the issue here turned out to be a problem with the Swagger definitions. It didn't interpret the object right so no matter how I formed the json it failed. Once I figured that out I was able to make a couple of custom parameters and delete the incorrect one. I'm still not getting the response I expect but at least I've got part of it resolved. Thanks Re: skip test step using groovy I ended up getting this working but to be honest, I'm not sure what I did. :) if (expectedFeature != responseFeature) { log.info(" " + responseFeature + " != " + expectedFeature) log.info(" Fail") testRunner.gotoStepByName("TC FAIL") } else { log.info(" " + responseFeature + " == " + expectedFeature) log.info(" Pass") testRunner.gotoStepByName("TC PASS") }