Let me remind you that the initial idea behind Page Objects was to encapsulate (read: hide) logic of working with page elements. Tests should not operate with page elements / locators / XPaths. Tests should use methods of Page Object instead. So, if you even declare fields for page page elements, please, make them private!
Let methods of Page Object be public and fields private.
Otherwise OOP is just nonsense.
产品官网链接,打开 404 了
地址在哪
Shell 命令调用 pytest -s test_name.py,执行测试。
这一步有点奇怪哈,你这里都用到了 K8S,那直接做一个包含 pytest 的镜像,然后动态生成 pod,代码挂载或者 git clone 方式应该会比较舒服吧。然后 drone 是一个 gitops 的 CI 工具,在这里也没体现出用途。 感觉作者在文中少说了点什么
感觉是可以的,可以一搏
看具体需求了,如果就是发一下请求,给个 100 把
群怎么解散啦?
看来这位小老弟还沉迷于自己获得的一点点成就中,太年轻了哈,哈哈哈哈
现在 locust 都不怎么更新了,在 python3 的时代,如果只是测 http 请求的话,用 aiohttp 写一下就完事了
目测难以维护,后面的配置文件几千项,无法修改,当用例超过 1000,页面改版 3 次之后,楼主就会放弃
Let me remind you that the initial idea behind Page Objects was to encapsulate (read: hide) logic of working with page elements. Tests should not operate with page elements / locators / XPaths. Tests should use methods of Page Object instead. So, if you even declare fields for page page elements, please, make them private!
Let methods of Page Object be public and fields private.
Otherwise OOP is just nonsense.