- 博客(15)
- 资源 (15)
- 收藏
- 关注
转载 java jxl 向Excel中追加数据而不覆盖原来数据的例子
向先原来就有数据的Excel写数据是不会覆盖原有的数据,只是在追加数据。public class Excel { public Excel() { } public void CreateWorkbook(File file, double[] a) { try { if (!file.exists()) { //判断文件是否已存在,如果没
2015-07-17 17:14:53
3313
原创 mysql数据的常用方法
一、mysql索引通过的讲是提高数据性能问题,通过索引查询不需要全表的内容,就可以定位需要查找的内容。1、普通索引创建索引:create index in_name on t1(name)查看索引:show index from t1删除:drop index in_name on t12、唯一索引 创建索引:create unique index in_na
2015-06-25 14:39:35
440
原创 windows ping linux 无法访问主机
使用桥接的模式1、关闭linux上的防火墙service iptables off 永久关闭防火墙2、关闭windows的防火墙,就是关闭掉360的相关软件,不然会出现windows 无法ping通linux的
2015-06-10 10:49:50
4184
原创 获取toast的Text的值
//获取toast的Text的值TextView toastTextView = (TextView)solo. getView("message", 0); System.out.println(toastTextView+"-------------------------");if(toastTextView!=null){ String strin= (
2015-05-04 16:22:18
1795
转载 常用服务协议端口
这两天面试的时候,都是先笔试,笔试题目里有关于端口号的问题,脑袋一迷糊,好多都忘掉,崩溃~在此整理下常用的服务端口号和协议。常用服务 协议 端口 1. POP3 TCP 110 2. IMAP TCP 143 3. SMTP TCP 25 4. Telnet TCP 23 5. 终端服务TCP 3389 6. TF
2015-04-28 16:37:16
558
原创 xml文件解析
待完成xml文件解析解析文件package xml;import org.xml.sax.Attributes;import org.xml.sax.helpers.DefaultHandler;public class MyConutentHandler extends DefaultHandler {String tagName;publ
2015-04-26 16:44:42
300
原创 json使用键值解析方法
json使用键值解析方法public class JsonUtils1 {public void parseJson(String jsonData){try {JsonReader reader=new JsonReader(new StringReader(jsonData));reader.beginArray();while(reader.hasNext()){
2015-04-26 11:32:08
1413
原创 json解析
用于两组数据相同下解析public class JsonUtils {public void parseJson(String jsonData){Type listType = new TypeToken>(){}.getType();Gson gson=new Gson();LinkedList users=gson.fromJson(jsonData, listType)
2015-04-26 10:41:00
378
原创 Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.5.1:解决办法
在eclipse执行maven问题错误Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.5.1:解决办法更改eclipse中的jre路径改为jdk的路径在eclipse,Window->Preferences->Java->Installed JREs
2015-04-20 16:09:29
1877
转载 Python读写Excel文件的实例
最近由于经常要用到Excel,需要根据Excel表格中的内容对一些apk进行处理,手动处理很麻烦,于是决定写脚本来处理。首先贴出网上找来的读写Excel的脚本。1.读取Excel(需要安装xlrd):复制代码 代码如下:#-*- coding: utf8 -*-import xlrdfname = "reflect.xls"bk = xlrd.open_work
2015-03-11 15:13:28
1156
原创 webdriver判断元素是否存在
webdriver判断元素是否存在,如果不存在进行抛出,继续下面代码程序boolean a; try{ WebElement ur = wd.findElement(By.xpath("A“)); a=true; }catch(WebDriverException e){ a=false; }
2015-03-09 16:47:59
1199
原创 chrome浏览器启动(python)
from selenium import webdriverfrom selenium.common.exceptions import NoSuchElementExceptionfrom selenium.webdriver.common.keys import Keysimport timeimport oschromedriver = "C:\Program Files
2015-03-03 14:49:07
1390
原创 robotium获取所有控件GridView、ScrollView下所有控件
1、使用UI Automatorview工具获取,获取class的属性2、获取GridView位置后,通过遍历方法获取所有控件GridView V=solo.getView(android.widget.GridView.class, 0); for(int i=0;i System.out.println(V.getChildAt(i)); }
2015-02-13 15:44:34
422
原创 robotium测试时获取Android手机屏幕的分辨率大小
获取屏幕大小(宽度和高度)DisplayMetrics dm = new DisplayMetrics();getActivity().getWindowManager().getDefaultDisplay().getMetrics(dm); float x=dm.widthPixels;float y=dm.heightPixels; 获取到屏幕后,对屏幕更好适
2015-01-22 10:00:27
349
原创 bug预防
1、页面显示: 产品的网页通常保证在1024*768 的分辨率下显示正常,但是常常忽略800*600分辨率下的显示情况。如果页面设计明确只考虑1024*768 的需求,则只在 1024*768下验证各个产品页面的显示正确无误 预防方法:切好的设计页面和集成程序后的页面需要分别在两种显示分 别率下验证显示的正
2014-03-24 20:09:50
716
百度网盘拉新SOP:零基础零成本的手把手赚钱教程
2025-03-21
清华报告解析:DeepSeek与AI幻觉的现象、原因、评测及应用场景
2025-03-02
xampplinux-v174beta11.tar.gz
2025-03-15
redis-windows-7.0.5.zip
2025-03-16
sqlmap.rar一个压缩文件
2025-03-15
j2-webscarab-installer.jar
2025-03-15
MySQL-server-community-5.0.37-0.rhel4.i386.rpm
2025-03-02
nmon analyser v33g.xls
2025-03-01
prometheus-2.20.0.windows-amd64.zip
2020-09-06
测试架构师修炼之道 从测试工程师到测试架构师
2017-09-03
Web Application Stress Tool.rar
2013-11-21
arrow.jar testng的插件
2017-09-03
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅