自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(28)
  • 资源 (9)
  • 收藏
  • 关注

原创 linux--shell脚本--删除最深路径下的所有文件

需求:给出根路径,找到该根路径下,路径最深的文件夹,并删除文件夹内的文件。`rm -f $(find ./ -type d | awk -F'/' '{print NF-1" "$0}' | sort | tail -1|cut -d' ' -f2)/* rm -f $(文件路径)/* 删除指定路径内的所有文件,-f不需要输入yes来确认删除find $(文件路径) -type d ...

2020-04-27 13:40:17 587

原创 UiPath+Appium移动自动化03--测试demo

1.准备工作做好java、Android SDK安装配好node.js、appium安装配好手机或模拟器连接配好UiPath已下载AndroidActivities、appium.WebDriver2.获取需要操作的app包名、界面名、控件ID等从源码、adb、uiautomatorviewer、或者appium工具去获取操作app的包名、界面名、控件ID3.添加一个Android...

2020-04-20 23:46:39 1252

原创 UiPath+Appium移动自动化03--手机或虚拟机连接

Appium学习笔记02-手机或虚拟机连接

2020-04-20 18:42:32 935

原创 UiPath+Appium移动自动化02--appium配置

1.安装node.js直接去搜索官网,下载即可。2.安装appium进入CMD命令行界面。输入npm install -g appium等待安装完成即可

2020-04-20 18:33:01 538

原创 Tableau--设置别名

文章目录1.分列2.设置别名,增加YTD标识3.创建分层,实现年、月、日三列上下级关系4.计算季度值用户需求将表头的年份后面跟上YTD这种需求,如下表所示转化前20192020转换后2019(YTD)2020(YTD)这个需求看似简单,但如果数据源是2019/1/2这种日期型的数据,而且要实现多工作簿的日期筛选器的联动效果等,实现起来也得费点儿功夫。1.分列...

2020-04-17 11:26:44 3428

原创 Tableau--if嵌套计算季度

IF ([收货月份]="01" OR [收货月份]="02" OR [收货月份]="03")THEN "Q1"ELSEIF([收货月份]="04" OR [收货月份]="05" OR [收货月份]="06")THEN "Q2"ELSEIF([收货月份]="07" OR [收货月份]="08" OR [收货月份]="09")THEN "Q3"ELSE "Q4"END...

2020-04-17 11:04:31 6215

原创 UiPath+Appium移动自动化01--uipath包

在管理程序包中–>搜索安装Appium.WebDriver–>搜索安装AndroidActivites然后就可以在控件面板中找到相关活动控件了

2020-04-12 00:13:17 900 3

原创 Appium学习笔记21-手机操作API之消息通知栏

#打开消息通知栏driver.open_notifications()#关闭通知栏,可以模拟向上滑动,或者按返回键代码:#导入库from appium import webdriverimport timedesired_caps = dict()#创建字典desired_caps['platformName'] = 'Android'#添加字典字段:手机平台(Android、...

2020-04-08 16:13:52 779

原创 Appium学习笔记20-手机操作API之发送键(Home键、音量键等)

#模拟按键:#第1个参数为按键代码(3为Home,4为返回,24、25为音量+-。。。可咨询百度android keycode);#第2个参数为被发送的关键代码的原信息(类似于ctrl等)一般保持默认即可。driver.press_keycode(keycode,metastate=None)代码:#导入库from appium import webdriverimport tim...

2020-04-08 14:28:35 659

原创 Appium学习笔记19-手机操作API之网络开关

方法:#获取当前网络关启状态driver.network_connection#返回数字 1:飞行模式 2:只开wifi 4:只开流量 6:网络全开#设置网络网络关启状态driver.set_network_connection(connection_type)网络关起状态对应表 Possible values: Value (Alias) ...

2020-04-08 14:05:56 525

原创 Appium学习笔记18-手机操作API之截图

#截图方法参数为截图存放位置和文件名,未指定路径的话,默认保存在当前工作路径下driver.get_screenshot_as_file("路径\文件名.png")结果:代码:#导入库from appium import webdriverimport timefrom appium.webdriver.common.touch_action import TouchAction...

2020-04-08 13:50:12 533

原创 Appium学习笔记17-手机操作API之分辨率

#获取手机分辨率,返回字典类型driver.get_window_size()运行结果代码:#导入库from appium import webdriverimport timefrom appium.webdriver.common.touch_action import TouchActiondesired_caps = dict()#创建字典desired_caps[...

2020-04-08 13:37:39 337

原创 Appium学习笔记16-按下、抬起、等待、移动、点击

文章目录1.touchAction简介2.按下(press)&抬起(press.release)3.等待wait()4.长按long_press()5.移动move_to()6.点击tap()7.代码1.touchAction简介手机操作手势众多,通常是由一些简单的小操作组成一个复杂手势。简单操作比如按下,抬起,等待,移动等。高级手势touchAction就是将简单操作组合,touc...

2020-04-08 11:48:16 1169

原创 Appium学习笔记15-滑动和拖拽

使用手机时会遇到下滑,拖拽等操作,这就需要用滑动的方法。1.swipe从坐标点滑动到坐标点#5个参数(起始横坐标,起始纵坐标,结束横坐标,结束纵坐标,滑动时长单位毫秒)driver.swipe(start_x,start_y,end_x,end_y,duration=None)#每次操作的期望时间与真实时间有误差,造成了每次的滑动距离不等。#滑动操作具有惯性,速度快,惯性大;速度慢惯性小...

2020-04-07 23:26:22 946

原创 Appium学习笔记14-获取文本、位置、大小、属性等信息

element.text#获取元素的文本,返回字符串element.location #获得元素位置,返回字典类型 [x:xvalue,y:yvalue] element.size #获取元素大小,返回字典类型[width:wvalue,height:hvalue]element.get_attribute(value) #value为元素的属性名1.打印带有“设”字的元素的文本2....

2020-04-07 22:19:26 1304

原创 Appium学习笔记13-点击、输入(中文)、清空

#点击element.click()#输入 element.send_keys()#清空element.clear()代码:#导入库from appium import webdriverimport timedesired_caps = dict()#创建字典desired_caps['platformName'] = 'Android'#添加字典字段:手机平台(And...

2020-04-07 19:52:10 315

原创 Appium学习笔记12-隐式等待、显式等待

操作元素经常会因为网络等原因,元素还没加载出来,命令找不到元素而报错,这时就需要设置等待时间。等待分为隐式与显式:#隐式等待或这说是全局等待,对全局操作都起作用driver.implicitly_wait(5) #所有操作都要等待5秒#显式等待或者说是单一等待,需要对每一个操作进行一次设置#p.s.需要导入WebDriverWait包wait = WebDriverWait(driv...

2020-04-07 19:44:14 591 1

原创 Appium学习笔记11-定位一个或一组界面元素(控件)

文章目录1利用UiAutomatorViewer获取元素(控件)的id、class等信息2.利用id、class、xpath方法定位一个元素3.利用id、class、xpath定位一组元素4.定位元素注意点4.1定位元素一定要是当前界面可见元素4.2定位条件一定在当前界面只有唯一匹配值1利用UiAutomatorViewer获取元素(控件)的id、class等信息2.利用id、class、x...

2020-04-07 01:10:58 618

原创 Appium学习笔记10-打开UiAutomatorViewer

文章目录1打开UiAutomatorViewer2问题及解决2.1 打开uiautomatorviewer.bat闪退2.2Unable to connect to adb1打开UiAutomatorViewer承接Appium学习笔记01的配置AndroidSDK环境变量找到并打开C:\Program Files\android\sdk-tools\bin目录下的uiautomatorvi...

2020-04-06 21:25:43 1610

原创 Appium学习笔记09-将当前应用置于后台

承接Appium学习笔记04的打开APP在代码中增加driver.background_app(seconds),来将当前应用置于后台,等待指定时间后再调回前台driver.background_app(seconds)#先将应用置于后台,等待指定时间后调回前台代码:#导入库from appium import webdriverimport timedesired_caps =...

2020-04-06 17:24:19 853

原创 Appium学习笔记08-安装、卸载app

承接Appium学习笔记04的打开APP在代码中增加driver.is_app_installed(“包名”)、driver.remove_app(“包名”)和driver.install_app(“安装包路径”)来判断某APP是否安装、卸载指定包名的APP以及安装APPdriver.is_app_installed("包名")#判断指定APP是否已安装driver.remove_app(...

2020-04-06 17:02:02 1139 1

原创 Appium学习笔记03-Python安装配置及Appium安装配置

文章目录1.Python及PyCharm安装配置2.Appium安装配置3.Appium-Python库的安装1.Python及PyCharm安装配置Python及Pycharm安装配置2.Appium安装配置从官网下载对应的安装包,根据提示安装即可。运行Appium,默认地址和端口无需改动,直接Start Server。3.Appium-Python库的安装cmd中键入如下命令即...

2020-04-06 12:34:57 227

原创 Appium学习笔记07-关闭app、关闭驱动对象

driver.close_app() #关闭appdriver.quit() #关闭驱动连接

2020-04-05 23:23:35 2356 1

原创 Appium学习笔记06-获取当前应用的包名,界面名

承接Appium学习笔记04的打开APP在代码中增加driver.current_package和driver.current_activity来获取当前应用的包名,界面名#获取当前界面的程序包名driver.current_package#获取当前界面的界面名driver.current_activity效果图:代码:#导入库from appium import webd...

2020-04-05 18:00:11 1291

原创 Appium学习笔记05-打开一个app,跳到另一个app

承接上一篇文章的打开APP在代码中增加driver.start_activity(‘另一个app包名’,‘对应界面名’)我这里增加的是短信的包名和新信息的界面名driver.start_activity('com.android.mms','.ui.ComposeMessageActivity')...

2020-04-05 17:37:03 1461

原创 Appium学习笔记04-HelloAppium快速体验

文章目录1.手机与电脑连接2.获取要操作的APP信息3.打开appium服务4.创建一个Hellow-Appium的Python项目5.创建一个open-appd python文件6.键入如下代码1.手机与电脑连接2.获取要操作的APP信息cmd中键入下面命令,获取手机前台运行的程序报名及界面名。adb shell dumpsys window | findstr windows这里...

2020-04-05 17:02:48 421

原创 Appium学习笔记02-手机或虚拟机连接

Appium学习笔记02-实体手机连接1.数据线接通手机与电脑2.开启USB调试2.1手机进入开发者模式2.2 打开usb调试3.测试连接结果4.开启usb调试后,adb devices依然找不到设备4.1手机端和电脑端都安装“360手机助手”4.2其它解决办法1.数据线接通手机与电脑2.开启USB调试2.1手机进入开发者模式默认手机不在开发者模式下,设置界面也找不到开发者模式打开手机–...

2020-04-05 15:44:57 2110

原创 Appium学习笔记01-环境搭建

Appium01-环境搭建环境搭建java下载及配置环境变量AndroidSDK下载及配置环境变量工具下载设置环境变量验证结果环境搭建Android测试,需要Java、AndroidSDK及一部手机(或者用Android模拟器模拟出一部手机)java下载及配置环境变量Java下载安装与环境配置参照AndroidSDK下载及配置环境变量工具下载国内下载地址下载SDK的zip包,并解压...

2020-04-05 01:10:11 1322

32位Tidy2.dll.rar

32位tidy,用于nodepad++格式化HTML代码。 使用方法是将解压出来的dll文件移入到notpad++的插件文件夹里面,并重启notpad++

2020-06-12

Vensim7.3.5.zip

Vensim7.3.5 在官网上只能下载最近的8.x版本,安装8.x版本提示各种错误,然后找到了这个7.3.5版本,可以用

2020-06-09

genymotion3.1+VirtualBox5.2.zip

Genymotion是一套完整的工具,它提供了Android虚拟环境。它简直就是开发者、测试人员、推销者甚至是游戏玩家的福音。Genymotion支持Windows、Linux和Mac OS等操作系统,容易安装和使用:按简单的安装过程

2020-04-20

genymotion-3.1.0.exe

Genymotion是一套完整的工具,它提供了Android虚拟环境。它简直就是开发者、测试人员、推销者甚至是游戏玩家的福音。Genymotion支持Windows、Linux和Mac OS等操作系统,容易安装和使用

2020-04-20

UiPath高级开发者认证-操作题

题目如下 In this exercise, you will create a UiPath automation that performs the steps below. To achieve this, you will use the REFrameWork as the starting template and follow the UiPath development best practices. Here are the steps performed by the Robot: 1. Log in to https://www.acme-test.com. 2. On the landing page, Dashboard, click on the Work items menu item. Scrape the data in all the pages of the table, page by page, ensuring error handling and recovery. 3. For each page: - Filter the records where Status is 'Open'; - Filter the records where Type is 'WI5'; - Filter the records where WIID is less than 500000; - Append the resulting datatable into an Excel worksheet; you shouldn't worry about the headers and format of the output file. Constraints to follow in the development, using the REFrameWork: 1. TransactionItem datatype should be a String. The process should recover and retry in case of errors in navigation between WorkItems page. One transaction is the action of scraping one web page.By navigating to the next page, the next transaction will execute. (Same as ACME Process 4 Dispatcher from the UiPath Academy). 2. Create a separate workflow file for the Login to ACME. File input arguments: URL ; Username ; Password . 3. Create a separate workflow file for closing ACME. 3. Add the ACME_URL and ACME_Credential to the Config file. 4. Populate InitAllApplications.xaml from the Framework folder with Invoking the Login to ACME and navigation to the Work Items. 5. Populate CloseAllApplications.xaml from the Framework folder with Invoking the Close ACME. 6. Populate KillAllProcesses.xaml from the Framework folder with killing the process used. 7. Populate the Process.xaml file with the following actions: Web scraping, Filtering and Appending to Excel. Important Note: Don't use external file references, outside of the project folder (including Orchestrator Assets). Place all the used files within the project folder, zip that folder and upload it to the UiPath Certification Platfor

2020-04-13

level3-2-2.zip

UiPath课程认证level3练习题二,获取队列信息,下载每月报表,合并成年度报表,提交年度报表,更新vender信息。

2020-04-07

level3-2-1.zip

UiPath课程认证level3练习题二,获取vender信息,并上传至列队。

2020-04-07

level3-1.zip

UiPath课程认证level3练习题一,获取vender信息,生产sha码,并更新信息。

2020-04-07

weibo10.4.0.apk

手机微博安装包10.4.0版本,2020年4月6日下载。 手机微博安装包10.4.0版本,2020年4月6日下载。

2020-04-06

空空如也

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

TA关注的人

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