5月,Automated公司的TestComplete7發(fā)布了,展現了很多令人激動(dòng)的新特性,TestComplete7的口號是:
The Easiest TestComplete Ever.
Script-free testing for new users.
Power-packed features for savvy testers.
Ease of use and low price for all.
誓要改變大眾對其一貫的印象,把自己打造成“物美價(jià)廉”,功能強大而又簡(jiǎn)單易用的自動(dòng)化測試工具形象。
也來(lái)關(guān)鍵字驅動(dòng)測試
TestComplete一直缺少像QTP一樣的關(guān)鍵字測試功能,這讓很多初學(xué)者感覺(jué)其使用的難度較高,F在好了,TestComplete 7 增加了關(guān)鍵字測試功能,實(shí)現其“Script-free testing for new users”的諾言。

美中不足的是關(guān)鍵字測試與腳本代碼不能互相轉換,這多少有點(diǎn)讓人跌眼鏡,看來(lái)Automated公司還需要努力加強這方面的功能。作為彌補,TestComplete 7 支持在腳本代碼中調用關(guān)鍵字測試,例如:
Sub Main
' Enter your code here.
KeywordTests.Test1.Run
End Sub
同時(shí)也支持在關(guān)鍵字測試視圖中調用腳本里定義的過(guò)程,例如,對于如下腳本:
Sub TestCase1
Msgbox "this is TestCase1"
End Sub
可以在關(guān)鍵字視圖中通過(guò)“Run Script Routine”進(jìn)行調用。

調用函數也是同樣的做法,例如對于如下函數:
Function Add(a,b)
c = a + b
Add = c
End Function
同樣可以在關(guān)鍵字測試中調用,調用時(shí)輸入參數值即可。

文章來(lái)源于領(lǐng)測軟件測試網(wǎng) http://kjueaiud.com/