请问怎么自动生成异常用例,然后开源了吗?
优秀如你,学习~
大佬,你真的好牛逼哦;我是菜鸟,来学习的。
请问具体如何运行项目,有详细的文档吗,然后在 linux 如何部署;sql 文件有吗,求跑起来。。。最好有个学习群呢
谢楼主,可以了
D:\echart2\HttpRunner-master\examples\HelloWorld\tests\testcases>hrun smoketest.yml
Traceback (most recent call last):
File "C:\Users\dell\AppData\Local\Programs\Python\Python36\Scripts\hrun-script.py", line 11, in
load_entry_point('HttpRunner==0.9.0', 'console_scripts', 'hrun')()
File "c:\users\dell\appdata\local\programs\python\python36\lib\site-packages\httprunner\cli.py", line 70, in main_ate
task_suite = TaskSuite(testset_path)
File "c:\users\dell\appdata\local\programs\python\python36\lib\site-packages\httprunner\task.py", line 57, in init
testsets = testcase.load_testcases_by_path(testcase_path)
File "c:\users\dell\appdata\local\programs\python\python36\lib\site-packages\httprunner\testcase.py", line 201, in load_testcases_by_path
testset = load_test_file(path)
File "c:\users\dell\appdata\local\programs\python\python36\lib\site-packages\httprunner\testcase.py", line 418, in load_test_file
test_info = get_testinfo_by_reference(ref_name, "suite")
File "c:\users\dell\appdata\local\programs\python\python36\lib\site-packages\httprunner\testcase.py", line 444, in get_testinfo_by_reference
test_info = get_test_definition(func_name, ref_type)
File "c:\users\dell\appdata\local\programs\python\python36\lib\site-packages\httprunner\testcase.py", line 479, in get_test_definition
raise exception.SuiteNotFound(err_msg)
httprunner.exception.SuiteNotFound: suite setup_and_reset not found!
楼主好,请问运行 demo 以后报这个错,这是什么问题?
QQ 四三五一七一二三四 欢迎指点和交流。 目前框架用的主流 page object + 数据驱动方式
rf 才是真关键字驱动,其他都是伪驱动,至于数据驱动,我用的 ddt,不过 ddt 有一个大 bug,超过 10 条 case 的表格数据,顺序就会发生错乱,而不是从上到下的顺序读取。如果用 unpack 虽然可以顺序读取,但太傻还需要把每个 case 以数组参数形式列出,那就不是真正意义的数据驱动了。我看了下 java 版数据驱动用的反射机制。愿意和楼主交流,用例用 py 写,缺点不方便非测试人员。我 qq 号码:四三五一七一二三四
你好,作者,之前就看到您有一个帖子是关于 uiautomator2 的问题,如下
[ADB] No io.appium.uiautomator2.server process found to kill, continuing...
[UiAutomator2] Starting uiautomator2 server v0.0.8 with cmd: am,instrument,-w,io.appium.uiautomator2.server.test/android.support.test.runner.AndroidJUnitRunner
[UiAutomator2] running command...
adb -s 4NT7N17406015564 shell am instrument -w io.appium.uiautomator2.server.test/android.support.test.runner.AndroidJUnitRunner...
[UiAutomator2] Waiting for UiAutomator2 to be online...
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8200/wd/hub/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8200/wd/hub/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8200/wd/hub/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8200/wd/hub/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8200/wd/hub/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8200/wd/hub/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8200/wd/hub/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8200/wd/hub/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8200/wd/hub/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8200/wd/hub/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8200/wd/hub/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8200/wd/hub/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8200/wd/hub/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8200/wd/hub/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8200/wd/hub/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8200/wd/hub/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8200/wd/hub/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8200/wd/hub/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8200/wd/hub/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8200/wd/hub/status] with no body
[debug] [UiAutomator2] Deleting UiAutomator2 session
[debug] [UiAutomator2] Deleting UiAutomator2 server session
[UiAutomator2] Did not get confirmation UiAutomator2 deleteSession worked; Error was: Error: Trying to proxy a session command without session id
您说你已经解决了,但并没有说明原因,我也遇到了。请问您一下具体的原因和解决办法,谢谢。因为那个帖子已经被关闭了,所以只能到这里来询问了,谢谢。我的 qq 435171234