ITeye博客

漂流的浪子

jerome_wang · 共 115 篇文章

rm: cannot remove Read-only file system

转自 http://blog.csdn.net/kq1983/article/details/44671961 fsck -y / #执行修复文件系统 shutdown -r now #修复完成后重启系统

2017-03-22 09:31 · linux · 评论(0)

Jetty Logging Configuration Example

In this example, we will discuss logging capabilities of Jetty. We will first enable the logging module in Jetty and configure it afterwards. As in the previous Jetty examples, we will start with standalone Jetty; thereafter we will configure logging for Embedded Jetty server too. We are going to u…

2016-02-23 13:36 · jetty · 评论(0)

NTPD Time Service

已在qaa03上成功搭建NTPD服务。该服务已设置为开机启动服务,如遇到问题,请在root用户下,用命令#service ntpd ****进行相关操作。 客户机校准时间: Linux: /usr/sbin/ntpdate ntpdate qaa03.jinfonet.com.cn /sbin/hwclock -w; //把系统时间写入硬件时间 OR 在root用户下 ntpdate ntpdate qaa03.jinfonet.com.cn hwclock -w; //把系统时间写入硬件时间 也可以定时更新: #crontab -e 0 0 * * * /usr/sbin/ntpdate …

2016-02-19 11:04 · 评论(0)

Internet Explorer Driver

https://code.google.com/p/selenium/wiki/InternetExplorerDriver#Internet_Explorer_Driver InternetExplorerDriver Everything you wanted to know about the Internet Explorer driver WebDriver Updated May 29, 2014 by james.h....@gmail.com Internet Explorer Driver The InternetExplorerDriver is a standalone…

2015-10-29 08:35 · selenium-webdriver · 评论(0)

搭建Selenium Grid的调试环境

http://shijunjuan.iteye.com/blog/1997764 Download and install IDE, such as Eclipse create folder c:\source, clone selenium repository: git clone https://code.google.com/p/selenium/ Open IDE, import projects: client, server, third-party Debug org.openqa.grid.selenium.GridLauncher.java as JAVA applic…

2015-10-26 14:03 · selenium-webdriver · 评论(0)

Retry executing only Failed Tests using TestNG

转自 http://www.cnblogs.com/alterhu/p/3191701.html 问题情况 先说下问题情况,最近在做testNG与selenium集成做自动化测试的问题。 因为如果将testNG做UI 测试的话,很多情况下可能测试是失败的,但是这些失败可能是一些其他的问题导致的,可能是脚本的问题或者是网络环境不稳定导致的,所以我们需要重新尝试运行这个失败的测试用例。 testNG倒是没有直接的retry testcase的功能,不过它却提供了很多的接口,我们可以实现这些接口来得到retry的效果。 在google上看到淘宝的QA项目组采用Ruby语言将testNG的源代码修改…

2015-08-13 14:50 · selenium-webdriver · 评论(0)

How to run single selenium test case in two different nodes

转自 http://stackoverflow.com/questions/31023861/how-to-run-single-selenium-test-case-in-two-different-nodes 实测通过 前提准备: 1.请参考 selenium + testng + grid 例子 + Jenkins 集成selenium grid (Jenkins 配置 网上 一大堆) 2.集成到jenkins,当ant的build.xml base.dir使用相对路径时,testng 产生报告可能会有问题 要修改下testng-result.xsl的absolute-path如下 实…

2015-08-06 16:07 · selenium-webdriver · 评论(0)

selenium + testng + grid 例子

环境准备 TestNG + Grid + Webdriver 1.启动Grid hub + node hub端: java -jar selenium-server-standalone-2.4x0.jar -role node -hub Node 端 java -jar selenium-server-standalone-2.4x0.jar -role webdriver -hub http://hubIP:port/grid/register -port 5555 2.测试代码如图 3.TestNG配置如图 4.结果如图

2015-07-30 15:05 · selenium-webdriver · 评论(0)

robotium学习二_web元素操作

Web 元素操作小例子

2015-07-17 16:46 · robotium · 评论(0)

robotium 学习一_计算机例子测试

1.首先开发一个计算机的小程序 效果图如下 2.代码如附件 3.创建一个Android test project 4.代码如下 5.最后 Run as Android junit test 6.碰到的问题 run as 的时候 抛一下错误 解决方法->build path 删掉里面的Android Dependencies和robotium-solo-xx.jar然后重新导入robotium-solo-xx.jar 最终效果图如下

2015-07-15 14:20 · robotium · 评论(0)

UIAutomator的API 学习小例子

在模拟器上玩的 1.代码 import com.android.uiautomator.core.UiDevice; import com.android.uiautomator.core.UiObject; import com.android.uiautomator.core.UiObjectNotFoundException; import com.android.uiautomator.core.UiScrollable; import com.android.uiautomator.core.UiSelector; import com.android.uiautomator.te…

2015-07-14 14:08 · AndroidTest · 评论(0)

UIAutomator的API:

11. UiDevice access and perform operations on the device on which the target app is running. You can call its methods to access device properties such as current orientation or display size. The UiDevice class also let you perform actions such as: Change the device rotation Press a D-pad button Pre…

2015-07-14 11:21 · AndroidTest · 评论(0)

android uiautomator学习(一)创建工程

转自 http://blog.csdn.net/robinzhou/article/details/8447058 要写UIAutomator的testcase,首先要用Eclipse创建一个Java Project 需要将Junit 的lib加入到工程里 还要添加android.jar和uiautomator.jar,这两个文件在android sdk中,没有升级SDK的朋友,建议升级到最新的SDK,因为uiautomator还有些不完善,在老的SDK上有些功能还不能用 创建好工程后,就可以写case了,我们使用官方帮助中的例子,为了简单,采用官网上的例子,并且精简至一个home命令,方便…

2015-07-14 11:11 · AndroidTest · 评论(0)

MonkeyRunner在Windows下的Eclipse开发环境搭建步骤(兼解决网上Jython配置出错的问题)

转自 http://blog.csdn.net/zhubaitian/article/details/39803205 网上有一篇shangdong_chu网友写的文章介绍如何在Eclipse上配置MonkeyRunner,做了挺好的一个描述,但经过我的试验在我的环境上碰到了Jython解析器出错的问题,且该文章缺少Pydev安装的步骤,所以这里按照本人的情况从新撰文描述如何在Eclipse上把MonkeyRunner的开发环境搭建起来。 1.环境 首先需要先描述下本人配置的环境,因为不确定其他环境下配置是否会有轻微的差别。 Eclipse版本 系统版本 安卓SDK提供的Jython Jar…

2015-07-08 21:57 · Android · 评论(0)

Jython学习笔记(一) Eclipse开发环境搭建

转自 http://blog.csdn.net/yibing548/article/details/42079463 1 Eclipse开发环境搭建 1.1为什么搭建Eclipse开发环境 Eclipse 是著名的 跨平台 开源 集成开发环境 (IDE)。Eclipse的本身只是一个框架平台,但是众多 插件 的支持,使得Eclipse拥有较佳的灵活性。最初主要用来 Java 语言开发,目前亦有人通过 插件 使其作为 C++ 、 Python 、 PHP 等其他语言的开发工具。 在此我们主要利用 Eclipse+PyDev 来实现 Python 和 Jython 的编程环境 本部分主要介绍在w…

2015-07-08 20:58 · Android · 评论(0)