自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(11)
  • 收藏
  • 关注

转载 安卓oracle数据库连接

jdbc版本你要知道数据库的版本,根据数据看的版本到官网下载对应的jdbc版本.地址:http://www.Oracle.com/technetwork/database/enterprise-edition/jdbc-112010-090769.html,最好别下载最新的,下载最近一年的版本,最新的谁知道有什么bug,manifest添加android的网络请求权限uses-

2017-08-14 16:43:49 4278

原创 Mac Sierra robot framework cx_Oracle安装遇到的坑

wxphton只支持32位的python启动,强制将python设置为32位执行在pip安装库文件的时候又只能使用sudo pip install的形式。注意sudo安装的是su用户的python下安装,su用户默认的python是64位的因此造成默认用户打开32位python无法导入su用户安装的64位cx_Oracle库。每次都倒入都出现下面的错误Traceback (mo

2017-07-22 22:17:27 568

转载 uiautomator 2.0 dependencies

Gradle Scripts->build.gradledependencies内添加androidTestCompile 'com.android.support.test.uiautomator:uiautomator-v18:2.1.2'

2017-02-13 14:15:30 428

原创 杀死后台adb进程

在shell中使用&将当前测试项放到后台执行杀死后台所有adb的进程项killall -p adb 或killall -9 adb

2017-01-03 17:26:58 8182

转载 利用camera2 使闪光灯常亮

//使用自定义switch按钮Switch SwiLED= (Switch) findViewById(R.id.switchLED);mCameraManager = (CameraManager) getSystemService(Context.CAMERA_SERVICE);try { mCameraId = mCameraManager.getCameraI

2016-12-15 14:29:34 3912 1

原创 uiautomator 2.0 长按keycode物理按键

private UiDevice mDevice; // 长按物理键 public boolean longPressKeyCode(int keyCode,int PressTime) { try { Field mUiAutomationBridge = Class.forName("android.support.test.uiauto

2016-12-14 18:13:02 3451 1

转载 intent 打开网页

Intent intent = new Intent(Intent.ACTION_VIEW);intent.setData(Uri.parse("http://baidu.com"));intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);context.startActivity(intent);

2016-12-09 11:39:53 361

原创 ubuntu 16.04 命令行执行testNG

前提:仅仅下载testng.jar不配置环境变量的前提下:java -cp "path-tojar/testng.jar:path_to_yourtest_classes" org.testng.TestNG testng.xml配置环境变量:export TESTNG_HOME=/home/peng/testngexport CLASSPATH

2016-11-04 17:55:14 885 1

转载 uiautomator 2.0 android 6.0读取SD卡权限获取

1. 在Manifest.xml中(application外)添加uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />2. MainActivity.

2016-09-14 14:45:03 2363

转载 Uiautomator 2 调试参数传递

Run/Debug configurationsExtra options: -e key 888 -e key2 999Bundle a=InstrumentationRegistry.getArguments();String bb=a.getString("key");String bbb=a.getString("key2");完整命令行 adb shell am ins

2016-09-07 15:40:59 2068

转载 Powershell 条件操作符

转自http://www.pstips.net/powershell-formulating-conditions.html

2016-08-16 11:36:56 280

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除