log.info "start init environment..."
def testCase =cont
ext.testCase
def globalProps = testCase.getTestStepByName("globalEnv")
def testEnvironment=globalProps.getPropertyValue("testEnvironment")
//testEnvironment='WEBLOGIC'
log.info("test environment "+ testEnvironment)
def geome
tryType=globalProps.getPropertyValue("geometryType")
//geometryType='JTS'
log.info("geometryType "+ geometryType)
def to
mcatProps = testCase.getTestStepByName("tom
cat")
def weblogicProps = testCase.getTestStepByName("weblogic")
def tomcatProps_JTS = testCase.getTestStepByName("tomcat_JTS")
def weblogicProps_JTS = testCase.getTestStepByName("weblogic_JTS")
def hostProps=''
if(testEnvironment=="TOMCAT")
{
if(geometryType=="ST")
{
hostProps=tomcatProps
log.info("
setup.html' target='_blank'>
setup tomcat server and ST Geometry")
}
e
lse
{
hostProps=tomcatProps_JTS
log.info("setup tomcat server and JTS Geometry")
}
}
else
{
if(geometryType=="ST")
{
hostProps=weblogicProps
log.info("setup weblogic server")
}
else
{
hostProps=weblogicProps_JTS
log.info("setup weblogic server")
}
}
def endpoint=hostProps.getPropertyValue("endpoint")
log.info("endpoint "+ endpoint)
def loadWapCall=hostProps.getPropertyValue("loadWapCall")
log.info("loadWapCall "+ loadWapCall)
def clipToFacilityBoundaryCall=hostProps.getPropertyValue("clipToFacilityBoundaryCall")
log.info("clipToFacilityBoundaryCall "+ clipToFacilityBoundaryCall)
def reassignToWorkAreaCall=hostProps.getPropertyValue("reassignToWorkAreaCall")
log.info("reassignToWorkAreaCall "+ reassignToWorkAreaCall)
def undoCall=hostProps.getPropertyValue("undoCall")
log.info("undoCall "+ undoCall)
log.info("setup init properties")
testCase.setPropertyValue("endpoint", endpoint)
testCase.setPropertyValue("loadWapCall", loadWapCall)
testCase.setPropertyValue("clipToFacilityBoundaryCall", clipToFacilityBoundaryCall)
testCase.setPropertyValue("reassignToWorkAreaCall", reassignToWorkAreaCall)
testCase.setPropertyValue("undoCall", undoCall)
log.info "Init environment complete for Load Global Property Test case"
def props_ST = new java.util.Properties();
def path='C:\\flexAWADIndigo2\\awad_indigo\\awad\\gis\\soapUITestCase\\SoapUI Load Test Report'
log.info(path)
def udp
filename="TampaUDPWKTJson.properties"
def udpJson=path+"/"+udpfilename//"C:\\flexAWADIndigo2\\awad_indigo\\awad\\gis\\soapUITestCase\\SoapUI Load Test Report\\TampaUDPWKTJson.properties"
log.info()
props_ST.load( new FileInputStream(udpJson) );
log.info("Load property file -->"+props_ST.getProperty("2"));