GithubHelp home page GithubHelp logo

arctanx999 / robotframework-randomname Goto Github PK

View Code? Open in Web Editor NEW

This project forked from donghaopeng/robotframework-randomname

0.0 1.0 0.0 21 KB

随机生成中文姓名

License: MIT License

Python 100.00%

robotframework-randomname's Introduction

robotframework-RandomName

随机生成中文姓名

支持python:2.x | 3.x

功能

  • 随机生成2位数的中文姓名,例如:陈某
  • 随机生成3位数的中文姓名,例如:王某某
  • 随机生成4位数的中文姓名,例如:贺连某某
  • 生成的姓名是utf-8编码格式

TODO

  • 暂时没有收录少数名族的姓名

使用

robotframework自动化测试使用

  1. 将random_name.py复制到项目的根目录

  2. 在你的test suit中添加 Library random_name.py。

  3. 库加载成功后,搜索关键字查看是否加载成功

  4. 在你的test case中直接引用关键字

  5. 举个栗子:

    ${name}=	Get Name
    log	${name}
    

python程序内使用

TODO

更新日志

20200403

  • 优化生成名字算法
  • 生成名字的长度可以自由选择
  • 可以选择生成复姓名字

robotframework-randomname's People

Contributors

donghaopeng avatar hope-999 avatar

Watchers

James Cloos 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.