CN112650690B - Automatic creation method, system and equipment for continuous integration of embedded software - Google Patents

Automatic creation method, system and equipment for continuous integration of embedded software Download PDF

Info

Publication number
CN112650690B
CN112650690B CN202110001881.9A CN202110001881A CN112650690B CN 112650690 B CN112650690 B CN 112650690B CN 202110001881 A CN202110001881 A CN 202110001881A CN 112650690 B CN112650690 B CN 112650690B
Authority
CN
China
Prior art keywords
test
embedded software
basic configuration
template
continuous
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
CN202110001881.9A
Other languages
Chinese (zh)
Other versions
CN112650690A (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.)
CRRC Qingdao Sifang Rolling Stock Research Institute Co Ltd
Original Assignee
CRRC Qingdao Sifang Rolling Stock Research Institute 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 CRRC Qingdao Sifang Rolling Stock Research Institute Co Ltd filed Critical CRRC Qingdao Sifang Rolling Stock Research Institute Co Ltd
Priority to CN202110001881.9A priority Critical patent/CN112650690B/en
Publication of CN112650690A publication Critical patent/CN112650690A/en
Application granted granted Critical
Publication of CN112650690B publication Critical patent/CN112650690B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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/3684Test management for test design, e.g. generating new test cases
    • 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)
  • Stored Programmes (AREA)

Abstract

The invention provides an automatic creation method, a system and equipment for continuous integration of embedded software, wherein the method comprises the following steps: based on the embedded software test flow and the test tool, a basic configuration template is established, and based on an API interface of the continuous integrated system, the basic configuration template and a configuration interface of the continuous integrated system are opened; processing a basic configuration template based on the target template acquisition script and the user test requirement, and acquiring a target basic configuration template of the user; uploading the user test requirement to a code management system based on a code acquisition script to acquire a corresponding code; and creating an association hook of the continuous integrated system and the code management system, and performing test analysis on the code by the continuous integrated system according to the target basic configuration template based on the association hook to generate a test result. The method realizes the one-key automatic creation of the embedded software continuous integrated system, can greatly save human resources, quickly completes the creation of the embedded software continuous integrated system, and improves the research and development and testing efficiency.

Description

Automatic creation method, system and equipment for continuous integration of embedded software
Technical Field
The invention relates to the technical field of computers, in particular to an embedded software continuous integration automatic creation method, system and equipment.
Background
Along with the continuous rapid development of the China rail transportation industry and the continuous improvement of the requirements on the system safety, the embedded software test highlights an increasingly important position, and how to rapidly and continuously perform the software iterative test, so that the improvement of finding and solving the low-grade and serious defects becomes a new target for project group personnel.
At present, in the prior art, a traditional method for continuously integrating and creating embedded software is to manually create a configuration library, manually create a basic configuration template by using a front end interface of a continuously integrated system, manually select an embedded software test flow and a test tool based on the basic configuration template, manually create a configuration library and an associated hook of the continuously integrated system, upload codes to the configuration library, and trigger the continuously integrated system to perform related tests by the hook of the configuration library.
However, the traditional continuous integrated creation method of embedded software is completed manually, the test flow is complex, the learning cost is high, the requirements on testers are high, and the research and development and test efficiency is low.
Disclosure of Invention
In order to solve the problems of complex test flow, high learning cost and low research and development and test efficiency of the traditional continuous integrated creation method of the embedded software in the prior art, the invention provides the continuous integrated automatic creation method of the embedded software, which integrates the complex test flow solidification and test tool of the embedded software into a continuous integrated system, realizes the one-key automatic creation of the continuous integrated system of the embedded software, can greatly save human resources, quickly completes the creation of the continuous integrated system of the embedded software, and improves the research and development and test efficiency.
The invention provides an automatic creation method for continuous integration of embedded software, which is applied to a continuous integration system and a code management system, wherein the method comprises the following steps:
an interface acquisition step of acquiring an API interface of the continuous integrated system;
a template establishing step, based on an embedded software testing flow and a testing tool, of establishing a basic configuration template of the continuous integrated system and opening a configuration interface of the basic configuration template and the continuous integrated system based on the API interface;
a target template acquisition step of designing a target template acquisition script, processing the basic configuration template based on the target template acquisition script and a user test requirement, and acquiring a target basic configuration template of a user;
a code acquisition step of designing a code acquisition script, and uploading the user test requirement to the code management system based on the code acquisition script to acquire a corresponding code;
and a test analysis step, namely creating an association hook of the continuous integrated system and the code management system, and based on the association hook, performing test analysis on the code by the continuous integrated system according to the target basic configuration template, and generating a test result.
The method for continuously and automatically creating the embedded software, wherein the method for continuously and automatically creating the embedded software further comprises the following steps:
and updating the basic configuration template of the continuous integrated system based on the updated embedded software test flow and/or the updated test tool after the embedded software test flow and/or the updated test tool are updated.
The method for continuously and automatically creating the embedded software, wherein the method for continuously and automatically creating the embedded software further comprises the following steps:
and a user display step, wherein the basic configuration template is displayed to a user to acquire the test requirement of the user, and the test result is displayed to the user.
The method for continuously and automatically creating the embedded software, wherein the step of obtaining the interface specifically comprises the following steps:
and acquiring the API interface of the continuous integrated system, and packaging the acquired API interface to form a JAR package.
The method for automatically creating the continuous integration of the embedded software, wherein the step of establishing the template opens the configuration interface between the basic configuration template and the continuous integration system specifically comprises the following steps:
based on the JAR package, the JAR package comprises an API interface for analyzing a basic configuration template, and the basic configuration template and the configuration interface of the continuous integrated system are opened.
The method for automatically creating the continuous integration of the embedded software, wherein the creating the association hook of the continuous integration system and the code management system in the test analysis step specifically comprises the following steps:
an association hook for the persistence integrated system and the code management system is created using a Web automation test framework Selenium Webdrive.
The invention also provides an embedded software continuous integration automatic creation system which is applied to a continuous integration system and a code management system, wherein the system comprises:
the interface acquisition module is used for acquiring an API interface of the continuous integrated system;
the template building module is used for building a basic configuration template of the continuous integrated system based on an embedded software test flow and a test tool, and opening a configuration interface of the basic configuration template and the continuous integrated system based on the API interface;
the target template acquisition module is used for designing a target template acquisition script, processing the basic configuration template based on the target template acquisition script and the user test requirement, and acquiring a target basic configuration template of the user;
the code acquisition module is used for designing a code acquisition script, uploading the user test requirement to the code management system based on the code acquisition script, and acquiring a corresponding code;
and the test analysis module is used for creating an association hook of the continuous integrated system and the code management system, and based on the association hook, the continuous integrated system carries out test analysis on the code according to the target basic configuration template and generates a test result.
The system for continuously and automatically creating the embedded software comprises:
and the template updating module is used for updating the basic configuration template of the continuous integrated system based on the updated embedded software testing flow and/or the testing tool after the embedded software testing flow and/or the testing tool are updated.
The system for continuously and automatically creating the embedded software comprises:
and the user display module is used for displaying the basic configuration template to a user to acquire the test requirement of the user and displaying the test result to the user.
The invention also provides a computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor realizes the continuous integrated automation creation method of the embedded software when executing the computer program.
The invention has the technical effects or advantages that:
the invention provides an automatic creation method for continuous integration of embedded software, which is characterized in that an API interface of a continuous integrated system is obtained, a basic configuration template of the continuous integrated system is established based on an embedded software test flow and a test tool, the basic configuration template and the configuration interface of the continuous integrated system are opened based on the API interface, a target template obtaining script is designed, the basic configuration template is processed based on the target template obtaining script and a user test requirement to obtain a target basic configuration template of a user, a code obtaining script is designed, the user test requirement is uploaded to a code management system based on the code obtaining script, codes corresponding to the user test requirement are obtained, an association hook of the continuous integrated system and the code management system is created, and the continuous integrated system performs test analysis on the codes according to the target basic configuration template based on the association hook, so that a test result is generated. By means of the method, the complex test flow solidification and test tool of the embedded software are integrated into the continuous integrated system, so that one-key automatic creation of the continuous integrated system of the embedded software is realized, manpower resources can be greatly saved, creation of the continuous integrated system of the embedded software is rapidly completed, and research and development efficiency and test efficiency are improved.
Drawings
FIG. 1 is a flowchart of an embodiment of an embedded software continuous integrated automation creation method;
FIG. 2 is a schematic diagram of an architecture of an embedded software continuous integrated automation creation system according to an embodiment of the present invention;
FIG. 3 is a block diagram of an electronic device according to an embodiment of the present invention;
in the above figures:
10. a bus; 11. a processor; 12. a memory; 13. a communication interface.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is apparent that the described embodiments are some embodiments of the present invention, but not all embodiments of the present invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
It is apparent that the drawings in the following description are only some examples or embodiments of the present application, and it is possible for those of ordinary skill in the art to apply the present application to other similar situations according to these drawings without inventive effort. Moreover, it should be appreciated that while such a development effort might be complex and lengthy, it would nevertheless be a routine undertaking of design, fabrication, or manufacture for those of ordinary skill having the benefit of this disclosure, and thus should not be construed as having the benefit of this disclosure. Reference in the specification to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment may be included in at least one embodiment of the application. The appearances of such phrases in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is to be expressly and implicitly understood by those of ordinary skill in the art that the embodiments described herein can be combined with other embodiments without conflict. Unless defined otherwise, technical or scientific terms used herein should be given the ordinary meaning as understood by one of ordinary skill in the art to which this application belongs. Reference to "a," "an," "the," and similar terms herein do not denote a limitation of quantity, but rather denote the singular or plural. The terms "comprising," "including," "having," and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, article, or apparatus that comprises a list of steps or modules (elements) is not limited to only those steps or elements but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus. The terms "connected," "coupled," and the like in this application are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect.
The term "plurality" as used herein refers to two or more. "and/or" describes an association relationship of an association object, meaning that there may be three relationships, e.g., "a and/or B" may mean: a exists alone, A and B exist together, and B exists alone. The character "/" generally indicates that the context-dependent object is an "or" relationship. The terms "first," "second," "third," and the like, as used herein, are merely distinguishing between similar objects and not representing a particular ordering of objects.
The technical scheme of the invention is described in detail below with reference to specific embodiments and attached drawings.
The embodiment provides an embedded software continuous integration automatic creation method which is applied to a continuous integration system and a code management system, wherein the method comprises the following steps:
an interface acquisition step of acquiring an API interface of the continuous integrated system;
a template establishing step, based on an embedded software testing flow and a testing tool, of establishing a basic configuration template of the continuous integrated system and opening a configuration interface of the basic configuration template and the continuous integrated system based on the API interface;
a target template acquisition step of designing a target template acquisition script, processing the basic configuration template based on the target template acquisition script and a user test requirement, and acquiring a target basic configuration template of a user;
a code acquisition step of designing a code acquisition script, and uploading the user test requirement to the code management system based on the code acquisition script to acquire a corresponding code;
and a test analysis step, namely creating an association hook of the continuous integrated system and the code management system, and based on the association hook, performing test analysis on the code by the continuous integrated system according to the target basic configuration template, and generating a test result.
According to the method for automatically creating the continuous integration of the embedded software, complex test flow solidification and test tools of the embedded software are integrated into the continuous integration system, so that one-key automatic creation of the continuous integration system of the embedded software is realized, manpower resources can be greatly saved, creation of the continuous integration system of the embedded software is rapidly completed, and research, development and test efficiency are improved.
Specifically, referring to fig. 1, fig. 1 is a flowchart of an embedded software continuous integrated automation creation method according to an embodiment of the present invention. The embodiment of the invention provides an embedded software continuous integration automatic creation method, which is applied to a continuous integration system and a code management system, and comprises the following steps of:
and an interface acquisition step S1, acquiring an API interface of the continuous integrated system.
In this embodiment, the interface obtaining step S1 specifically includes:
and acquiring the API interface of the continuous integrated system, and packaging the acquired API interface to form a JAR package.
In a specific application, the API interfaces include, but are not limited to, create task interfaces, update task interfaces, delete task interfaces, and execute task interfaces. In this embodiment, by acquiring multiple API interfaces of the continuous integrated system and encapsulating the multiple API interfaces to form a JAR packet, the configuration using the command line can be directly performed without resorting to a complex configuration flow of the UI interface of the continuous integrated system, thereby simplifying the configuration flow of the continuous integrated system.
And step S2, a basic configuration template of the continuous integrated system is established based on an embedded software test flow and a test tool, and a configuration interface of the basic configuration template and the continuous integrated system is opened based on the API interface.
In this embodiment, the step S2 of establishing the template specifically includes:
based on the JAR package, the JAR package comprises an API interface for analyzing a basic configuration template, and the basic configuration template and the configuration interface of the continuous integrated system are opened.
In a specific application, the format of the basic configuration template is an xml format, and the basic configuration template of the xml format of the continuous integrated system is established based on the embedded software test flow and the test tool. Based on the embedded software test flow and the test tools, the embedded software test flow curing and the test tools are integrated into a continuous integrated system, in a basic configuration template, the test tools are configured according to the embedded software test flow in use sequence, for example, the embedded software test flow is unit test and integrated test, the test tools are selected according to the embedded software test flow, namely, the test tools A are selected for unit test, and the test tools B are selected for integrated test. In the embodiment, the basic configuration template can be automatically established based on the continuous integrated system without manual establishment, so that the expenditure of manpower is reduced, and the working efficiency is improved.
More specifically, in this embodiment, the method for continuously and automatically creating embedded software further includes:
and a template updating step S20, wherein when the embedded software testing procedure is updated and/or the testing tool is updated, the basic configuration template of the continuous integrated system is updated based on the updated embedded software testing procedure and/or the testing tool.
And step S3, designing a target template acquisition script, processing the basic configuration template based on the target template acquisition script and the user test requirement, and acquiring a target basic configuration template of the user.
In a specific application, designing the target template acquisition script includes: based on the continuous integrated system, basic configuration information scripts, embedded software test flow selection scripts, test tool selection scripts and the like are designed. Wherein the basic configuration information includes, but is not limited to, project names, configuration library information, and the like. Based on the designed target template acquisition script, a user test requirement can be received, wherein the user test requirement comprises an embedded software test flow selected by a user and a test tool selected by the user, and a target basic configuration template of the user can be obtained according to the embedded software test flow selected by the user and the test tool selected by the user, wherein the target basic configuration template is the test tool selected by the user and the embedded software test flow selected by the user.
And S4, designing a code acquisition script, and uploading the user test requirement to the code management system based on the code acquisition script to acquire a corresponding code.
In a specific application, a script is acquired based on the code, the user test requirement is received, the user test requirement is uploaded to a code management system, and the code corresponding to the code management system is acquired based on the code management system according to the user test requirement.
And a test analysis step S4, namely creating an association hook of the continuous integrated system and the code management system, and based on the association hook, carrying out test analysis on the code by the continuous integrated system according to the target basic configuration template and generating a test result.
In this embodiment, the creating the association hook of the persistent integration system and the code management system in the test analysis step S4 specifically includes:
an association hook for the persistence integrated system and the code management system is created using a Web automation test framework Selenium Webdrive.
In a specific application, when a code is updated or uploaded, the code management system sends a trigger event to the continuous integrated system through the association hook, and the continuous integrated system is triggered to perform relevant tests on the corresponding code according to an embedded software test flow and a test tool selected by a user, and various test results are generated after the tests are completed. In the embodiment, key hooks of the code management system and the continuous integrated system can be automatically created without manual establishment, so that expenditure of manpower is reduced, and working efficiency is improved.
In this embodiment, the method for continuously and automatically creating embedded software further includes:
and a user display step S6, wherein the basic configuration template is displayed to the user to acquire the test requirement of the user, and the test result is displayed to the user.
The embodiment provides an automatic creation method for continuous integration of embedded software, which integrates complex test flow solidification and test tools of the embedded software into a continuous integration system, realizes one-key automatic creation of the continuous integration system of the embedded software, can greatly save manpower resources, quickly completes creation of the continuous integration system of the embedded software, and improves research and development and test efficiency.
Referring to fig. 2, the embodiment of the invention further provides an embedded software continuous integration automation creation system, which is applied to a continuous integration system and a code management system, wherein the system comprises:
the interface acquisition module is used for acquiring an API interface of the continuous integrated system;
the template building module is used for building a basic configuration template of the continuous integrated system based on an embedded software test flow and a test tool, and opening a configuration interface of the basic configuration template and the continuous integrated system based on the API interface;
the target template acquisition module is used for designing a target template acquisition script, processing the basic configuration template based on the target template acquisition script and the user test requirement, and acquiring a target basic configuration template of the user;
the code acquisition module is used for designing a code acquisition script, uploading the user test requirement to the code management system based on the code acquisition script, and acquiring a corresponding code;
and the test analysis module is used for creating an association hook of the continuous integrated system and the code management system, and based on the association hook, the continuous integrated system carries out test analysis on the code according to the target basic configuration template and generates a test result.
In the embodiment of the invention, the embedded software continuous integrated automation creation system further comprises:
and the template updating module is used for updating the basic configuration template of the continuous integrated system based on the updated embedded software testing flow and/or the testing tool after the embedded software testing flow and/or the testing tool are updated.
In the embodiment of the invention, the embedded software continuous integrated automation creation system further comprises:
and the user display module is used for displaying the basic configuration template to a user to acquire the test requirement of the user and displaying the test result to the user.
In a specific application, a user test requirement is acquired through a user display module, the user test requirement is sent to a target template acquisition module to acquire a target basic configuration target of a user, the user test requirement is sent to a code management system, and codes corresponding to the user test requirement are acquired based on the code management system.
The embodiment provides an embedded software continuous integration automatic creation system, which integrates complex test flow solidification and test tools of the embedded software into a continuous integration system, realizes one-key automatic creation of the embedded software continuous integration system, can greatly save human resources, quickly completes creation of the embedded software continuous integration system, and improves research and development and test efficiency.
Referring to fig. 3, the present embodiment further provides a computer device, including a memory 12, a processor 11, and a computer program stored in the memory 12 and executable on the processor 11, where the processor 11 implements the method for continuously and automatically creating embedded software as described above when executing the computer program.
The device may comprise a processor 11 and a memory 12 storing computer program instructions. In particular, the processor 11 may include a Central Processing Unit (CPU), or an application specific integrated circuit (Application Specific Integrated Circuit, abbreviated as ASIC), or may be configured to implement one or more integrated circuits of embodiments of the present application.
Memory 12 may include, among other things, mass storage for data or instructions. By way of example, and not limitation, memory 12 may comprise a Hard Disk Drive (HDD), floppy Disk Drive, solid state Drive (Solid State Drive, SSD), flash memory, optical Disk, magneto-optical Disk, tape, or universal serial bus (Universal Serial Bus, USB) Drive, or a combination of two or more of the foregoing. The memory 12 may include removable or non-removable (or fixed) media, where appropriate. The memory 12 may be internal or external to the data processing apparatus, where appropriate. In a particular embodiment, the memory 12 is a Non-Volatile (Non-Volatile) memory. In particular embodiments, memory 12 includes Read-Only Memory (ROM) and random access Memory (Random Access Memory, RAM). Where appropriate, the ROM may be a mask-programmed ROM, a programmable ROM (Programmable Read-Only Memory, abbreviated PROM), an erasable PROM (Erasable Programmable Read-Only Memory, abbreviated EPROM), an electrically erasable PROM (Electrically Erasable Programmable Read-Only Memory, abbreviated EEPROM), an electrically rewritable ROM (Electrically Alterable Read-Only Memory, abbreviated EAROM), or a FLASH Memory (FLASH), or a combination of two or more of these. The RAM may be Static Random-Access Memory (SRAM) or dynamic Random-Access Memory (Dynamic Random Access Memory DRAM), where the DRAM may be a fast page mode dynamic Random-Access Memory (Fast Page Mode Dynamic Random Access Memory FPMDRAM), extended data output dynamic Random-Access Memory (Extended Date Out Dynamic Random Access Memory EDODRAM), synchronous dynamic Random-Access Memory (Synchronous Dynamic Random-Access Memory SDRAM), or the like, as appropriate.
Memory 12 may be used to store or cache various data files that need to be processed and/or communicated, as well as possible computer program instructions for execution by processor 11.
The processor 11 implements any of the embedded software sustained integration automation creation methods of the above embodiments by reading and executing computer program instructions stored in the memory 12.
In some of these embodiments, the computer device may also include a communication interface 13 and a bus 10. With reference to fig. 3, the processor 11, the memory 12, and the communication interface 13 are connected via the bus 10 and perform communication with each other. The communication interface 13 is used to implement communications between various modules, devices, units and/or units in the embodiments of the present application. The communication port 13 may also enable communication with other components such as: and the external equipment, the image/data acquisition equipment, the database, the external storage, the image/data processing workstation and the like are used for data communication.
Bus 10 includes hardware, software, or both, that couple components of an electronic device to each other. Bus 10 includes, but is not limited to, at least one of: data Bus (Data Bus), address Bus (Address Bus), control Bus (Control Bus), expansion Bus (Expansion Bus), local Bus (Local Bus). By way of example, and not limitation, bus 10 may include a graphics acceleration interface (Accelerated Graphics Port), abbreviated AGP, or other graphics Bus, an enhanced industry standard architecture (Extended Industry Standard Architecture, abbreviated EISA) Bus, a Front Side Bus (FSB), a HyperTransport (HT) interconnect, an industry standard architecture (Industry Standard Architecture, ISA) Bus, a wireless bandwidth (InfiniBand) interconnect, a Low Pin Count (LPC) Bus, a memory Bus, a micro channel architecture (Micro Channel Architecture, abbreviated MCa) Bus, a peripheral component interconnect (Peripheral Component Interconnect, abbreviated PCI) Bus, a PCI-Express (PCI-X) Bus, a serial advanced technology attachment (Serial Advanced Technology Attachment, abbreviated SATA) Bus, a video electronics standards association local (Video Electronics Standards Association Local Bus, abbreviated VLB) Bus, or other suitable Bus, or a combination of two or more of the foregoing. Bus 10 may include one or more buses, where appropriate. Although embodiments of the present application describe and illustrate a particular bus, the present application contemplates any suitable bus or interconnect.
The foregoing description is only of the preferred embodiments of the present application and is not intended to limit the same, but rather, various modifications and variations may be made by those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principles of the present application should be included in the protection scope of the present application.

Claims (10)

1. The method is characterized by being applied to a continuous integrated system and a code management system, wherein the method comprises the following steps of:
an interface acquisition step of acquiring an API interface of the continuous integrated system;
a template establishing step, based on an embedded software testing flow and a testing tool, of establishing a basic configuration template of the continuous integrated system and opening a configuration interface of the basic configuration template and the continuous integrated system based on the API interface;
a target template acquisition step of designing a target template acquisition script, processing the basic configuration template based on the target template acquisition script and a user test requirement, and acquiring a target basic configuration template of a user;
a code acquisition step of designing a code acquisition script, and uploading the user test requirement to the code management system based on the code acquisition script to acquire a corresponding code;
and a test analysis step, namely creating an association hook of the continuous integrated system and the code management system, and based on the association hook, performing test analysis on the code by the continuous integrated system according to the target basic configuration template, and generating a test result.
2. The embedded software continuous integration automation creation method of claim 1, further comprising:
and updating the basic configuration template of the continuous integrated system based on the updated embedded software test flow and/or the updated test tool after the embedded software test flow and/or the updated test tool are updated.
3. The embedded software continuous integration automation creation method of claim 1, further comprising:
and a user display step, wherein the basic configuration template is displayed to a user to acquire the test requirement of the user, and the test result is displayed to the user.
4. The method for automatically creating the continuous integration of the embedded software according to claim 1, wherein the step of obtaining the interface specifically comprises:
and acquiring the API interface of the continuous integrated system, and packaging the acquired API interface to form a JAR package.
5. The method for automatically creating the continuous integration of the embedded software according to claim 4, wherein the step of creating the template opens the configuration interface between the basic configuration template and the continuous integration system specifically comprises:
based on the JAR package, the JAR package comprises an API interface for analyzing a basic configuration template, and the basic configuration template and the configuration interface of the continuous integrated system are opened.
6. The embedded software integration automation creation method of claim 1, wherein creating the association hooks of the integration system and the code management system in the test analysis step specifically comprises:
an association hook for the persistence integrated system and the code management system is created using a Web automation test framework Selenium Webdrive.
7. An embedded software continuous integration automation creation system, characterized by being applied to a continuous integration system and a code management system, wherein the system comprises:
the interface acquisition module is used for acquiring an API interface of the continuous integrated system;
the template building module is used for building a basic configuration template of the continuous integrated system based on an embedded software test flow and a test tool, and opening a configuration interface of the basic configuration template and the continuous integrated system based on the API interface;
the target template acquisition module is used for designing a target template acquisition script, processing the basic configuration template based on the target template acquisition script and the user test requirement, and acquiring a target basic configuration template of the user;
the code acquisition module is used for designing a code acquisition script, uploading the user test requirement to the code management system based on the code acquisition script, and acquiring a corresponding code;
and the test analysis module is used for creating an association hook of the continuous integrated system and the code management system, and based on the association hook, the continuous integrated system carries out test analysis on the code according to the target basic configuration template and generates a test result.
8. The embedded software continuous integrated automation creation system of claim 7, further comprising:
and the template updating module is used for updating the basic configuration template of the continuous integrated system based on the updated embedded software testing flow and/or the testing tool after the embedded software testing flow and/or the testing tool are updated.
9. The embedded software continuous integrated automation creation system of claim 7, further comprising:
and the user display module is used for displaying the basic configuration template to a user to acquire the test requirement of the user and displaying the test result to the user.
10. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the embedded software sustained integration automation creation method of any of claims 1 to 6 when the computer program is executed.
CN202110001881.9A 2021-01-04 2021-01-04 Automatic creation method, system and equipment for continuous integration of embedded software Active CN112650690B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110001881.9A CN112650690B (en) 2021-01-04 2021-01-04 Automatic creation method, system and equipment for continuous integration of embedded software

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110001881.9A CN112650690B (en) 2021-01-04 2021-01-04 Automatic creation method, system and equipment for continuous integration of embedded software

Publications (2)

Publication Number Publication Date
CN112650690A CN112650690A (en) 2021-04-13
CN112650690B true CN112650690B (en) 2023-06-20

Family

ID=75367228

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110001881.9A Active CN112650690B (en) 2021-01-04 2021-01-04 Automatic creation method, system and equipment for continuous integration of embedded software

Country Status (1)

Country Link
CN (1) CN112650690B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2003025706A2 (en) * 2001-09-20 2003-03-27 I-Logix Inc. Computerized system and method for web enabling and/or web management of embedded applications
CN109408382A (en) * 2018-10-11 2019-03-01 网宿科技股份有限公司 A kind of continuous integrating method and continuous integration system
US10810110B1 (en) * 2018-01-25 2020-10-20 Intuit Inc. Methods, systems, and articles of manufacture for testing web services using a behavior-driven development domain specific language framework

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11106792B2 (en) * 2019-03-29 2021-08-31 Acronis International Gmbh Methods and systems for performing a dynamic analysis of applications for protecting devices from malwares

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2003025706A2 (en) * 2001-09-20 2003-03-27 I-Logix Inc. Computerized system and method for web enabling and/or web management of embedded applications
US10810110B1 (en) * 2018-01-25 2020-10-20 Intuit Inc. Methods, systems, and articles of manufacture for testing web services using a behavior-driven development domain specific language framework
CN109408382A (en) * 2018-10-11 2019-03-01 网宿科技股份有限公司 A kind of continuous integrating method and continuous integration system

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
基于Jenkins的持续集成***研究;陈迪;;电子测试(08);全文 *
基于Jenkins的软件缺陷持续测试平台设计与实现;朱志东;张素芬;;信息化研究(03);全文 *

Also Published As

Publication number Publication date
CN112650690A (en) 2021-04-13

Similar Documents

Publication Publication Date Title
CN109302522B (en) Test method, test device, computer system, and computer medium
CN105117233B (en) API Calls method and device
CN112650478B (en) Dynamic construction method, system and equipment for embedded software development platform
CN112559354A (en) Front-end code specification detection method and device, computer equipment and storage medium
CN108388640B (en) Data conversion method and device and data processing system
CN112486459B (en) Method, device, computer equipment and readable storage medium for generating active page
CN114610640A (en) Fuzzy testing method and system for trusted execution environment of Internet of things
CN112631590B (en) Component library generation method, device, electronic equipment and computer readable medium
CN112699041B (en) Automatic deployment method, system and equipment for embedded software
CN112631924A (en) Automatic testing method and device, computer equipment and storage medium
CN112463588A (en) Automatic test system and method, storage medium and computing equipment
US20200293592A1 (en) Methods and systems for browser extension used to generate relative xpath, absolute xpath and/or css selectors
CN111656321A (en) Dynamically replacing calls in a software library with accelerator calls
CN107122203B (en) Configuration file setting method and device
CN113448869B (en) Method and device for generating test case, electronic equipment and computer readable medium
CN112650690B (en) Automatic creation method, system and equipment for continuous integration of embedded software
CN110489347A (en) Method for edition management, device, equipment and readable storage medium storing program for executing based on GIT
CN104657266A (en) Script-based source code pile pitching system and script-based source code pile pitching method
CN113836014A (en) Interface testing method and device, electronic equipment and storage medium
CN106293862B (en) A kind of analysis method and device of expandable mark language XML data
CN114510305B (en) Model training method and device, storage medium and electronic equipment
CN113656830B (en) Database desensitization grammar parsing method, system, computer and readable storage medium
CN112882708A (en) List interface implementation method and device, electronic equipment and storage medium
CN110532186B (en) Method, device, electronic equipment and storage medium for testing by using verification code
CN115705187A (en) Item dependency relationship display method and device, terminal equipment and storage medium

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