feat: add time limit for StartToGoal

This commit is contained in:
lilong.129
2025-07-04 14:23:09 +08:00
parent e5a8ee107b
commit 147020cbe5
17 changed files with 513 additions and 26 deletions

View File

@@ -65,7 +65,7 @@
"method": "start_to_goal",
"params": "浪漫餐厅是一款经营类游戏,以下是游戏的基本规则说明:\n1、点击右下角锅铲开始任务\n2、将棋子拖拽至相同棋子可升级生成新棋子\n3、拖拽相同棋子时被部分遮挡的棋子只能作为拖拽终点不能作为拖拽起点\n4、当游戏界面中没有相同棋子时可以点击游戏页面中央的购物袋生成新的棋子\n5、若不知道如何操作请按照游戏指引进行游玩\n\n请严格按照以上游戏规则开始游戏\n",
"options": {
"timeout": 300,
"time_limit": 300,
"pre_mark_operation": true
}
}

View File

@@ -42,7 +42,7 @@ func TestGameRomanticRestaurant(t *testing.T) {
Android().
StartToGoal(userInstruction,
option.WithPreMarkOperation(true),
option.WithTimeout(300)), // 5 minutes
option.WithTimeLimit(300)), // 5 minutes
hrp.NewStep("退出抖音 app").
Android().
AppTerminate("$package_name"),