west west - Jajjdjdjjdjdjdjdjjdjdjdjdjjdjjjdjjdjdjjdjjjdjdjdj 综合讨论组

URL拦截测试-20200703

URL拦截
一·URL拦截说明
我们APP主要功能是native实现的,但是部分功能是采用Hybrid方式实现的。即内嵌部分页面WebView来展示内容。由于WebView里展示的内容多种多样,我们要拦截WebView里的超链接跳转,对部分URL对应的内容如果已经在native里实现了,就打开native界面来展示该URL对应的网页。该文档就是说明URL拦截的规则和哪些URL需要拦截。
二·拦截规则
注意这些规则只是适合当前需求,不能保证以后不会变,如有变动需两端一起更新
• 规则1:任何非我们主站的URL,除特别需求,一般都跳转到外部浏览器打开。我们的主站包括www.wegene.com和beta.wegene.com。有些例外的地方,例如合作的保险页面我们是统一在内部浏览器打开的
• 规则2:我们主站的URL,并且是我们预先定义要拦截的URL,拦截URL的跳转,打开相对应的native界面。注意URL可能携带了必须的参数
• 规则3:我们主站的URL,但是又不是我们已经预定义要拦截的URL,就采用内部浏览器打开URL
三·要拦截的URL
这里的URL列表会不定时更新,测试同事需要在更新后进行相关测试。注意匹配URL是主要匹配path,因为host可以是正式环境www.wegene.com,也可以是测试环境beta.wegene.com
这里注意/apps/#/xxx是移动web版专有的链接形式。这种形式的URL在APP里解析成URL(Uri)对象后,path会有问题(#和后面的部分被丢掉了)
1.报告相关
示例报告
报告分类列表:这里还分性别male,femail
https://www.wegene.com/demo2/male/report/运动基因
https://www.wegene.com/demo2/male/ancestry_list/
https://www.wegene.com/demo2/male/report/营养代谢
https://www.wegene.com/demo2/male/report/健康风险
https://www.wegene.com/demo2/male/report/遗传性疾病
https://www.wegene.com/demo2/male/report/药物指南
https://www.wegene.com/demo2/male/report/遗传特征
https://www.wegene.com/demo2/male/report/心理特质
https://www.wegene.com/demo2/male/lab/
https://www.wegene.com/demo2/wgs_female/wgs/
https://www.wegene.com/demo2/male/exam/
https://www.wegene.com/demo2/male/体检分析助手
报告详情页
祖源报告
https://www.wegene.com/demo2/male/ancestry/
https://www.wegene.com/demo2/male/haplogroup/y
https://www.wegene.com/demo2/male/haplogroup/mt
https://www.wegene.com/demo2/male/neandertal/
通用报告
https://www.wegene.com/demo2/male/detail/1495
https://www.wegene.com/demo2/female/detail/5
其他特殊
https://www.wegene.com/demo2/wgs_female/detail/WGS_204
https://www.wegene.com/demo2/wgs_female/detail/LAB_242
正式报告
https://www.wegene.com/report2/运动基因
https://www.wegene.com/report2/ancestry_list/
https://www.wegene.com/report2/营养代谢
https://www.wegene.com/report2/健康风险
https://www.wegene.com/report2/遗传性疾病
https://www.wegene.com/report2/药物指南
https://www.wegene.com/report2/遗传特征
https://www.wegene.com/report2/心理特质
https://www.wegene.com/report2/lab/
https://www.wegene.com/report2/研究项目
https://www.wegene.com/report2/wgs/
https://www.wegene.com/report2/exam/
https://www.wegene.com/report2/体检分析助手
报告详情页
祖源报告
https://www.wegene.com/report2/ancestry/
https://www.wegene.com/report2/haplogroup/y
https://www.wegene.com/report2/haplogroup/mt
https://www.wegene.com/report2/neandertal/
通用报告
https://www.wegene.com/report2/detail/1495
https://www.wegene.com/report2/detail/5
其他特殊
https://www.wegene.com/report2/detail/WGS_204
https://www.wegene.com/report2/detail/LAB_242
https://www.wegene.com/report2/detail/EXAM_314
社区相关
https://www.wegene.com/question/19344
文章相关
https://www.wegene.com/page2/57481
微解读相关
首页
https://www.wegene.com/crowdsourcing/
https://www.wegene.com/crowdsourcing
https://www.wegene.com/apps/#/crowdsourcing
详情页
https://www.wegene.com/crowdsourcing/details/951
移动web版微解读
https://www.wegene.com/apps/#/crowdsourcing/details/951
购物车相关
https://www.wegene.com/h5/shop/
https://www.wegene.com/shop/
https://www.wegene.com/buy
https://www.wegene.com/shop/item/13
https://www.wegene.com/shop/cart/?item_id=3&promo_code=xxx
https://www.wegene.com/shop/super_cart/?item_id=13&promo_code=xxx
研究所相关
首页
https://www.wegene.com/lab/
https://www.wegene.com/lab
https://www.wegene.com/apps/#/lab
详情页
https://www.wegene.com/survey2/205
https://www.wegene.com/survey2/?survey_id=205
基因关系
基因关系首页支持两种URL:
https://www.wegene.com/dna_family
https://www.wegene.com/dna_family/
https://www.wegene.com/relationship
https://www.wegene.com/relationship/
对比
https://www.wegene.com/dna_family/compare/?caseId=5&category=%E8%90%A5%E5%85%BB%E4%BB%A3%E8%B0%A2&caseName=%E4%B9%B3%E7%B3%96%E4%BB%A3%E8%B0%A2%E8%83%BD%E5%8A%9B
姓氏祖源
https://www.wegene.com/ancestry/explore_surname/
https://www.wegene.com/apps/#/explore_surname
https://www.wegene.com/surname/result/
https://www.wegene.com/ancestry/story/story_list/
https://www.wegene.com/ancestry/story/event_list/
https://www.wegene.com/ancestry/story/story_details/19300
https://www.wegene.com/ancestry/story/event_details/231
积分商城
https://www.wegene.com/integral/
https://www.wegene.com/rewards/item/13
基因数据修改
https://www.wegene.com/account2/setting/genomes/
祖源平均脸
https://www.wegene.com/research/face/
每日打卡任务
https://www.wegene.com/checkin
https://www.wegene.com/checkin/
保险助手
https://www.wegene.com/insurance/
https://www.wegene.com/apps/#/insurance/detail
扫药功能
https://www.wegene.com/apps/#/drug/search/approval_number/
https://www.wegene.com/drug/search/approval_number/
GNC4U
https://beta.wegene.com/gnc4u/recommend/
https://beta.wegene.com/gnc4u/onboard/
都是跳转到GNC界面
 
个人设置页
https://www.wegene.com/account2/setting/
社区个人信息页(path网页端支持UID和user_name,APP只支持UID)
https://www.wegene.com/people/383104
 
 
2020-07-03 • IP属地深圳
按热门排序    按默认排序

2 个回复

west - Jajjdjdjjdjdjdjdjjdjdjdjdjjdjjjdjjdjdjjdjjjdjdjdj
个人设置页
https://www.wegene.com/account2/setting/
社区个人信息页(path网页端支持UID和user_name,APP只支持UID)
https://www.wegene.com/people/383104
west - Jajjdjdjjdjdjdjdjjdjdjdjdjjdjjjdjjdjdjjdjjjdjdjdj
主要功能入口:

祖源平均脸:已登录,有报告

保险基因助手:已登录,有微基因报告

体检分析助手:已登录,有微基因报告

营养补充:已登录,有微基因报告

扫药功能: 已登录,有报告

祖源故事: 已登录

要回复问题请先登录注册