-
Notifications
You must be signed in to change notification settings - Fork 63
ab test
Carlyle Lee edited this page Jul 10, 2020
·
1 revision
本功能旨在通过设置AB测试参数,在Lens GUI 中配置参数,从而达到改变APP 行为的目的。通过减少编译次数,来提升工作效率。
Lens 浮窗功能区AB-T按钮。 点击后进入AB test 列表选择页面。
- AB Test 设置:
LensUtil.addABTest("booleanTest");
LensUtil.addABTest("stringTest",new String[]{"yes","no"});
LensUtil.addABTest("intTest",new int[]{2,4,6});- AB Test 使用: 根据AB test 设置的值,在代码中执行不同的逻辑。
LensUtil.getABTestBoolean("booleanTest");
LensUtil.getABTestInt("intTest");
LensUtil.getABTestString("stringTest");