YONGFEIUALL

izheyi.com


  • Home

  • Archives

  • Categories

  • Tags

  • About

  • Search

TFS 'DiffPackage' package did not load correctly

Posted on 2015-12-07 | In TFS |

Today i got a weird issue, when i compare 2 files in TFS, got the “package did not load correctly” error.

Solution

  1. Close Visual Studio
  2. Open a Developer Command Prompt For VS 2012(as administrator)
  3. Type devenv /setup
  4. Restart Visual Studio

Linux下软件安装

Posted on 2015-12-06 | In Linux |

在Linux下安装软件的几种方法,做一个简单的介绍:

  1. 直接运行可执行程序,类似于Windows下的安装。
  2. 绿色版,也就是免安装,例如:Tomcat。
  3. rpm安装
    • 查询是否已经安装
      rpm -aq mysql
    • 删除已安装软件
      rpm -e [上一步查询到的内容]
      删除的时候,会有一些依赖关系的报错,可用下面方法强制删除,强制解除依赖关系
      rpm -e --nodeps [上一步查询到的内容]
    • 安装软件
      rpm -ivh [rpm软件包]
  4. 源码安装
    • 生成配置文件
      ./configure
    • 编译
      make
    • 安装软件
      make install

UFT 12.01 Identifies Firefox web object as Window object

Posted on 2015-12-04 | In QTP |

I got a problem: UFT 12.01 Identifies web object as Window object.
Currently I use UFT 12.01. I rolled back Firefox to v31. It seems UFT 12.01 supports this version. But….

Solution:
Go to “Tools -> Add-ons -> Extensions”, enable Unified Functional Testing Extension.

It should be work now.

Selenium Grid 自动分配

Posted on 2015-12-03 | In Selenium Webdriver |

Selenium Grid来实现多个nodes间的自动分配,以达到分布式并发的效果。

hub和node的启动和测试脚本,参见:Selenium Grid 初探

这次 TestNG XML 文件如下:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<suite thread-count="5" parallel="classes"  name="demo" >
<test name="test1">
<parameter name="browser" value="ff"/>
<parameter name="nodeUrl" value="http://192.168.24.13:4444"/>
<parameter name="webSite" value="http://www.baidu.com"/>
<classes>
<class name="testGrid2.Grid" />
</classes>
</test>

<test name="test2">
<parameter name="browser" value="chrome"/>
<parameter name="nodeUrl" value="http://192.168.24.13:4444"/>
<parameter name="webSite" value="http://www.baidu.com"/>
<classes>
<class name="testGrid2.Grid" />
</classes>
</test>
</suite>

Notes: url value是Grid Server地址(e.g., WebDriver wd = new RemoteWebDriver("http://localhost:4444/wd/hub", ieDesiredcap))。

对想使用Selenium Grid的来说,实现起来应该不会太麻烦,把框架里的单线程运行的公共脚本

1
WebDriver wd = new FirefoxDriver();

改成

1
2
DesiredCapabilities ff = DesiredCapabilities.firefox();  
WebDriver wd = new RemoteWebDriver("http://localhost:4444/wd/hub", ff);

然后再把hub的地址设置到Global Setting里边去。

Selenium Grid 初探

Posted on 2015-11-30 | In Selenium Webdriver |

之前研究过Jenkins的应用,知道基本的流程和原理,能进行一些基本的应用。
Grid的好处不多说。Selenium-Grid包括两个部分:
Hub:总控节点,连接调用Node,负责分配用例到对应的Node节点所在的执行器上Node
Node:负责执行TestCase,启动浏览器

举例说一下整个流程:

  1. Start the hub
    通过windows的DOS窗口进入selenium-server-standalone-2.48.2.jar所在目录,执行以下命令

    1
    java -jar selenium-server-standalone-2.48.2.jar -role hub

    Default port is 4444. To change the default port, you can add the optional parameter -port when you run the command. You can view the status of the hub by opening a browser window and navigating to: http://localhost:4444/grid/console

  2. Start the nodes
    进入到node,通过windows的DOS窗口进入selenium-server-standalone-2.48.2.jar所在目录,执行以下命令

    1
    java -jar selenium-server-standalone-2.48.2.jar -role node -hub http://localhost:4444/grid/register

    至此,Selenium-Grid就弄成功了,下面我用一个简单的例子来跑一下。

    Read more »

Performance Testing-核心原理

Posted on 2015-11-27 | In Performance Testing |

之前有说过,性能测试是基于协议的,要有大的并发,尽量在真实的环境中来做测试。这就是核心:多线程,协议,模拟真实场景。

多线程

  • 线程和进程
    理解二者的概念和区别,进程是管理单元,线程是执行单元
  • 单线程和多线程
    单线程好比有三条并行的公路,每条上只有一个车道。优点是安全性好。Linux就是单线程的操作系统。
    多线程好比只有一条马路,上面有三个车道。优点是资源共享,节省资源。Windows就是多线程的操作系统。
    Read more »

Excel-Unprotect-Macro

Posted on 2015-11-27 | In Excel |

Today i use a previous excel with Macro, but forget the protected password, we can use the following way to unprotect macro password.

  1. Download the “unprotect_macro.xlsm” file.
    Unprotect Macro
  2. Open these 2 documents.
  3. Run “unprotected()” in “unprotect_macro.xlsm” file.
  4. Should be upprotect now.

Performance Testing-基本介绍

Posted on 2015-11-27 | In Performance Testing |

自动化测试的基本认识

也做了很多年的手动测试和功能自动化测试,其实说到底,测试从本质上来看其实就是“数据+执行+验证”的过程。
自动化测试从分层的角度来看:

  • 单元 & API测试 - 基于代码层面
  • 功能自动化 - 基于UI层面
  • 性能测试 - 基于协议层面

什么是性能测试

理论上的知识自己Google。性能测试与功能测试不同,不再是验证功能是否正确,而是重点关注实现得好不好,重心是关注瓶颈所在。有时也会关注功能问题中的死锁、内存泄漏等问题。

  • 性能类型的一些说明:
    压力测试 - 什么时候压死
    负载测试 - 不同压力下的表现
    基准测试 - 正常情况下的压力
  • 测试工具
    Load Runner
    Jmeter
    …
    Read more »

Performance Testing-开篇

Posted on 2015-11-27 | In Performance Testing |

对性能测试从工作起就一知半解,感觉很高大尚的东西,之前做过几个项目也参加过简单的培训,对性能测试有了一个初步的认识,之后一直没来得及整理和思考。接下来的这段时间整理一下,总结一下思路和流程,以备后用,也尽量让它们能纳入到自己的知识结构体系中。

本次整理大概内容

  • 性能测试基础知识
  • Load Runner基本使用
  • Java和JVM的简单分析
  • Linux的简单分析

本次记录笔记的一些说明

  • 是基于Load Runner、Linux、Java来学习的
  • 内容可能会有些散
  • 为了减少打字,可能会记录一些当时培训的内容,如果有任何不妥,请告之,做相应处理。

中国也过感恩节?

Posted on 2015-11-26 | In 丁丁 |

这分明是美国人的一个古老节日,也是美国人合家欢聚的节日,在这天家人团聚在一起,品尝感恩节火鸡和南瓜饼等美食。

其实自古以来,中华民族就乐于助人、知恩图报,“受人滴水之恩,当以涌泉相报”一度传为名句。中国教育更多关注分数和升学率,加之很多孩子都是独生子女,家人的溺爱导致孩子觉得别人的关怀是理所当然,不少学生不懂得感谢、感激,只知道索取。

要感恩,不一定非得节日这天,感恩,感恩,每时每刻都应该。

小丁班里的小节目:

不要怀着什么目的去过这个节日,也不要过度的解读西方文化。请保持自我!!

1…272829…40
唐胡璐

唐胡璐

i just wanna live while i am alive

393 posts
42 categories
74 tags
RSS
LinkedIn Weibo GitHub E-Mail
Creative Commons
© 2022 唐胡璐
Powered by Hexo
|
Theme — NexT.Pisces v5.1.4