zoukankan      html  css  js  c++  java
  • 018如何建立自动化框架 how to bulid the framwork

    本讲包括:

    一. objective 

    二. How to bulid 

    三. Keyview of frawork (关键视图)

    四. conclusion

    automation framwork:自动化测试框架  aotumate自动化 function 作用、函数 

    一、 for the detail,you are right,but for general, we can build a basic fram to fit the general purpose,here,what I'm taking is about this.

    二、Example:

    Purpose 1:this rule:

    UI action(Click,Edit....)

    Handle(处理) the unexpected error

    Validation(验证),return the result of this : pass/fail 

     Purpose 2:Create function library(创建数据函数库),this is very userful concept(观点、概念) to reduce 减少 you code quantity 代码量 and increase your code quality质量

    of course, accroding the different situation,we can separate the function to the different level 

    commom level

    high level

    here ,I just create a function lib,and its contains two functions(meanwhile they are cases)

    Functing CreateTest()

       steps 

       validation

        return value

    End Function 

    Fuction Bulidnumber()

      steps

      validation 

      return value

    End Fuction

    Purpose 3: Output the result.There is important after execute all the cases.that's result analysis,so we need to make the result clear and easy to read and analysis.

    Purpose 4:Define the drive

    This is the most important things in the whole framwork,like the brain of human

    三、Keyview of framwork

           Diver(opened in QTP)

    Test(Excel file)  Function Lib(VBS file)  Results(Excel file)

    四、Conclusion

    This is a high level framwork for the automation testing strategy,for the detail execution 执行,we still need to add more things to make it more powerful.

  • 相关阅读:
    Hadoop开发周期(一):基础环境安装
    Laravel5中使用阿里大于(鱼)发送短信验证码
    整理关于web项目如何防止CSRF和XSS攻击的方法
    TP5.0 excel 导入导出
    eoLinker_业内领先的api管理平台
    ImageIcon读取文件 规格严格
    JPDA Trace好不容易找到的 规格严格
    FileLocker 规格严格
    debugging information corrupt; recompile module 规格严格
    Windows架设FTP 规格严格
  • 原文地址:https://www.cnblogs.com/jiangkeji/p/4063278.html
Copyright © 2011-2022 走看看