import requests import re import os from glom import * def get_video(url): requests.packages.urllib3.disable_warnings() session = requests.session() h ...
分类:
其他好文 时间:
2021-03-02 11:50:01
阅读次数:
0
接上个文章,因为失败,思考了一下原因,参考了其他的博主。 使用cookie可以免密码登入网站。 所以自动化登录微博首先需要获取已经登录微博后浏览器的cookie。 接下来上代码: # 导入需要的数据包 from selenium import webdriver import time # 将获取的 ...
分类:
其他好文 时间:
2021-03-02 11:42:50
阅读次数:
0
Selenium工具集 如图所示, Selenium工具集的呈现。 1. Selenium IDE Selenium IDE (集成开发环境) 是一个创建测试脚本的工具,如图所示。它是一个FireFox 插件,实现浏览器的录制与回放功能,提供创建自动化测试的建议接口。Selenium IDE 有一个 ...
分类:
其他好文 时间:
2021-03-01 13:58:58
阅读次数:
0
C++ 2010 //获取UI值和路径void CreateNewComponent::GetUIValueandPath() { try { NewName.clear(); NewNamePath.clear(); selectBodys.clear(); //获取显示部件的全路径 partfu ...
分类:
其他好文 时间:
2021-03-01 13:06:51
阅读次数:
0
一、接口自动化测试编写流程: 1、从单个接口的test_.py模块开始写 2、实现数据驱动DDT 3、读取Excel,ExcelHandler类,存放在common包里面 4、分层、数据、配置文件、logger日志记录、测试报告。 5、注册、登录。数据动态生成,手机号码faker.phone_num ...
分类:
其他好文 时间:
2021-03-01 13:03:41
阅读次数:
0
ansible when条件语句用法 参考 基本用法 - hosts: all tasks: - include: Ubuntu.yml when: ansible_os_family == "Ubuntu" - include: RHEL.yml when: ansible_os_family = ...
分类:
其他好文 时间:
2021-02-27 13:41:18
阅读次数:
0
编程时,偶尔需要伪造(模拟)数据,下面介绍如何使用Python伪造中文姓名。 1、安装库Faker # pip install Faker 2、导入并输出中文姓名 from faker import Faker fake = Faker("zh_CN") fake.name() 3、批量生成数据 N ...
分类:
编程语言 时间:
2021-02-27 13:39:58
阅读次数:
0
Selenium + TestNG 配置 <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSc ...
分类:
Web程序 时间:
2021-02-27 13:24:35
阅读次数:
0
参考: https://www.cnblogs.com/CesareZhang/p/11140520.html https://www.cnblogs.com/CesareZhang/p/10744722.html 框架结构: Business:业务相关公共模块,如登录Common:业务无关公共模块 ...
分类:
其他好文 时间:
2021-02-26 13:33:35
阅读次数:
0
实战案例—使用PXE工具批量部署服务器 【案例分析】 (1)规划节点 IP地址 主机名 节点 备注 192.168.200.10 localhost PXE 版本为centos6 64位 192.168.200.20 controller controller 版本为centos7 64位 (2)在 ...
分类:
其他好文 时间:
2021-02-26 13:09:15
阅读次数:
0