Package cn.baiweigang.qtaf.toolkit.util

Examples of cn.baiweigang.qtaf.toolkit.util.FreeMakerUtil


   * @return boolean 创建成功返回true,失败返回false
   */
  public boolean creatJavaSrcFile() {
    boolean flag=false;
    try {
      FreeMakerUtil creatjava=new FreeMakerUtil();
      flag=creatjava.CreateJavaFile(getCasetemplatepath(), getJavaFileData(), getJavasavepath()+getCasename()+".java");
      String javaFilePathTmp = "";
      log.info("创建"+getCasename()+"对应的.java文件成功:"+javaFilePathTmp);
      flag=true
    } catch (Exception e) {
      log.error("创建"+getCasename()+"对应的.java文件成功失败");
View Full Code Here


   * 根据用例数据信息创建对应的.java源文件
   * @return boolean 创建成功返回true,失败返回false
   */
  public boolean creatJavaSrcFile(JavaCaseInfo javaInfo) {
    String javaFilePathTmp = javaInfo.getJavaSavePath()+javaInfo.getJavaFileName()+".java";
    FreeMakerUtil creatjava=new FreeMakerUtil();
    if (creatjava.CreateJavaFile(IftConf.TemplatePath, getJavaFileData(javaInfo), javaFilePathTmp)) {
      log.info("创建"+javaInfo.getJavaFileName()+"对应的.java文件成功:"+javaFilePathTmp);
      return true;
    }
    log.error("创建"+javaInfo.getJavaFileName()+"对应的.java文件成功失败:"+javaFilePathTmp);
    return false;
View Full Code Here

TOP

Related Classes of cn.baiweigang.qtaf.toolkit.util.FreeMakerUtil

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.