GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - hope-999/robotframework-RandomName: 随机生成中文姓名

BranchesTags
Open more actions menu
 
 

Latest commit

 

History

9 Commits
9 Commits

Folders and files

NameName
Last commit message
Last commit date
LICENSE
LICENSE
 
 
Pipfile
Pipfile
 
 
Pipfile.lock
Pipfile.lock
 
 
README.md
README.md
 
 
random_name.py
random_name.py
 
 
test_random_name.py
test_random_name.py
 
 

Repository files navigation

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

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

About

随机生成中文姓名

Resources

Readme
MIT license
Activity

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.