父实验下有:子实验1:手机品牌=华为,子实验2:手机品牌!=华为。
一、 验证只走父实验,默认进对照组,不进实验组。
1. 设置父实验的流量为100%
2. 在终端执行curl
curl --location '(sdk地址)/service/2/abtest_config/' \ --header 'Content-Type: application/json' \ --header 'Cookie: install_id=testid; ttreq=1$test' \ --data '{ "header": { "device_brand": "华为", "user_unique_id": "测试账号", "aid": "appid",(appid) "browser": "chrome", "app_version":"1.2.3", "age":30, "user_int":33, "ab_url": "https://www.baidu44.com"(测试父实验的测试URL) } }'
3. 查看执行结果,很长,可以自己转为json
{"message":"success","data":{"$ab_modification":{"val":[],"vid":"328"},"258b1a4afe6e4921a49c9b0c3f81a485":{"val":"b","vid":"201"},"2614b37ca5d3446488233f5fc94863f0":{"val":"b","vid":"273"},"5c4ecccbf1284798a06e886e4f437fe3":{"val":"a","vid":"326"},"7f1a23d576ca4070982448cb56aee357":{"val":"b","vid":"221"},"82a841e2681049cabb0428f23688ed92":{"val":"b","vid":"257"},"862d204de51949f198dca1191f074373":{"val":"b","vid":"239"},"8f9fedc139a4422d96086964e90d9d06":{"val":"a","vid":"320"},"a23864a66440487085db213e811d391b":{"val":"b","vid":"117"},"aed27ee2161f425ebee722b7ad94afde":{"val":"b","vid":"183"},"c76d85f55be844229e7ec3e1ef17d34c":{"val":"b","vid":"235"},"c930af0f199c40ab8bace9562d5c7fa7":{"val":"b","vid":"255"},"cb5a2fc7f1fd4df7b3480b2a0086132b":{"val":"a","vid":"282"},"d2ce17b6327b4bffb4b5835f9256667a":{"val":"b","vid":"253"},"e84fb190770040ca9c2d1516d85f51f8":{"val":"b","vid":"249"},"param_20240507_131341_240":{"val":"red","vid":"48"},"test_77":{"val":"4","vid":"141"}}}C0F6GX2HG7:~ bytedance$
4. 通过campaign的id查flight id,通过flight id 查父实验的对照组id
select * from abtest_campaign where campaign的id=40\G;(\G结果按列打印)
select * from abtest_version_new where flight_id=查的结果\G;
标签:campaign,val,vid,验证,--,分流,实验,id From: https://www.cnblogs.com/chuting/p/18307836