iTestware

Seeing is not believing!Testing is believing!

 
  • Increase font size
  • Default font size
  • Decrease font size
iTestWare - 专业软件测试资讯网

开源测试自动化框架-SAFS

E-mail 列印 PDF

linux

SAFS(Software Automation Framework Support)是一个独立于工具的自动化框架,支持关键字驱动功能测试自动化。框架可以与Rational Robot、Rational Functional Tester、Selenium、TestCompelte等测试工具整合。

创始人Carl Nagle 认为:

"We must minimize the impact caused by changes in the applications we are testing,
and changes in the tools we use to test them."

我们在制定测试策略时,应该考虑减少由于被测试的应用程序的改变,以及测试工具的改变所带来的影响。

SAFS的下载地址:

http://safsdev.sourceforge.net/Default.htm

总的来说,引入了一个关键字驱动体系架构,比如像SAFS,可以极大地提高您测试团队的生产力。然而,就如同自动化本身一样,它不是万能的。在实现这个框架,开发最佳实践,开发必需的表、映射以及配置文件等时仍然会存在许多问题。此外,您还需要计算成本/收益,以分析哪些地方应该采用自动化,而哪些地方则不必采用。

最近更新 ( THURSDAY, 25 SEPTEMBER 2008 20:29 )
 
linux

QTP测试对象的一些秘密方法

E-mail 列印 PDF

最近Yaron Assa发表了一篇文章,给我们共享了他发现的关于QTP的一些秘密方法:

http://www.advancedqtp.com/community/blogs/yaron-assas-blog144/secret-methods-of-qtp-objects/

 其中有一些方法是对于所有测试对象都适用的,例如:

All QTP test objects have these five methods in common:

1. Highlight – Highlights the object, much like the highlight feature in the object-repository.

2. QueryValue(Property, PropertyData), GetProperty(Property, pFlags, pType, pParameterName) and SetProperty(Property, Value, pFlags, pType, pParameterName)– I haven’t been able to figure out what these method do. If any of you manage to crack this up, I would appreciate it if you dropped a comment.

3. ToString – Returns a string representation of the object. Usually it’s just the name.

4. Init - As described here, re-links the test-object to the runtime object. Especially useful in a web environment, after a page refresh.

另外一些则对于个别测试对象适用:

Web

All Objects:

Method

Description

.MakeObjVisible Scrolls the object into view (if needed). Similar to the documented .MakeVisible method for ActiveX objects

 

Browser:

Method

Description

.AddCookie(Domain, Cookies)
.GetCookies(Url, Cookies)
Probably syntactically sets / gets cookie data.
.RefreshWebSupportPerhaps the underlying method behind the visible .Refresh method?
.SubmitForm(bstrUrl, bstrTargetFrame, bstrPostData, bstrHeaders)Submit forms “hardcore” style.

 

Page:

Method

Description

.RefreshObjectsProbably performs .Init on all its childobjects.
.StartTransaction(Name)
.EndTransaction(Name, Status)
.SetTransactionStatus(Status)
Don’t have a clue.
.SaveLayout(pDoc)
.RestoreLayout(elemTag, elemID, propName, propValue)
Presumably saves/restores the visible layout of the page.

 

All other web objects (WebElement, WebList, WebButton, etc.):

Method

Description

.SubmitPresumably submits a form, if activated on the relevant object
.MouseOverSimilar to firing the OnMouseOver event.

Standard Windows

All Objects:

Method

Description

ClickOnText(TextToFind, Left, Top, Right, Bottom, MatchWholeWordOnly, BUTTON, DoubleClick)Extremely useful method! A merge between .GetTextLocation and .Click: It finds the specified text within the object, and clicks

 

All the parameters are self-explanatory. BUTTON is the button code (look under the click method in QTP help); and DoubleClick is boolean.

 

WinEdit:

Method

Description

.SetTextSeems to be exactly like the regular .Set method. However, Neither function uses the other (checked with RegisterUserFunc)

 

WinButton:

Method

Description

.PressSeems to be exactly like the regular .Click method. However, Neither function uses the other (checked with RegisterUserFunc)

 

WinMenu:

Method

Description

.PrepareMenu(phSubMenu, peMenuObjectType)Perhaps has something to do with loading the sub-menu items for a given menu option.

 

 

.Net (SWF objects)

All Objects:

Method

Description

ClickOnText(TextToFind, Left, Top, Right, Bottom, MatchWholeWordOnly, BUTTON, DoubleClick)Same as in Standard Windows.
SpyLaunches the .Net form spy for the relevant object. Perfect for objects you cannot get your mouse to point to.
CreateManagedObject(bsType, bsFile, pVal)Have no idea.

SwfTable:

Method

Description

GetCellCoord(Row, Column, X, Y)Probably the underlying method behind ClickCell. Should return the cell coordinates though the ByRef X,Y variables, but keeps spitting out an error (Perhaps the variables have to be cased into long integers?).

SwfButton:

Method

Description

.PressSeems to be exactly like the regular .Click method. However, Neither function uses the other (checked with RegisterUserFuc)

 

 

 

 

.Java

All Objects:

Method

Description

InvokeMethod(MethodName, MethodArguments)My guess is it calls an inner method of the object.
MethodWizard()Thanks to Mayno224: Will present a screen with all the object’s internal methods. Kinda similar to .Net objects Spy.
RequestFocus()Presumably brings the object into focus.
ClickOnText(TextToFind, Left, Top, Right, Bottom, MatchWholeWordOnly, BUTTON, DoubleClick)Same as in Standard Windows.

 

 

最近更新文章

測試達人部落格

部落格最新留言

誰在線上

現在有 4 訪客 在線上

热点文章

QTestWare

 

QTestWare是专为QTP自动化测试工程师设计和开发的工具包,是QTP自动化测试的基础框架。

QTestWare解决了很多控件识别、录制的问题,并且增强了很多控件的测试接口,让GUI控件测试更加简单、便捷,让QTP测试脚本更加稳健,可维护性和可重用性更强。

 

QTestWare功能特性介绍

 

QTestWare版本及报价

 

 

QTP精品课程

 

   

选择iTestWare的QTP精品培训课程,构建卓越自动化测试团队!
 
选择iTestWare的QTP精英培训课程,为测试工程师晋升之路助力!
 
选择iTestWare的QTP专业培训课程,免费赠送QTestWare一套,立即拥有高级QTP技巧!
 
免费索取培训课程表
咨询:Testing_is_believing@hotmail.com

 

iTestWare服务

 

还在为软件质量烦恼吗?

为什么不请教一下iTestWare的专业软件测试顾问呢?或许他们有办法解决您的问题!

Email : testing_is_believing@126.com   

MSN : testing_is_believing@hotmail.com

 

 


重大消息!

 

 

 

 

iTestWare很荣幸地宣布,QTestWare升级到1.1版本了!相比QTestWare1.0QTestWare1.1.NET控件的支持更加完善,并且增加了对流行的.NET第三方控件ComponentOne的支持,包括:C1FlexGridC1TrueDBGridC1MainMenuC1ToolBar

 

到目前为止,QTestWare是目前唯一全面支持和解决QTP测试.NET控件问题的测试工具包,对.NET控件的支持包括:CheckedListBoxContextMenuStripDataGridViewDomainUpDownMenuStripPropertyGridToolStripTrackBarTreeViewMaskedTextBoxListViewStatusStrip等。完美解决了QTP测试.NET控件时碰到的众多录制、对象识别方面的问题,并且封装了众多实用、可重用性强的函数,是QTP自动化测试工程师进行.NET项目自动化测试的好帮手。

 

 

QTestWare功能特性介绍

 

QTestWare版本及报价