摘要: 1.在控制面板-》程序和功能-》打开或关闭windows功能-》安装IIS服务 2.控制面板-》管理工具-》IIS管理器 浏览器地址栏:ftp://zc:1234@192.168.1.117 FTP服务器要想被客户端访问,需要关闭防火墙,客户端防火墙无需关闭 阅读全文
posted @ 2016-06-22 09:42 午夜飘雪789 阅读(226) 评论(0) 推荐(0) 编辑
摘要: lr_eval_string() 函数的主要作用:返回脚本中的一个参数当前的值 返回值类型:char char *x = "abc";//定义字符常量lr_save_string(x,"param");//把字符常量保存在参数中 lr_output_message("The param'... 阅读全文
posted @ 2016-06-21 15:57 午夜飘雪789 阅读(159) 评论(0) 推荐(0) 编辑
摘要: 截图功能: //截屏并保存至本地 File screen = driver.getScreenshotAs(OutputType.FILE); File screenFile = new File("d:\\screen.p... 阅读全文
posted @ 2016-06-18 15:16 午夜飘雪789 阅读(185) 评论(0) 推荐(0) 编辑
摘要: 截图功能: try { File srcFile = ((TakesScreenshot)dr).getScreenshotAs(OutputType.FILE); FileUtils.copyFile(sr... 阅读全文
posted @ 2016-06-17 10:55 午夜飘雪789 阅读(175) 评论(0) 推荐(0) 编辑
摘要: html 源码: Alert ... 阅读全文
posted @ 2016-06-17 10:09 午夜飘雪789 阅读(479) 评论(0) 推荐(0) 编辑
摘要: 有时候,什么定位元素的方法都试过了,还是定位不到元素,就考虑frame切换问题 driver.switchTo().frame("定位到的frame元素"); //接下来就可以在这个frame框架内定位该框架里的元素了 ... 阅读全文
posted @ 2016-06-16 17:25 午夜飘雪789 阅读(407) 评论(0) 推荐(0) 编辑
摘要: 一、Jmeter分布式执行原理: 1、Jmeter分布式测试时,选择其中一台作为调度机(master),其它机器做为执行机(slave)。 2、执行时,master会把脚本发送到每台slave上,slave 拿到脚本后就开始执行,slave执行时不需要启动GUI,我理解它应该是通过命令行... 阅读全文
posted @ 2016-06-14 14:51 午夜飘雪789 阅读(997) 评论(0) 推荐(0) 编辑
摘要: ChromeDriver: 下载ChromeDriver.exe,放入某个文件夹,如C:\Program Files (x86)\Google\Chrome\Application,把此路径加入path系统环境变量或者设置System.setProperty("webdriver.chrome.... 阅读全文
posted @ 2016-06-13 15:07 午夜飘雪789 阅读(265) 评论(0) 推荐(0) 编辑
摘要: 运行case前,最好在case前加入等待,以免activity还未关闭,就开始定位或其他操作(如果case总报错,则考虑此问题); swipe效果: Thread.sleep(2000); int width = driver.manage().window().... 阅读全文
posted @ 2016-06-12 17:17 午夜飘雪789 阅读(143) 评论(0) 推荐(0) 编辑
摘要: 一、查看帮助命令,参数 --help D:\>adb shell screenrecord --helpUsage: screenrecord [options] Android screenrecord v1.2. Records the device's display to a .mp... 阅读全文
posted @ 2016-06-12 15:00 午夜飘雪789 阅读(2135) 评论(0) 推荐(0) 编辑