测试之家
  • 社区
  • 问答
  • 招聘
  • 社区学堂新
  • 开源项目
  • 活动
  • Wiki
  • 注册
  • 登录
会员
shieber (幺叁叁)
第 22624 位会员 / 2017-11-14
2 篇帖子 • 53 条回帖
0 关注者
9 正在关注
28 收藏
GitHub Public Repos
  • ant-chat 29

    基于ant-design-x 的 AI Web客户端

  • x 0

    Craft AI-driven interfaces effortlessly 🤖

  • magic-resume 0

    free online AI resume editor

  • whitexie.github.io 0

    blog

  • gemini-playground 0

    Deploy a Gemini multimodal chat website in 10 seconds, Severless! 只需准备一个Gemini API Key,10...

  • easy-largescreen 0

  • openai-gemini 0

    Gemini ➜ OpenAI API proxy. Serverless!

  • config-inspector-issue 0

    A visual tool for inspecting and understanding your ESLint flat configs.

  • electron-heart-rate 0

  • electron-demo 0

More on GitHub
  • 個人信息
  • 個人專欄
  • 帖子
  • 回帖
  • 收藏
  • 正在關注
  • 關注者
  • 急!!!测试一个页面时一定要以另一个页面为前提,测试类该怎么写?????? at 2022年02月14日

    是测试 APP 内嵌的 H5 么?
    如果知道RGBCWPage页面的 url, 从原生切换到 webview 之后,可以调用driver.get(RGBCWUrl)直接进入到 RGBCWPage 页面

  • 关于 “测试数据准备的 3.0 时代” 的疑惑 at 2021年07月17日

    应该是极客时间里的 软件测试 52 讲

  • 【请教】pytest+mitmproxy 怎么联合使用? at 2021年06月22日

    不好意思,前面误导了,回想了下代理原理,客户端这边是拿不到代理篡改的 request;硬要拿的话可以在 mitmproxy 这边把修改后的 request 写到本地文件里,然后 requests 这边发送完请求之后,读本地文件

  • 【请教】pytest+mitmproxy 怎么联合使用? at 2021年06月21日

    打印被篡改的 headers,可以通过 response 来打印

    import requests
    r = resquests.get('132132131')
    print(r.request.hreaders)
    
  • pytest 中有失败用例会导致 Jenkins 的 job 构建失败吗? at 2021年06月11日

    嗯嗯,的确是这样, 昨天调整完 allure 的配置之后,就和你一样的了,有失败的用例就 unstable 了,尝试在 allure 后面执行exit 0, 不过没有效果;感觉要从插件代码入手,或者 pipeline 有什么函数可以改变构建状态的了;
    不过这个应该不影响吧?

  • pytest 中有失败用例会导致 Jenkins 的 job 构建失败吗? at 2021年06月10日

    你在 script 的末尾加 exit 0 试试,gitlab 的 ci/cd 我没用过😂

  • pytest 中有失败用例会导致 Jenkins 的 job 构建失败吗? at 2021年06月10日

    我那个是我 allure 的配置问题, 我刚创建了流水线,没配置发送邮件,执行完是success

    pipeline {
        agent any
        environment{
            HHH = "lalalala"
        }
        stages {
            stage('Hello') {
                steps {
                     sh '''cd /var/lib/jenkins/workspace/API_test
                     bash -x run.sh
                     '''
                }
                post{
                    always{
                        allure jdk: 'JDK', results: [[path: "./allure-results"]]
                    }
                    success{
                    echo "1234"
                    }
                }
            }
        }
    }
    
  • pytest 中有失败用例会导致 Jenkins 的 job 构建失败吗? at 2021年06月10日

    你看下控制台的日志有句
    Build step 'Allure Report' changed build result to UNSTABLE
    应该是 allure 插件在生成测试报告的时候,发现有失败的用例,然后把构建状态置为 UNSTABLE了

  • pytest 中有失败用例会导致 Jenkins 的 job 构建失败吗? at 2021年06月10日

    还有种方式就是把执行脚本放在一个 shell 脚本文件中,在文件末尾exit 0

  • pytest 中有失败用例会导致 Jenkins 的 job 构建失败吗? at 2021年06月10日

    pycharm 应该是捕获异常然后返回 0 了, jenkins 不会对对脚本做异常处理,可以用用 shell 的异常处理,让 pytes 执行完不论是否有失败的用例都 exit 0

  • pytest 中有失败用例会导致 Jenkins 的 job 构建失败吗? at 2021年06月10日

    ERROR: script returned exit code 1

    用例执行失败,退出程序时,返回的 code 1,只有返回值为 0 的情况下, jenkins 才会认定构建成功;

  • 请教一个 sql 查询问题 at 2021年06月02日
    SELECT
        a.id,
        a.category 
    FROM
        t a
        INNER JOIN ( SELECT category, MAX( `value` ) AS 'value' FROM t GROUP BY category ) AS b ON a.category = b.category 
        AND a.`value` = b.`value`
    
  • iPhone has denied the launch request. at 2021年05月21日


    使用 xcode 运行 test 时出现上面这个错误
    手机打开设置 - 通用-描述文件与设备管理 ,信任开发者证书,重新运行,成功

  • iPhone has denied the launch request. at 2021年05月21日

    是手机上的,你手机上找到 WebDriverAgentRunner 这个应用点击下,会有提示

  • iPhone has denied the launch request. at 2021年05月20日

    because it has an invalid code signature, inadequate entitlements or its profile has not been explicitly trusted by the user.

    看这个错误,应用应该是安装了, 只是签名证书没有信任,在设置里面找找看,忘记具体在哪个地方了;

  • 【请教】怎么将 pytest 的日志写入 allure at 2021年05月10日

    你这个有点奇怪,没有显示短信信息

    一般运行之后,报错的话,会显示报错信息的

  • python 如何发送带有 p12 证书的请求 at 2021年04月22日

    https://2.python-requests.org/en/master/user/advanced/#verification
    试下官方文档的写法;

    requests.get('https://github.com', verify='/path/to/certfile')
    
  • httprunner3 中,py 脚本设置 CSV 参数化,大佬指点一二吗 at 2021年04月17日

    不知道你os.system()是放在哪执行的,可以单独创建个 py 文件来执行测试,在用例跑完之后再通过os.system()来生成报告, 示例
    run.py

    import pytest
    import os
    
    if __name__ == '__main__':
        pytest.main(['request_with_parameters_test.py', '-s', '-vvv', '--alluredir', 'reports/xml'])
        os.system('allure generate -c -o reports/html')
    
    
  • httprunner3 中,py 脚本设置 CSV 参数化,大佬指点一二吗 at 2021年04月16日

    用 pycharm 要设置用 pytest 运行

  • httprunner3 中,py 脚本设置 CSV 参数化,大佬指点一二吗 at 2021年04月16日

    你运行的时候不是用 pytest 吧?

  • httprunner3 中,py 脚本设置 CSV 参数化,大佬指点一二吗 at 2021年04月16日
    from httprunner import Parameters
    
    
    class TestCaseRequestWithParameters(HttpRunner):
        @user1ize(
            "param",
            Parameters(
                {
                    "user_agent": ["iOS/10.1", "iOS/10.2"],
                    "username-password": "${parameterize(request_methods/account.csv)}",
                    "app_version": "${get_app_version()}",
                }
            ),
        )
        def test_start(self, param):
            super().test_start(param)
    
    

    1.参数化写法不对;
    2.需要通过 pytest 命令执行
    示例链接:https://github.com/httprunner/httprunner/blob/master/examples/postman_echo/request_methods/request_with_parameters_test.py

  • httprunner3 中,py 脚本设置 CSV 参数化,大佬指点一二吗 at 2021年04月16日

    也不知道你啥需求,建议补充下,然后 github 上有参数化的示例可以先看看
    https://github.com/httprunner/httprunner/blob/master/examples/postman_echo/request_methods/request_with_parameters.yml

  • pytest 的 conftest fixture 和 pytest.mark.parametrize 如何协调? at 2021年04月08日

    非必须在同一个 py 文件中, 你可以看下 python 的反射

  • pytest 基础(2) at 2021年04月02日

    scope="module" 可以实现多个.py 跨文件共享前置

    这个不对哦,module 表示每个.py 文件里只调用一次
    关于 with,可以搜下python 上下文管理器

  • 关于社区牛皮糖小广告不断的处理意见征求!社区同学有没有人能搞定这些轰炸的?求指导! at 2021年03月05日

    🙋

  • 1
  • 2
  • 3
  • 下一页
  • 关于 / 活跃用户 / 中国移动互联网测试技术大会 / 反馈 / Github / API / 帮助推广
    TesterHome社区,测试之家,由众多测试工程师组织和维护的技术社区,致力于帮助新人成长,提高测试地位,推进质量发展。Inspired by RubyChina
    友情链接 WeTest腾讯质量开放平台 / InfoQ / 掘金 / SegmentFault / 测试窝 / 百度测试吧 / IT大咖说
    简体中文 / 正體中文 / English

    ©testerhome.com 测试之家   渝ICP备2022001292号
      渝公网安备 50022202000435号    版权所有 © 重庆年云聚力信息技术有限公司