bytedance / Fastbot_Android

Fastbot(2.0) is a model-based testing tool for modeling GUI transitions to discover app stability problems
Other
1.01k stars 235 forks source link

reuseModel 中存在重复数据 #273

Open binzo opened 4 months ago

binzo commented 4 months ago

通过 https://github.com/bytedance/Fastbot_Android/blob/main/native/agent/ModelReusableAgent.cpp#L487 此处输出的log发现,fbm文件中存在重复的数据,同一个action hash下会存在多条相同activity的数据,如下: 02-07 11:03:14.772 5890 5890 D [Fastbot]: load model hash: 4325384338484416857 xxxActivity 17 02-07 11:03:14.772 5890 5890 D [Fastbot]: load model hash: 4325384338484416857 xxxActivity 176 02-07 11:03:14.772 5890 5890 D [Fastbot]: load model hash: 4325384338484416857 xxxActivity 34

查看ReuseEntryM类型:typedef std::map<stringPtr, int> ReuseEntryM

ReuseEntryM类型是否应该修改为 typedef std::map<stringPtr, int, Comparator<std::string>> ReuseEntryM

如果还是需要使用原写法,是否可以解释下原因?