CN113076249B - Automatic test application platform and test method based on enterprise demand development - Google Patents

Automatic test application platform and test method based on enterprise demand development Download PDF

Info

Publication number
CN113076249B
CN113076249B CN202110396933.7A CN202110396933A CN113076249B CN 113076249 B CN113076249 B CN 113076249B CN 202110396933 A CN202110396933 A CN 202110396933A CN 113076249 B CN113076249 B CN 113076249B
Authority
CN
China
Prior art keywords
management
use case
layer
data
application platform
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
CN202110396933.7A
Other languages
Chinese (zh)
Other versions
CN113076249A (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.)
Shenzhen Qianhai Linkage Cloud Software Technology Co ltd
Original Assignee
Shenzhen Qianhai Linkage Cloud Software Technology 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 Shenzhen Qianhai Linkage Cloud Software Technology Co ltd filed Critical Shenzhen Qianhai Linkage Cloud Software Technology Co ltd
Priority to CN202110396933.7A priority Critical patent/CN113076249B/en
Publication of CN113076249A publication Critical patent/CN113076249A/en
Application granted granted Critical
Publication of CN113076249B publication Critical patent/CN113076249B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention provides an automatic test application platform and a test method based on enterprise demand development, wherein the automatic test application platform comprises a business layer, a presentation layer, a service layer, a persistence layer and a data layer; compared with the conventional software test solution, the method continues deepening after the conventional automatic test platform scheme in the industry, and is matched with the enterprise management characteristic genes, an automatic application platform of a B/S framework is adopted, a development framework of python+Django is utilized, the interaction method of webUI is deepened and improved, a lower technical threshold is built, the working efficiency of the enterprise-level automatic test platform is improved, the efficiency of developing use cases is greatly improved, and the method is developed into a three-dimensional application platform integrating the existing interface test, performance monitoring, data management and operation and maintenance from the original single interface automatic test.

Description

Automatic test application platform and test method based on enterprise demand development
Technical Field
The invention relates to the technical field of software development, in particular to an automatic test application platform and a test method based on enterprise demand development.
Background
Quality management of software is a very important ring in technological research and development companies. In software quality management, if testing is performed purely manually, it is more and more difficult to keep pace with the development. So the introduction of automation technology will replace manual repeated operation strongly, and it is necessary to improve the test efficiency. In recent years, the development of automated testing has been transitioned by pure code editing to GUI applications. And under the circumstance of greatly developing GUI application software, two branches of the C/S architecture and the B/S architecture are separated at the same time. The method selects an automatic application platform of a B/S architecture, utilizes the development framework of python+Django, improves the interaction method of webUI deeply, creates a lower technical threshold, and improves the working efficiency of the enterprise-level automatic test platform.
Currently, the solutions of the automatic test web application platform are mainly conventional solutions, which only cover the most core flow, and the more details about the enterprise-level application are not defined, so that the conventional solutions cannot meet the development test requirements for actually realizing the enterprise-level application.
Accordingly, there is a need in the art for further improvements.
Disclosure of Invention
Aiming at the problems existing in the prior art, the invention provides an automatic test application platform and a test method based on enterprise demand development.
In order to achieve the above object, the present invention is specifically as follows:
providing an automatic test application platform developed based on enterprise requirements, wherein the automatic test application platform comprises a business layer, a presentation layer, a service layer, a persistence layer and a data layer;
the service layer and the presentation layer are directly oriented to the user, and carry out service function data transmission and result feedback through the interface and the service layer; the service layer stores, supplements and transmits the data of the server service to the persistence layer; the persistent layer adds, deletes, changes and searches the data of the data layer through the ORM framework;
the business layer comprises http interface automation, tool set, data analysis, UI automation and automatic operation and maintenance;
the presentation layer comprises items, modules, use cases, test plans, mock, reports, system settings, a data center and a user center;
the service layer comprises case loading and scheduling, data dynamic management, quick scheduling, web service, report generation, mail service, corresponding analysis and verification, planning tasks, version management and case retry;
the persistent layer comprises platform business data management and product database interaction;
the data layer comprises a test platform database and a product database.
Further, the project is subjected to project management, and project management at a system level is performed;
the module is used for carrying out module management, carrying out service attribution management in the system, refining module management and customizing an execution plan;
the use case is managed, the development, editing, modification and deletion of the use case are performed, the management unit combines the design modes of the use case and the management component combines the design modes;
the test plan is used for carrying out task execution plan management and managing the planned execution task;
the mock is used for performing mock management and simulating a third party information callback test;
the report is subjected to report management, and normative report data of the operation result under the task level are managed;
the system setting is carried out, and comprises environment setting, task monitoring, global variable setting and global function management; and managing different environments, monitoring the progress of the timing tasks, and managing variables and function data.
Further, the project management comprises project addition, deletion, modification and search, and is executed according to the project, and the project is embedded with function management; project private functions are defined per system management use case.
Further, the module management comprises module adding, deleting, modifying and checking, and is executed according to the modules; and managing the use cases according to the modules.
Further, the use case management comprises use case addition, deletion, modification and checking, use case debugging and execution, use case coverage statistics, use case set and use case combination; use case editing, statistics, parameterization, verification and free combination.
Further, the task execution plan is managed to perform free set of use cases and timed execution of the use case set; and cross-project use case combination, and executing the use cases at idle time through timing tasks.
Further, the report management performs report checking and message sending; report generation, problem viewing, mail notification.
Further, the mock management comprises baffle adding, deleting, changing, checking, starting and stopping; and simulating the return data of the third party, and opening the flow of the use case.
The automatic test application platform test method based on enterprise demand development comprises the following steps:
s1, newly adding a project;
s2, adding a module;
s3, adding a new use case;
s4, newly adding and executing;
s5, checking results;
wherein S3 further comprises the steps of:
s31, newly creating a use case;
s32, judging whether parameterization is performed;
s33, judging whether to check or not;
s34, judging whether to assemble or not;
s35, debugging a use case;
s36, judging whether the debugging is passed or not;
s37, storing use cases;
wherein S4 further comprises the steps of:
s41, selecting a use case;
s42, selecting an environment;
s43, setting tasks;
s44, judging whether to execute immediately;
s45, checking the report.
Further, the method comprises the steps of,
step S32, if the parameterization is judged to be performed, performing the parameterization, and if the parameterization is judged not to be performed, directly entering the next step;
step S33, further comprising performing verification if the judgment is that the verification is to be performed, and directly entering the next step if the judgment is that the verification is not to be performed;
step S34, if the assembly is judged to be performed, performing assembly, and if the assembly is judged not to be performed, directly entering the next step;
step S36, if judging that the debugging is passed, directly entering the next step, if judging that the debugging is not passed, editing the use case, and re-debugging;
step S44, further comprising immediately executing if the judgment is immediately executed, then proceeding to the next step, if the judgment is not immediately executed, setting a timing task, executing according to the set requirement, and proceeding to the next step after executing.
The technical scheme of the invention has the following beneficial effects:
compared with the conventional software testing solution, the method continues to deepen after the conventional automatic testing platform in the industry, and is matched with enterprise management characteristic genes, an automatic application platform of a B/S framework is adopted, a development framework of python+Django is utilized, the interaction method of webUI is deepened, a lower technical threshold is created, the working efficiency is improved, and the development of enterprise-level automatic testing platform application is completed. The platform can be developed from the original one use case, more than 5 minutes are needed until the present, and the platform can be completed in 2 minutes at maximum. The original single interface automatic test is developed into the three-dimensional platform application integrating the current interface test, performance monitoring, data management and operation and maintenance.
Drawings
FIG. 1 is a schematic view of a structural framework of an embodiment of the present invention;
FIG. 2 is a schematic diagram of a code framework of an embodiment of the present invention;
FIG. 3 is a schematic diagram of a system exploded according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of a hierarchy of an embodiment of the present invention;
FIG. 5 is a schematic diagram of data transmission interactions according to an embodiment of the present invention;
FIG. 6 is a schematic overall flow diagram of the operation of an embodiment of the present invention;
FIG. 7 is a schematic diagram of use case generation and use case execution of an embodiment of the present invention.
Detailed Description
The invention will be further described with reference to the drawings and the specific examples.
The specific principles and steps of the present invention will be described with reference to fig. 1-7:
FIG. 1 is a schematic view of a structural framework of an embodiment of the present invention;
the framework scheme of the automatic test platform comprises: project management, module management, operation environment management, use case management, function expansion, variable expansion, mock management, task execution plan management, report management, semi-automatic operation and maintenance, performance test management, development-test quality report management and coupled Buddhist channel management systems.
Wherein, project management: system-level project management; and (3) module management: service attribution management in the system; the refinement module is used for managing and customizing an execution plan; and (3) management of the running environment: managing the execution environment of the test case; the multi-environment operation is easy to adapt to different testing stages; and (3) use case management: development, editing modification, deletion and the like of the use cases; a unit use case combination design mode; a component assembly design mode; function expansion: expanding a platform level function; expanding a project level function; variable expansion: a global variable of the platform base; global variables of the operating environment; global variables of the scene; local variables of use cases; mock management: simulating a third party information callback test; task execution plan management: performing tasks planarly; report management: normative report data of the operation result at the task level; semi-automatic operation and maintenance: deploying a code environment; performance test management: monitoring interface test response time; performance monitoring and performance early warning; development-test quality report management: version quality data management; quality management; coupled Buddhist management system: the existing quality management system of the coupling company performs data intercommunication.
FIG. 2 is a schematic diagram of a code framework of an embodiment of the present invention;
the code framework includes a Web, a service layer, and a data layer, the Web comprising: chrome, IE, safari; the service layer comprises: nginx, UWSGI; project management, module management, environment configuration, retry/lock; com task, function expansion, S/T, debug; mock, suite, pageObject; MQ, httpRunner;
celery, request; a report form; buddhist canal; monitoring performance; a test tool; MVT, bootstrap; the data layer comprises: mySQL.
FIG. 3 is a schematic diagram of a system in exploded form according to an embodiment of the present invention;
the system decomposition includes: the system comprises an automation management module, a data center, an environment management module and an automation execution module.
FIG. 4 is a schematic diagram of a hierarchical architecture of an embodiment of the present invention;
the system comprises a business layer, a presentation layer, a service layer, a persistence layer and a data layer; the service layer and the presentation layer are directly oriented to the user, and carry out service function data transmission and result feedback through the interface and the service layer; the service layer stores, supplements and transmits the data of the server service to the persistence layer; the persistent layer adds, deletes, changes and searches the data of the data layer through the ORM framework; the business layer comprises http interface automation, tool set, data analysis, UI automation and automatic operation and maintenance; the presentation layer comprises items, modules, use cases, test plans, mock, reports, system settings, a data center and a user center; the service layer comprises case loading and scheduling, data dynamic management, quick scheduling, web service, report generation, mail service, corresponding analysis and verification, planning tasks, version management and case retry; the persistent layer comprises platform business data management and product database interaction; the data layer comprises a test platform database and a product database.
FIG. 5 is a schematic diagram of data transmission interaction according to an embodiment of the present invention;
the web browser of the user computer is connected to the Linux server through the Ethernet communication component.
FIG. 6 is a schematic overall flow chart of the operation of the embodiment of the present invention;
s1, newly adding a project; s2, adding a module; s3, adding a new use case; s4, newly adding and executing; s5, checking results.
Fig. 7 is a schematic diagram of use case generation and use case execution according to an embodiment of the present invention.
The method comprises the following steps:
s31, newly creating a use case; s32, judging whether parameterization is performed; s33, judging whether to check or not; s34, judging whether to assemble or not; s35, debugging a use case; s36, judging whether the debugging is passed or not; s37, storing use cases; wherein S4 further comprises the steps of: s41, selecting a use case; s42, selecting an environment; s43, setting tasks; s44, judging whether to execute immediately; s45, checking the report.
Step S32, if the parameterization is judged to be performed, performing the parameterization, and if the parameterization is judged not to be performed, directly entering the next step; step S33, further comprising performing verification if the judgment is that the verification is to be performed, and directly entering the next step if the judgment is that the verification is not to be performed; step S34, if the assembly is judged to be performed, performing assembly, and if the assembly is judged not to be performed, directly entering the next step; step S36, if judging that the debugging is passed, directly entering the next step, if judging that the debugging is not passed, editing the use case, and re-debugging; step S44, further comprising immediately executing if the judgment is immediately executed, then proceeding to the next step, if the judgment is not immediately executed, setting a timing task, executing according to the set requirement, and proceeding to the next step after executing.
The foregoing description is only of the preferred embodiments of the present invention and is not intended to limit the scope of the invention, and all equivalent structural changes made by the description of the present invention and the accompanying drawings or direct/indirect application in other related technical fields are included in the scope of the present invention.

Claims (8)

1. The automatic test application platform based on enterprise demand development is characterized in that: the system comprises a service layer, a presentation layer, a service layer, a persistence layer and a data layer;
the service layer and the presentation layer are directly oriented to the user, and carry out service function data transmission and result feedback through the interface and the service layer; the service layer stores, supplements and transmits the data of the server service to the persistence layer; the persistent layer adds, deletes, changes and searches the data of the data layer through the ORM framework;
the business layer comprises http interface automation, tool set, data analysis, UI automation and automatic operation and maintenance;
the presentation layer comprises items, modules, use cases, test plans, mock, reports, system settings, a data center and a user center;
the service layer comprises case loading and scheduling, data dynamic management, quick scheduling, web service, report generation, mail service, corresponding analysis and verification, planning tasks, version management and case retry;
the persistent layer comprises platform business data management and product database interaction;
the data layer comprises a test platform database and a product database;
in the presentation layer, the project is subjected to project management at a system level;
the module carries out service attribution management in the system, refines module management and customizes an execution plan;
the use case is used for use case management, development, editing, modification and deletion of the use case are carried out, the management unit uses case combination design mode, and the management component combination design mode;
the test plan is used for managing a planned execution task and managing a task execution plan;
the mock simulates a third party information callback test and performs mock management;
the report is used for report management and normative report data of the operation result under the task level;
the system settings comprise environment settings, task monitoring, global variable settings and global function management; different environments are managed, task progress monitoring is timed, and variables and function data are managed;
the project management comprises project addition, deletion, modification and check, is executed according to the project, and is managed by an embedded function; project private functions are defined per system management use case.
2. The automated test application platform for enterprise-based demand development of claim 1, wherein: the module management comprises module adding, deleting, modifying and checking, and is executed according to the modules; and managing the use cases according to the modules.
3. The automated test application platform for enterprise-based demand development of claim 1, wherein: the use case management comprises use case addition, deletion, modification and checking, use case debugging and execution, use case coverage statistics, use case set and use case combination; use case editing, statistics, parameterization, verification and free combination.
4. The automated test application platform for enterprise-based demand development of claim 1, wherein: the task execution plan management is used for timing execution of the use case free set and the use case set; and cross-project use case combination, and executing the use cases at idle time through timing tasks.
5. The automated test application platform for enterprise-based demand development of claim 1, wherein: the report management is used for report checking and message sending; report generation, problem viewing, mail notification.
6. The automated test application platform for enterprise-based demand development of claim 1, wherein: the mock management comprises baffle adding, deleting, changing, checking, starting and stopping; and simulating the return data of the third party, and opening the flow of the use case.
7. A testing method applied to the automated testing application platform developed based on enterprise requirements as claimed in claim 1, characterized by comprising the following steps:
s1, newly adding a project;
s2, adding a module;
s3, adding a new use case;
s4, newly adding and executing;
s5, checking results;
wherein S3 further comprises the steps of:
s31, newly creating a use case;
s32, judging whether parameterization is performed;
s33, judging whether to check or not;
s34, judging whether to assemble or not;
s35, debugging a use case;
s36, judging whether the debugging is passed or not;
s37, storing use cases;
wherein S4 further comprises the steps of:
s41, selecting a use case;
s42, selecting an environment;
s43, setting tasks;
s44, judging whether to execute immediately;
s45, checking the report.
8. The automated test application platform testing method for enterprise demand development of claim 7, wherein:
step S32, if the parameterization is judged to be performed, performing the parameterization, and if the parameterization is judged not to be performed, directly entering the next step;
step S33, further comprising performing verification if the judgment is that the verification is to be performed, and directly entering the next step if the judgment is that the verification is not to be performed;
step S34, if the assembly is judged to be performed, performing assembly, and if the assembly is judged not to be performed, directly entering the next step;
step S36, if judging that the debugging is passed, directly entering the next step, if judging that the debugging is not passed, editing the use case, and re-debugging;
step S44, further comprising immediately executing if the judgment is immediately executed, then proceeding to the next step, if the judgment is not immediately executed, setting a timing task, executing according to the set requirement, and proceeding to the next step after executing.
CN202110396933.7A 2021-04-13 2021-04-13 Automatic test application platform and test method based on enterprise demand development Active CN113076249B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110396933.7A CN113076249B (en) 2021-04-13 2021-04-13 Automatic test application platform and test method based on enterprise demand development

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110396933.7A CN113076249B (en) 2021-04-13 2021-04-13 Automatic test application platform and test method based on enterprise demand development

Publications (2)

Publication Number Publication Date
CN113076249A CN113076249A (en) 2021-07-06
CN113076249B true CN113076249B (en) 2024-04-12

Family

ID=76617888

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110396933.7A Active CN113076249B (en) 2021-04-13 2021-04-13 Automatic test application platform and test method based on enterprise demand development

Country Status (1)

Country Link
CN (1) CN113076249B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104598376A (en) * 2014-12-30 2015-05-06 中国科学院计算机网络信息中心 Data driving layered automation test system and method
CN107643981A (en) * 2017-08-29 2018-01-30 顺丰科技有限公司 A kind of automatic test platform and operation method of polynary operation flow
CN107678939A (en) * 2017-08-29 2018-02-09 苏州惠邦科信息技术有限公司 Android terminal emulation test system
CN110059008A (en) * 2019-04-12 2019-07-26 广东电网有限责任公司信息中心 A kind of test cloud platform system and test method towards power business
CN110765009A (en) * 2019-10-10 2020-02-07 南京创维信息技术研究院有限公司 Automatic AI voice software testing framework of carrying out
CN110888802A (en) * 2019-10-24 2020-03-17 广州永融科技股份有限公司 Method for managing test requirement
CN111092771A (en) * 2019-12-24 2020-05-01 浙江航天恒嘉数据科技有限公司 Internet of things simulation test platform
CN111162957A (en) * 2019-11-23 2020-05-15 卡斯柯信号(郑州)有限公司 Cloud simulation-based rail transit signal system testing method and device with state cipher algorithm
CN112181852A (en) * 2020-10-28 2021-01-05 深圳市万睿智能科技有限公司 Interface automatic testing method and device, computer equipment and storage medium

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9465726B2 (en) * 2013-06-05 2016-10-11 Vmware, Inc. Abstract layer for automatic user interface testing
US10091356B2 (en) * 2015-01-06 2018-10-02 Cyara Solutions Pty Ltd Interactive voice response system crawler

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104598376A (en) * 2014-12-30 2015-05-06 中国科学院计算机网络信息中心 Data driving layered automation test system and method
CN107643981A (en) * 2017-08-29 2018-01-30 顺丰科技有限公司 A kind of automatic test platform and operation method of polynary operation flow
CN107678939A (en) * 2017-08-29 2018-02-09 苏州惠邦科信息技术有限公司 Android terminal emulation test system
CN110059008A (en) * 2019-04-12 2019-07-26 广东电网有限责任公司信息中心 A kind of test cloud platform system and test method towards power business
CN110765009A (en) * 2019-10-10 2020-02-07 南京创维信息技术研究院有限公司 Automatic AI voice software testing framework of carrying out
CN110888802A (en) * 2019-10-24 2020-03-17 广州永融科技股份有限公司 Method for managing test requirement
CN111162957A (en) * 2019-11-23 2020-05-15 卡斯柯信号(郑州)有限公司 Cloud simulation-based rail transit signal system testing method and device with state cipher algorithm
CN111092771A (en) * 2019-12-24 2020-05-01 浙江航天恒嘉数据科技有限公司 Internet of things simulation test platform
CN112181852A (en) * 2020-10-28 2021-01-05 深圳市万睿智能科技有限公司 Interface automatic testing method and device, computer equipment and storage medium

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
Smartesting CertifyIt: Model-Based Testing for Enterprise IT;Bruno Legeard 等;《2013 IEEE Sixth International Conference on Software Testing, Verification and Validation》;20130729;2159-4848 *
基于Jenkins的移动通信业务自动化测试平台的设计与测试;朱红 等;《科技与创新》;20160415(第7期);12-14 *
持续集成的自动化测试平台的实现与应用;刘伟鹏;《中国优秀硕士学位论文全文数据库 信息科技辑》;20190915(第9期);I138-334 *

Also Published As

Publication number Publication date
CN113076249A (en) 2021-07-06

Similar Documents

Publication Publication Date Title
WO2022160707A1 (en) Human-machine interaction method and apparatus combined with rpa and ai, and storage medium and electronic device
CN108845940B (en) Enterprise-level information system automatic function testing method and system
CN104407971A (en) Method for automatically testing embedded software
CN107506303A (en) Method, apparatus and system for automatic test
CN104679488A (en) Flow path customized development platform and method
CN113706110B (en) FPGA test tool integrated test management platform
CN106933729A (en) A kind of method of testing and system based on cloud platform
CN114327678B (en) Real-time data processing system and method supporting multiple engines
US20060020931A1 (en) Method and apparatus for managing complex processes
CN111258565A (en) Method, system, server and storage medium for generating small program
US8209657B1 (en) System design combining functional decomposition and object-oriented programming
CN107577709B (en) Graphical management method of information system resource model
CN105760300B (en) A kind of automated testing method and test macro of STK/UTK business
CN113076249B (en) Automatic test application platform and test method based on enterprise demand development
Damasiotis et al. Modeling software development process complexity
CN115185489B (en) Time sequence data algorithm configuration system and method
CN113031964B (en) Big data application management method, device, equipment and storage medium
CN116029648A (en) Relationship modeling management method, device and system based on product BOM structure
CN114706738A (en) Method and device for automatically burying point at client
CN115016960A (en) Configurable RPA robot full-flow information notification processing method and system
CN114911773A (en) Universal meta-model design method
CN113220592A (en) Processing method and device for automated testing resources, server and storage medium
CN113434382A (en) Database performance monitoring method and device, electronic equipment and computer readable medium
CN116560637B (en) Method and system for developing application system in configuration form for digital transformation
CN112035091B (en) Agile delivery management method and system for shale gas field

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant