`
tanglei198577
  • 浏览: 60276 次
  • 性别: Icon_minigender_1
  • 来自: 深圳
社区版块
存档分类

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++.

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics