计算机科学 ›› 2017, Vol. 44 ›› Issue (11): 187-190.doi: 10.11896/j.issn.1002-137X.2017.11.028

• 2016 年全国软件与应用学术会议 • 上一篇    下一篇

基于问题框架的行为驱动开发研究

高宁,李智   

  1. 广西师范大学计算机科学与信息工程学院 桂林541004,广西师范大学计算机科学与信息工程学院 桂林541004
  • 出版日期:2018-12-01 发布日期:2018-12-01
  • 基金资助:
    本文受国家自然科学基金(61262004),广西自然科学基金(2012GXNSFCA053010),广西科学研究与技术开发计划项目(桂科合1347004-22),2013年度广西高等教育教学改革工程项目(2013JGB121),广西多源信息挖掘与安全重点实验室开放基金(14-A-03-01),“八桂学者”工程专项经费资助

Research on Behavior-driven Development Based on Problem Frames

GAO Ning and LI Zhi   

  • Online:2018-12-01 Published:2018-12-01

摘要: 问题框架(Problem Frames,PF)在需求工程研究领域中已经获得了广泛重视和研究。目前,问题框架的相关研究已经取得了较多成果,但如何从需求模型(问题图)平滑过渡到软件设计以及实现仍是一个有待解决的问题。文中对如何将问题图转换到用户场景文本以及通过用户场景来辅助行为驱动开发方法进行软件设计与开发进行了研究,提出了一种问题框架与行为驱动开发相结合的软件开发方法(PFBDD)。该方法能够帮助系统分析员将用户需求 平滑过渡 到软件设计及测试,从而避免软件项目中表达不一致带来的问题。此外,通过实例介绍了如何将此方法应用到一个车管业务排队系统中,并介绍了Gherkin语言和Specflow工具。该方法对于问题框架进一步走向实践具有重要的推动作用。

关键词: 问题框架,问题图,行为驱动开发,测试驱动开发

Abstract: Problem frames have been widely recognized and studied in the research domain requirements engineering.Although many research outcomes about problem frames have been obtained,how to transform requirements models (i.e.,problem diagrams) into software design artifacts and implementations smoothly is still a difficult problem to be solved.In this paper,we demonstrated how to transform problem diagrams into user scenarios,which are then used to assist behavior driven design and development of software,and we proposed a software development method which combines problem frames and behavior driven design (PFBDD).The method can help system analysts to move smoothly from requirements analysis to software design and testing,thus avoiding inconsistency problems in software development.In addition,a case study was presented to demonstrate how to apply our method into a queuing problem of a vehicle management system.The Gherkin language and Specflow tool were introduced and applied in the case study.This method plays an important role in driving problem frames into further practical applications.

Key words: Problem frames,Problem diagrams,Behavior driven development,Test driven development

[1] LAVAZZA L,DEL BIANCO V.Combining problem frames and UML in the description of software requirements[C]∥International Conference on Fundamental Approaches To Software Engineering.Springer-Verlag,2006:199-213.
[2] DE CARVALHO R A,MANHES R S.Filling the Gap bet-ween Business Process Modeling and Behavior Driven Development[J].arXiv preprint arXiv:1005.4975,2010.
[3] DE CARVALHO R A,E SILVA F L C,Manhaes R S.Business language driven development:Joining business process models to automated tests[J].Advances in Enterprise Information Systems II,2012(7):1-5.
[4] BLAINE J D.Problem Frames-Analyzing and structuring software development problems[J].Software Quality Professional,2002(2):39-40.
[5] LI Z,PANG L,LIU G Y,et al.A Model-Driven Software Requirements Analysis Method and Its Technical Support[J].Journal of Guangxi Normal University(Natural Science Edition), 2013(2):19-26.(in Chinese) 李智,庞柳,刘国源,等.一种模型驱动的软件需求分析方法及技术支持[J].广西师范大学学报(自然科学版),2013(2):19-26.
[6] SOLIS C,WANG X F W.A Study of the Characteristics of Behaviour Driven Development [C]∥2011 37th EUROMICRO Conference on Software Engineering and Advanced Applications (SEAA).2011:383-387.
[7] CAO Y,CUI M.The Research on Behavior-driven Development of Automated Testing [J].Journal of Qingyuan Polytechnic,2013,6(6):1-4.(in Chinese) 曹洋,崔萌.基于行为驱动开发的自动化测试方法研究[J].清远职业技术学院学报,2013,6(6):1-4.
[8] WYNNE M,HELLESOY A.The cucumber book:behaviour-driven development for testers and developers[M].Pragmatic Bookshelf,2012.
[9] LIU G Y,WAN G H,PANG L,et al.Research and Development of Computer-aided Requirements Engineering Tool Based on Problem Frames [J].Computer Science,2014,1(11):137-140.(in Chinese) 刘国源,万光海,庞柳,等.基于问题框架的计算机辅助需求工程工具的研发[J].计算机科学,2014,41(11):137-140.
[10] LI Z,JIN Z.From User Requirements to Software Specifica-tions:An Approach Based on Problem Transformation [J].Journal of Software,2013,4(5):961-976.(in Chinese) 李智,金芝.从用户需求到软件规约:一种问题变换的方法[J].软件学报,2013,24(5):961-976.
[11] LAZR I,MOTOGNA S,PARV B.Behaviour driven development of foundational UML components[J].Electronic Notes in Theoretical Computer Science,2010,264(1):91-105.
[12] TIAN D,WEN J,LIU Y,et al.A Test-Driven Web application model based on layered approach[C]∥2010 IEEE International Conference on Information Theory and Information Security (ICITIS).IEEE,2010:160-163.
[13] SCHOENEMAN L,LIU J B.Integrating Behavior Driven Development and Programming by Contract[C]∥Computational Science and Its Applications(ICCSA 2013).Springer Berlin Heidelberg,2013:590-606.
[14] SOEKEN M,WILLE R,DRECHSLER R.Assisted behaviordriven development using natural language processing[M]∥Objects,Models,Components,Patterns.Springer Berlin Heidelberg,2012:269-287.
[15] JANZEN D S,SAIEDIAN H.Does test-driven development real-ly improve software design quality?[J].Software,2008,25(2):77-84.
[16] LANDandhUβER M,GENAID A.Connecting user stories and code for test development [C]∥Proceedings of the Third International Workshop on Recommendation Systems for Software Engineering.IEEE Press,2012:33-37.

No related articles found!
Viewed
Full text


Abstract

Cited

  Shared   
  Discussed   
No Suggested Reading articles found!