摘要: Apply to 选第二个 阅读全文
posted @ 2021-09-07 18:02 carlvine 阅读(28) 评论(0) 推荐(0) 编辑
摘要: 背景: 参数tid1如果取到是7位数字,默认值是"h" 现在要判断他是否取到,非默认值的话赋值给另一个参数 虽然结果不正确,但是了解了BeanShell基础使用,特记录 //vars.put("tid2", bsh.args[0]); //log.info(tid2); if (!bsh.args[ 阅读全文
posted @ 2021-09-03 15:37 carlvine 阅读(50) 评论(0) 推荐(0) 编辑
摘要: 一些登录页面会有滑块验证,如下图: 首先尝试用selenium按住滑块,脚本如下: el1 = driver.find_element_by_xpath('//*[@id="nc_1_n1z"]') # 按住滑块 ActionChains(driver).click_and_hold(on_elem 阅读全文
posted @ 2021-08-12 19:15 carlvine 阅读(481) 评论(0) 推荐(0) 编辑
摘要: 通过ssh跳板机B连接目标主机A import pymysql from sshtunnel import SSHTunnelForwarder server = SSHTunnelForwarder( ssh_address_or_host='39.100.82.221', # 跳板机B地址 ss 阅读全文
posted @ 2021-04-30 17:52 carlvine 阅读(558) 评论(0) 推荐(0) 编辑
摘要: 把需要运行的脚本都勾上所示扩展选项 阅读全文
posted @ 2021-04-20 10:41 carlvine 阅读(754) 评论(0) 推荐(0) 编辑
摘要: 首先,通过下列python代码循环遍历获取提交次数 def cleaning_data(ip, token): dict_out = {} page1 = 1 list1_all = [] list1 = [{"name1": "new"}] while list1: url1 = '%s/api/ 阅读全文
posted @ 2020-08-19 10:52 carlvine 阅读(599) 评论(0) 推荐(0) 编辑
摘要: 首先生成一个1~100万的单列表,这个脚本转自 http://blog.itpub.net/37724/viewspace-997822/ set nocount on use PostLoan go if object_id('dbo.nums') is not null drop table d 阅读全文
posted @ 2020-07-23 10:21 carlvine 阅读(160) 评论(0) 推荐(0) 编辑
摘要: jmeter -n -t C:\Users\Administrator\Desktop\性能测试\CR1273\CR1273.jmx -l C:\Users\Administrator\Desktop\性能测试\CR1273\results.csv -e -o C:\Users\Administra 阅读全文
posted @ 2020-07-20 14:15 carlvine 阅读(165) 评论(0) 推荐(0) 编辑
摘要: Python多线程方法如下: import threading import datetime import pymssql import time from faker import Faker def insert_db(): for i in range(100): for j in rang 阅读全文
posted @ 2020-07-20 10:32 carlvine 阅读(874) 评论(0) 推荐(0) 编辑
摘要: python脚本 import decimal import logging import pymssql def sync_db_structure(sou_conn, tar_conn): """ 同步数据库表结构 :param source: 源数据库 :param target: 目标数据库 阅读全文
posted @ 2020-06-17 11:25 carlvine 阅读(566) 评论(0) 推荐(0) 编辑