File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ DISCONNECT_LOOP="${DISCONNECT_LOOP:-true}"
1313DISCONNECT_AFTER_LOGIN_SECONDS=" ${DISCONNECT_AFTER_LOGIN_SECONDS:- 15} "
1414RUN_SECONDS=" ${RUN_SECONDS:- 180} "
1515CONNECT_STAGGER_MS=" ${CONNECT_STAGGER_MS:- 10} "
16+ SCENARIO=" ${SCENARIO:- login} "
1617
1718echo " 启动机器人压测:"
1819echo " BOT_COUNT=$BOT_COUNT "
@@ -22,6 +23,7 @@ echo " DISCONNECT_LOOP=$DISCONNECT_LOOP"
2223echo " DISCONNECT_AFTER_LOGIN_SECONDS=$DISCONNECT_AFTER_LOGIN_SECONDS "
2324echo " RUN_SECONDS=$RUN_SECONDS "
2425echo " CONNECT_STAGGER_MS=$CONNECT_STAGGER_MS "
26+ echo " SCENARIO=$SCENARIO "
2527
2628dotnet run --framework net10.0 --project GameFrameX.Client/GameFrameX.Client.csproj -- \
2729 --bot-count=" $BOT_COUNT " \
@@ -31,4 +33,5 @@ dotnet run --framework net10.0 --project GameFrameX.Client/GameFrameX.Client.csp
3133 --disconnect-loop=" $DISCONNECT_LOOP " \
3234 --disconnect-after-login-seconds=" $DISCONNECT_AFTER_LOGIN_SECONDS " \
3335 --run-seconds=" $RUN_SECONDS " \
34- --connect-stagger-ms=" $CONNECT_STAGGER_MS "
36+ --connect-stagger-ms=" $CONNECT_STAGGER_MS " \
37+ --scenario=" $SCENARIO "
You can’t perform that action at this time.
0 commit comments