试用前准备:全班模拟压测、评分并发 6→16、手动备份与恢复
- test/classroom.ts:45 个虚拟学生走一遍登录、运行、自测、提交,统计每个环节等多久 - 评分并发可配置(SIM_GRADE_CONCURRENCY,默认 16),提交队列同时评的份数跟着走; 2 核实测项目 8 任务 3 全班自测从约 4 分钟降到约 1.5 分钟 - 检查的默认等待 2 秒→5 秒,机器忙时不再误判正确的程序 - 删除学生时删除他的数据库(编号会重新用给新学生) - deploy/backup.sh、deploy/restore.sh:手动备份到宿主机 backups/,恢复前先备份 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
e8058376dd
commit
982b1297aa
23 files changed
+479
-25
No files matched your search
@@ -14,7 +14,7 @@
|
||||
steps:
|
||||
- text: { control: txt_ip, value: 192.168.2.50 }
|
||||
- click: btn_open
|
||||
- expect: { control: pictureBox1, image: true, within: 3s, desc: 显示摄像机拍到的图像 }
|
||||
- expect: { control: pictureBox1, image: true, desc: 显示摄像机拍到的图像 }
|
||||
|
||||
- title: 能控制摄像机上下左右旋转
|
||||
steps:
|
||||
@@ -35,6 +35,6 @@
|
||||
steps:
|
||||
- text: { control: txt_ip, value: 192.168.2.50 }
|
||||
- click: btn_open
|
||||
- expect: { control: pictureBox1, image: true, within: 3s, desc: 显示摄像机拍到的图像 }
|
||||
- expect: { control: pictureBox1, image: true, desc: 显示摄像机拍到的图像 }
|
||||
- click: btn_camera
|
||||
- expect: { savedImage: Camera/, desc: 把照片保存到 Camera 文件夹 }
|
||||
@@ -5,15 +5,15 @@
|
||||
- click: pic_security
|
||||
- expect: { window: Security, desc: 点"校园安防"打开 Security 窗体 }
|
||||
- expect: { camera: on }
|
||||
- expect: { control: pic_video, image: true, within: 3s, desc: 显示摄像机拍到的图像 }
|
||||
- expect: { control: pic_video, image: true, desc: 显示摄像机拍到的图像 }
|
||||
|
||||
- title: 人体入侵有文字提示
|
||||
steps:
|
||||
- click: pic_security
|
||||
- board: { infrared: true }
|
||||
- expect: { control: lb_infrared, text: 发现入侵, within: 3s, desc: 红外对射被遮挡时显示"发现入侵" }
|
||||
- expect: { control: lb_infrared, text: 发现入侵, desc: 红外对射被遮挡时显示"发现入侵" }
|
||||
- board: { infrared: false }
|
||||
- expect: { control: lb_infrared, text: 正常, within: 3s }
|
||||
- expect: { control: lb_infrared, text: 正常 }
|
||||
|
||||
- title: 摄像机可以调整方向
|
||||
steps:
|
||||
@@ -33,7 +33,7 @@
|
||||
- title: 摄像机能拍照并保存图片
|
||||
steps:
|
||||
- click: pic_security
|
||||
- expect: { control: pic_video, image: true, within: 3s }
|
||||
- expect: { control: pic_video, image: true }
|
||||
- click: btn_camera
|
||||
- expect: { savedImage: Camera/, desc: 把照片保存到 Camera 文件夹 }
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
steps:
|
||||
- clock: '09:00:00'
|
||||
- click: pic_security
|
||||
- expect: { control: pic_video, image: true, within: 3s }
|
||||
- expect: { control: pic_video, image: true }
|
||||
- click: btn_camera
|
||||
- click: btn_history
|
||||
- expect: { window: SecurityCameraData, desc: 点"查看历史图像"打开历史报警记录窗体 }
|
||||
@@ -17,7 +17,7 @@
|
||||
steps:
|
||||
- clock: '09:00:00'
|
||||
- click: pic_security
|
||||
- expect: { control: pic_video, image: true, within: 3s }
|
||||
- expect: { control: pic_video, image: true }
|
||||
- click: btn_camera
|
||||
- clock: '10:30:00'
|
||||
- click: btn_camera
|
||||
@@ -34,7 +34,7 @@
|
||||
steps:
|
||||
- clock: '09:00:00'
|
||||
- click: pic_security
|
||||
- expect: { control: pic_video, image: true, within: 3s }
|
||||
- expect: { control: pic_video, image: true }
|
||||
- click: btn_camera
|
||||
- click: btn_history
|
||||
- pick: { control: dateTimePicker1, value: '2024-01-01' }
|
||||
|
||||
Reference in new issue
Block a user