“”"
@author: zhh
@contact: 1007591488@qq.com
@site: https://blog.csdn.net/smilehaoh
@software: PyCharm
@file: TestRunner.py
@describe:使用图形用户界面,简单写一个登陆的界面
@time: 2019/5/8
“”"
import easygui
if easygui.ccbox(“是否执行用例”,choices=(“不执行”,“马上执行”)):
easygui.msgbox(“取消执行”)
else:
msg = “请输入用户名和密码”
title = “用户登录接口”
user_info = []
user_info = easygui.multpasswordbox(msg, title, (“用户名”, “密码”))
try:
if “张浩浩” and “123456” in user_info:
print"此处执行测试用例")
else:
easygui.msgbox(“用户名或密码错误,请重新输入”)
user_info = easygui.multpasswordbox(msg, title, (“用户名”, “密码”))
except:
easygui.msgbox(“确定不执行用例吗?”)
python图形化界面
最新推荐文章于 2024-08-26 01:12:30 发布