#!/bin/bash
DIRNAME=
'dirname $0'
RUNHOME=
'cd $DIRNAME;pwd'
echo "###########start test app############"
JAVA_OPTS=
"-Xms512m -Xmx512m -Djava.security.egd=file:/dev/./urandom"
JAVA_OPTS=
"$JAVA_OPTS -DsystemType=paas"
JAVA_OPTS=
"$JAVA_OPTS -javaagent:/home/**/**.jar"
JAVA_OPTS=
"$JAVA_OPTS -D**.agentId=**"
echo ===================RUN INFO =======================
echo @RUNHOME@
$RUNHOME
echo @JAVA_HOME@
$JAVA_HOME
echo @JAVA_OPTS@
$JAVA_OPTS
echo ====================================================
JAVA=
"$JAVA_HOME/bin/java"
PACKAGE=$(basename
$RUNHOME/*.jar)
$JAVA $JAVA_OPTS -jar
$RUNHOME/
$PACKAGE
测试人员做自动化测试时,有时免不了要写一些自动化脚本。这个是最基本的启动脚本,记下来,以备以后查看。