tap

Can you parse TAP format using Jenkins Pipeline?

↘锁芯ラ 提交于 2019-12-02 13:38:14
问题 I'm trying to parse the output from a BATS script (https://github.com/gaia-adm/docker-bench-test) which outputs into TAP format. I've modified the scripts slightly to cover CIS 1.13 instead of 1.11, but I don't know how to make Jenkins Pipeline handle that output. I know there is a Jenkins plugin for TAP format, but I don't believe this works with Jenkins Pipeline Groovy scripts. 回答1: @Grab will work only if you jenkins has access to the internet workspace/job_name/tap.groovy @Grab(group='org

Can you parse TAP format using Jenkins Pipeline?

笑着哭i 提交于 2019-12-02 04:58:39
I'm trying to parse the output from a BATS script ( https://github.com/gaia-adm/docker-bench-test ) which outputs into TAP format. I've modified the scripts slightly to cover CIS 1.13 instead of 1.11, but I don't know how to make Jenkins Pipeline handle that output. I know there is a Jenkins plugin for TAP format, but I don't believe this works with Jenkins Pipeline Groovy scripts. @Grab will work only if you jenkins has access to the internet workspace/job_name/tap.groovy @Grab(group='org.tap4j', module='tap4j', version='4.2.1') import org.tap4j.consumer.TapConsumerFactory def parse(def src){

Making images appear… How?

对着背影说爱祢 提交于 2019-12-02 03:59:22
Could someone please tell me how to make an image appear when the user taps the screen and make it appear at the position of the tap. Thanks in advance, Tate UIView is a subclass of UIResponder , which has the following methods that might help: -touchesBegan:withEvent: , -touchesEnded:withEvent: , -touchesCancelled:withEvent: and -touchesMoved:withEvent: . The first parameter of each of those is an NSSet of UITouch objects. UITouch has a -locationInView: instance method which should yield the position of the tap in your view. joemama8933 You could create an initial star and just move it every

移动端兼容性问题解决方案

て烟熏妆下的殇ゞ 提交于 2019-12-02 03:08:25
移动端兼容性问题解决方案 转 https://www.cnblogs.com/wu-web/p/7866963.html 1. IOS移动端click事件300ms的延迟响应 移动设备上的web网页是有300ms延迟的,玩玩会造成按钮点击延迟甚至是点击失效。这是由于区分单击事件和双击屏幕缩放的历史原因造成的, 2007年苹果发布首款iphone上IOS系统搭载的safari为了将适用于PC端上大屏幕的网页能比较好的展示在手机端上,使用了双击缩放(double tap to zoom)的方案,比如你在手机上用浏览器打开一个PC上的网页,你可能在看到页面内容虽然可以撑满整个屏幕,但是字体、图片都很小看不清,此时可以快速双击屏幕上的某一部分,你就能看清该部分放大后的内容,再次双击后能回到原始状态。 双击缩放是指用手指在屏幕上快速点击两次,iOS 自带的 Safari 浏览器会将网页缩放至原始比例。 原因就出在浏览器需要如何判断快速点击上,当用户在屏幕上单击某一个元素时候,例如跳转链接<a href="#"></a>,此处浏览器会先捕获该次单击,但浏览器不能决定用户是单纯要点击链接还是要双击该部分区域进行缩放操作,所以,捕获第一次单击后,浏览器会先Hold一段时间t,如果在t时间区间里用户未进行下一次点击,则浏览器会做单击跳转链接的处理,如果t时间里用户进行了第二次单击操作

PostGIS 爆管分析之找出总阀门

孤人 提交于 2019-12-01 19:35:52
这个算法算是被摒弃了,但是很多自己思考过后留下的成果,虽然不用了,留着做记录。 算法目的是为了发生爆管后找到总阀门,这里分了几个步骤: 1、找到爆管点所在管段 2、通过遍历找到爆管点所有影响的阀门 3、找到影响阀门中的上游阀门 4、在上游阀门中进行遍历,看相互关系,与其他阀门都联通的则视为总阀门 5、找出阀门中的总阀门 #考虑了一下,所有与爆点相连的上游阀门其实在爆管发生后都需要关闭。所以算法中4、5步,不需要了。 -- Function: test_getpoint7(character varying, double precision, double precision) -- DROP FUNCTION test_getpoint7(character varying, double precision, double precision); CREATE OR REPLACE FUNCTION test_getpoint7( IN tbl character varying, IN startx double precision, IN starty double precision) RETURNS TABLE(v_gid integer, v_res geometry, v_type integer) AS $BODY$ declare v_startLine

Myapp

对着背影说爱祢 提交于 2019-12-01 14:05:40
一、github地址:https://github.com/jianghailing/rjgcsecondwork 二、PSP表格: PSP2.1 Personal Software Process Stages 预估耗时(分钟) 实际耗时(分钟) Planning 计划 30 40 · Estimate · 估计这个任务需要多少时间 30 35 Development 开发 1000 1130 · Analysis · 需求分析 (包括学习新技术) 60 60 · Design Spec · 生成设计文档 40 40 · Design Review · 设计复审 (和同事审核设计文档) 20 20 · Coding Standard · 代码规范 (为目前的开发制定合适的规范) 30 30 · Design · 具体设计 60 80 · Coding · 具体编码 1000 1350 · Code Review · 代码复审 30 40 · Test · 测试(自我测试,修改代码,提交修改) 60 90 Reporting 报告 40 40 · Test Report · 测试报告 30 30 · Size Measurement · 计算工作量 20 20 · Postmortem & Process Improvement Plan · 事后总结, 并提出过程改进计划 30

xen块设备体系结构(5)

不想你离开。 提交于 2019-12-01 12:09:54
blktap 又回到那个问题,I/O请求从前端到后端blkback之后,如何从blkback到大tapdisk2进程? pvops/Drivers/Xen/Blktap/ 下面是blktap的驱动代码,其中blktap的设备结构如下: struct blktap { int minor; unsigned long dev_inuse; struct blktap_ring ring; struct blktap_device device; struct blktap_page_pool *pool; wait_queue_head_t remove_wait; struct work_struct remove_work; char name[BLKTAP2_MAX_MESSAGE_LEN]; struct blktap_statistics stats; }; 根据目前的理解,blktap包含了四个模块:blktap_device, blktap_ring, blktap_sysfs, blktap_control static struct blktap_page_pool *default_pool 定义了blktap驱动和tapdisk2(??)进程的消息交换的内存页空间?? (个人推测,待求证) blktap_page_pool_init 为slab

测试那些事儿-monkey脚本

强颜欢笑 提交于 2019-12-01 08:56:14
monkey脚本主要包含两部分,一部分是头部信息,另一部分是monkey命令。 # 头文件信息 type = raw events count = 1 speed = 1.0 # 启动测试 start data >> LaunchActivity (com.tal.kaoyan,com.tal.kaoyan.ui.activity.SplashActivity) UserWait (2000) Tap (624,900,1000) # 点击取消升级 UserWait (2000) Tap (806,64,1000) # 点击跳过 UserWait (2000) Tap (217,378,1000) # 点击用户名输入框 DispatchString (zxw1234) UserWait (2000) Tap (197,461,1000) # 点击密码输入框 DispatchString (zxw123456) UserWait (2000) Tap (343,637,1000) # 点击登录按钮 脚本编写完成后,传到手机设备上,然后执行。 adb push C:\Users\Shuqing\Desktop\kyb1.txt /sdcard adb shell monkey -f /sdcard/kyb1.txt -v 1 注意事项 头文件代码书写注意 “=”两边预留空格

How to get position/coordinates of a tap-event with jquery-mobile?

情到浓时终转凉″ 提交于 2019-12-01 03:13:41
问题 Jquery-mobile supports these events: http://jquerymobile.com/demos/1.0a3/docs/api/events.html How do I get the position of the tap event (for example within an image) on a mobile device? $('#myimg').bind('tap', function(e){ var x = ???; var y = ???; alert([x, y]); }) 回答1: The reason why you won't get pageX & pageY is that you get the touchcancel event which does not contain any coordinate information (it's a non-touch, after all). It's not an actual tap or click, it's a touch event that didn

mui中判断是点击还是滑动

a 夏天 提交于 2019-11-30 21:53:05
判断和滑动是两种触发方式 滑动分为四种,上下左右(swipeup,swipedown,swipeleft,swiperight) 点击分为两种,点击和双击,一般用单机(tap) 根据自己不同的需求进行相应的使用函数 在此我需要的是判断上下滑动和点击 触发事件的对象.addEventListener("tap",function(){ 需要编辑的代码; }) 触发事件的对象 .addEventListener("swipeup",function(e){ e.stopImmediatePropagation();//阻止冒泡事件 }) 触发事件的对象 .addEventListener("swipedown",function(e){ e.stopImmediatePropagation(); //阻止冒泡事件 }) 来源: https://www.cnblogs.com/rockyjs/p/11641790.html