资源描述
单击此处编辑母版标题样式,单击此处编辑母版文本样式,第二级,第三级,第四级,第五级,2013/11/14,#,单击此处编辑母版标题样式,单击此处编辑母版文本样式,第二级,第三级,第四级,第五级,2013/11/14,#,测试用例、数据和环境的有效管理,丁兆伟(远之),淘宝彩票,用例,数据,?,环境,(名称、优先级、验证步骤,),(文档、代码),(环境数据、接口参数,),(,数据文件、代码,),(主机、版本库、软件包、外部系统、管理脚本),(测试、预发、生产),用例,测试用例文档与代码分离,更新不同步。,不能基于测试用例的执行历史做结果比对和度量。,缺少直观展示、实时更新的度量指标。,数据,查找、添加和更新不方便。,数据需要组装。,很难实现自动化校验。,环境,环境的组织和配置不是面向测试的。,任务脚本不能统一调度,执行情况不易追踪。,TestMP,环境,数据,用例,测试环境,1,AutoSync.sh,Build.sh,Deploy.py,Verify.py,EnvFix.py,RunTest.py,TestSummary.py,Host-A,Host-B,测试环境,2,Host-C,Host-D,public class,TestSyncForJUnitTest,extends,TestSyncForJUnit,Test,TestDoc,(,project=,项目,1,name=,Top 100 reviewer,description=,Open the top reivewer page and check the badge of the 100 first,groups=,P0,prod,),public void,testTop100Reviewers()throws Exception,System.,out.println(,TestSyncForJUnitTest#testTop100Reviewers,);,DataStoreClient client=,new,DataStoreClient(testDataStoreUrl);,List dataInfoList=,client.getDataByTag(MultiOrder.class,MULTI,);,for,(DataInfo dataInfo:dataInfoList),MultiOrder order=dataInfo.getData();System.out.println(,MultiOrder:,+order);,TestMP,环境,数据,用例,谢谢,TestMP:,testmp.org,Source:,
展开阅读全文