- 博客(26)
- 收藏
- 关注
转载 docke命令
docker ps 查看当前正在运行的容器docker ps -a 查看所有容器的状态docker start/stop id/name 启动/停止某个容器docker attach id 进入某个容器(使用exit退出后容器也跟着停止运行)docker exec -ti id 启动一个伪终端以交互式的方式进入某个容器(使用exit退出后容器不停止运行)d...
2018-06-14 09:05:00
188
转载 chrome窗口报错 出现 "您使用的是不受支持的命令行标记:--ignore-certificate-errors
使用python通过selenium模拟打开chrome窗口报错 出现 "您使用的是不受支持的命令行标记:--ignore-certificate-errors#在程序前加上这段代码from selenium import webdriveroptions = webdriver.ChromeOptions()options.add_experimental_option...
2018-06-01 14:46:00
1072
转载 xen xl命令记录
1.xl info [root@vt-snb7 ~]# xl infohost : vt-snb7 #Dom0的主机名release: 3.1.0-rc7+ #Dom0的内核版本version: #1 SMP Mon Mar 26 09:34:05 CST ...
2018-05-08 17:14:00
608
转载 fiefox 自动下载文件配置
def login(self): prefile=webdriver.FirefoxProfile('C:\\Users\\anybody\\AppData\\Roaming\\Mozilla\\Firefox\\Profiles\\ky3cslyr.test') #prefile.set_preference('browser.download.folderList',...
2018-05-02 16:55:00
235
转载 ActionChains用法
1.ActionChains基本用法首先需要了解ActionChains的执行原理,当你调用ActionChains的方法时,不会立即执行,而是会将所有的操作按顺序存放在一个队列里,当你调用perform()方法时,队列中的时间会依次执行。这种情况下我们可以有两种调用方法:链式写法menu = driver.find_element_by_css_selector...
2018-04-18 10:02:00
333
转载 WebDriverWait
#coding=utf-8from selenium import webdriverfrom selenium.webdriver.common.by import Byfrom selenium.webdriver.support import expected_conditions as ECfrom selenium.webdriver.support.wait ...
2018-04-13 17:53:00
149
转载 python3 安装selenium
pycharm选择python3安装 pip3python3 -m pip install -U pip安装seleiumpip install seleniumpip install --upgrade seleium (看版本 import seleium 、help(seleium)稳定的版本selenium ==2.48.0 、或pip install s...
2018-04-02 15:11:00
145
转载 mysql 不能执行delete检查safe-updates模式
报错信息:解除输入的安全模式,Error Code: 1175. You are using safe update mode and you tried to update a table without a WHERE that uses a KEY column To disable safe mode, toggle the option in Preferences -&g...
2018-04-02 10:32:00
268
转载 shell 自动部署替换版本和备份
#!/bin/shtm=`date "+%Y%m%d-%H:%M"`home_path=/home/tool_fileweb_source=/opt/server/tomcat/webappshis_version_path=/data/client/his_version/$tmif [ -f "$home_path/version/client_web.war" ];then...
2018-03-20 17:01:00
269
转载 matlab 非线性拟合
import matplotlib.pyplot as pltimport numpy as npx = np.arange(1, 17, 1)y = np.array([4.00, 6.40, 8.00, 8.80, 9.22, 9.50, 9.70, 9.86, 10.00, 10.20, 10.32, 10.42, 10.50, 10.55, 10.58, 10.60])z1 ...
2017-11-03 18:01:00
412
转载 python 绘制走势图
1.工具 matplotlibnumpy2.matplotlib使用import matplotlib.pyplot as plt #plt用于显示图片import matplotlib.image as mping #mping用于读取图片import datetime as dtimport matplotlib.dates as mdatesfrom pylab...
2017-11-02 09:23:00
1042
转载 pywinauto 使用
win32窗体、控件进行各种操作,不再使用以往录制-修改代码的方式。例如以下的例子(以下代码均在英文操作系统上测试通过:12345from pywinauto import application app = application.Application.start("notepad.exe")app.Note...
2017-10-27 16:37:00
601
转载 pywinauto安装
下载版本pywinauto:https://sourceforge.net/projects/pywinauto/files/latest/download?source=files#coding=gb2312from pywinauto import applicationapp = application.Application()app.start_('notepa...
2017-10-27 10:23:00
331
转载 eclipse 中使用pydev插件
下载插件https://sourceforge.net/projects/pydev/files/在eclipse的window->perperence里能够看到pydev点击“Interpreter - python”->new->添加你的python安装目录下的python.exenew->other project->...
2017-09-27 14:29:00
124
转载 eclipse web项目配置
1.File-New-other-Dynamic web Project,点击next2.出现工程设定窗口中设定工程的名字( 对应工程的名字 )和Dynamic web module version(版本),我使用的是最新的版本,tomacat7对应的是3.0)单击next3.指定Java文件的编译路径(放在WebRoot\WEB-INF\classes),一...
2017-09-27 13:53:00
244
转载 war加密safenet
1.下载工具http://dlm.safenet-inc.com/akdlm/Sentinel-LDK_SDK_Windows.zip2 安装SantienlSDK....3。正常打出war包4.加压正常打出的war包,在WEB-INF\lib下去找到需要加密的jar(一般加密settings这个jar),把它剪切出来。5:对这个jar进行加密,得到加密后的一些jar文件。放入W...
2017-09-26 10:13:00
180
转载 robotframework环境搭建以基本库
1.setuptool 工具https://pypi.python.org/pypi/setuptools 2.pip 工具https://pypi.python.org/pypi/pip/3.安装ridepip install robotframework-ride4.安装插件wxPython2.8(wxPython2.8-win32-unicode-2.8.1...
2017-09-26 10:04:00
107
转载 http 返回code一览
使用ASP.NET/PHP/JSP 或者javascript都会用到http的不同状态,一些常见的状态码为: 200 – 服务器成功返回网页 404 – 请求的网页不存在 503 – 服务不可用 1xx(临时响应) 表示临时响应并需要请求者继续执行操作的状态代码。代码 说明 100 (继续) 请求者应当继续提出请求。 服务器返回此代码表示已收到请求的第一部...
2017-08-31 09:32:00
168
转载 css 选择器元素定位方法
选择器例子例子描述CSS.class.intro选择 class="intro" 的所有元素。1#id#firstname选择 id="firstname" 的所有元素。1**选择所有元素。2elementp选择所有 <p> 元素。1element,element...
2017-08-25 10:47:00
116
转载 python转化rebot的report报告
#!/usr/bin/env python# -*- coding: utf-8 -*-import os,sys,timefrom selenium import webdriverfrom selenium.common.exceptions import NoSuchElementExceptionfrom selenium.webdriver.common.keys import...
2017-08-18 18:00:00
115
转载 robot 获取report报告的信息
*** Settings ***Resource ../../source_keyword/pub_lib.txt*** Test Cases ***get_total ${url} Set Variable F:\\jekens\\workspace\\auto_test_regression\\default\\report.html Ope...
2017-08-17 14:25:00
223
转载 python 发送邮件脚本
#!/usr/bin/env python# _*_coding=utf-8 _*_#=================# File: send.py#author:test#=================import sys, os,timeimport smtplibfrom email.mime.text import MIMETextfrom email.mime.multi...
2017-08-15 17:31:00
116
转载 jenkins配置发送邮件设置
1.进入系统管理页面,正确填写系统管理员地址(一定要填,不然发不出去邮件)2.填写smtp服务器信息,在这里没有填写smtp端口可以发送成功,jenkins版本是2.7转载于:https://www.cnblogs.com/colin2012/p/7345592.html...
2017-08-11 14:00:00
114
转载 dos 下的一些命令操作
Dos命令查看端口占用及关闭进程1. 查看端口占用在windows命令行窗口下执行:netstat -aon|findstr "8080" TCP 127.0.0.1:80 0.0.0.0:0 LISTENING 2448端口“8080”被PID(进程号)为2448的进程占用。查看端口“808...
2017-08-09 17:24:00
83
转载 python3 内置函数大全
一. 简介 python内置了一系列的常用函数,以便于我们使用,python英文官方文档详细说明:点击查看, 为了方便查看,将内置函数的总结记录下来。二. 使用说明 以下是Python3版本所有的内置函数:1. abs() 获取绝对值1 >>> abs(-10)2 103 >>> abs(10)...
2017-07-07 11:36:00
620
转载 python代码实现发送邮件
#!/usr/bin/env python3 #coding: utf-8 import smtplib from email.mime.text import MIMEText from email.header import Header sender = '***' receiver = '***' subject = 'python email test' sm...
2017-07-07 11:09:00
89
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人