
自动化测试
wozaiyizhideng
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Jenkins multijob phase 的使用(勾选Enable condition时)
1. 设置 Phase name,例如group-012. 添加 Phase jobs,例如job-01可以打开条件判断,勾选 Enable condition, 添加条件, 例如 "${JENKINS_BRANCH}" == "master"只有当branch 为 master时, job-01 才会被调用执行,其他情况直接跳过。3. 设置 job execution type,即job执行顺序, 并行/串行,根据自己情况而定。下图所示:...原创 2021-01-07 16:13:53 · 1790 阅读 · 1 评论 -
测试工具开发(2)pexpect.spawn
pexpect.spawn重点:The logfile member turns on or off logging. All input and output willbe copied to the given file object. Set logfile to None to stoplogging. This is the default. Set logfile to sys.stdout to echoeverything to standard output. The log转载 2020-06-09 22:43:07 · 1072 阅读 · 0 评论 -
测试工具开发(1)
python runner.py 123.yamlcli.logtest.logrunner.py#!/usr/bin/env python# -*- coding: utf-8 -*-import pexpectimport ostry: import urlparseexcept Exception: import urllib.parse as urlparseimport loggingimport argparsetry: ...转载 2020-06-08 19:09:39 · 716 阅读 · 0 评论