计算机工程与应用
計算機工程與應用
계산궤공정여응용
COMPUTER ENGINEERING AND APPLICATIONS
2014年
22期
59-64
,共6页
构件系统集成测试%构件系统测试模型%模型转换%测试用例生成
構件繫統集成測試%構件繫統測試模型%模型轉換%測試用例生成
구건계통집성측시%구건계통측시모형%모형전환%측시용례생성
component system integration testing%component system test model%model conversion%test case generation
随着面向构件的软件开发方法的广泛应用,构件系统的描述和测试成为保证软件质量的关键所在。由于构件系统的复杂性和开发方法的特殊性,用传统方法对构件系统进行集成测试往往面对很多困难。提出了一种改进的面向测试的构件描述模型,称为TCSM,它着重对构件系统中的构件间的交互和约束进行了动态描述,为构件系统集成测试阶段的功能测试和边界测试等提供了大量可用信息。在此基础上,进一步提出一种把TCSM转换成测试模型的方法,以UML协作图模型为原型,实现了构件系统从描述模型到测试模型的自动转换。最后,实现了一种在所产生的测试模型上自动生成测试用例的算法。TCSM更好地描述了构件的交互行为信息,进一步实现了系统的自动化测试,减少了通常需要在构件系统搭建完成后,针对测试对系统手工建立测试模型的工作,提高了构件系统开发的效率和可靠性。
隨著麵嚮構件的軟件開髮方法的廣汎應用,構件繫統的描述和測試成為保證軟件質量的關鍵所在。由于構件繫統的複雜性和開髮方法的特殊性,用傳統方法對構件繫統進行集成測試往往麵對很多睏難。提齣瞭一種改進的麵嚮測試的構件描述模型,稱為TCSM,它著重對構件繫統中的構件間的交互和約束進行瞭動態描述,為構件繫統集成測試階段的功能測試和邊界測試等提供瞭大量可用信息。在此基礎上,進一步提齣一種把TCSM轉換成測試模型的方法,以UML協作圖模型為原型,實現瞭構件繫統從描述模型到測試模型的自動轉換。最後,實現瞭一種在所產生的測試模型上自動生成測試用例的算法。TCSM更好地描述瞭構件的交互行為信息,進一步實現瞭繫統的自動化測試,減少瞭通常需要在構件繫統搭建完成後,針對測試對繫統手工建立測試模型的工作,提高瞭構件繫統開髮的效率和可靠性。
수착면향구건적연건개발방법적엄범응용,구건계통적묘술화측시성위보증연건질량적관건소재。유우구건계통적복잡성화개발방법적특수성,용전통방법대구건계통진행집성측시왕왕면대흔다곤난。제출료일충개진적면향측시적구건묘술모형,칭위TCSM,타착중대구건계통중적구건간적교호화약속진행료동태묘술,위구건계통집성측시계단적공능측시화변계측시등제공료대량가용신식。재차기출상,진일보제출일충파TCSM전환성측시모형적방법,이UML협작도모형위원형,실현료구건계통종묘술모형도측시모형적자동전환。최후,실현료일충재소산생적측시모형상자동생성측시용례적산법。TCSM경호지묘술료구건적교호행위신식,진일보실현료계통적자동화측시,감소료통상수요재구건계통탑건완성후,침대측시대계통수공건립측시모형적공작,제고료구건계통개발적효솔화가고성。
With the extensive application of the component-oriented software development methods, the description and test of the component systems is becoming the key of software quality assurance. For the particularity of the component system complexity and development methods, component systems’integration test using traditional methods often face with many difficulties. This paper presents an improved test-oriented component describe model called TCSM. It focuses on the interactions and behavioral constraints between components in the component systems and provides a wealth of information for the phase of functional test and boundary test in system integration test. An approach to transfer the TCSM to test model, which based on UML collaboration diagram and supports the conversion of one component system from its description model to test model automatically, is also proposed in the paper. Furthermore, an algorithm for generating test cases automatically is realized. TCSM can better describe the interactive behaviors and realize the automatic test of compo-nent-based systems. The proposed model can not only reduce plenty of time in the process of system modeling and test, but also improve the efficiency and reliability of the component-based systems.