My opinion of how to develop the automatic tool for testing

As we know,script can be used for testing,the main idea of Automatic tools is the automatic cases are composing with lots of steps.every step contains some script.
you should define some variable for transporting from one step to the next step,global-variable shoule be exist for that, like if I get the id of contact at step 1,I want to use the Id I get at step 2,so I can get from the global-variable;

when we use the tools to finish that, the code is produce automatic,in fact, we test the code;
but there are some plugin for sending message ,or connecting the database ,I am not clear how they finish it;The usage of plugin just like the icon on the desk of computer,when we want to start an application ,we click it;ex:we want to get the number of contact,so we can choose this function 'getAddressBookItemsCount',then we can get the code :

 stepStart("1: Widget API Test");
 var mVarTestWidget = ResObjFactory.getObject('TestWidget');
 mVarTestWidget.defineVariable("num", "Widget.PIM.getAddressBookItemsCount()");

 
did you see that,the defineVariable have define the count to the num, so next stop we can check this num
I think this is not very diffcult to develop,just write some codes to compose the Js code,and UI can be

developped by C++.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值