(在这里粘贴traceback或其他报错信息)
[Start running..]
save log in 'D:/Air_Test/logs\7c2609c6e2bde6a70ae8b909a4d8ad3f'
this is jpg path:
D:/Air_Test/logs\7c2609c6e2bde6a70ae8b909a4d8ad3f\1557979217.jpg
D:\Air_Test\AirtestIDE_2019-04-16_py3_win64\selenium\webdriver\remote\webdriver.py:1031: UserWarning: name used for saved screenshot does not match file type. It should end with a `.png` extension
"type. It should end with a `.png` extension", UserWarning)
this is jpg path:
D:/Air_Test/logs\7c2609c6e2bde6a70ae8b909a4d8ad3f\1557979219.jpg
D:\Air_Test\AirtestIDE_2019-04-16_py3_win64\selenium\webdriver\remote\webdriver.py:1031: UserWarning: name used for saved screenshot does not match file type. It should end with a `.png` extension
"type. It should end with a `.png` extension", UserWarning)
this is jpg path:
D:/Air_Test/logs\7c2609c6e2bde6a70ae8b909a4d8ad3f\1557979220.jpg
D:\Air_Test\AirtestIDE_2019-04-16_py3_win64\selenium\webdriver\remote\webdriver.py:1031: UserWarning: name used for saved screenshot does not match file type. It should end with a `.png` extension
"type. It should end with a `.png` extension", UserWarning)
this is jpg path:
D:/Air_Test/logs\7c2609c6e2bde6a70ae8b909a4d8ad3f\1557979221.jpg
D:\Air_Test\AirtestIDE_2019-04-16_py3_win64\selenium\webdriver\remote\webdriver.py:1031: UserWarning: name used for saved screenshot does not match file type. It should end with a `.png` extension
"type. It should end with a `.png` extension", UserWarning)
[12:00:22][INFO]<airtest.core.api> Try finding:
Template(D:\test_related\Airtest\test_cases\sirius_demo.air\tpl1557909501004.png)
[12:00:22][DEBUG]<airtest.core.api> try match with SURFMatching
[12:00:23][DEBUG]<airtest.aircv.keypoint_base> find_best_result() run time is 0.54 s.
[12:00:23][DEBUG]<airtest.core.api> try match with TemplateMatching
[12:00:23][DEBUG]<airtest.aircv.template_matching> [Template] threshold=0.7, result={'result': (1102, 147), 'rectangle': ((1010, 120), (1010, 175), (1194, 175), (1194, 120)), 'confidence': 0.7079585790634155}
[12:00:23][DEBUG]<airtest.aircv.template_matching> find_best_result() run time is 0.05 s.
[12:00:23][DEBUG]<airtest.core.api> match result: {'result': (1102, 147), 'rectangle': ((1010, 120), (1010, 175), (1194, 175), (1194, 120)), 'confidence': 0.7079585790634155}
D:\Air_Test\AirtestIDE_2019-04-16_py3_win64\selenium\webdriver\remote\webdriver.py:1031: UserWarning: name used for saved screenshot does not match file type. It should end with a `.png` extension
"type. It should end with a `.png` extension", UserWarning)
[12:00:23][DEBUG]<airtest.core.api> try match with SURFMatching
[12:00:23][DEBUG]<airtest.core.api> 'Not enough feature points in input images !'
[12:00:23][DEBUG]<airtest.core.api> try match with TemplateMatching
[12:00:23][DEBUG]<airtest.aircv.template_matching> [Template] threshold=0.6, result={'result': (733, 230), 'rectangle': ((699, 214), (699, 247), (768, 247), (768, 214)), 'confidence': 0.9995008111000061}
[12:00:23][DEBUG]<airtest.aircv.template_matching> find_best_result() run time is 0.04 s.
[12:00:23][DEBUG]<airtest.core.api> match result: {'result': (733, 230), 'rectangle': ((699, 214), (699, 247), (768, 247), (768, 214)), 'confidence': 0.9995008111000061}
D:\Air_Test\AirtestIDE_2019-04-16_py3_win64\selenium\webdriver\remote\webdriver.py:1031: UserWarning: name used for saved screenshot does not match file type. It should end with a `.png` extension
"type. It should end with a `.png` extension", UserWarning)
[12:00:25][INFO]<airtest.core.api> Try finding:
Template(D:\test_related\Airtest\test_cases\sirius_demo.air\tpl1557907382510.png)
[12:00:25][DEBUG]<airtest.core.api> try match with SURFMatching
[12:00:25][DEBUG]<airtest.aircv.keypoint_base> [SURF] threshold=0.7, result={'result': (100, 403), 'rectangle': [(10, 186), (10, 620), (190, 620), (190, 186)], 'confidence': 0.6810221523046494}
[12:00:25][DEBUG]<airtest.aircv.keypoint_base> find_best_result() run time is 0.40 s.
[12:00:25][DEBUG]<airtest.core.api> try match with TemplateMatching
[12:00:25][DEBUG]<airtest.aircv.template_matching> [Template] threshold=0.7, result={'result': (101, 404), 'rectangle': ((11, 187), (11, 621), (192, 621), (192, 187)), 'confidence': 0.9993710517883301}
[12:00:25][DEBUG]<airtest.aircv.template_matching> find_best_result() run time is 0.06 s.
[12:00:25][DEBUG]<airtest.core.api> match result: {'result': (101, 404), 'rectangle': ((11, 187), (11, 621), (192, 621), (192, 187)), 'confidence': 0.9993710517883301}
D:\Air_Test\AirtestIDE_2019-04-16_py3_win64\selenium\webdriver\remote\webdriver.py:1031: UserWarning: name used for saved screenshot does not match file type. It should end with a `.png` extension
"type. It should end with a `.png` extension", UserWarning)
[12:00:26][DEBUG]<airtest.core.api> try match with SURFMatching
[12:00:26][DEBUG]<airtest.aircv.keypoint_base> find_best_result() run time is 0.20 s.
[12:00:26][DEBUG]<airtest.core.api> try match with TemplateMatching
[12:00:26][DEBUG]<airtest.aircv.template_matching> [Template] threshold=0.6, result={'result': (104, 181), 'rectangle': ((20, 166), (20, 196), (189, 196), (189, 166)), 'confidence': 0.9995023012161255}
[12:00:26][DEBUG]<airtest.aircv.template_matching> find_best_result() run time is 0.04 s.
[12:00:26][DEBUG]<airtest.core.api> match result: {'result': (104, 181), 'rectangle': ((20, 166), (20, 196), (189, 196), (189, 166)), 'confidence': 0.9995023012161255}
D:\Air_Test\AirtestIDE_2019-04-16_py3_win64\selenium\webdriver\remote\webdriver.py:1031: UserWarning: name used for saved screenshot does not match file type. It should end with a `.png` extension
"type. It should end with a `.png` extension", UserWarning)
D:\Air_Test\AirtestIDE_2019-04-16_py3_win64\selenium\webdriver\remote\webdriver.py:1031: UserWarning: name used for saved screenshot does not match file type. It should end with a `.png` extension
"type. It should end with a `.png` extension", UserWarning)
[12:00:27][DEBUG]<airtest.core.api> try match with SURFMatching
[12:00:28][DEBUG]<airtest.core.api> 'Not enough feature points in input images !'
[12:00:28][DEBUG]<airtest.core.api> try match with TemplateMatching
[12:00:28][DEBUG]<airtest.aircv.template_matching> [Template] threshold=0.6, result={'result': (78, 224), 'rectangle': ((43, 213), (43, 236), (113, 236), (113, 213)), 'confidence': 0.9992191195487976}
[12:00:28][DEBUG]<airtest.aircv.template_matching> find_best_result() run time is 0.04 s.
[12:00:28][DEBUG]<airtest.core.api> match result: {'result': (78, 224), 'rectangle': ((43, 213), (43, 236), (113, 236), (113, 213)), 'confidence': 0.9992191195487976}
D:\Air_Test\AirtestIDE_2019-04-16_py3_win64\selenium\webdriver\remote\webdriver.py:1031: UserWarning: name used for saved screenshot does not match file type. It should end with a `.png` extension
"type. It should end with a `.png` extension", UserWarning)
D:\Air_Test\AirtestIDE_2019-04-16_py3_win64\selenium\webdriver\remote\webdriver.py:1031: UserWarning: name used for saved screenshot does not match file type. It should end with a `.png` extension
"type. It should end with a `.png` extension", UserWarning)
[12:00:29][DEBUG]<airtest.core.api> try match with SURFMatching
[12:00:30][DEBUG]<airtest.aircv.keypoint_base> [SURF] threshold=0.6, result={'result': (1177, 163), 'rectangle': [(1142, 147), (1142, 179), (1212, 179), (1212, 147)], 'confidence': 0.7275830209255219}
[12:00:30][DEBUG]<airtest.aircv.keypoint_base> find_best_result() run time is 0.31 s.
[12:00:30][DEBUG]<airtest.core.api> match result: {'result': (1177, 163), 'rectangle': [(1142, 147), (1142, 179), (1212, 179), (1212, 147)], 'confidence': 0.7275830209255219}
D:\Air_Test\AirtestIDE_2019-04-16_py3_win64\selenium\webdriver\remote\webdriver.py:1031: UserWarning: name used for saved screenshot does not match file type. It should end with a `.png` extension
"type. It should end with a `.png` extension", UserWarning)
D:\Air_Test\AirtestIDE_2019-04-16_py3_win64\selenium\webdriver\remote\webdriver.py:1031: UserWarning: name used for saved screenshot does not match file type. It should end with a `.png` extension
"type. It should end with a `.png` extension", UserWarning)
[12:00:31][DEBUG]<airtest.core.api> try match with SURFMatching
[12:00:32][DEBUG]<airtest.aircv.keypoint_base> find_best_result() run time is 0.36 s.
[12:00:32][DEBUG]<airtest.core.api> try match with TemplateMatching
[12:00:32][DEBUG]<airtest.aircv.template_matching> [Template] threshold=0.6, result={'result': (1106, 164), 'rectangle': ((1075, 147), (1075, 181), (1137, 181), (1137, 147)), 'confidence': 0.987464189529419}
[12:00:32][DEBUG]<airtest.aircv.template_matching> find_best_result() run time is 0.04 s.
[12:00:32][DEBUG]<airtest.core.api> match result: {'result': (1106, 164), 'rectangle': ((1075, 147), (1075, 181), (1137, 181), (1137, 147)), 'confidence': 0.987464189529419}
D:\Air_Test\AirtestIDE_2019-04-16_py3_win64\selenium\webdriver\remote\webdriver.py:1031: UserWarning: name used for saved screenshot does not match file type. It should end with a `.png` extension
"type. It should end with a `.png` extension", UserWarning)
D:\Air_Test\AirtestIDE_2019-04-16_py3_win64\selenium\webdriver\remote\webdriver.py:1031: UserWarning: name used for saved screenshot does not match file type. It should end with a `.png` extension
"type. It should end with a `.png` extension", UserWarning)
[12:00:34][DEBUG]<airtest.core.api> try match with SURFMatching
[12:00:34][DEBUG]<airtest.aircv.keypoint_base> find_best_result() run time is 0.33 s.
[12:00:34][DEBUG]<airtest.core.api> try match with TemplateMatching
[12:00:34][DEBUG]<airtest.aircv.template_matching> [Template] threshold=0.6, result={'result': (1254, 166), 'rectangle': ((1222, 151), (1222, 182), (1287, 182), (1287, 151)), 'confidence': 0.9992009401321411}
[12:00:34][DEBUG]<airtest.aircv.template_matching> find_best_result() run time is 0.04 s.
[12:00:34][DEBUG]<airtest.core.api> match result: {'result': (1254, 166), 'rectangle': ((1222, 151), (1222, 182), (1287, 182), (1287, 151)), 'confidence': 0.9992009401321411}
D:\Air_Test\AirtestIDE_2019-04-16_py3_win64\selenium\webdriver\remote\webdriver.py:1031: UserWarning: name used for saved screenshot does not match file type. It should end with a `.png` extension
"type. It should end with a `.png` extension", UserWarning)
this is jpg path:
D:/Air_Test/logs\7c2609c6e2bde6a70ae8b909a4d8ad3f\1557979235.jpg
D:\Air_Test\AirtestIDE_2019-04-16_py3_win64\selenium\webdriver\remote\webdriver.py:1031: UserWarning: name used for saved screenshot does not match file type. It should end with a `.png` extension
"type. It should end with a `.png` extension", UserWarning)
D:\Air_Test\AirtestIDE_2019-04-16_py3_win64\selenium\webdriver\remote\webdriver.py:1031: UserWarning: name used for saved screenshot does not match file type. It should end with a `.png` extension
"type. It should end with a `.png` extension", UserWarning)
[12:00:39][DEBUG]<airtest.core.api> try match with SURFMatching
[12:00:39][DEBUG]<airtest.core.api> 'Not enough feature points in input images !'
[12:00:39][DEBUG]<airtest.core.api> try match with TemplateMatching
[12:00:39][DEBUG]<airtest.aircv.template_matching> [Template] threshold=0.6, result={'result': (75, 265), 'rectangle': ((41, 254), (41, 277), (110, 277), (110, 254)), 'confidence': 0.9992488622665405}
[12:00:39][DEBUG]<airtest.aircv.template_matching> find_best_result() run time is 0.04 s.
[12:00:39][DEBUG]<airtest.core.api> match result: {'result': (75, 265), 'rectangle': ((41, 254), (41, 277), (110, 277), (110, 254)), 'confidence': 0.9992488622665405}
D:\Air_Test\AirtestIDE_2019-04-16_py3_win64\selenium\webdriver\remote\webdriver.py:1031: UserWarning: name used for saved screenshot does not match file type. It should end with a `.png` extension
"type. It should end with a `.png` extension", UserWarning)
D:\Air_Test\AirtestIDE_2019-04-16_py3_win64\selenium\webdriver\remote\webdriver.py:1031: UserWarning: name used for saved screenshot does not match file type. It should end with a `.png` extension
"type. It should end with a `.png` extension", UserWarning)
[12:00:41][DEBUG]<airtest.core.api> try match with SURFMatching
[12:00:41][DEBUG]<airtest.aircv.keypoint_base> [SURF] threshold=0.6, result={'result': (1177, 163), 'rectangle': [(1142, 147), (1142, 179), (1212, 179), (1212, 147)], 'confidence': 0.7275830209255219}
[12:00:41][DEBUG]<airtest.aircv.keypoint_base> find_best_result() run time is 0.27 s.
[12:00:41][DEBUG]<airtest.core.api> match result: {'result': (1177, 163), 'rectangle': [(1142, 147), (1142, 179), (1212, 179), (1212, 147)], 'confidence': 0.7275830209255219}
D:\Air_Test\AirtestIDE_2019-04-16_py3_win64\selenium\webdriver\remote\webdriver.py:1031: UserWarning: name used for saved screenshot does not match file type. It should end with a `.png` extension
"type. It should end with a `.png` extension", UserWarning)
D:\Air_Test\AirtestIDE_2019-04-16_py3_win64\selenium\webdriver\remote\webdriver.py:1031: UserWarning: name used for saved screenshot does not match file type. It should end with a `.png` extension
"type. It should end with a `.png` extension", UserWarning)
[12:00:43][DEBUG]<airtest.core.api> try match with SURFMatching
[12:00:43][DEBUG]<airtest.aircv.keypoint_base> find_best_result() run time is 0.25 s.
[12:00:43][DEBUG]<airtest.core.api> try match with TemplateMatching
[12:00:43][DEBUG]<airtest.aircv.template_matching> [Template] threshold=0.6, result={'result': (1106, 164), 'rectangle': ((1075, 147), (1075, 181), (1137, 181), (1137, 147)), 'confidence': 0.9874595403671265}
[12:00:43][DEBUG]<airtest.aircv.template_matching> find_best_result() run time is 0.04 s.
[12:00:43][DEBUG]<airtest.core.api> match result: {'result': (1106, 164), 'rectangle': ((1075, 147), (1075, 181), (1137, 181), (1137, 147)), 'confidence': 0.9874595403671265}
D:\Air_Test\AirtestIDE_2019-04-16_py3_win64\selenium\webdriver\remote\webdriver.py:1031: UserWarning: name used for saved screenshot does not match file type. It should end with a `.png` extension
"type. It should end with a `.png` extension", UserWarning)
D:\Air_Test\AirtestIDE_2019-04-16_py3_win64\selenium\webdriver\remote\webdriver.py:1031: UserWarning: name used for saved screenshot does not match file type. It should end with a `.png` extension
"type. It should end with a `.png` extension", UserWarning)
[12:00:45][DEBUG]<airtest.core.api> try match with SURFMatching
[12:00:45][DEBUG]<airtest.core.api> 'Not enough feature points in input images !'
[12:00:45][DEBUG]<airtest.core.api> try match with TemplateMatching
[12:00:45][DEBUG]<airtest.aircv.template_matching> [Template] threshold=0.6, result={'result': (75, 307), 'rectangle': ((35, 297), (35, 318), (115, 318), (115, 297)), 'confidence': 0.9858896136283875}
[12:00:45][DEBUG]<airtest.aircv.template_matching> find_best_result() run time is 0.03 s.
[12:00:45][DEBUG]<airtest.core.api> match result: {'result': (75, 307), 'rectangle': ((35, 297), (35, 318), (115, 318), (115, 297)), 'confidence': 0.9858896136283875}
D:\Air_Test\AirtestIDE_2019-04-16_py3_win64\selenium\webdriver\remote\webdriver.py:1031: UserWarning: name used for saved screenshot does not match file type. It should end with a `.png` extension
"type. It should end with a `.png` extension", UserWarning)
D:\Air_Test\AirtestIDE_2019-04-16_py3_win64\selenium\webdriver\remote\webdriver.py:1031: UserWarning: name used for saved screenshot does not match file type. It should end with a `.png` extension
"type. It should end with a `.png` extension", UserWarning)
[12:00:47][DEBUG]<airtest.core.api> try match with SURFMatching
[12:00:47][DEBUG]<airtest.aircv.keypoint_base> [SURF] threshold=0.6, result={'result': (1177, 163), 'rectangle': [(1142, 147), (1142, 179), (1212, 179), (1212, 147)], 'confidence': 0.7275830209255219}
[12:00:47][DEBUG]<airtest.aircv.keypoint_base> find_best_result() run time is 0.23 s.
[12:00:47][DEBUG]<airtest.core.api> match result: {'result': (1177, 163), 'rectangle': [(1142, 147), (1142, 179), (1212, 179), (1212, 147)], 'confidence': 0.7275830209255219}
D:\Air_Test\AirtestIDE_2019-04-16_py3_win64\selenium\webdriver\remote\webdriver.py:1031: UserWarning: name used for saved screenshot does not match file type. It should end with a `.png` extension
"type. It should end with a `.png` extension", UserWarning)
D:\Air_Test\AirtestIDE_2019-04-16_py3_win64\selenium\webdriver\remote\webdriver.py:1031: UserWarning: name used for saved screenshot does not match file type. It should end with a `.png` extension
"type. It should end with a `.png` extension", UserWarning)
[12:00:49][DEBUG]<airtest.core.api> try match with SURFMatching
[12:00:49][DEBUG]<airtest.aircv.keypoint_base> find_best_result() run time is 0.27 s.
[12:00:49][DEBUG]<airtest.core.api> try match with TemplateMatching
[12:00:49][DEBUG]<airtest.aircv.template_matching> [Template] threshold=0.6, result={'result': (1106, 164), 'rectangle': ((1075, 147), (1075, 181), (1137, 181), (1137, 147)), 'confidence': 0.9874595403671265}
[12:00:49][DEBUG]<airtest.aircv.template_matching> find_best_result() run time is 0.04 s.
[12:00:49][DEBUG]<airtest.core.api> match result: {'result': (1106, 164), 'rectangle': ((1075, 147), (1075, 181), (1137, 181), (1137, 147)), 'confidence': 0.9874595403671265}
D:\Air_Test\AirtestIDE_2019-04-16_py3_win64\selenium\webdriver\remote\webdriver.py:1031: UserWarning: name used for saved screenshot does not match file type. It should end with a `.png` extension
"type. It should end with a `.png` extension", UserWarning)
D:\Air_Test\AirtestIDE_2019-04-16_py3_win64\selenium\webdriver\remote\webdriver.py:1031: UserWarning: name used for saved screenshot does not match file type. It should end with a `.png` extension
"type. It should end with a `.png` extension", UserWarning)
[12:00:51][DEBUG]<airtest.core.api> try match with SURFMatching
[12:00:51][DEBUG]<airtest.aircv.keypoint_base> find_best_result() run time is 0.26 s.
[12:00:51][DEBUG]<airtest.core.api> try match with TemplateMatching
[12:00:51][DEBUG]<airtest.aircv.template_matching> [Template] threshold=0.6, result={'result': (1254, 166), 'rectangle': ((1222, 151), (1222, 182), (1287, 182), (1287, 151)), 'confidence': 0.9992009401321411}
[12:00:51][DEBUG]<airtest.aircv.template_matching> find_best_result() run time is 0.04 s.
[12:00:51][DEBUG]<airtest.core.api> match result: {'result': (1254, 166), 'rectangle': ((1222, 151), (1222, 182), (1287, 182), (1287, 151)), 'confidence': 0.9992009401321411}
D:\Air_Test\AirtestIDE_2019-04-16_py3_win64\selenium\webdriver\remote\webdriver.py:1031: UserWarning: name used for saved screenshot does not match file type. It should end with a `.png` extension
"type. It should end with a `.png` extension", UserWarning)
this is jpg path:
D:/Air_Test/logs\7c2609c6e2bde6a70ae8b909a4d8ad3f\1557979252.jpg
D:\Air_Test\AirtestIDE_2019-04-16_py3_win64\selenium\webdriver\remote\webdriver.py:1031: UserWarning: name used for saved screenshot does not match file type. It should end with a `.png` extension
"type. It should end with a `.png` extension", UserWarning)
----------------------------------------------------------------------
Ran 1 test in 48.881s
OK
[Finished]
**相关截图**
![image](https://user-images.githubusercontent.com/13159966/57830498-e33a2c00-77e4-11e9-86b3-962c09ceb33d.png)
![image](https://user-images.githubusercontent.com/13159966/57830517-f4833880-77e4-11e9-9c59-17b503186cf1.png)
![image](https://user-images.githubusercontent.com/13159966/57830542-0664db80-77e5-11e9-90bf-4985cba1cb36.png)
![image](https://user-images.githubusercontent.com/13159966/57830585-20062300-77e5-11e9-883e-fac4524acea5.png)
**复现步骤**
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error
**预期效果**
见截图3,4
**python 版本:** `python3.6`
**airtest 版本:** `1.2.1`
> airtest版本通过`pip freeze`可以命令可以查到
**设备:**
- 型号: Chrome浏览器(74.0.3729.131 正式版本 64位)
- 系统: PC windows10系统
- (别的信息)
**其他相关环境信息**
(其他运行环境,例如在linux ubuntu16.04上运行异常,在windows上正常。)