首页 | 本学科首页   官方微博 | 高级检索  
     

基于多线程并发的JUnit与TestNG测试框架比较
引用本文:汪添生,马朝晗,崔蔚,刘迪,赵俊峰,夏飞.基于多线程并发的JUnit与TestNG测试框架比较[J].计算机系统应用,2017,26(5):29-34.
作者姓名:汪添生  马朝晗  崔蔚  刘迪  赵俊峰  夏飞
作者单位:国网信息通信产业集团有限公司, 北京 100761;厦门亿力吉奥信息科技有限公司, 厦门 361000,国网信通产业集团亿力科技公司, 北京 100053,国网信息通信产业集团有限公司, 北京 100761,国网信息通信产业集团有限公司, 北京 100761;北京中电普华信息技术有限公司, 北京 100085,国网江苏省电力公司通信分公司, 南京 210008,国网江苏省电力公司通信分公司, 南京 210008
摘    要:在多线程并发测试需求面前,Junit和TestNG这两个简单的单元测试框架一直被拿来作比较,而用户一般更偏向于配置简单、灵活、易操作且满足测试要求的测试框架.本文对Junit和TestNG两种多线程并发测试方式进行实验对比,目的在于验证两种框架对多线程并发测试的实现方式,为用户在实际测试场景中选择工具提出了依据.

关 键 词:多线程  并发测试  JUnit  TestNG
收稿时间:2016/9/2 0:00:00
修稿时间:2016/11/7 0:00:00

Comparison of JUnit and TestNG Testing Framework Based on Concurrent Multi-Thread
WANG Tian-Sheng,MA Zhao-Han,CUI Wei,LIU Di,ZHAO Jun-Feng and XIA Fei.Comparison of JUnit and TestNG Testing Framework Based on Concurrent Multi-Thread[J].Computer Systems& Applications,2017,26(5):29-34.
Authors:WANG Tian-Sheng  MA Zhao-Han  CUI Wei  LIU Di  ZHAO Jun-Feng and XIA Fei
Affiliation:State Grid Information & Telecommunication Co. Ltd., Beijing 100761, China;Xiamen Great Power Geo Information Technology Co. Ltd., Xiamen 361000, China,Great Power Science and Technology Corporation State Grid Information & Telecommunication Group, Beijing 100053, China,State Grid Information & Telecommunication Co. Ltd., Beijing 100761, China,State Grid Information & Telecommunication Co. Ltd., Beijing 100761, China;Beijing China-Power Information Technology Co. Ltd., Beijing 100085, China,State Grid Jiangsu Electric Power Company & Telecommunication Branch, Nanjing 210008, China and State Grid Jiangsu Electric Power Company & Telecommunication Branch, Nanjing 210008, China
Abstract:In front of multi-threaded concurrent test requirements, Junit and TestNG these two simple unit test framework has been used to compare, but users generally prefer to the test framework that configuration is simple, flexible, and easy to operate and satisfied the test requirements. This thesis has made an experimental comparison of Junit and TestNG on multi-threaded concurrent test methods, to verify the two frameworks implementation for multithreaded concurrent test, and provides the basis for the user to select the tool in the actual test scenario for users.
Keywords:multi-thread  concurrent testing  JUnit  TestNG
点击此处可从《计算机系统应用》浏览原始摘要信息
点击此处可从《计算机系统应用》下载全文
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号