Giter VIP home page Giter VIP logo

xtest-python-demo's Introduction

基本介绍

一个完整的,自动化测试过程:

  1. 编写自动化代码
  2. 运行自动化代码
  3. 提取测试结果
  4. 上传测试结果
  5. 图表化展示结果

由于测试信息相当于软件系统的“体检信息”,具备一定的隐私性。所以特将此系统修改成本地局域网系统,并开源给大家,促进行业进步。

搭建xtest

具体源码请参考:

https://github.com/x-utest

系统说明:

http://xtest.readthedocs.io/zh/latest/

搭建好的系统演示:(todo)

使用方法

Xtest系统 中获取本项目(xtest-python-demo)的配置信息:

project_id = 590c2a0947fc894a51f9e616
app_id = 3832f354872411e6a7c700163e006b26
app_key = 38342936872411e6a7c700163e006b26

修改本项目中的 ./apps/xtest_cfg.py 中的配置参数。

运行环境

  • python3.5

使用流程

文件介绍

  • ./xtest/sdk.py 对接口进行的封装和一些工具函数,使用的库文件

  • apps 接口测试的项目

    • start.py 测试项目运行
    • xtest_cfg 测试项目线上报告系统配置

说明

接口的使用规范。

使用方法

cd xtest-python-demo
./install.sh

这样 xtest 的sdk就安装成功了。

运行起示例的方法:

  1. app_id,app_key,pro_id替换成自己在系统中注册的账号提供的内容
  2. 直接运行此文件
cd xtest-python-demo
python apps/start.py

然后就可以在 xtest 系统中看到测试报告图表了 :

然后随着一次次发布版本,进行测试,可以形成项目的成长曲线 :

友情链接

使用文本文件写自动化测试用例

https://github.com/TesterlifeRaymond/doraemon

一个用来模拟服务器端返回请求的测试平台,也可以用于档板测试

http://git.oschina.net/pinghailinfeng/nbmock

项目实战

为了让本项目有更实际的意义,所以决定将 xtest 这个系统的接口自动化测试项目给开源出来,大家可以一起看和点评,同时可以一起来写。

./apps/ 目录下面就是 xtest 项目的接口自动化测试项目,用例在逐渐增加中,希望本测试项目和功能项目同步成长,让大家一起见证

一直苦于没有接口自动化项目实战经验的朋友,欢迎加入和讨论。

如果有兴趣一起交流的的朋友,可以加入 互联网软件测试开发QQ群207548681

资料分享

如果有对测试开发还没入门的小白用户,这里面有免费的精品资料(精美文档和视频资料)。

基于python的互联网软件测试开发(自动化测试)-全集合

http://www.cnblogs.com/beer/p/6381327.html

大家多分享,多传播

发布公告

1.17.5.25.1

  • 第二版的demo
  • 以项目组织的多文件
  • 开始准备写大型的测试项目了
  • 加入了对版本信息的api的测试用例

1.16.10.21.1

  • 第一版的demo
  • 单个文件的test项目

xtest-python-demo's People

Watchers

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