当前位置: 首页 > news >正文

网站空间可以自己做服务器网站环境搭建教程

网站空间可以自己做服务器,网站环境搭建教程,福州营销型网站建设,自己在线制作图片免费下载我们一般在做自动化测试时#xff0c;用例设计之间应该是可以相互独立执行的#xff0c;没有一定的前后依赖关系的#xff0c;如果我们真的有前后依赖#xff0c;想指定用例的先后顺序#xff0c;可以用到pytest-ordering插件解决这个问题 1、安装依赖包 pip install pyt…我们一般在做自动化测试时用例设计之间应该是可以相互独立执行的没有一定的前后依赖关系的如果我们真的有前后依赖想指定用例的先后顺序可以用到pytest-ordering插件解决这个问题 1、安装依赖包 pip install pytest-ordering 2、运用 用例方法上添加装饰器pytest.mark.run(order2)用例执行顺序会以order值大小升序去调用执行 3、先按Pytest默认执行顺序根据用例的先后顺序先执行了用例1test_login_01再执行了用例2test_login_02 #!/usr/bin/env python # _*_coding:utf-8_*_ import pytestclass Test(object):def test_login_01(self):用例1print(执行用例test_login_01断言1)pytest.assume(1 1)print(执行用例test_login_01断言2)pytest.assume(2 2)def test_login_02(self):用例2print(执行用例test_login_02断言1)pytest.assume(3 3)print(执行用例test_login_02断言2)pytest.assume(True)if __name__ __main__:pytest.main([-s, test_C_01.py])C:\Users\admin\AppData\Local\Programs\Python\Python37\python.exe C:/Users/admin/Desktop/AutoTest/Test/test/test_C_01.pytest session starts platform win32 -- Python 3.7.4, pytest-5.4.2, py-1.8.1, pluggy-0.13.1 rootdir: C:\Users\admin\Desktop\AutoTest\Test\test plugins: assume-2.2.1, ordering-0.6 收集的测试用例:[Function test_login_01, Function test_login_02] collected 2 itemstest_C_01.py 执行用例test_login_01断言1 执行用例test_login_01断言2 .执行用例test_login_02断言1 执行用例test_login_02断言2 . 2 passed in 0.04s Process finished with exit code 0 4、设置了用例先后顺序为est_login_01pytest.mark.run(order2)、test_login_02pytest.mark.run(order1)调用后先执行了用例2test_login_02再执行了用例1test_login_01 #!/usr/bin/env python # _*_coding:utf-8_*_ import pytestclass Test(object):pytest.mark.run(order2)def test_login_01(self):用例1print(执行用例test_login_01断言1)pytest.assume(1 1)print(执行用例test_login_01断言2)pytest.assume(2 2)pytest.mark.run(order1)def test_login_02(self):用例2print(执行用例test_login_02断言1)pytest.assume(3 3)print(执行用例test_login_02断言2)pytest.assume(True)if __name__ __main__:pytest.main([-s, test_C_01.py])C:\Users\admin\AppData\Local\Programs\Python\Python37\python.exe C:/Users/admin/Desktop/AutoTest/Test/test/test_C_01.pytest session starts platform win32 -- Python 3.7.4, pytest-5.4.2, py-1.8.1, pluggy-0.13.1 rootdir: C:\Users\admin\Desktop\AutoTest\Test\test plugins: assume-2.2.1, ordering-0.6 收集的测试用例:[Function test_login_01, Function test_login_02] collected 2 itemstest_C_01.py 执行用例test_login_02断言1 执行用例test_login_02断言2 .执行用例test_login_01断言1 执行用例test_login_01断言2 . 2 passed in 0.06s Process finished with exit code 0
http://www.pierceye.com/news/951054/

相关文章:

  • 建一个网站素材哪里来长安城乡建设开发有限公司网站
  • 网站内容由什么组成部分组成微信静首页制作代码
  • 精品课程网站开发平台福建省建设厅网站 保证金
  • 网站后台 不能删除文章贵州建设厅网站首页
  • 重庆市园林建设有限公司网站酒店平台网站建设
  • c 网站开发实例教程超级外链工具 增加外链中
  • ip怎么做网站外贸网站建设哪里好
  • 市网站建设网站排名查询alexa
  • 西安建设网站首页网络互联网推广
  • 百度搜索网站显示图片wordpress 工作室
  • 网站页面模板 建设中集团做网站优势
  • 提供佛山网站制作大连市建设工程集团有限公司
  • 北京网站设计外包公司价格网站怎么备案在哪里
  • 视频网站广告代码网站建设怎么插图片
  • 网站建设需要敲代码吗外贸网站商城
  • wordpress增加网站网页关键词企业网站的需求是什么
  • 口碑好网站建设电话什么是搜索引擎优化用一句话概括
  • wordpress的vps建站流程ui是什么意思
  • 广州专业的网站建设公司哪家好wordpress博客优秀
  • 没有服务器建网站免费开发软件制作平台
  • 高端品牌网站建设明细报价报青岛市公共资源交易网
  • 余姚 网站建设济南网站开发薪酬
  • 一流高职院校建设工作网站野花香社区在线观看播放
  • 大连建设科技网站绿色主题 wordpress
  • 外网访问不了内网建设的网站做网站电销
  • 桂平市住房和城乡建设局网站杭州app定制公司
  • 免费做金融网站自己做网站想更换网址
  • 浙江省网站建设公司成都五月花网页设计培训
  • 江苏外贸网站建设网站开发工作流审批流
  • 自媒体论坛交流推荐网站外部优化