期刊文献+

Web应用中冗余代码检测方法研究

Research on Redundant Code Detection Method in Web Application
下载PDF
导出
摘要 为了提高Web开发效率,开发人员常常复用已有系统框架或成熟项目中现有的代码,但因此也导致了Web应用中总存在大量的冗余代码,冗余代码不仅影响程序的可读性和运行效率同时还会隐藏软件缺陷。通过研究Web应用源代码逻辑和框架的特性,提出了Web应用系统中基于源代码分析的冗余代码检测方法。从应用程序入口开始,根据代码之间的逻辑调用关系构建Web应用调用树,进而得到有效页面集、有效类与方法节点集;然后根据冗余检测算法检测出Web应用系统中冗余页面、冗余处理类与处理方法。为了评估冗余检测方法的有效性,包括漏检率与误检率,对两个JavaWeb应用进行冗余检测并通过人工注入冗余实验验证检测的有效性。实验结果证明,提出的冗余代码检测方法可以达到较高的检测效率。 In order to improve the efficiency of Web development,developers often reuse previous code in existing system frameworks or mature projects,but it also leads to a large amount of redundant code in Web applications.Redundant code not only affects the readability and operational efficiency of the program,but also hides software defects.We propose a redundant code detection method based on source code analysis in Web application system by studying the characteristics of web application source code logic and framework.The method constructs the Web application call tree according to the logical call relationship between the codes starting from the application entry,and then obtains the effective page set,class and method node set.A redundancy detection algorithm is presented to detect the redundant pages,the redundant service classes and the processing methods.In order to evaluate the effectiveness of the redundant detection method,including the missed detection rate and the false detection rate,two JavaWeb applications are used as the experiment to verify the redundant code detection method proposed,and the results show that the redundant detection efficiency is high.
作者 胡营营 赵逢禹 HU Ying-ying;ZHAO Feng-yu(School of Optical-Electrical and Computer Engineering,University of Shanghai for Science and Technology,Shanghai 200093,China)
出处 《计算机技术与发展》 2020年第3期30-35,共6页 Computer Technology and Development
基金 国家自然基金青年基金项目(61402288)。
关键词 WEB应用 冗余代码 抽象语法树 Web应用调用树 Web application redundancy code abstract syntax tree application call tree
  • 相关文献

参考文献5

二级参考文献24

  • 1ZHANG Jian. Constraint solving and symbolic execution [ C ]//Proceedings of the Verified Software : Theories, Tools, Experiments. Heidelberg, Berlin : Springer-Vier- lag, 2005 : 539 - 544. 被引量:1
  • 2XU Xiao, ZHANG Xiaosong S, LI Xiongda. New ap- proach to path explosion problem of symbolic execution [ C]//Proceedings of the 2010 .First International Con- ference on Pervasive Computing, Signal Processing and Applications. Washington, DC: IEEE Computer Socie- ty, 2010 : 301 - 304. 被引量:1
  • 3COHEN M B, DWYER M B, SHI Jiangfan. Exploiting constraint solving history to construct interaction test suites[ C]//Proceedings of the Testing: Academia and Industry Conference-Practice And Research Techniques. Washington, DC : IEEE Computer Society, 2007 : 121 - 130. 被引量:1
  • 4PAPADAKIS M, MALEVRtS N. Automatic mutation test case generation via dynamic symbolic execution [ C]//Proceedings of the 2010 IEEE 21st International Symposium on Software Reliability Engineering. Wash- ington, DC : IEEE Computer Society, 2010:121 - 130. 被引量:1
  • 5PAPADAKIS M, MALEVRIS N. A symbolic execution tool based on the elimination of infeasible paths [ C ]// Proceedings of the 2010 Fifth International Conference on Software Engineering Advances. Washington, DC: IEEE Computer Society, 2010:435-440. 被引量:1
  • 6王雅文,宫云战,肖庆,等.区间运算在软件缺陷检测中的应用[C].苏州:第五届中国测试学术会议论文集,2008:51-52. 被引量:1
  • 7王雅文,宫云战,肖庆,等.扩展区间运算的变量值范围分析技术[J].北京邴电大学学报,2009,32(3):36-41. 被引量:1
  • 8GHODRAT M A, GIVARGIS T, NICOLAN A. Expres- sion equivalence checking using interval analysis [ J ]. IEEE Transactions on Very Large Scale Integration (VL- SI) Systems, 2006, 14 (8) : 80 - 842. 被引量:1
  • 9DUSCASSE S, RIEGER M, DEMEYER S. A language independent approach for detecting duplicated code [ C ]//Proceedings of the IEEE International Conference on Software Maintenance. Washington, DC: IEEE Com- puter Society, 1999 : 109 - 118. 被引量:1
  • 10ROY C K, CORDY J R. NICAD : accurate detection of near-miss intentional clones using flexible pretty-printing and code normalization [ C ]//Proceedings of the 2008 the 16th IEEE International Conference on Program Comprehension. Washington, DC: IEEE Computer So- ciety, 2008 : 172 - 181. 被引量:1

共引文献11

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

内容加载中请稍等...
;
使用帮助 返回顶部