工作流程
事件流程
逻辑问题修正
注意事项:
1.当页面类型为纯录入页面(不存在读取)时,不需要添加测试数据,直接跳过该步骤。
2.构造假数据数据绑定时:若有信息点为单个文件类型,请使用信息结构图中所给的默认数据(默认URL);若默认数据不存在,请询问技术经理。
3. 构造假数据存在表间id关联时,可以事先用已知确定id来构造多张表的数据并实现表间关联。 具体操作点击该处链接
4. 构造的假数据中不会存在有Boolean类型的数据。(true/false等以String类型数据存在)
5. 文件类(图片、视频等)的数据不需要构造假数据,直接使用信息结构图中的默认值!
6. 构造假数据前请查看数据库是否有对应假数据,若有直接使用(不符合使用条件直接找技术经理进行修改);若没有,先告诉技术经理,让其添加,再按照下面的步骤进行假数据构造,测试完成后,请删除自己构造的假数据。
* 生成测试数据前提是经理在对应字段 设置了 测试数据生成规则(在 信息结构图 -- 字段 -- 属性 -- 测试数据规则 中填写):, 常见设置测试规则如下: 点击查看
1.在站点编辑界面打开信息结构图
2.在信息结构图界面中备份原有数据
3.编辑测试数据
3.1打开编辑数据
3.2 根据信息结构图要求修改数据
3.3 数据格式要求(标准时间模板:2017-03-10T21:43:55Z)
3.4 编辑其他表测试数据
4.导入假数据
5.同步假数据
5.1
5.2
6.在页面测试数据测试完成后,注意清空和恢复数据
7.当更新信息结构图后,对数据库进行更新:
//%26%23x7F51%3B%26%23x540D%3B%26%23x6216%3B%26%23x5168%3B%26%23x540D%3B%0A%7B%7Binternet.userName%7D%7D%0A%7B%7Bname.findName%7D%7D%0A//%26%23x968F%3B%26%23x673A%3B%26%23x7ED9%3B%26%23x51FA%3B%26%23x6570%3B%26%23x7EC4%3B%26%23x4E2D%3B%26%23x4EFB%3B%26%23x4E00%3B%26%23x9879%3B%26%23xFF0C%3B%26%23x53EF%3B%26%23x7528%3B%26%23x4E8E%3B%26%23x72B6%3B%26%23x6001%3B%26%23xFF0C%3B%26%23x5982%3B%26%23x662F%3B%26%23x3001%3B%26%23x5426%3B%26%23x7B49%3B%26%23xFF0C%3B%26%23x4F1A%3B%26%23x968F%3B%26%23x673A%3B%26%23x7ED9%3B%26%23x51FA%3B%26%23x662F%3B%26%23x6216%3B%26%23x5426%3B%0A%7B%7Brandom.arrayElement%28%5B%26quot%3Bmale%26quot%3B%2C%26quot%3Bfamale%26quot%3B%5D%29%7D%7D%0A//%26%23x4E00%3B%26%23x53E5%3B%26%23x77ED%3B%26%23x53E5%3B%0A%7B%7Blorem.sentence%7D%7D%0A//%26%23x56FD%3B%26%23x5BB6%3B%26%23xFF08%3Bcountry%26%23xFF09%3B%26%23xFF0C%3B%26%23x5DDE%3B%26%23xFF08%3Bstate%26%23xFF09%3B%26%23xFF0C%3B%26%23x5E02%3B%26%23xFF08%3Bcity%26%23xFF09%3B%26%23xFF0C%3B%26%23x4E61%3B%26%23x6751%3B%26%23xFF08%3Bcounty%26%23xFF09%3B%0A%7B%7Baddress.country%7D%7D%0A//%26%23x65F6%3B%26%23x95F4%3B%26%23xFF0C%3B%26%23x81EA%3B%26%23x5B9A%3B%26%23x4E49%3B%26%23x5982%3B%26%23x4E0B%3B%0A201%7B%7Brandom.number%28%7B%26quot%3Bmin%26quot%3B%3A1%2C%26quot%3Bmax%26quot%3B%3A7%7D%29%7D%7D-0%7B%7Brandom.number%28%7B%26quot%3Bmin%26quot%3B%3A1%2C%26quot%3Bmax%26quot%3B%3A9%7D%29%7D%7D-%7B%7Brandom.number%28%7B%26quot%3Bmin%26quot%3B%3A10%2C%26quot%3Bmax%26quot%3B%3A28%7D%29%7D%7DT%7B%7Brandom.number%28%7B%26quot%3Bmin%26quot%3B%3A10%2C%26quot%3Bmax%26quot%3B%3A23%7D%29%7D%7D%3A%7B%7Brandom.number%28%7B%26quot%3Bmin%26quot%3B%3A10%2C%26quot%3Bmax%26quot%3B%3A59%7D%29%7D%7D%3A55Z%0A//%26%23x804C%3B%26%23x4E1A%3B%26%23x9886%3B%26%23x57DF%3B%0A%7B%7Bname.jobArea%7D%7D%0A//%26%23x516C%3B%26%23x53F8%3B%26%23x540D%3B%26%23x79F0%3B%0A%7B%7Bcompany.companyName%7D%7D%0A//%26%23x5730%3B%26%23x5740%3B%0A%7B%7Baddress.city%7D%7D%20%7B%7Baddress.streetAddress%7D%7D%20%7B%7Baddress.secondaryAddress%7D%7D%0A//%26%23x6BB5%3B%26%23x843D%3B%0A%7B%7Blorem.paragraphs%7D%7D%0A//%26%23x968F%3B%26%23x673A%3B%26%23x6570%3B%26%23xFF0C%3B%26%23x6700%3B%26%23x5927%3B10%0A%7B%7Brandom.number%2810%29%7D%7D%0A//8%26%23x4F4D%3B%26%23x6570%3B%26%23x5B57%3B%0A%7B%7Bfinance.account%288%29%7D%7D%0A//%26%23x90AE%3B%26%23x7BB1%3B%20%2C%20%26%23x4F8B%3B%26%23x5982%3B%3A%20Robin78@gmail.com%0A%7B%7Binternet.email%7D%7D%0A//%26%23x624B%3B%26%23x673A%3B%26%23x53F7%3B%20%2C%20%26%23x4F8B%3B%26%23x5982%3B%3A%2015592448967%0A155%7B%7Bfinance.account%7D%7D%0A//%26%23x5BCC%3B%26%23x6587%3B%26%23x672C%3B%20%2C%20%26%23x4F8B%3B%26%23x5982%3B%3A%20%26lt%3Bp%26gt%3BYou%20can%26apos%3Bt%20hack%20the%20pixel%20without%20indexing%20the%20primary%20FTP%20capacitor%21%26lt%3B/p%26gt%3B%0A%26lt%3Bp%26gt%3B%7B%7Bhacker.phrase%7D%7D%26lt%3B/p%26gt%3B%0A%20//%26%23x6574%3B%26%23x578B%3B%20%2C%20%26%23x4F8B%3B%26%23x5982%3B%3A%2067758%0A%26%23x5728%3B%26%23x4FE1%3B%26%23x606F%3B%26%23x7ED3%3B%26%23x6784%3B%26%23x56FE%3B%26%23x4E2D%3B%26%23x8BBE%3B%26%23x7F6E%3B%26%23x4E3A%3B%26%23x6574%3B%26%23x578B%3B%20%26%23x5373%3B%26%23x53EF%3B%0A%20//%26%23x6D6E%3B%26%23x70B9%3B%26%23x578B%3B%20%2C%20%26%23x4F8B%3B%26%23x5982%3B%3A%20123.55%0A%7B%7Bfinance.amount%7D%7D
示例网站: https://rawgit.com/Marak/faker.js/master/examples/browser/index.html