Hi EmBer,
Please use the below code which changes the header property across all testsuite(including all testcase and teststep)
testSuiteList = project.getTestSuites()
testSuiteList.each{
testSuite = project.getTestSuiteByName(it.key)
testCaseList = testSuite.getTestCases()
log.info "TestSuite :: $testSuite.name"
testCaseList.each{
testCase = testSuite.getTestCaseByName(it.key)
wsdlTestSteps = testCase.getTestStepsOfType( com.eviware.soapui.impl.wsdl.teststeps.WsdlTestRequestStep.class ) //only WsdlTestRequest steps
wsdlTestSteps.each{
it.properties['headerproperty1'].value = "headerproperty1 value")
it.properties['headerproperty2'].value = "headerproperty 2 value")
}
}
}