新增小区第三方均价接口(ApiCode:3004)及测试脚本
- AverageStatistics 新增 xingfuliEsfPrice、maitianEsfPrice 字段 - AverageStatisticsService 新增 findRecentMonths 方法(查询最近N个月数据) - PropertyController 新增 thirdPartyPriceAction(/property/thirdPartyPrice) - 返回幸福里、安居客、房天下、链家、城市房产、吉屋、淘房365、麦田均价 - 仅取二手房价格,最多回溯3个月补全空值 - 新增 opentest 测试脚本:数据提取 + 多线程接口测试 - 更新 claude 技能文档:修正本地端口、seaweed集合字段说明、Groovy static 限制 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -476,6 +476,16 @@ groovy -cp "target/classes;target/classes/lib/*" \
|
||||
5. ❌ 异常时终止整个测试
|
||||
6. ❌ 手动管理线程池(除非有特殊需求,否则用工具类)
|
||||
7. ❌ 忘记处理线程安全问题(使用工具类可避免)
|
||||
8. ❌ 脚本顶层使用 `static` 修饰符 — **Groovy 脚本不支持顶层 `static`**,会报编译错误。应改为 `final`:
|
||||
```groovy
|
||||
// ❌ 错误
|
||||
static final String TOKEN = "xxx"
|
||||
static final String HOST = "http://..."
|
||||
|
||||
// ✅ 正确
|
||||
final String TOKEN = "xxx"
|
||||
final String HOST = "http://..."
|
||||
```
|
||||
|
||||
## 测试完成后的分析
|
||||
|
||||
|
||||
Reference in New Issue
Block a user