自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(18)
  • 资源 (1)
  • 收藏
  • 关注

原创 sequential action during html page loading

By default, and from my current understanding, browser usually runs each page on 3 ways: HTML parser, Javascript/DOM, and CSS.The HTML parser is responsible for parsing and interpreting the markup lan

2014-02-27 11:29:03 708

原创 different wait in selenium

1.pageLoadTimeout driver.manage().timeouts().pageLoadTimeout(60, TimeUnit.SECONDS); 2. Custom waitForPageLoaded function is used when page content is dynamicloaded by some scripts. Which should

2014-02-27 10:41:03 882

转载 selenium.webdriver.common.action_chains

The ActionChains implementation,classselenium.webdriver.common.action_chains.ActionChains(driver)[source]ActionChains are a way to automate low level interactions such as mouse movements, mouse

2014-02-27 09:56:31 2108

原创 SQL语句执行顺序及建议

一、SQL语句准备执行阶段当SQL 语句进入Oracle 的库缓存后1) 语法检查:检查SQL 语句拼写是否正确和词序2) 语义分析:核实所有的与数据字典不一致的表和列的名字3) 轮廓存储检查:检查数据字典4) 生成执行计划:使用基于成本的优化规则和数据字典中的统计表来决定最佳执行计划5) 建立二进制代码--基于HASH函数的HASH值:基于执行计划一旦为执行准备好了,

2014-02-26 09:28:46 1317

原创 Jbehave -- 参数化

Jbehave 中有三种参数化形式1. 按顺序的参数化(默认行为)step candidate 中的参数与java method中的参数按照自然的顺序一一对应。This is the default behaviour. The arguments extracted from thestep candidate are simply matched following natur

2014-02-25 17:15:52 1313

转载 Jbehave - Annotation

1. method step annotations:@Given@When@Then@Alias@Aliases@Pending(什么情况下用?)2.  method scenario annotations:@BeforeScenario@AfterScenarioOptionally,theScenarioType can

2014-02-25 12:29:21 1364

原创 Jbehave 中所用技术扫盲

Java基础之理解Annotation一、概念   Annontation是Java5开始引入的新特征。不同于javadoc,具有自反性。中文名称一般叫注解。它提供了一种安全的类似注释的机制,用来将任何的信息或元数据(metadata)与程序元素(类、方法、成员变量等)进行关联。  更通俗的意思是为程序的元素(类、方法、成员变量)加上更直观更明了的说明,这些说明信息是与程序的业务逻辑无

2014-02-25 11:11:47 1999

转载 Jbehave 学习笔记(二)

1、配置JBehave环境。1)、添加JBehave依赖包,基本的只需要添加jbehave-core和Junit包就足够了。2)、配置IntelliJ的JBehave插件,详情参见https://github.com/kumaraman21/IntelliJBehave/wiki2、实现一个JBehave的Story基本过程  JBahave的测试用例主要由3部分组成,描述

2014-02-25 10:47:52 2023

转载 Jbehave 学习笔记 (一)

1、什么是JBehaveJBehave是一个用java编写的BDD(Behavior-Driven-Design)框架, java界的Cucumber。(注: 1、BDD主要的目的是能够从业务领域专家的视角来编写测试用例,以解决技术人员和业务领域专家的沟通问题。2、Cucumber是基于Ruby的BDD框架)        2、JBehave的特点1)、纯Java实现,能调用jav

2014-02-25 10:46:15 3358

转载 sql,delete

删除表(记录和结构)的语名delete   ————   truncate      ———— dropDELETE (删除数据表里记录的语句)DELETE FROM表名 WHERE 条件;注意:删除记录并不能释放ORACLE里被占用的数据块表空间. 它只把那些被删除的数据块标成unused.如果确实要删除一个大表里的全部记录, 可以用 TRUNCATE 命令, 它可以释放占用的数

2014-02-14 13:20:10 560

原创 Selenium issues met during practice

1. disabled button Inspect the javascript on the page to see how the button is enabled upon typing. It's most likely through an event listener on a keyUp event or something similar on the give

2014-01-29 10:56:42 996

原创 selenium framework issues met in window 7 + OS X86 64bit system

cause the automation framework is desinged in 32bit system, I encoutered some problems when using it in window 7 + OS X86 64bit system ,1. can not read data from Excel file using ODBC?resoluti

2014-01-24 09:38:44 650

转载 java Debug

原文地址:http://rogerfederer.iteye.com/blog/737377 原因和解决办法如下: 出现这个错误是由于你的jdk版本与eclipse高版本配置造成的. 因为我们使用高版本的JDK编译的Java class文件试图在较低版本的JVM上运行,所报的错误。   因为,高版本的JDK生成的class文件使用的格式,可能与低版本的JDK的.class文件格式不

2014-01-23 14:34:55 731

转载 Java中的main()方法

Java中的main()方法详解 在Java中,main()方法是Java应用程序的入口方法,也就是说,程序在运行的时候,第一个执行的方法就是main()方法,这个方法和其他的方法有很大的不同,比如方法的名字必须是main,方法必须是public static void 类型的,方法必须接收一个字符串数组的参数等等。 在看Java中的main()方法之前,先看一个最简单的Java应

2014-01-23 11:03:57 669

转载 thread.sleep 与 implicitlywait 的区别

thread.sleep() 是线程休眠若干秒,JAVA去实现。等待的时间需要预估的比较准确,但实际上这是很难做到。而且系统一直再等待,预估的长了,时间就白白的浪费了,预估短了,不起作用。 implicitlyWait() 不是休眠,是设置超时时间,是每个driver自己去实现的。以IEDriverServer为例,implicitlyWait()会将一个超时的时间阀值传递给IED

2014-01-22 16:15:29 4196

原创 How to run Selenium webdriver on IE

I tried to change selenium webdriver - driver server from Firefox to IE ,and encountered several problem. after googling on internet and doing some search,finally resolved it. To keep improving myself

2014-01-22 15:46:26 743

转载 python -- fnmatch

#### Using fnmatch to get the file list under specific folderimport fnmatchimport osprint "All the files under the foler ------------"print os.listdir("D:\\learned SQLs in progress")print

2013-03-28 15:12:25 606

原创 python -- zip file

import zipfilef = zipfile.ZipFile('d:\\testzip.zip','w',zipfile.ZIP_DEFLATED)f.write('poem.txt')f.write('Chapter 3.docx')f.close()f = zipfile.ZipFile('d:\\testzip.zip','r',zipfile.ZIP_DEFL

2013-03-28 15:10:44 1021

空空如也

空空如也

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

TA关注的人

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