Package cn.baiweigang.qtaf.ift.testcase.format

Examples of cn.baiweigang.qtaf.ift.testcase.format.FormatCase


    try {
      if (null!=allcase) {
        log.info("已读取测试用例,请勿重复读取!!");
        return false;   
      }
      FormatCase formatcase=new FormatCase();
      allcase=new ArrayList<IftTestCase>();
      formatcase.FormatCaseFromObj(getCasedatapath(),getCasedatasheetName());
      //存储用例实体列表信息
      allcase=formatcase.getTestCase()
     
      //获取测试集名称作为输出的测试报告名称
      this.reportexcelname=formatcase.getCasesetName();
      flag=true;
//      log.info("读取用例"+getCasedatapath()+"成功!");
    } catch (Exception e) {   
      log.error("读取用例"+getCasedatapath()+"失败!!");
      log.error(e.getMessage());
View Full Code Here


    if (StringUtil.IsNullOrEmpty(casePath) || StringUtil.IsNullOrEmpty(caseName)) {
      return;
    }//任一项空值或长度小于1时,不做处理
    JavaCaseInfo javaCaseInfo = new JavaCaseInfo();
    //读取用例
    FormatCase formatcase=new FormatCase();
    formatcase.FormatCaseFromObj(casePath,sheetName);
    //存储用例实体列表信息
    javaCaseInfo.setAllCase(formatcase.getTestCase());
    //获取测试集名称作为输出的测试报告名称
    this.excelReportName="测试报告_"+formatcase.getCasesetName();
    //存储javaCaseInfo其余信息
    javaCaseInfo.setPackageName(IftConf.PackageName);
    javaCaseInfo.setJavaFileName(caseName.replace(".", "_"));
    javaCaseInfo.setJavaSavePath(IftConf.JavaPath);
    javaCaseInfo.setCaseDataPathName(casePath);
View Full Code Here

TOP

Related Classes of cn.baiweigang.qtaf.ift.testcase.format.FormatCase

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.