Contributions
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, BillySolved6 years agoPlace ReadyAPI QuestionsReadyAPI Questions1.5KViews0likes3CommentsHow 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?Solved6 years agoPlace ReadyAPI QuestionsReadyAPI Questions1.9KViews0likes2Comments- 6 years agoPlace ReadyAPI QuestionsReadyAPI Questions2.9KViews0likes1Comment
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)Solved6 years agoPlace ReadyAPI QuestionsReadyAPI Questions2.9KViews0likes3CommentsHow 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. Billy7 years agoPlace ReadyAPI QuestionsReadyAPI Questions906Views0likes1CommentRe: 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. Thanks7 years agoPlace ReadyAPI QuestionsReadyAPI Questions1.2KViews0likes0CommentsRe: 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") }7 years agoPlace ReadyAPI QuestionsReadyAPI Questions6.2KViews0likes1Comment