- 博客(6)
- 收藏
- 关注
原创 一道有趣的大厂测试面试题,你能用 Python or Shell 解答吗?
原文链接本文是测试开发工程师Venn同学面试某互联网名企遇到的一道面试题目,首发于Testerhome社区,引发了有趣的讨论和解答,供各位测试同学参考。链接:https://testerhome.com/topics/18337一道有趣的测试面试题目题目:在A文件夹下有多个子文件夹(a1、b1、c1),每个子文件夹下有好几张jpg图片,要求写一段代码(用PythonorShell),把这些图片全部拷贝并存在B文件夹下。一小撮测试工程师的讨论聪明的Cookie同学:考点就是如何遍历一个文件夹下的文
2022-04-15 14:06:30
101
转载 批量更新-pip第三方库
import pipfrom subprocess import callfrom pip._internal.utils.misc import get_installed_distributionsfor dist in get_installed_distributions(): call("pip install --upgrade " + dist.project_...
2019-10-23 12:16:00
163
原创 Mark20190822:python-selenium-pycharm,清除生日只读模式
1.去除生日readonly,清空并填写driver.get('http://127.0.0.1/index.php?m=user&c=public&a=login')driver.find_element_by_id('username').send_keys('chihao')driver.find_element_by_id('password').send_k...
2019-08-22 14:38:14
418
原创 Mark20190822:python-selenium-pycharm,窗口切换/下拉框选择省市县
代码注意:窗口切换/省市县(下拉形式)new_windows = driver.window_handles[-1]driver.switch_to.window(new_windows)sheng = driver.find_element_by_id('add-new-area-select')Select(sheng).select_by_visible_text('辽宁...
2019-08-22 14:28:37
719
原创 Mark20190822:python-appnium-Android SDK+Genymotion模拟器,模拟计算器操作及结果比对及生成文件
代码1运用python格式化输出%s,%d;round(数字,保留位数);代码2运用replace(‘替换成’,‘要替换’);长点击(TouchAction(driver).long_press(Cls).perform().wait(3000))---3000msimport random# 准备测试数据2.1/2c = ['+','-','*','/']x = input('请...
2019-08-22 14:14:48
221
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人