Linux安全网 - Linux操作系统_Linux 命令_Linux教程_Linux黑客

会员投稿 投稿指南 本期推荐:
搜索:
您的位置: Linux安全网 > Linux集群 > Architecture > » 正文

soaui setup global property

来源: bochuxt 分享至:
log.info "start init environment..."

def testCase =context.testCase
def globalProps = testCase.getTestStepByName("globalEnv")

def testEnvironment=globalProps.getPropertyValue("testEnvironment")
//testEnvironment='WEBLOGIC'

log.info("test environment "+ testEnvironment)

def geometryType=globalProps.getPropertyValue("geometryType")
//geometryType='JTS'
log.info("geometryType "+ geometryType)


def tomcatProps = testCase.getTestStepByName("tomcat")
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")
}
else
{
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 udpfilename="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"));



Tags:
分享至:
最新图文资讯
1 2 3 4 5 6
验证码:点击我更换图片 理智评论文明上网,拒绝恶意谩骂 用户名:
关于我们 - 联系我们 - 广告服务 - 友情链接 - 网站地图 - 版权声明 - 发展历史