上一页 1 2 3 4 5 6 ··· 8 下一页
摘要: 1. OPenCVimport cv2 import numpy as np # 读取图像 img = cv2.imread('screenshot.png', 0) # 使用模板匹配 template = cv2.imread('template.png', 0) res = cv2.matchT 阅读全文
posted @ 2023-11-13 14:09 jiguanghover 阅读(10) 评论(0) 推荐(0) 编辑
摘要: 在使用Python和Selenium进行Web功能测试时,引入AI(人工智能)通常可以用于改善测试效率和覆盖范围。以下是一些使用AI进行Web功能测试的方法: 智能元素定位: 使用AI技术来改进元素的定位策略。传统的元素定位可能基于XPath、CSS选择器等,但使用机器学习模型可以自动学习和调整元素 阅读全文
posted @ 2023-11-13 14:04 jiguanghover 阅读(152) 评论(0) 推荐(0) 编辑
摘要: 一、自动化测试工具及框架 Selenium: 用于Web应用程序的自动化测试,支持多种编程语言,如Java、Python、C#等。 Appium: 用于自动化测试移动应用程序(iOS和Android平台),支持多种编程语言。 JUnit: 用于Java应用程序的单元测试框架,广泛用于自动化测试。 T 阅读全文
posted @ 2023-11-13 13:59 jiguanghover 阅读(80) 评论(0) 推荐(0) 编辑
摘要: 1、LambdaTest (收费,免费试用100分钟) https://www.lambdatest.com/selenium-automation?utm_source=STH&utm_medium=Listing&utm_campaign=Automation-tools&utm_term= 2 阅读全文
posted @ 2023-10-06 13:51 jiguanghover 阅读(24) 评论(0) 推荐(0) 编辑
摘要: 使用django(4.1.5) 搭建股票信息后台,显示股票信息; Stock -> models.py class Stock(models.Model): symbol = models.CharField(max_length=45) # 股票名称 st_name = models.CharFi 阅读全文
posted @ 2023-03-29 21:28 jiguanghover 阅读(15) 评论(0) 推荐(0) 编辑
摘要: 1. 在自动化打开浏览器后会长时间加载,此时使用如下命令解决: driver.set_page_load_timeout(20) # 设置浏览器超时加载时间 driver.set_script_timeout(20)#这两种设置都进行才有效 2. 防止浏览器长时间加载的正确做法 from selen 阅读全文
posted @ 2023-02-13 20:29 jiguanghover 阅读(47) 评论(0) 推荐(0) 编辑
摘要: 今天又翻出了去年学习的自动化测试平台,准备在此基础上学习一下,然后改造成适合自己的自动化测试平台; 首先放上作者的参考链接,感谢同学们的大力分享; https://testerhome.com/topics/15534 : Python + flask+ selenium 自动化测试用例管理、执行平 阅读全文
posted @ 2022-10-16 22:25 jiguanghover 阅读(123) 评论(0) 推荐(0) 编辑
摘要: 1. 截图 from addons.screenshot_utils import ScreenshotUtils step_output = driver.addons().execute( ScreenshotUtils.takescreenshotweb( filePath="/Users/x 阅读全文
posted @ 2022-07-28 18:01 jiguanghover 阅读(506) 评论(0) 推荐(0) 编辑
摘要: 今天按照官方文档进行pyscript的调用,发现paths下总是出现问题,于是调试了一下,问题解决了; # data.py import numpy as np def make_x_and_y(n): x = np.random.randn(n) y = np.random.randn(n) re 阅读全文
posted @ 2022-05-12 09:37 jiguanghover 阅读(313) 评论(0) 推荐(0) 编辑
摘要: 一、RCC使用(https://robocorp.com/docs/rcc/workflow) 1. Creat a new bot : rcc create my-robot 2. Adding Python packages: rcc robot libs -a numpy -p --conda 阅读全文
posted @ 2022-04-26 13:48 jiguanghover 阅读(234) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 8 下一页