ITeye博客

dandada的博客

dandada · 共 14 篇文章

JAVA如何通过函数名调用函数

从需求看问题会更清晰,更容易记住。 需求 我有一个自动化测试的用例用来测试一系列金融产品(Security)的交易过程(DoTrade),已开始金融产品就两三个,代码写成下面这样: public void testDoTrade(String securityType){ Security s; if(securityType == "Stock"){ s = new Stock(); s.doTrade(); }Else if(securityType == "Bond"){ s = new Bond(); s.doTrade(); } } 很快,待测的金融产品越来越多,代码变得越来越冗余…

2015-07-23 04:33 · Java · 评论(0)

Ranorex NOT compatible with Flash Player 17

Our pc is upgraded due to a corporate upgrade and the version of flash player is upgrade to 17 accordingly. When I use Ranorex 5.2 spy to capture a flex page, there is an error message pop up, and the object is not captured correctly, I can see a layer is captured as obj which is not correct. So I …

2015-04-09 05:18 · 评论(0)

.NET Application contorls identified as WinOBject instead of SwfObjects

See if there is a patch that can help you – There are a lot of patches available for QTP. For eg: you’ll have to use the QTP_00699 for a 64 bit machine, QTPNET_00120 for WPF (.NET). Refer http://support.openview.hp.com/selfsolve/patches for more (you’ll need an HP ID for this) this is most likely .…

2015-03-13 16:11 · QTP · 评论(0)

办理L1B(Blanket)的流程

L1(Blanket)是跨国公司内部的职位调动的一种签证,另外一种是L1(Individual)但我不清楚什么情况下申请该类签证,我签的前者。 初期准备: 公司会问你要一些材料,包括各种允许察看信息的签名、简历、护照扫描件等。 预约签证: 公司会寄给你一个包裹里面含有签证所需的一些材料,拿到这个包裹后就可以去美国领事馆网站填写DS160表了。填写之后你需要注册一个账号用于管理自己的签证预约。以下是具体流程: *填写DS160表,填完后将confirmation page发送到自己邮箱并打印出来 *注册登陆帐号https://cgifederal.secure.force.com/Applic…

2015-03-11 17:30 · 评论(0)

Jenkins for .net in 5 Minutes

摘自:http://justinramel.com/2013/01/15/5-minute-setup/ Install 1.Download the latest version of Jenkins from: http://mirrors.jenkins-ci.org/windows/latest 2.Extract the setup files from the zip file. 3.Run the Setup.exe. 4.Accept all the defaults in the setup wizard. 5.Jenkins will now be installed a…

2015-03-05 17:52 · Jenkins · 评论(0)

转:如何使用Spring架构中的注释功能——基础篇

更好的阅读: http://hulefei29.iteye.com/blog/745257 转自:http://darxin.info/archive/2010/07/946c714c/ 在传统Spring架构中配置POJOs的基本操作有两种:装配和依赖注入。下面的例子中装配了两个POJO,同时指定了两个对象之间的依赖关系。 例1:实现一个简单类(Main.java) Java代码 1.package test; 2. 3.import org.springframework.context.ApplicationContext; 4.import org.springframework.c…

2015-02-17 15:36 · Java · 评论(0)

How to Make Money With a Pilot's License

摘自:http://work.chron.com/make-money-pilots-license-26634.html Getting a pilot’s license represents a considerable investment of time and money, and it’s only natural to want to get some of that back. Before you start counting the money you can make, remember that there’s more than one kind of pilot…

2015-01-26 17:55 · extension edu · 评论(0)

How Much Does it Cost to Get a Pilot License?

The feat of flying has long been a dream of many, young and old, and thanks to modern technology, anyone can become a pilot. Whether pursuing a career as a pilot or simply trying a new hobby, a pilot license is a large financial and time investment. On average, a pilot license takes around 60 hours…

2015-01-26 17:53 · extension edu · 评论(0)

How to Get a Private Pilot’s License (USA)

引用自:http://www.wikihow.com/Get-a-Private-Pilot%E2%80%99s-License-(USA) Getting a pilot’s license opens up doors of opportunities you may never have envisioned before. In the United States under the Federal Aviation Administration (FAA), you can get a Private Pilot License (PPL) which will allow you…

2015-01-26 17:38 · extension edu · 评论(0)

QTP/UFT调用SP

有两种方法,其一是直接使用SQL语句的方法: Set dbCountryConn = CreateObject("ADODB.Connection") dbCountryConn.Open "Provider=OraOLEDB.Oracle.1;Persist Security Info=False;User ID=prv;Data Source=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=HZ27P4993473.corp.statestr.com)(PORT=1521))));Password=prvUser;" 'op…

2015-01-15 18:07 · QTP · 评论(0)

如何在Disabled的webedit控件set value

当使用如下代码提示控件disabled的时候, Frame("Frame").WebEdit("FROM_DATE").Set "01/10/15" 可以直接修改其native属性来设置值: Frame("Frame").WebEdit("FROM_DATE").Object.Value = "01/10/15"

2015-01-12 16:26 · QTP · 评论(0)

TAF发布流程

一. 编码前 Make Branch like: Hotfix_Release_2014_12 SVN:https://hz27p5281237.corp.statestr.com/svn/TAF Check out the branch. 二. 编码 Fix defect, develop new feature. 在代码相应出将版本数字升级 编辑releasenote. 必要时编辑其他doc 三. 编码后 Check in branch. Confirm with other dev team(Arun) before merge it to trunk. Merge to trunk.…

2015-01-10 13:34 · 评论(0)

4个关联library的方法

By using ‘File > Settings > Resources > Associate Function Library’ option in QTP. By using Automation Object Model (AOM). By using ExecuteFile method. using LoadFunctionLibrary method. ExecuteFile是最慢而且有时候不稳定,基本可以用LoadFunctionLibrary来代替. 第二种方法在编写框架的时候非常有用,比如我的框架就使使用如下代码关联一个用户指定文件夹下的所有library,动态又高效.…

2014-12-23 11:00 · QTP · 评论(0)

安装QC出现错误 : This file has no digital signature or the publisher is untrusted

方法1: Suggest you add your ALM Server to Trusted Sites 方法2: If that doesn't work then try the following URL : http:// /qcbin/start_a.jsp?cancelcrlcheck=true Where ALM Server is your server. 方法3: 把IE的Advanced-->Security设置改为:取消 check for publisher's certificate revocation 方法3解决了我的问题。

2014-11-27 16:16 · QC · 评论(0)