feat: 自动化测试增加间隔时间和超时时间参数
- 新增两个输入框:间隔时间(秒)、超时时间(秒) - 间隔逻辑:收到回复后等待间隔时间再发下一条 0xB0 - 超时逻辑:超时后不等间隔,立即发下一条 - 状态机驱动:IDLE→SENT→(回复→WAIT_INTERVAL→SEND)/(超时→SEND) - 增加实时状态提示栏
This commit is contained in:
@@ -26,6 +26,14 @@
|
||||
测试次数:
|
||||
<input type="number" id="test-count" value="10" min="1" max="9999">
|
||||
</label>
|
||||
<label style="margin-left:16px;">
|
||||
间隔时间(秒):
|
||||
<input type="number" id="interval-sec" value="3" min="0" max="300" style="width:60px;">
|
||||
</label>
|
||||
<label style="margin-left:16px;">
|
||||
超时时间(秒):
|
||||
<input type="number" id="timeout-sec" value="10" min="1" max="600" style="width:60px;">
|
||||
</label>
|
||||
<button id="btn-auto" class="btn-start" onclick="toggleAuto()">开始</button>
|
||||
<div class="progress-container">
|
||||
<div class="progress-bar" id="progress-bar"></div>
|
||||
@@ -36,6 +44,7 @@
|
||||
<span>失败:<strong id="stat-failed">0</strong></span>
|
||||
<span>剩余:<strong id="stat-remaining">0</strong></span>
|
||||
</div>
|
||||
<div class="auto-status" id="auto-status" style="font-size:12px;color:#888;margin-top:4px;"></div>
|
||||
<div class="auto-time" id="auto-time" style="display:none;margin-top:8px;font-size:12px;color:#888;">
|
||||
开始:<span id="time-start">-</span> 结束:<span id="time-end">-</span>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user