[go: up one dir, main page]

CN102098190B - A system and method for automatic development and testing of web projects - Google Patents

A system and method for automatic development and testing of web projects Download PDF

Info

Publication number
CN102098190B
CN102098190B CN 201110042789 CN201110042789A CN102098190B CN 102098190 B CN102098190 B CN 102098190B CN 201110042789 CN201110042789 CN 201110042789 CN 201110042789 A CN201110042789 A CN 201110042789A CN 102098190 B CN102098190 B CN 102098190B
Authority
CN
China
Prior art keywords
management module
test
code
background
modules
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN 201110042789
Other languages
Chinese (zh)
Other versions
CN102098190A (en
Inventor
娄建文
王理想
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Inspur Beijing Electronic Information Industry Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Inspur Beijing Electronic Information Industry Co Ltd filed Critical Inspur Beijing Electronic Information Industry Co Ltd
Priority to CN 201110042789 priority Critical patent/CN102098190B/en
Publication of CN102098190A publication Critical patent/CN102098190A/en
Application granted granted Critical
Publication of CN102098190B publication Critical patent/CN102098190B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Stored Programmes (AREA)

Abstract

一种Web项目的自动开发测试系统及方法,所述方法包括:所述前端管理模块或后台管理模块当本模块保存的代码更新后,通知要使用本模块资源的后台管理模块,以及通知所述测试管理模块,在通知中携带本模块的标识;所述资源为所保存代码的运行结果;当后台管理模块收到代码更新的通知后,根据该通知中携带的标识从发送通知的前端管理模块或后台管理模块获取要使用的资源;当所述测试管理模块收到一个或多个所述前端管理模块和/或后台管理模块代码更新的通知后,对全部所述前端管理模块和后台管理模块保存的代码进行集中;所述测试管理模块保存本次集中的代码并添加标记,然后对本次集中的代码进行编译及测试。

Figure 201110042789

An automatic development and testing system and method for a Web project, the method comprising: when the code saved by the front-end management module or the background management module is updated, notify the background management module that will use the resources of this module, and notify the The test management module carries the identification of this module in the notification; the resource is the running result of the saved code; when the background management module receives the notification of code update, it will send the notification from the front-end management module according to the identification carried in the notification Or the background management module obtains the resources to be used; when the test management module receives one or more notifications of the code update of the front-end management module and/or the background management module, all the front-end management modules and background management modules The saved codes are centralized; the test management module saves the concentrated codes and adds marks, and then compiles and tests the concentrated codes.

Figure 201110042789

Description

一种Web项目的自动开发测试系统及方法A system and method for automatic development and testing of web projects

技术领域 technical field

本发明涉及测试领域,具体涉及一种Web项目的自动开发测试系统及方法。The invention relates to the field of testing, in particular to an automatic development and testing system and method for Web projects.

背景技术 Background technique

如今互联网技术发展迅速,基于Web方式开发软件也成为一种趋势,Web项目与传统的C/S架构的桌面应用软件有很大的不同,Web项目中从前端到后端都由不同的技术领域的开发人员参与主导,传统的基于C/S的桌面应用,开发人员至始至终都参与,而Web项目开发中,前端的开发由专业的前端设计人员负责,比如HTML/CSS等,还有其他一些人员比如产品经理,交互设计,用户体验等等人员参与,如今的Web项目开发不是只需要一个会写程序的开发人员就万事大吉了,尤其是互联网项目开发步骤,环境都很复杂,没有一个好的管理方式,发布方式,将会大大增加项目开发成本;另外,互联网行业竞争激烈,每天都有项目发布,如果没有好的项目管理,发布方法,可能导致项目失去竞争力,甚至失败。Nowadays, Internet technology is developing rapidly, and developing software based on Web has become a trend. Web projects are very different from traditional C/S architecture desktop application software. Web projects are composed of different technical fields from the front end to the back end. In traditional C/S-based desktop applications, developers are involved from the beginning to the end. In Web project development, professional front-end designers are responsible for front-end development, such as HTML/CSS, etc. Other personnel such as product managers, interaction design, user experience, etc. are involved. Today's Web project development does not only need a developer who can write programs, and everything will be fine. Good management and release methods will greatly increase project development costs; in addition, the Internet industry is highly competitive, and projects are released every day. If there is no good project management and release methods, the project may lose competitiveness or even fail.

目前Web项目开发过程中,很多项目都存在项目延期,项目管理难等问题,主要是由于传统的项目管理环节中开发,测试,上线环节的脱节,低效。传统的项目管理的工作流程如图1所示,从需求确定到前端、后台开发,再到人工测试、人工发布,模块前后的集成需要不同的人员手工进行维护和管理,每个环节中都需要不同的人员来负责,管理。这种管理方式:1.增加项目的成本,人力成本效率低下;2.导致项目计划延期,甚至项目失败;3.面对需求的变化,投入的成本很大。In the current web project development process, many projects have problems such as project delays and difficult project management, mainly due to the disconnection and inefficiency of the development, testing, and online links in the traditional project management links. The traditional project management workflow is shown in Figure 1. From requirement determination to front-end and back-end development, to manual testing and manual release, the integration before and after the module requires different personnel to maintain and manage manually. Each link requires Different personnel are responsible and managed. This management method: 1. Increases the cost of the project, and the labor cost efficiency is low; 2. It leads to the delay of the project plan, or even the failure of the project; 3. Faced with the change of demand, the input cost is very high.

发明内容 Contents of the invention

本发明要解决的技术问题是如何避免开发过程中人工管理不便的问题,提高测试效率。The technical problem to be solved by the invention is how to avoid the inconvenience of manual management in the development process and improve the testing efficiency.

为了解决上述问题,本发明提供了一种Web项目的自动开发测试系统,包括:In order to solve the above problems, the present invention provides an automatic development and testing system for Web projects, including:

一个或多个用于保存前端代码的前端管理模块;一个或多个用于保存后台代码的后台管理模块,测试管理模块;One or more front-end management modules for saving front-end code; one or more background management modules for saving background code, test management module;

所述前端管理模块或后台管理模块保存要使用本模块资源的后台管理模块的标识,所述资源为所保存代码的运行结果;当本模块保存的代码更新后,通知所保存的标识对应的后台管理模块,以及通知所述测试管理模块,在通知中携带本模块的标识;The front-end management module or background management module saves the logo of the background management module that will use the resource of this module, and the resource is the running result of the saved code; when the code saved by this module is updated, notify the background corresponding to the saved logo The management module, and the test management module notified, carrying the identification of this module in the notification;

所述后台管理模块当收到代码更新的通知后,根据该通知中携带的标识从发送该通知的前端管理模块或后台管理模块获取本模块要使用的资源;After the background management module receives the notification of code update, it obtains the resources to be used by the module from the front-end management module or the background management module that sends the notification according to the identification carried in the notification;

所述测试管理模块中保存全部所述前端管理模块和后端管理模块的标识;当收到一个或多个所述前端管理模块和/或后台管理模块代码更新的通知后,对全部前端管理模块和后台管理模块保存的代码进行集中;保存本次集中的代码并添加标记,然后对本次集中的代码进行编译及测试。Store the identifications of all the front-end management modules and the back-end management modules in the test management module; after receiving one or more notifications that the front-end management modules and/or background management module codes are updated, all the front-end management modules Centralize the code saved by the background management module; save the code in this concentration and add tags, and then compile and test the code in this concentration.

进一步地,所述测试管理模块包括:Further, the test management module includes:

设置单元,用于设置测试参数并保存在配置文件中;所述测试参数包括测试时间和测试功能;The setting unit is used to set the test parameters and save them in the configuration file; the test parameters include test time and test functions;

存储单元,用于保存所述配置文件,及所有前端管理模块和后端管理模块的标识;A storage unit, used to save the configuration file, and the identifications of all front-end management modules and back-end management modules;

接收单元,用于当收到全部所保存的标识对应的前端管理模块和后台管理模块代码更新的通知后将表示需要测试的标志位置位;The receiving unit is used to set the flag position indicating that it needs to be tested after receiving the notification of the code update of the front-end management module and the background management module corresponding to all the saved logos;

控制单元,用于当根据所述配置文件需要进行测试时,判断所述表示需要测试的标志位是否为置位状态,如果是则对全部前端管理模块和后台管理模块保存的代码进行集中,在所述存储单元中保存本次集中的代码并添加标记,然后对本次集中的代码进行编译及测试。The control unit is used to determine whether the flag bit indicating that the test needs to be tested is in a set state when testing is required according to the configuration file, and if so, the codes saved by all front-end management modules and background management modules are concentrated, and the The codes in this concentration are stored in the storage unit and marked, and then the codes in this concentration are compiled and tested.

进一步地,所述设置单元还用于设置更新后要进行测试的前端管理模块和/或后台管理模块的标识;Further, the setting unit is also used to set the identity of the front-end management module and/or background management module to be tested after updating;

所述接收单元还用于当收到所述设置单元所设置的标识对应的前端管理模块或后台管理模块代码更新的通知后,将所述表示需要测试的标志位置位。The receiving unit is further configured to set the flag indicating that a test is required after receiving a notification of code update of the front-end management module or background management module corresponding to the flag set by the setting unit.

进一步地,所述设置单元还用于设置一或多组模块的标识;所述模块包括前端管理模块和/或后台管理模块;Further, the setting unit is also used to set the identification of one or more groups of modules; the modules include a front-end management module and/or a background management module;

所述接收单元还用于当收到一组中所有标识对应的前端管理模块和/或后台管理模块代码更新的通知后,将所述表示需要测试的标志位置位。The receiving unit is further configured to set the flag indicating that a test is required after receiving a code update notification of the front-end management module and/or background management module corresponding to all the identifiers in a group.

进一步地,所述的系统还包括:Further, the system also includes:

发布模块;release module;

所述测试管理模块测试成功后,将测试所用代码发送给所述发布模块;After the test management module tests successfully, it sends the code used for the test to the release module;

所述发布模块用于当收到所述测试管理模块发送的代码后,为该代码生成新的版本号,和该代码一起保存并发布。The release module is used to generate a new version number for the code after receiving the code sent by the test management module, save and release it together with the code.

本发明还提供了一种Web项目的自动开发测试方法,应用在包括一个或多个用于保存前端代码的前端管理模块、一个或多个用于保存后台代码的后台管理模块、及测试管理模块的系统中;所述方法包括:The present invention also provides a method for automatic development and testing of Web projects, which is applied to include one or more front-end management modules for saving front-end codes, one or more background management modules for saving background codes, and test management modules In the system; described method comprises:

所述前端管理模块或后台管理模块当本模块保存的代码更新后,通知要使用本模块资源的后台管理模块,以及通知所述测试管理模块,在通知中携带本模块的标识;所述资源为所保存代码的运行结果;When the code saved by the module is updated, the front-end management module or the background management module notifies the background management module that will use the resource of this module, and notifies the test management module, and carries the identification of this module in the notification; the resource is The running result of the saved code;

当后台管理模块收到代码更新的通知后,根据该通知中携带的标识从发送通知的前端管理模块或后台管理模块获取要使用的资源;When the background management module receives the code update notification, it obtains the resources to be used from the front-end management module or the background management module that sends the notification according to the identifier carried in the notification;

当所述测试管理模块收到一个或多个所述前端管理模块和/或后台管理模块代码更新的通知后,对全部所述前端管理模块和后台管理模块保存的代码进行集中;所述测试管理模块保存本次集中的代码并添加标记,然后对本次集中的代码进行编译及测试。After the test management module receives one or more notifications of the code update of the front-end management modules and/or background management modules, it concentrates the codes saved by all the front-end management modules and background management modules; the test management module The module saves the code in this concentration and adds tags, and then compiles and tests the code in this concentration.

进一步地,所述的方法还包括:Further, the method also includes:

设置测试参数并保存在配置文件中;所述测试参数包括测试时间和测试功能;Set the test parameters and save them in the configuration file; the test parameters include test time and test functions;

当所述测试管理模块收到一个或多个所述前端管理模块和/或后台管理模块代码更新的通知后,对全部所述前端管理模块和后台管理模块保存的代码进行集中的步骤包括:After the test management module receives one or more notifications of the code update of the front-end management module and/or background management module, the steps of concentrating the codes saved by all the front-end management modules and background management modules include:

当所述测试管理模块收到全部所保存的标识对应的前端管理模块和后台管理模块代码更新的通知后将表示需要测试的标志位置位;When the test management module receives the notification of the code update of the corresponding front-end management module and the background management module of all the saved signs, it will indicate that the flag position that needs to be tested is set;

当所述测试管理模块根据所述配置文件需要进行测试时,判断所述表示需要测试的标志位是否为置位状态,如果是则对全部所述前端管理模块和后台管理模块保存的代码进行集中。When the test management module needs to test according to the configuration file, it is judged whether the flag bit indicating that it needs to be tested is a set state, if so, the codes preserved by all the front-end management modules and the background management module are concentrated .

进一步地,所述的方法还包括:Further, the method also includes:

设置测试参数并保存在配置文件中;所述测试参数包括测试时间和测试功能;设置更新后要进行测试的前端管理模块和/或后台管理模块的标识;Set the test parameters and save them in the configuration file; the test parameters include test time and test functions; set the identification of the front-end management module and/or background management module to be tested after the update;

当所述测试管理模块收到一个或多个所述前端管理模块和/或后台管理模块代码更新的通知后,对全部所述前端管理模块和后台管理模块保存的代码进行集中的步骤包括:After the test management module receives one or more notifications of the code update of the front-end management module and/or background management module, the steps of concentrating the codes saved by all the front-end management modules and background management modules include:

当所述测试管理模块收到所述设置单元所设置的标识对应的所述前端管理模块或后台管理模块更新的通知后,将所述表示需要测试的标志位置位;When the test management module receives the update notification of the front-end management module or background management module corresponding to the flag set by the setting unit, it sets the flag indicating that it needs to be tested;

当所述测试管理模块根据所述配置文件需要进行测试时,判断所述表示需要测试的标志位是否为置位状态,如果是则对全部所述前端管理模块和后台管理模块保存的代码进行集中。When the test management module needs to test according to the configuration file, it is judged whether the flag bit indicating that it needs to be tested is a set state, if so, the codes preserved by all the front-end management modules and the background management module are concentrated .

进一步地,所述的方法还包括:Further, the method also includes:

设置测试参数并保存在配置文件中;所述测试参数包括测试时间和测试功能;设置一或多组模块的标识;所述模块包括所述前端管理模块和/或后台管理模块;Set the test parameters and save them in the configuration file; the test parameters include test time and test functions; set the identification of one or more groups of modules; the modules include the front-end management module and/or background management module;

当所述测试管理模块收到一个或多个所述前端管理模块和/或后台管理模块代码更新的通知后,对全部所述前端管理模块和后台管理模块保存的代码进行集中的步骤包括:After the test management module receives one or more notifications of the code update of the front-end management module and/or background management module, the steps of concentrating the codes saved by all the front-end management modules and background management modules include:

当所述测试管理模块收到一组中所有标识对应的所述前端管理模块和/或后台管理模块更新的通知后,将所述表示需要测试的标志位置位;After the test management module receives the update notification of the front-end management module and/or background management module corresponding to all the identifiers in a group, it sets the flag position indicating that it needs to be tested;

当所述测试管理模块根据所述配置文件需要进行测试时,判断所述表示需要测试的标志位是否为置位状态,如果是则对全部所述前端管理模块和后台管理模块保存的代码进行集中。When the test management module needs to test according to the configuration file, it is judged whether the flag bit indicating that it needs to be tested is a set state, if so, the codes preserved by all the front-end management modules and the background management module are concentrated .

进一步地,所述的方法还包括:Further, the method also includes:

当所述测试模块测试成功后,为测试所用代码生成新的版本号,和该代码一起保存并发布。When the test module is successfully tested, a new version number is generated for the code used in the test, and is saved and released together with the code.

本发明的技术方案可以自动构建,自动更新,自动反馈,实现不同环节之间的自动通信,解决人工管理的不便,大大提高工作效率,降低人力成本,免去手动测试的不便。The technical solution of the present invention can be automatically constructed, automatically updated, and automatically fed back to realize automatic communication between different links, solve the inconvenience of manual management, greatly improve work efficiency, reduce labor costs, and avoid the inconvenience of manual testing.

附图说明 Description of drawings

图1为传统的Web项目开发、测试、发布的流程示意图;Figure 1 is a schematic diagram of the traditional Web project development, testing, and publishing process;

图2为实施例一的Web项目的自动开发测试系统的示意框图。Fig. 2 is a schematic block diagram of the automatic development and testing system of the Web project in the first embodiment.

具体实施方式 Detailed ways

下面将结合附图及实施例对本发明的技术方案进行更详细的说明。The technical solution of the present invention will be described in more detail below with reference to the drawings and embodiments.

需要说明的是,如果不冲突,本发明实施例以及实施例中的各个特征可以相互结合,均在本发明的保护范围之内。另外,在附图的流程图示出的步骤可以在诸如一组计算机可执行指令的计算机系统中执行,并且,虽然在流程图中示出了逻辑顺序,但是在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤。It should be noted that, if there is no conflict, the embodiments of the present invention and various features in the embodiments can be combined with each other, and all are within the protection scope of the present invention. In addition, the steps shown in the flow diagrams of the figures may be performed in a computer system, such as a set of computer-executable instructions, and, although a logical order is shown in the flow diagrams, in some cases, the sequence may be different. The steps shown or described are performed in the order herein.

实施例一、一种自动测试系统,如图2所示,包括:Embodiment 1, an automatic test system, as shown in Figure 2, includes:

一个或多个用于保存前端代码的前端管理模块;一个或多个用于保存后台代码的后台管理模块,测试管理模块;One or more front-end management modules for saving front-end code; one or more background management modules for saving background code, test management module;

所述前端管理模块或后台管理模块保存要使用本模块资源的后台管理模块的标识,所述资源为所保存代码的运行结果;当本模块保存的代码更新后,通知所保存的标识对应的后台管理模块,以及通知所述测试管理模块,在通知中携带本模块的标识;The front-end management module or background management module saves the logo of the background management module that will use the resource of this module, and the resource is the running result of the saved code; when the code saved by this module is updated, notify the background corresponding to the saved logo The management module, and the test management module notified, carrying the identification of this module in the notification;

所述后台管理模块当收到代码更新的通知后,根据该通知中携带的标识从发送该通知的前端管理模块或后台管理模块获取本模块要使用的资源;After the background management module receives the notification of code update, it obtains the resources to be used by the module from the front-end management module or the background management module that sends the notification according to the identification carried in the notification;

所述测试管理模块中保存全部所述前端管理模块和后端管理模块的标识;当收到所述一个或多个前端管理模块和/或后台管理模块代码更新的通知后,对全部前端管理模块和后台管理模块保存的代码进行集中,保存本次集中的代码并添加标记,然后对本次集中的代码进行编译及测试。The identification of all the front-end management modules and the back-end management modules is saved in the test management module; after receiving the notification of the code update of the one or more front-end management modules and/or background management modules, all the front-end management modules Centralize the code saved by the background management module, save the code in this concentration and add a mark, and then compile and test the code in this concentration.

本实施例中,所添加的标记用于标识出各次集中的代码;保存各次集中的代码,并对各次保存的代码用不同标记加以区分,这样就可以防止重复测试,当代码有误时也方便代码回滚。In this embodiment, the added tags are used to identify the codes in each concentration; save the codes in each concentration, and use different tags to distinguish the codes saved in each time, so as to prevent repeated testing, when the code is wrong It is also convenient for code rollback.

本实施例中,所述代码更新包括初始代码生成的情况(也就是代码第一次开发完成时),也包括代码的后继更新的情况,还包括从代码更新的前端管理模块和/或后台管理模块获取资源的情况。In this embodiment, the code update includes the initial code generation (that is, when the code is developed for the first time), also includes the subsequent update of the code, and also includes the front-end management module and/or background management updated from the code The situation in which the module acquires the resource.

本实施例中,所述前端管理模块、后台管理模块和测试管理模块可以但不限于使用特定的通讯协议进行通信。In this embodiment, the front-end management module, the background management module and the test management module may, but are not limited to, use a specific communication protocol to communicate.

所述前端管理模块还可以用于前端代码的管理、集成和测试;所述后台管理模块还可以用于后台代码的管理和测试,并与所述前端管理模块进行持续集成;所述测试模块管理可将最新的代码进行集成,自动完成相关测试脚本,发布测试报告给相关开发人员,方便后续更新。The front-end management module can also be used for front-end code management, integration and testing; the background management module can also be used for background code management and testing, and is continuously integrated with the front-end management module; the test module manages The latest code can be integrated, related test scripts can be automatically completed, and test reports can be released to relevant developers for subsequent updates.

本实施例中,所述后台管理模块还用于获取资源后反馈结果给所述发送通知的前端管理模块或后台管理模块。In this embodiment, the background management module is further configured to feed back a result after acquiring resources to the front-end management module or background management module that sends the notification.

本实施例中,所述测试管理模块可以但不限于在收到全部所保存的标识对应的前端管理模块和后台管理模块代码更新的通知后立即进行测试,在收到一个或多个所述前端管理模块和/或后台管理模块代码更新的通知后也立即进行测试。In this embodiment, the test management module may, but is not limited to, perform the test immediately after receiving the notification of code update of the front-end management module and the background management module corresponding to all saved identifiers, and after receiving one or more of the front-end The test is also performed immediately after the notification of the code update of the management module and/or background management module.

本实施例中,所述测试管理模块也可以具体包括:In this embodiment, the test management module may also specifically include:

设置单元,用于设置测试参数并保存在配置文件中;所述测试参数可以但不限于包括测试时间和测试功能;还可以进一步包括如何反馈及响应测试结果;The setting unit is used to set the test parameters and save them in the configuration file; the test parameters may include, but are not limited to, test time and test functions; and may further include how to feedback and respond to test results;

存储单元,用于保存所述配置文件,及所有前端管理模块和后端管理模块的标识;A storage unit, used to save the configuration file, and the identifications of all front-end management modules and back-end management modules;

接收单元,用于当收到全部所保存的标识对应的前端管理模块和后台管理模块代码更新的通知后将表示需要测试的标志位置位;The receiving unit is used to set the flag position indicating that it needs to be tested after receiving the notification of the code update of the front-end management module and the background management module corresponding to all the saved logos;

控制单元,用于当根据所述配置文件需要进行测试时,判断所述表示需要测试的标志位是否为置位状态,如果是则对全部前端管理模块和后台管理模块保存的代码进行集中,在所述存储单元中保存本次集中的代码并添加标记,然后对本次集中的代码进行编译及测试。The control unit is used to determine whether the flag bit indicating that the test needs to be tested is in a set state when testing is required according to the configuration file, and if so, the codes saved by all front-end management modules and background management modules are concentrated, and the The codes in this concentration are stored in the storage unit and marked, and then the codes in this concentration are compiled and tested.

本实施例中,所述接收单元还可以一旦收到一个所述前端管理模块或后台管理模块代码更新的通知后,就将所述表示需要测试的标志位置位;也可以采用后文中描述的方案或其它方案。In this embodiment, once the receiving unit receives a notification that the code of the front-end management module or the background management module is updated, it will set the flag indicating that it needs to be tested; it can also adopt the scheme described in the following text or other options.

本实施例中,所述设置单元还可以用于设置更新后要进行测试的前端管理模块和/或后台管理模块的标识;In this embodiment, the setting unit can also be used to set the identity of the front-end management module and/or background management module to be tested after updating;

所述接收单元还可以用于当收到所述设置单元所设置的标识对应的前端管理模块或后台管理模块代码更新的通知后,将所述表示需要测试的标志位置位。The receiving unit may also be configured to set the flag indicating that a test is required after receiving a notification of code update of the front-end management module or background management module corresponding to the flag set by the setting unit.

本实施例中,所述设置单元也可以用于设置一或多组模块的标识;所述模块包括前端管理模块和/或后台管理模块;In this embodiment, the setting unit can also be used to set the identification of one or more groups of modules; the modules include a front-end management module and/or a background management module;

所述接收单元还可以用于当收到一组中所有标识对应的前端管理模块和/或后台管理模块代码更新的通知后,将所述表示需要测试的标志位置位。The receiving unit may also be configured to set the flag indicating that a test is required after receiving a code update notification of the front-end management module and/or background management module corresponding to all the identifiers in a group.

本实施例中,所述系统还可以包括:In this embodiment, the system may also include:

发布模块;release module;

所述测试管理模块测试成功后,将测试所用代码发送给所述发布模块;After the test management module tests successfully, it sends the code used for the test to the release module;

所述发布模块用于当收到所述测试管理模块发送的代码后,为该代码生成新的版本号,和该代码一起保存并发布。The release module is used to generate a new version number for the code after receiving the code sent by the test management module, save and release it together with the code.

所述发布模块中保存了各版测试成功的代码,可方便版本回滚。The release module stores the successfully tested codes of each version, which can facilitate version rollback.

实施例二,一种Web项目的自动开发测试方法,可应用在实施例一的系统中,所述方法包括:Embodiment 2, an automatic development and testing method for a Web project, which can be applied to the system of Embodiment 1, the method includes:

所述前端管理模块或后台管理模块当本模块保存的代码更新后,通知要使用本模块资源的后台管理模块,以及通知所述测试管理模块,在通知中携带本模块的标识;所述资源为所保存代码的运行结果;When the code saved by the module is updated, the front-end management module or the background management module notifies the background management module that will use the resource of this module, and notifies the test management module, and carries the identification of this module in the notification; the resource is The running result of the saved code;

当后台管理模块收到代码更新的通知后,根据该通知中携带的标识从发送通知的前端管理模块或后台管理模块获取要使用的资源;When the background management module receives the code update notification, it obtains the resources to be used from the front-end management module or the background management module that sends the notification according to the identifier carried in the notification;

当所述测试管理模块收到一个或多个所述前端管理模块和/或后台管理模块代码更新的通知后,对全部所述前端管理模块和后台管理模块保存的代码进行集中;所述测试管理模块保存本次集中的代码并添加标记,然后对本次集中的代码进行编译及测试。After the test management module receives one or more notifications of the code update of the front-end management modules and/or background management modules, it concentrates the codes saved by all the front-end management modules and background management modules; the test management module The module saves the code in this concentration and adds tags, and then compiles and tests the code in this concentration.

本实施例中,所述的方法还可以包括:In this embodiment, the method may also include:

设置测试参数并保存在配置文件中;所述测试参数包括测试时间和测试功能;Set the test parameters and save them in the configuration file; the test parameters include test time and test functions;

当所述测试管理模块收到一个或多个所述前端管理模块和/或后台管理模块代码更新的通知后,对全部所述前端管理模块和后台管理模块保存的代码进行集中的步骤包括:After the test management module receives one or more notifications of the code update of the front-end management module and/or background management module, the steps of concentrating the codes saved by all the front-end management modules and background management modules include:

当所述测试管理模块收到全部所保存的标识对应的前端管理模块和后台管理模块代码更新的通知后将表示需要测试的标志位置位;When the test management module receives the notification of the code update of the corresponding front-end management module and the background management module of all the saved signs, it will indicate that the flag position that needs to be tested is set;

当所述测试管理模块根据所述配置文件需要进行测试时,判断所述表示需要测试的标志位是否为置位状态,如果是则对全部所述前端管理模块和后台管理模块保存的代码进行集中。When the test management module needs to test according to the configuration file, it is judged whether the flag bit indicating that it needs to be tested is a set state, if so, the codes preserved by all the front-end management modules and the background management module are concentrated .

本实施例中,所述的方法还可以包括:In this embodiment, the method may also include:

设置测试参数并保存在配置文件中;所述测试参数包括测试时间和测试功能;设置更新后要进行测试的前端管理模块和/或后台管理模块的标识;Set the test parameters and save them in the configuration file; the test parameters include test time and test functions; set the identification of the front-end management module and/or background management module to be tested after the update;

当所述测试管理模块收到一个或多个所述前端管理模块和/或后台管理模块代码更新的通知后,对全部所述前端管理模块和后台管理模块保存的代码进行集中的步骤包括:After the test management module receives one or more notifications of the code update of the front-end management module and/or background management module, the steps of concentrating the codes saved by all the front-end management modules and background management modules include:

当所述测试管理模块收到所述设置单元所设置的标识对应的所述前端管理模块或后台管理模块更新的通知后,将所述表示需要测试的标志位置位;When the test management module receives the update notification of the front-end management module or background management module corresponding to the flag set by the setting unit, it sets the flag indicating that it needs to be tested;

当所述测试管理模块根据所述配置文件需要进行测试时,判断所述表示需要测试的标志位是否为置位状态,如果是则对全部所述前端管理模块和后台管理模块保存的代码进行集中。When the test management module needs to test according to the configuration file, it is judged whether the flag bit indicating that it needs to be tested is a set state, if so, the codes preserved by all the front-end management modules and the background management module are concentrated .

本实施例中,所述的方法还可以包括:In this embodiment, the method may also include:

设置测试参数并保存在配置文件中;所述测试参数包括测试时间和测试功能;设置一或多组模块的标识;所述模块包括所述前端管理模块和/或后台管理模块;Set the test parameters and save them in the configuration file; the test parameters include test time and test functions; set the identification of one or more groups of modules; the modules include the front-end management module and/or background management module;

当所述测试管理模块收到一个或多个所述前端管理模块和/或后台管理模块代码更新的通知后,对全部所述前端管理模块和后台管理模块保存的代码进行集中的步骤包括:After the test management module receives one or more notifications of the code update of the front-end management module and/or background management module, the steps of concentrating the codes saved by all the front-end management modules and background management modules include:

当所述测试管理模块收到一组中所有标识对应的所述前端管理模块和/或后台管理模块更新的通知后,将所述表示需要测试的标志位置位;After the test management module receives the update notification of the front-end management module and/or background management module corresponding to all the identifiers in a group, it sets the flag position indicating that it needs to be tested;

当所述测试管理模块根据所述配置文件需要进行测试时,判断所述表示需要测试的标志位是否为置位状态,如果是则对全部所述前端管理模块和后台管理模块保存的代码进行集中。When the test management module needs to test according to the configuration file, it is judged whether the flag bit indicating that it needs to be tested is a set state, if so, the codes preserved by all the front-end management modules and the background management module are concentrated .

本实施例中,所述的方法还可以包括:In this embodiment, the method may also include:

当所述测试模块测试成功后,为测试所用代码生成新的版本号,和该代码一起保存并发布。When the test module is successfully tested, a new version number is generated for the code used in the test, and is saved and released together with the code.

其它实现细节可同实施例一。Other implementation details may be the same as those in Embodiment 1.

本领域普通技术人员可以理解上述方法中的全部或部分步骤可通过程序来指令相关硬件完成,所述程序可以存储于计算机可读存储介质中,如只读存储器、磁盘或光盘等。可选地,上述实施例的全部或部分步骤也可以使用一个或多个集成电路来实现。相应地,上述实施例中的各模块/单元可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。本发明不限制于任何特定形式的硬件和软件的结合。Those of ordinary skill in the art can understand that all or part of the steps in the above method can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable storage medium, such as a read-only memory, a magnetic disk or an optical disk, and the like. Optionally, all or part of the steps in the foregoing embodiments may also be implemented using one or more integrated circuits. Correspondingly, each module/unit in the foregoing embodiments may be implemented in the form of hardware, or may be implemented in the form of software function modules. The present invention is not limited to any specific combination of hardware and software.

当然,本发明还可有其他多种实施例,在不背离本发明精神及其实质的情况下,熟悉本领域的技术人员当可根据本发明作出各种相应的改变和变形,但这些相应的改变和变形都应属于本发明的权利要求的保护范围。Of course, the present invention can also have other various embodiments, and those skilled in the art can make various corresponding changes and deformations according to the present invention without departing from the spirit and essence of the present invention, but these corresponding Changes and deformations should all belong to the protection scope of the claims of the present invention.

Claims (8)

1.一种Web项目的自动开发测试系统,其特征在于,包括:1. An automatic development and testing system of a Web project, characterized in that, comprising: 一个或多个用于保存前端代码的前端管理模块,一个或多个用于保存后台代码的后台管理模块,测试管理模块;One or more front-end management modules for saving front-end codes, one or more background management modules for saving background codes, and test management modules; 所述前端管理模块或后台管理模块保存要使用本模块资源的后台管理模块的标识,所述资源为所保存代码的运行结果;当本模块保存的代码更新后,通知所保存的标识对应的后台管理模块,以及通知所述测试管理模块,在通知中携带本模块的标识;The front-end management module or background management module saves the logo of the background management module that will use the resource of this module, and the resource is the running result of the saved code; when the code saved by this module is updated, notify the background corresponding to the saved logo The management module, and the test management module notified, carry the identification of this module in the notification; 所述后台管理模块当收到代码更新的通知后,根据该通知中携带的标识从发送该通知的前端管理模块或后台管理模块获取本模块要使用的资源;After the background management module receives the notification of code update, it obtains the resources to be used by the module from the front-end management module or the background management module that sends the notification according to the identification carried in the notification; 所述测试管理模块中保存全部所述前端管理模块和后台管理模块的标识;当收到一个或多个所述前端管理模块和/或后台管理模块代码更新的通知后,对全部前端管理模块和后台管理模块保存的代码进行集中;保存本次集中的代码并添加标记,然后对本次集中的代码进行编译及测试;Store the identifications of all the front-end management modules and background management modules in the test management module; after receiving one or more notifications of the code update of the front-end management modules and/or background management modules, all front-end management modules and background management modules The code saved by the background management module is centralized; save the code of this concentration and add a mark, and then compile and test the code of this concentration; 其中,所述测试管理模块包括:Wherein, the test management module includes: 设置单元,用于设置测试参数并保存在配置文件中;所述测试参数包括测试时间和测试功能;The setting unit is used to set the test parameters and save them in the configuration file; the test parameters include test time and test functions; 存储单元,用于保存所述配置文件,及所有前端管理模块和后台管理模块的标识;A storage unit, used to save the configuration file and the identifications of all front-end management modules and background management modules; 接收单元,用于当收到全部所保存的标识对应的前端管理模块和后台管理模块代码更新的通知后将表示需要测试的标志位置位;The receiving unit is used to set the flag position indicating that it needs to be tested after receiving the notification of the code update of the front-end management module and the background management module corresponding to all the saved logos; 控制单元,用于当根据所述配置文件需要进行测试时,判断所述表示需要测试的标志位是否为置位状态,如果是则对全部前端管理模块和后台管理模块保存的代码进行集中,在所述存储单元中保存本次集中的代码并添加标记,然后对本次集中的代码进行编译及测试。The control unit is used to determine whether the flag bit indicating that the test needs to be tested is in a set state when testing is required according to the configuration file, and if so, the codes saved by all front-end management modules and background management modules are concentrated, and the The codes in this concentration are stored in the storage unit and marked, and then the codes in this concentration are compiled and tested. 2.如权利要求1所述的系统,其特征在于:2. The system of claim 1, wherein: 所述设置单元还用于设置更新后要进行测试的前端管理模块和/或后台管理模块的标识;The setting unit is also used to set the identification of the front-end management module and/or background management module to be tested after updating; 所述接收单元还用于当收到所述设置单元所设置的标识对应的前端管理模块或后台管理模块代码更新的通知后,将所述表示需要测试的标志位置位。The receiving unit is further configured to set the flag indicating that a test is required after receiving a notification of code update of the front-end management module or background management module corresponding to the flag set by the setting unit. 3.如权利要求1所述的系统,其特征在于:3. The system of claim 1, wherein: 所述设置单元还用于设置一或多组模块的标识;所述模块包括前端管理模块和/或后台管理模块;The setting unit is also used to set the identification of one or more groups of modules; the modules include a front-end management module and/or a background management module; 所述接收单元还用于当收到一组中所有标识对应的前端管理模块和/或后台管理模块代码更新的通知后,将所述表示需要测试的标志位置位。The receiving unit is further configured to set the flag indicating that a test is required after receiving a code update notification of the front-end management module and/or background management module corresponding to all the identifiers in a group. 4.如权利要求1到3中任一项所述的系统,其特征在于,还包括:4. The system according to any one of claims 1 to 3, further comprising: 发布模块;release module; 所述测试管理模块测试成功后,将测试所用代码发送给所述发布模块;After the test management module tests successfully, it sends the code used for the test to the release module; 所述发布模块用于当收到所述测试管理模块发送的代码后,为该代码生成新的版本号,和该代码一起保存并发布。The release module is used to generate a new version number for the code after receiving the code sent by the test management module, save and release it together with the code. 5.一种Web项目的自动开发测试方法,应用在包括一个或多个用于保存前端代码的前端管理模块、一个或多个用于保存后台代码的后台管理模块、及测试管理模块的系统中;所述方法包括:5. An automatic development and testing method for a Web project, applied in a system including one or more front-end management modules for storing front-end codes, one or more background management modules for saving background codes, and a test management module ; the method comprises: 所述前端管理模块或后台管理模块当本模块保存的代码更新后,通知要使用本模块资源的后台管理模块,以及通知所述测试管理模块,在通知中携带本模块的标识;所述资源为所保存代码的运行结果;When the code saved by the module is updated, the front-end management module or the background management module notifies the background management module that will use the resource of this module, and notifies the test management module, and carries the identification of this module in the notification; the resource is The running result of the saved code; 当后台管理模块收到代码更新的通知后,根据该通知中携带的标识从发送通知的前端管理模块或后台管理模块获取要使用的资源;When the background management module receives the code update notification, it obtains the resources to be used from the front-end management module or the background management module that sends the notification according to the identifier carried in the notification; 当所述测试管理模块收到一个或多个所述前端管理模块和/或后台管理模块代码更新的通知后,对全部所述前端管理模块和后台管理模块保存的代码进行集中;所述测试管理模块保存本次集中的代码并添加标记,然后对本次集中的代码进行编译及测试;After the test management module receives one or more notifications of the code update of the front-end management modules and/or background management modules, it concentrates the codes saved by all the front-end management modules and background management modules; the test management module The module saves the code in this concentration and adds tags, and then compiles and tests the code in this concentration; 其中,还包括:Among them, also include: 设置测试参数并保存在配置文件中;所述测试参数包括测试时间和测试功能;Set the test parameters and save them in the configuration file; the test parameters include test time and test functions; 当所述测试管理模块收到一个或多个所述前端管理模块和/或后台管理模块代码更新的通知后,对全部所述前端管理模块和后台管理模块保存的代码进行集中的步骤包括:After the test management module receives one or more notifications of the code update of the front-end management module and/or background management module, the steps of concentrating the codes saved by all the front-end management modules and background management modules include: 当所述测试管理模块收到全部所保存的标识对应的前端管理模块和后台管理模块代码更新的通知后将表示需要测试的标志位置位;When the test management module receives the notification of the code update of the corresponding front-end management module and the background management module of all the saved signs, it will indicate that the flag position that needs to be tested is set; 当所述测试管理模块根据所述配置文件需要进行测试时,判断所述表示需要测试的标志位是否为置位状态,如果是则对全部所述前端管理模块和后台管理模块保存的代码进行集中。When the test management module needs to test according to the configuration file, it is judged whether the flag bit indicating that it needs to be tested is a set state, if so, the codes preserved by all the front-end management modules and the background management module are concentrated . 6.如权利要求5所述的方法,其特征在于,还包括:6. The method of claim 5, further comprising: 设置测试参数并保存在配置文件中;所述测试参数包括测试时间和测试功能;设置更新后要进行测试的前端管理模块和/或后台管理模块的标识;Set the test parameters and save them in the configuration file; the test parameters include test time and test functions; set the identification of the front-end management module and/or background management module to be tested after the update; 当所述测试管理模块收到一个或多个所述前端管理模块和/或后台管理模块代码更新的通知后,对全部所述前端管理模块和后台管理模块保存的代码进行集中的步骤包括:After the test management module receives one or more notifications of the code update of the front-end management module and/or background management module, the steps of concentrating the codes saved by all the front-end management modules and background management modules include: 当所述测试管理模块收到所述设置单元所设置的标识对应的所述前端管理模块或后台管理模块更新的通知后,将所述表示需要测试的标志位置位;When the test management module receives the update notification of the front-end management module or background management module corresponding to the flag set by the setting unit, it sets the flag indicating that it needs to be tested; 当所述测试管理模块根据所述配置文件需要进行测试时,判断所述表示需要测试的标志位是否为置位状态,如果是则对全部所述前端管理模块和后台管理模块保存的代码进行集中。When the test management module needs to test according to the configuration file, it is judged whether the flag bit indicating that it needs to be tested is a set state, if so, the codes preserved by all the front-end management modules and the background management module are concentrated . 7.如权利要求5所述的方法,其特征在于,还包括:7. The method of claim 5, further comprising: 设置测试参数并保存在配置文件中;所述测试参数包括测试时间和测试功能;设置一或多组模块的标识;所述模块包括所述前端管理模块和/或后台管理模块;Set the test parameters and save them in the configuration file; the test parameters include test time and test functions; set the identification of one or more groups of modules; the modules include the front-end management module and/or background management module; 当所述测试管理模块收到一个或多个所述前端管理模块和/或后台管理模块代码更新的通知后,对全部所述前端管理模块和后台管理模块保存的代码进行集中的步骤包括:After the test management module receives one or more notifications of the code update of the front-end management module and/or background management module, the steps of concentrating the codes saved by all the front-end management modules and background management modules include: 当所述测试管理模块收到一组中所有标识对应的所述前端管理模块和/或后台管理模块更新的通知后,将所述表示需要测试的标志位置位;After the test management module receives the update notification of the front-end management module and/or background management module corresponding to all the identifiers in a group, it sets the flag position indicating that it needs to be tested; 当所述测试管理模块根据所述配置文件需要进行测试时,判断所述表示需要测试的标志位是否为置位状态,如果是则对全部所述前端管理模块和后台管理模块保存的代码进行集中。When the test management module needs to test according to the configuration file, it is judged whether the flag bit indicating that it needs to be tested is a set state, if so, the codes preserved by all the front-end management modules and the background management module are concentrated . 8.如权利要求5到7中任一项所述的方法,其特征在于,还包括:8. The method according to any one of claims 5 to 7, further comprising: 当所述测试管理模块测试成功后,为测试所用代码生成新的版本号,和该代码一起保存并发布。When the test management module is successfully tested, a new version number is generated for the code used in the test, and is saved and released together with the code.
CN 201110042789 2011-02-22 2011-02-22 A system and method for automatic development and testing of web projects Active CN102098190B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201110042789 CN102098190B (en) 2011-02-22 2011-02-22 A system and method for automatic development and testing of web projects

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201110042789 CN102098190B (en) 2011-02-22 2011-02-22 A system and method for automatic development and testing of web projects

Publications (2)

Publication Number Publication Date
CN102098190A CN102098190A (en) 2011-06-15
CN102098190B true CN102098190B (en) 2013-05-15

Family

ID=44131066

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201110042789 Active CN102098190B (en) 2011-02-22 2011-02-22 A system and method for automatic development and testing of web projects

Country Status (1)

Country Link
CN (1) CN102098190B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106897053A (en) * 2016-07-08 2017-06-27 阿里巴巴集团控股有限公司 A kind of code dissemination method and device

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104423960B (en) * 2013-09-10 2018-04-03 阿里巴巴集团控股有限公司 A kind of method and system of project continuous integrating
CN103955361A (en) * 2014-03-28 2014-07-30 世纪禾光科技发展(北京)有限公司 Modular development and publishing system for automatic compiling and establishing of web front-end codes
CN104133685B (en) * 2014-08-05 2017-10-31 广州唯品会网络技术有限公司 The method and system of Website front-end exploitation
CN105117329B (en) * 2015-08-07 2018-09-11 北京思特奇信息技术股份有限公司 A kind of application program automatic wire charging method and system
CN109933510A (en) * 2017-12-15 2019-06-25 中国移动通信集团浙江有限公司 Interface management method, apparatus, electronic device and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1731748A (en) * 2005-07-29 2006-02-08 杭州华为三康技术有限公司 Testing system and method
CN101267645A (en) * 2008-02-29 2008-09-17 中兴通讯股份有限公司 Automatic test method and system for service flow software development of W base station
EP2093934A1 (en) * 2007-03-29 2009-08-26 Huawei Technologies Co., Ltd. System, device, equipment and method for monitoring management

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7823132B2 (en) * 2004-09-29 2010-10-26 Microsoft Corporation Automated test case verification that is loosely coupled with respect to automated test case execution

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1731748A (en) * 2005-07-29 2006-02-08 杭州华为三康技术有限公司 Testing system and method
EP2093934A1 (en) * 2007-03-29 2009-08-26 Huawei Technologies Co., Ltd. System, device, equipment and method for monitoring management
CN101267645A (en) * 2008-02-29 2008-09-17 中兴通讯股份有限公司 Automatic test method and system for service flow software development of W base station

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106897053A (en) * 2016-07-08 2017-06-27 阿里巴巴集团控股有限公司 A kind of code dissemination method and device

Also Published As

Publication number Publication date
CN102098190A (en) 2011-06-15

Similar Documents

Publication Publication Date Title
CN102098190B (en) A system and method for automatic development and testing of web projects
EP3387528B1 (en) Updating dependent services
US9703692B2 (en) Development supporting system
US9342298B2 (en) Application compatibility checking in a distributed computing environment
US9823991B2 (en) Concurrent workload simulation for application performance testing
CN103577319A (en) Source code file detection method, source code file detection device and file release system
CN104583945A (en) Application upgrade method and device
JP2016100003A (en) Software test code generation method and computer-readable storage medium
US20160170745A1 (en) Tagging non-upstream source code
CN105549959A (en) Compiling inspection method and device
CN104166570B (en) A kind of method, equipment and the system of online updating file
US9380001B2 (en) Deploying and modifying a service-oriented architecture deployment environment model
CN106484452B (en) unified configuration management method and device for software platform
CN104023061A (en) High availability cluster scheme of OSS (Open Storage service) for LUSTRE
CN110865806B (en) Code processing method, device, server and storage medium
CN107463390B (en) Software upgrading method and upgrading server
CN113495723B (en) Method, device and storage medium for calling functional component
US11615013B2 (en) Catalog verification device, catalog verification method, and program
US20170124499A1 (en) Managing cross project dependencies in project management applications
US11330079B2 (en) Environment for developing of distributed multicloud applications
CN112231217B (en) Method and device for implementing functional test in duplicate mode
CN115422276B (en) A data docking method and system for a big data ecological joint debugging system
CN113778842B (en) Fault-tolerance testing method, device, electronic device and storage medium
CN110321132A (en) A kind of code dissemination method and device
CN105589688A (en) Application service program release method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20201110

Address after: 215100 No. 1 Guanpu Road, Guoxiang Street, Wuzhong Economic Development Zone, Suzhou City, Jiangsu Province

Patentee after: SUZHOU LANGCHAO INTELLIGENT TECHNOLOGY Co.,Ltd.

Address before: 100085 Beijing, Haidian District on the road to information on the ground floor, building 2-1, No. 1, C

Patentee before: Inspur (Beijing) Electronic Information Industry Co.,Ltd.

TR01 Transfer of patent right