Coder Social home page Coder Social logo

robotframework's Introduction

RobotFramework

环境安装

安装 pipenv
pip install pipenv

指定python版本,创建虚拟环境
pipenv --python 3.7

指定开发环境开始安装包
pipenv install --dev --skip-lock

注:使用selenium需要下载浏览器驱动

目录接口说明:

  • 00-TestCase(存放文本以及自动化测试用例)
    • 01-产品1(如果没有多个产品,可以把这一级目录取消)
      • 00-UI(UI操作验证产品的基本功能是否正常)
      • 01-Function(UI和API操作验证产品的所有功能是否正常,子目录按照特性树划分)
      • 02-Reliability
      • 03-Compatibility
      • 04-Internationalization
      • 05-Performance
      • 06-Security
  • 01-Resource(存放关键字以及资源引用文件)
    • Api(存放Api级别关键字的目录)
    • UI(存放UI级别关键字的目录)
    • Resource.txt(资源引用文件)
  • 02-Variables(存放公共变量和环境变量)
    • Common(存放公共环境变量)
    • Env(存放各个环境的变量)
  • 03-TestFiles(存放测试使用的数据文件)
  • 04-TestLib(存放测试使用自定义库)

格式说明

测试套格式说明:

[特性说明]


[子特性说明]

1.子特性1

2.子特性2

3.子特性3

测试用例格式说明:

[用例描述]

通过UI登录界面,检查元素是否正常


[预置条件]


[测试步骤]


[预期结果]


[实际结果]


[时间---版本---作者---验证结果]

20181113---4.0.5B001---xiaoming---失败,问题单号*********

20181113---4.0.5B002---xiaoming---通过

测试用例的tag说明:

版本号: version:4.0.5 
用例类型: 
        type:api 
        type:ui
用例等级: 
        level:0 该用例执行的失败会导致多出重要功能无法运行的
        level:1 主要包括一些功能交互相关、个种应用场景、使用频率较高的正常功能测试用例
        level:2 异常性验证
        level:3 使用频率非常低、对用户可有可无的功能
用例负责人: author:xiaoming
是否已经自动化:
            automatic:yes
            automatic:no
能进行自动化: automation:no(默认为yes)
是否稳定: stable:no(默认为yes)
不能运行的环境: 
            unenv:alpha 
            unenv:beta
            unenv:gamma
            unenv:product
存在问题单:bug:yes(默认为no)           

关键字格式说明:

[功能描述]

通过UI登录界面,检查元素是否正常


[输入参数]

1.参数1---说明1(必填:字符串)

2.参数2---说明2(必填:整形)

3.参数1---说明3(可选:列表)


[返回参数]

1.参数1---说明1(字符串)

自定义库格式说明:

"""图片转换成字符串.

获取图片地址,返回图片上的文字

Example :
| ${string} = | Image_to_String | ${image_address}
"""

robotframework's People

Contributors

lightalight avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.