友盟 集成测试

目的

友盟的合一测试可以实时看到日志,不需要等到第二天。但一旦利用安卓真机调试的话依然有点麻烦,所以记录一下自家使用模拟器集成测试的步骤。

官网:http://www.umeng.com/

累加测试设施

1、安装DeviceID.apk(用来查看设备音讯)

2、安装成功后,在装备上开辟(推荐 海马玩模拟器)

3、软件会自动获取到 IMEI 和WIFI MAC Address
,这两个值在友盟的后台需要动用

4、在友盟的 合龙测试后台
中添加设备,如下图所示

图片 1

输入获取到的device_id,mac,例如:{“device_id”:”xxxx”,”mac_address”:”xxxx”}
名称:填设备名称

注:前提是利用已集成友盟SDK

5、打包APK,安装好在模拟器上,启动APP,在友盟的后台日志就会实时刷新,如下图所示

 

图片 2

 

Android查看调试Log?

设置好Android SDK后,在android sdk的
xxx/android-sdk/tools/monitor.bat 双击打开monitor.bat就会弹出Android Device
Monitor

打闹启动将来看Log中的 MobclickAgent     的消息

假诺log中看不到mac_address,在AndroidManifest.xml中添加

<uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/>

UALogEntry(client_stats:ClientStats(successful_requests:13,
failed_requests:0, last_request_spent_ms:115),
app_info:AppInfo(key:556bd4ac67e58e72040029b3, version:1.10810
Development, version_index:10810,
package_name:com.cosmosbox.StrikeHero, sdk_type:ANDROID,
sdk_version:5.5.3.0, channel:Development, wrapper_type:Unity,
wrapper_version:1.6, vertical_type:1), device_info:DeviceInfo(device_id:357656050778701,
idmd5:55528b4fefa7e5aea9096a38cf6eb8d, mac_address:,
model:C6802, cpu:ARMv7 Processor rev 0 (v7l), os:Android,
os_version:4.3, resolution:Resolution(height:1824, width:1080),
device_board:MSM8974, device_brand:Sony,
device_manutime:1389197219000, device_manufacturer:Sony,
device_manuid:14.2.A.1.136, device_name:C6802),
misc_info:MiscInfo(time_zone:8, language:zh, country:TW, carrier:CTM,
access_type:ACCESS_TYPE_WIFI),
sessions:[Session(id:43DB0F728E6AA7AEC7897836E637F248,
start_time:1433232881322, end_time:1433234025158, duration:1143836,
pages:[Page(page_name:Home, duration:8299),
Page(page_name:ChapterList, duration:3591), Page(page_name:Home,
duration:47018), Page(page_name:Home, duration:14051),
Page(page_name:ChapterList, duration:1610), Page(page_name:LevelList,
duration:57496), Page(page_name:ChapterList, duration:5041),
Page(page_name:LevelList, duration:324340), Page(page_name:Home,
duration:51677), Page(page_name:ChapterList, duration:3630),
Page(page_name:LevelList, duration:2892)],
traffic:Traffic(upload_traffic:211819, download_traffic:97588))],
imprint:Imprint(property:{umid=ImprintValue(value:55528b4fefa7e5aea9096a38cf6eb8d,
ts:1433230219745, guid:91fb418336fde92a273ff42021da5fd812753a2f)},
version:1, checksum:517f8b423fa10ae18b2d47bb09f8d12d),
id_tracking:IdTracking(snapshots:{android_id=IdSnapshot(identity:99bcbdb70940cf02,
ts:1433230386545, version:1),
utdid=IdSnapshot(identity:VW1Z/6ojZY4DAHyxJck9p/+P, ts:1433230386548,
version:1), serial=IdSnapshot(identity:EP7327JRUT, ts:1433230386545,
version:1), imei=IdSnapshot(identity:357656050778701, ts:1433230386544,
version:1), idmd5=IdSnapshot(identity:55528b4fefa7e5aea9096a38cf6eb8d,
ts:1433230386545, version:1)}, journals:[]))

 

友盟SDK for
unity开发文档:http://dev.umeng.com/game_analytics/game-unity/integration#1

游戏总计集成测试文档:
http://dev.umeng.com/game_analytics/gt/game-test#1

实时日记截图

下边是局部自身在对接友盟SDK的实时日志截图

触发行为:点金手

图片 3

 

触发行为:买VIP

图片 4

 

触发行为:恢复生机体力

图片 5

 

触发行为:抽奖

图片 6

至于错误日志

关联过友盟的开发人士,现阶段还不可能捕捉到C#的Error日志,只帮助Java级的错误日志

相关文章