最基础的启动脚本编写

xiaoxiao2021-02-27  570

#!/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

测试人员做自动化测试时,有时免不了要写一些自动化脚本。这个是最基本的启动脚本,记下来,以备以后查看。

转载请注明原文地址: https://www.6miu.com/read-866.html

最新回复(0)