Giter Site home page Giter Site logo

coderobotframework's Introduction

CodeRobotFramework(CRF)

不想填表格?文本模式编辑没有直接写代码的感觉?试试code版robotframework吧, 基于unittest编写测试用例, 完全支持robotframework内置关键字和扩展库关键字, 可同时生成HTML格式测试报告和JUnit XML格式报告, 可直接集成到Jenkins中执行并查看结果。

需要安装的模块

pip install -U unittest-xml-reporting html-testRunner requests selenium \
pymysql pymongo robotframework robotframework-seleniumlibrary \
robotframework-requests robotframework-databaselibrary \
robotframework-ftplibrary robotframework-appiumlibrary \
robotframework-archivelibrary robotframework-difflibrary \
robotframework-mongodbLibrary 

可选安装的模块

pip install -U robotframework-selenium2library \
robotframework-extendedselenium2library robotframework-httplibrary \
robotframework-faker robotframework-ncclient robotremoteserver

目录结构说明

├─Core          框架核心库
│  ├─Keywords   函数库
│  └─Runner     运行库
├─Library       自定义库
├─Resource      资源
│  ├─TestData   测试数据
│  │  ├─Files   普通文件
│  │  └─SQL     SQL文件
│  └─Variables  配置/变量
├─Results       测试结果
└─TestCase      测试用例

用例注释格式说明

编写用例时增加注释可以对测试用例进行必要的描述, 同时在生成测试报告时会获取注释内容以便在测试报告中显示测试标题、操作步骤和预期结果。

import unittest

class TestSuite(unittest.TestCase):
    def test_case(self):
        """用例编号_用例标题
        操作步骤:
        1、
        2、
        3、
        ======
        预期结果:
        1、
        2、
        """
        pass

Ps: 用例编号_用例标题必须写在第一行, 换行编写操作步骤和预期结果, 操作步骤与预期结果之间用======分隔开, 至少包含6个等号。

coderobotframework's People

Contributors

bstester 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.