Write a Groovy script to loop through multiple test cases and log their results.

To loop through multiple test cases and log their results in SOAP UI using Groovy, use the following script. It iterates through all test cases in a test suite, executes them, and logs their results.
// Get the test suite
def testSuite = context.testCase.testSuite
// Loop through each test case in the test suite
testSuite.testCaseList.each { testCase ->
    // Run the test case
    def runner = testCase.run(null, false)
    
    // Log the test case name and its status
    log.info("Test Case: ${testCase.name} - Status: ${runner.getStatus()}")
}?