外文文献翻译 中英文对照 基于J2EE的新型软件自动化测试系统_第1页
外文文献翻译 中英文对照 基于J2EE的新型软件自动化测试系统_第2页
外文文献翻译 中英文对照 基于J2EE的新型软件自动化测试系统_第3页
外文文献翻译 中英文对照 基于J2EE的新型软件自动化测试系统_第4页
免费预览已结束,剩余1页可下载查看

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

1、novel software automated testing system based on j2eeabstractsoftware automated testing is one of the critical research subjects in the field ofcomputer application. in this paper a novel design of architecture called automatedtesting system ats is proposed. based on techniques relating to j2ee incl

2、udingmvc design pattern struts framework etc ats can support any black-box testingbusiness theoretically with relevant apis programmed using tcl script languagebeforehand. moreover as the core of ats is built in java it can work in differentenvironments without being re-complied. the efficiency of t

3、he new system isvalidated by plenty of applications in communication industry and the results alsoshow the effectiveness and flexibility of the approach.key wordsautomated testing system ats j2ee tclintroductionsoftware testing is a critical phase within the software lifecycle currently more andmore

4、 companies are paying attention to it. especially the software automated testingis becoming the most disputed subject in the software industry. therefore it is now apopular research problem in the computer application research area. the increasedcomplexity of systems as well as short product release

5、 schedules makes the task oftesting challenging. therefore how to improve the software qualities and how toadvance the testing efficiency are difficult.as a result software testing is the biggest challenging work during the softwarelifecycle especially the software automated testing. subsequently te

6、st-drivendevelopment is advocated by engineers. at the same time software capabilitymaturity model is put forward for controlling the process of software developmentand for guarantying the software quality but it imposes limited effects on softwareautomated testing. to our knowledge most of the pres

7、ent automated testing tools orproducts concern how to partition cases or how to implement a single target of testingwithout uniform testing system not to mention the distributed and cross-platformtesting functions.however ats is a black-box testing system based on j2ee theories such as mvcdesign pat

8、tern struts framework hibernate persistence layer etc which comprisestwo function modules: one is a front-end module developed in java script languagethe other is a back-end module the core of ats developed in pure javalanguage. thus the two function modules abide by browser/server model naturally.u

9、nder the strong support of front-end module testers without any prerequisiteknowledge can master it in a short training time. besides the core of ats can supportcross-platform execution due to pure java code and it can support distributedexecution due to the separation of job controller and executio

10、n server. every testingbusiness is supported theoretically by ats due to the excellent inherent capability self-defined apis which can be developed by advanced testing developers quicklywith tcl script language aiming at different special targets and the apis is transparentto common testers who work

11、 on the front-end system what they need to do is justfilling suitable data into blanks of web interface according to specific cases.1. related workthe most popular methods about automation test include record-playback functionaldecomposition data-driven and keywords-driven. record-playback is applie

12、d in guitest products usually such as winrunner1 etc. functional decomposition method isan infant version of data-driven or keywords-driven method which separates datafrom functions and uses data-files to provide both the input and the expected-resultsverification. however tester using this method m

13、ust not only maintain the detail testplan with specific data but also re-enter this data in the various required data-files.data-driven method records data by a spreadsheet file such as excel and theexecutions of test scripts depending on various apis and key data. keywords-drivenis an advanced data

14、-driven method which uses the actual test case documentdeveloped by the tester using a spreadsheet containing special keywords. in thismethod the entire process is data-driven as well and the keywords control theprocessing. however ats has strong programming function supported by variousfundamental

15、and businesss apis and flexible management and control function due tocombining data-driven and keywords-driven methods.in recent years there are many products and architectures surged out. blackburn forinstance proposed a model-based test automation method called test automationframework taf which

16、uses an interface-driven approach that combinesrequirements modeling to support automated test-case and test-driver generation. themodel focuses on how test engineers can develop more reusable models by clarifyingtextual requirements as models in terms of component or system interfaces. howeverdue t

17、o un-canonical requirement documents and un-strict business control it is verydifficult to extend it to many big software companies not to mention thosemiddle-small companies. meanwhile the methods based on component test areproposed such as cbsfg etc. unfortunately they care little about the archit

18、ecture ofautomated testing framework but pay attention to how to generate test cases.isofttech2 test automation system and axe3 automated testing framework areexcellent automation systems but without distributed and cross-platform functions.the dominating commercial products such as winrunner and ro

19、bot4 are designedwithout much consideration about compatibility and portability. these traditionaltesting products care little about the operations on cross-platform distributed controland distributed execution capabilities.2. ats architectureats is developed according to struts and mvc design patte

20、rn based on j2ee. serverend is built on the tomcat server while client end is presented on web pagesprogrammed in jsp and back-end business logic module is implemented by javabeans or even enterprise java beans.the ats is made up of user interface request handler manager job controller normalrequest

21、 handlers execution server and suite execute layer. the user interface moduleprovides front-end user with convenient operational interfaces to send the usersoperation requests to the request handler manager module. however the requesthandler manager module will not deal with these requests by itself

22、 but just forwardthem to some specific handler or action threads.in fact there are two kinds of user request. one is related to control logic belong totest suite or test job the other is miscellaneous request except from the first class. allthe requests related to control logic are dealt with by job

23、 controller. to supportdistributed execution job controller and execution server can run on different serversindependently. a job controller can control several execution servers synchronously.and execution server is designed by a finite states machine which can run test suitesqueue in a test job. w

24、hen all these test suites in a job queue is finished the executionserver will notify job controller to change the states of job. of course the suiteexecute layer is responsible for compiling and executing suites or cases to implementa specific test task which is an execution core of ats. meanwhile i

25、t provides aunified testing framework with various apis for programming test scripts at ease.2.1. request handler managerthe front-end interfaces of ats are web pages. tester can program test scripts ordrag methods from the basic library programmed in tcl scripts to form a completeprogram segment. a

26、ll these requests will be dispatched to server. generally everyrequest from front-end interface has its own handler function in the execution server.if web browser sends every request to the corresponding handler immediately theweb browser must store all these relationships between request and handl

27、er functionthat will decrease the flexibility and extensibility of the whole system. to solve thisproblem ats creates a request handler manager module to store these relationshipsbetween request and handler function.2.2. job controllerin ats there are three kinds of test eventsjob suite and case. jo

28、b is an integratorof suite queues which can be scheduled and allocated to an appointed executionserver. suite is an implementing entity which is assigned to suite execute layer byexecution server. case is an executable scripts designed in accordance with a certainbusiness in tcl script language.job

29、controller job executer and suite executer can update or query their files storiedin database respectively through different interfaces. obviously job controller isresponsible for controlling the states of jobs and assigning jobs to different jobexecuters for distributed execution. so the job contro

30、ller plays a key role in the wholeworking which guarantees the entire system to run smoothly. generally differentphases have different states. to control all these states well we design a finite statesmachine.2.3. execution serverjob controller launches a job to execute according to its state. execu

31、tion serverreceives execution job command and builds a suites queue for it which will call suiteexecute layer to execute these suites in turn. when execution server receives theresults returned from suite execute layer it will check whether the suite queue is null.if not it will notice the next suit

32、e to execute in the suite execute layer. otherwise theexecution server will inform job controller that all suites belong to the job have beendone.obviously the suite execute layer is constituted by some executable scripts orcommands to implement the task of a case. these scripts can be designed in t

33、cllanguage in a certain templates which can speed up the rate of testing developmentand guarantee the qualities of testing programs. the other function of the suiteexecute layer is that it provides apis and external interfaces such as gui api socketapi to support a third tool - winrunner or qtp. the

34、refore ats has powerfulflexibility and expansibility.conclusionscompared with traditional automated testing tools ats is a novel softwareautomated testing system applied to a communication company by plenty ofsuccessful test such as gui test with the help of winrunner and back-end programtest etc. i

35、t has been regarded as an effective and novel testing system withdistributed function resource management function and strong expansibility.specially we can design different apis to implement different testing business andthe scripts of regression test can execute on ats without revising any command

36、 linebut just revising global input variables. in a sense the ats is a general automatedtesting framework. 基于j2ee的新型软件自动化测试系统摘要 软件自动化测试是在计算机应用领域的重要研究课题之一。在本文中,提出那些设计新颖的系统为自动测试系统(ats)。根据有关j2ee技术,包括mvc设计模式,开源软件框架等,自动化测试系统可以使用tcl脚本语言编程相关的api,在理论上支持任何黑盒测试项目。此外,自动化测试的核心是建立在java上,它可以在不同的环境中工作,而无需重新构建。通过大量

37、的通信行业中的应用验证新系统的效率和结果,这也表明该方法的有效性和灵活性。关键字 自动化测试系统;j2ee;tcl简介 软件测试是软件生命周期内的关键阶段,目前受到了越来越多的企业重视。尤其是软件自动化测试在软件产业中正成为最具争议的话题。因此,现在自动化测试软件是在计算机应用研究领域的热门研究话题。测试系统以及短期的产品发布时间表增加了测试的复杂性,使得测试任务更具有挑战性,所以如何提高软件质量和测试的效率变得尤其困难。因此,软件测试最具有挑战性的工作是在软件的生命周期,特别是软件自动化测试期间,这些问题被测试驱动开发工程师所提出。同时,软件性能的成熟度模型,提出了在软件开发的过程中确保软件

38、质量控制,但它对软件自动化测试的效果有限。据我们所知,目前的自动化测试工具或产品最担忧的是如何在不同的情况下实现没有统一的测试系统的测试目标,就更不用说分布式测试和跨平台的测试功能了。 然而,该自动化测试系统是一个基于 j2ee 的 mvc 设计模式、开源软件框架和开源代码巩固层的黑箱测试系统,其中包括两个功能模块:一个是在 java 脚本语言开发的前端模块,另一种是后端模块纯 java 语言开发自动化测试系统的核心。这两个功能模块遵循浏览/服务模式,在前端模块的强大功能帮助下,没有任何测试知识的测试人员,也可以在很短的训练时间掌握它。此外,由于是纯 java 代码编写,自动化测试系统的核心可

39、以支持跨平台的执行,它同样可以支持分布式执行,通过分离作业控制端和执行服务端来实现。理论上每个测试业务都可以支持自动化测试系统,这归功于其优秀的内在功能自定义的 api库,它可以针对不同的特殊目标与 tcl 脚本语言迅速开发,并且 api 对工作在前端系统的测试人员来说是透明的,他们需要做的只是根据具体情况填充合适的数据到工作测试界面。1. 相关工作 关于自动化测试最常用的方法包括回归测试、功能分块检测、数据驱动和关键字驱动。回归测试通常应用在 gui 测试产品,如 winrunner。功能分块检测方式是数据驱动和关键字驱动方式的一种初期样板,从功能不同的数据和使用数据文件提供的输入来和预期的

40、结果对比验证。然而,使用这种方法的测试不仅必须保持详细的测试计划的具体数据,也必须重新输入各种所需的数据到数据文件中。数据驱动的方法是通过电子表格文件记录数据,如 excel 和依靠各种 api 和关键数据执行的测试脚本。关键字驱动是一种先进的数据驱动的方法,该方法使用实际测试人员开发使用含有特殊关键字的电子表格的测试用例文档。在这种方法中,整个测试过程是数据驱动和关键字控制处理。由此,自动化测试系统在各项基本功能和工程 api 的支持下和结合数据驱动和关键字驱动的方法灵活管理、控制功能,使其具备强大的编程功能。 近年来,有许多自动化测试产品和架构大量涌现。布莱克本提出了一种基于模型的使用接口驱动自动化测试方法称为自动化测试框架(taf),可以结合需求建模,以支持自动化测试用例和测试驱动程序生成。该模型着重于如何让测试工程师可以开发更多功能明确的可重用的套件模型或系统接口模型。然而,由于联合国的规范要求文档和严格的

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论