Automated testing method and device for heterogeneous architecture integrated system
By building intermediate table files, data exchange and state synchronization between the C/S architecture system and the B/S architecture system is solved, and the problem of low automation testing efficiency of the special-shaped architecture integrated system is realized, and an efficient integrated testing process is achieved.
Patent Information
- Application Number
- CN202111545230.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-16
- Publication Date
- 2025-03-14
- Estimated Expiration
- 2041-12-16
AI Technical Summary
Automated testing of the special-shaped architecture integration system based on CAD software applications is carried out alone, resulting in low efficiency in the automated testing process.
By building intermediate table files, data exchange and state synchronization between the C/S architecture system and the B/S architecture system is realized, thereby realizing an integrated automated testing process. The intermediate table file includes at least the sequence number field of the target file, the file name field, the data file resolution status field, the data file application status field, and whether it is the last file field generated by this automated test.
The automatic testing efficiency of the special-shaped architecture integrated system has been improved, and seamless connection and steady and orderly integrated testing have been achieved between the C/S architecture system and the B/S architecture system.
Smart Images

Figure CN114253845B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer software technology, and in particular to an automated testing method and device for a heterogeneous architecture integrated system. Background Art
[0002] As a tool system, the CAD system has complex geometric expressions, high algorithm requirements, large computational load, and some resource libraries are stored on the network or in the cloud. The resource libraries provided by the cloud, such as standard parts, general parts, and accessories libraries, adopt the C / S architecture. For deep applications based on CAD data sources, such as data management, project management, process management, and quotation management, the B / S architecture is adopted. In the application scenario of the enterprise, after the drawings are designed on the CAD tool side of the C / S, they must be transmitted to the management side of the B / S structure, such as the quotation side, for data mining applications. In automated testing, Winrunner, Robot, QTP, Testing AnyWhere, etc. can be used for automated testing of the C / S architecture system, and Selenium, jmeter, Postman, etc. can be used for automated testing of the B / S architecture system. However, the automated testing of the C / S architecture system and the B / S architecture system are carried out separately, which will lead to the problem of low efficiency of the automated testing process. How to seamlessly connect the two automated testing systems and steadily and orderly integrate the tests is a problem that needs to be solved.
[0003] In the related technologies, the automated testing of heterogeneous architecture integration systems based on CAD software applications is performed independently, resulting in a relatively low efficiency of the automated testing process. Currently, no effective solution has been proposed. Summary of the invention
[0004] The main purpose of this application is to provide an automated testing method and device for a heterogeneous architecture integration system, so as to solve the problem that the automated testing of the heterogeneous architecture integration system based on CAD software application in the related technology is carried out independently, resulting in a relatively low efficiency of the automated testing process.
[0005] In order to achieve the above-mentioned purpose, according to one aspect of the present application, an automated testing method for a heterogeneous architecture integration system is provided. The heterogeneous architecture integration system includes a C / S architecture system and a B / S architecture system, and the method includes: performing automated testing on the C / S architecture system to generate a target file; during the automated testing of the C / S architecture system, constructing an intermediate table file, wherein the intermediate table file at least includes: a sequence number field of the target file, a file name field of the target file, a data file parsing status field, a data file application status field, and whether it is the last file field generated for this automated test; based on the intermediate table file, the B / S architecture system calls the target file to implement automated testing of the B / S architecture system.
[0006] Furthermore, after generating the target file, the method further includes: storing the target file in the cloud; after constructing the intermediate table file, the method further includes: storing the intermediate table file in the cloud.
[0007] Furthermore, based on the intermediate table file, the target file is called by the B / S architecture system to realize automated testing of the B / S architecture system, including: the B / S architecture system determines whether the target file exists in the cloud according to a preset time period one; when the target file exists in the cloud, the B / S architecture system parses the target file to obtain target data information; the B / S architecture system determines whether the target data information meets the preset requirements, and when the target data information meets the preset requirements, the B / S architecture system sets the status value of the data file parsing status field of the intermediate table file to a preset value one; when the target data information does not meet the preset requirements, the B / S architecture system sets the status value of the data file parsing status field of the intermediate table file to a preset value two.
[0008] Furthermore, when the target data information meets the preset requirements, the method also includes: according to the automated testing process of the B / S architecture system, the B / S architecture system processes the target data information; after the target data information is processed, the B / S architecture system sets the status value of the data file application status field of the intermediate table file to a preset value of three, wherein the initial status value of the data file application status field is a preset value of four.
[0009] Furthermore, the method also includes: the C / S architecture system reads the status value of the data file parsing status field of the intermediate table file; if the status value of the data file parsing status field is the preset value one, the C / S architecture system reads the status value of the data file application status field of the intermediate table file according to the preset time period two; if the status value of the data file application status field is the preset value three, judging whether the automated test of the C / S architecture system is completed; if the automated test of the C / S architecture system is completed, the C / S architecture system sets the status value of whether the intermediate table file is the last file field generated for this automated test to the preset value five.
[0010] Furthermore, the method also includes: if the automated test of the C / S architecture system is not completed, the C / S architecture system sets the status value of whether the intermediate table file is the last file field generated for this automated test to a preset value of six; and continues to execute automated testing on the C / S architecture system until the automated testing of the C / S architecture system is completed.
[0011] Furthermore, if the status value of the data file parsing status field is a preset value of four, the method also includes: the C / S architecture system marks the target data information that does not meet the preset requirements, reports the problem in the target file, and continues to execute the step of determining whether the automated testing of the C / S architecture system is completed.
[0012] Furthermore, the method also includes: the B / S architecture system reads the status value of the intermediate table file's last file field generated for this automated test; if the status value of the last file field generated for this automated test is a preset value of five, the automated test of the B / S architecture system is completed.
[0013] Furthermore, when the status value of the last file field generated for this automated test is a preset value of six, the method also includes: continuing to execute the step of the B / S architecture system determining whether the target file exists in the cloud according to a preset time period one until the status value of the last file field generated for this automated test is a preset value of five.
[0014] In order to achieve the above-mentioned purpose, according to another aspect of the present application, an automated testing device for a heterogeneous architecture integration system is provided. The device comprises: a first testing unit, which is used to perform automated testing on the C / S architecture system and generate a target file; a construction unit, which is used to construct an intermediate table file during the automated testing of the C / S architecture system, wherein the intermediate table file at least comprises: a sequence number field of the target file, a file name field of the target file, a data file parsing status field, a data file application status field, and whether it is the last file field generated by this automated test; a calling unit, which is used to call the target file by the B / S architecture system according to the intermediate table file to realize automated testing of the B / S architecture system.
[0015] Furthermore, the device further includes: a first storage unit, for storing the target file in the cloud after the target file is generated; and a second storage unit, for storing the intermediate table file in the cloud after the intermediate table file is constructed.
[0016] Furthermore, the calling unit includes: a first judgment module, used for the B / S architecture system to judge whether the target file exists in the cloud according to a preset time period one; a parsing module, used for the B / S architecture system to parse the target file to obtain target data information when the target file exists in the cloud; a second judgment module, used for the B / S architecture system to judge whether the target data information meets the preset requirements, and when the target data information meets the preset requirements, the B / S architecture system sets the status value of the data file parsing status field of the intermediate table file to a preset value one; a setting module, used for the B / S architecture system to set the status value of the data file parsing status field of the intermediate table file to a preset value two when the target data information does not meet the preset requirements.
[0017] Furthermore, the device also includes: a processing unit, which is used for, when the target data information meets the preset requirements, the B / S architecture system to process the target data information according to the automated testing process of the B / S architecture system; a first setting unit, which is used for, after the target data information is processed, the B / S architecture system to set the status value of the data file application status field of the intermediate table file to a preset value of three, wherein the initial status value of the data file application status field is a preset value of four.
[0018] Furthermore, the device also includes: a first reading unit, used for the C / S architecture system to read the status value of the data file parsing status field of the intermediate table file; a second reading unit, used for, if the status value of the data file parsing status field is a preset value one, the C / S architecture system to read the status value of the data file application status field of the intermediate table file according to a preset time period two; a first judgment unit, used for, if the status value of the data file application status field is a preset value three, to judge whether the automated test of the C / S architecture system is completed; a second setting unit, used for, if the automated test of the C / S architecture system is completed, the C / S architecture system to set the status value of whether the intermediate table file is the last file field generated for this automated test to a preset value five.
[0019] Furthermore, the device also includes: a third setting unit, which is used to set the status value of whether the intermediate table file is the last file field generated for this automated test to a preset value of six if the automated test of the C / S architecture system is not completed; and a second testing unit, which is used to continue to perform automated testing on the C / S architecture system until the automated testing of the C / S architecture system is completed.
[0020] Furthermore, the device also includes: a marking unit, which is used to, if the status value of the data file parsing status field is a preset value of four, mark the target data information that does not meet the preset requirements by the C / S architecture system, and report the problem in the target file, and continue to execute the step of determining whether the automated test of the C / S architecture system is completed.
[0021] Furthermore, the device also includes: a third reading unit, used for the B / S architecture system to read the status value of the intermediate table file to determine whether it is the last file field generated for this automated test; and a second judgment unit, used to determine whether the automated test of the B / S architecture system has been completed if the status value of the last file field generated for this automated test is a preset value of five.
[0022] Furthermore, the device also includes: an execution unit, which is used to continue executing the step of the B / S architecture system determining whether the target file exists in the cloud according to a preset time period one when the status value of the last file field generated for this automated test is a preset value of six, until the status value of the last file field generated for this automated test is a preset value of five.
[0023] In order to achieve the above-mentioned purpose, according to another aspect of the present application, a computer-readable storage medium is provided, wherein the storage medium includes a stored program, wherein the program executes the automated testing method for the heterogeneous architecture integration system described in any one of the above-mentioned items.
[0024] In order to achieve the above-mentioned purpose, according to another aspect of the present application, a processor is provided, wherein the processor is used to run a program, wherein when the program is run, the automated testing method for the heterogeneous architecture integration system described in any one of the above-mentioned items is executed.
[0025] Through this application, the following steps are adopted: the heterogeneous architecture integration system includes a C / S architecture system and a B / S architecture system, and the C / S architecture system is subjected to automated testing to generate a target file; during the C / S architecture system executing automated testing, an intermediate table file is constructed, wherein the intermediate table file at least includes: a target file sequence number field, a target file file name field, a data file parsing status field, a data file application status field, and whether it is the last file field generated for this automated test; based on the intermediate table file, the B / S architecture system calls the target file to realize automated testing of the B / S architecture system. Through this application, the problem that the automated testing of the heterogeneous architecture integration system based on CAD software application in the related art is carried out independently, resulting in a relatively low efficiency of the automated testing process, is solved. By constructing the intermediate table file, the automated testing process of the C / S architecture system and the B / S architecture system is realized, thereby achieving the effect of improving the efficiency of automated testing. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] The drawings constituting a part of the present application are used to provide a further understanding of the present application. The illustrative embodiments and descriptions of the present application are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0027] Figure 1 It is a flowchart of an automated testing method for a heterogeneous architecture integration system provided in an embodiment of the present application;
[0028] Figure 2 It is a flowchart of an optional automated testing method for a heterogeneous architecture integration system provided according to an embodiment of the present application;
[0029] Figure 3 It is a schematic diagram of an automated testing device for a heterogeneous architecture integrated system provided according to an embodiment of the present application. DETAILED DESCRIPTION
[0030] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0031] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.
[0032] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequential order. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present application described here. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0033] The present invention is described below in conjunction with preferred implementation steps. Figure 1 is a flowchart of an automated testing method for a heterogeneous architecture integration system provided in an embodiment of the present application, such as Figure 1 As shown, the method comprises the following steps:
[0034] Step S101, performing automated testing on the C / S architecture system to generate a target file.
[0035] For example, if you use home design software based on the C / S architecture system to design a cabinet, the corresponding target file needs to include information such as panel material, panel color, panel usable area (length, width and height), type of hardware and quantity of hardware.
[0036] Step S102, during the C / S architecture system executing automated testing, an intermediate table file is constructed, wherein the intermediate table file includes at least: a target file sequence number field, a target file file name field, a data file parsing status field, a data file application status field, and whether it is the last file field generated for this automated test.
[0037] Establish an intermediate table file, which is the data exchange site of the two heterogeneous systems and the synchronization of the test beats. For example, the file format of the intermediate table file can be a table file (for example, *.xls, *.xlsx), or a database file or a text file (for example, *.txt, *.xml, *.json). The intermediate table file must contain at least five fields, namely the target file sequence field, the target file file name field, the data file parsing status field, the data file application status field, and whether it is the last file field generated for this automated test. The target file sequence field: records the sequence of target files generated by the C / S architecture system during this automated test, for example, 1, 2, 3, ..., 10, .... The target file file name field: stores the name of the generated target file, for example, XXX design.hdf. The data file parsing status field: if the file data is complete and the parsed data meets the requirements, the status value is 1; if the file data is incomplete and the parsed data does not meet the requirements, the status value is 0. The data file application status field: if the B / S architecture system is processing data and has not ended, the status value is 0. If the application of the B / S architecture system based on this data file has ended, the status value is 1, and the default value of the status value of the data file application status field is 0. Whether it is the last file field generated for this automated test: if it is the last file of this run, the status value is 1, otherwise the status value is 0. This value is used to indicate whether the automatic test of the C / S architecture system has ended. The default value is 0. When the last file is generated in the automated test of the C / S architecture system, the value is set to 1. This value will be obtained from the intermediate table during the automated test of the B / S architecture system. If the value is 1, the automated test of the B / S architecture system is over.
[0038] Step S103, based on the intermediate table file, the B / S architecture system calls the target file to implement automated testing of the B / S architecture system.
[0039] According to the status value of the intermediate table field, the B / S architecture system calls the target file to realize the automated testing process. For example, the quotation system based on the B / S architecture system calls the target file generated by the home design software based on the C / S architecture system to realize the automated testing process of the quotation system.
[0040] Through the above steps, an intermediate table file is constructed, and the automated testing process of the heterogeneous integrated system from C / S to B / S based on the CAD system is realized through the intermediate table file, thereby improving the efficiency of automated testing.
[0041] Optionally, in the automated testing method for the heterogeneous architecture integration system provided in the embodiment of the present application, after generating the target file, the method further includes: storing the target file in the cloud; after constructing the intermediate table file, the method further includes: storing the intermediate table file in the cloud.
[0042] After the C / S architecture system generates the target file, the target file is stored in the cloud, and the intermediate table is also stored in the cloud.
[0043] Storing the target file in the cloud saves local storage space and makes it easier for the B / S architecture system to call the target file.
[0044] Optionally, in the automated testing method for the heterogeneous architecture integration system provided in the embodiment of the present application, based on the intermediate table file, the target file is called through the B / S architecture system to realize automated testing of the B / S architecture system, including: the B / S architecture system determines whether the target file exists in the cloud according to a preset time period one; when the target file exists in the cloud, the B / S architecture system parses the target file to obtain target data information; the B / S architecture system determines whether the target data information meets the preset requirements, and when the target data information meets the preset requirements, the B / S architecture system sets the status value of the data file parsing status field of the intermediate table file to a preset value one; when the target data information does not meet the preset requirements, the B / S architecture system sets the status value of the data file parsing status field of the intermediate table file to a preset value two.
[0045] For example, the quotation system based on the B / S architecture system determines whether there is a target file in the cloud according to a preset time period (for example, a loop judgment every 1000 milliseconds). When the target file exists in the cloud, the B / S architecture system parses the target file to obtain the target data information. For example, when parsing a cabinet designed by a home design software based on the C / S architecture system, the corresponding target file is generated. Then the parsed target data information includes: panel material, panel color, panel use area (length, width and height), type of hardware and quantity of hardware, etc. The quotation system based on the B / S architecture system determines whether the target data information is complete and correct (that is, whether the above meets the preset requirements). When the target data information meets the requirements, the quotation system based on the B / S architecture system sets the status value of the data file parsing status field in the intermediate table file to 1; when it does not meet the requirements, the status value of the data file parsing status field in the intermediate table file is set to 0.
[0046] The B / S architecture system feeds back the status of the parsed target data information to the intermediate table data, so that the C / S architecture system can process the problematic data in the target data information in a timely manner after reading it.
[0047] Optionally, in the automated testing method for the heterogeneous architecture integration system provided in the embodiment of the present application, when the target data information meets the preset requirements, the method further includes: according to the automated testing process of the B / S architecture system, the B / S architecture system processes the target data information; after the target data information is processed, the B / S architecture system sets the status value of the data file application status field of the intermediate table file to a preset value of three, wherein the initial status value of the data file application status field is a preset value of four.
[0048] For example, when the target data information parsed by the quotation system based on the B / S architecture system meets the preset requirements, the target data information is processed. For example, the quotation system based on the B / S architecture system processes the quotation based on the information such as the material of the panel, the color of the panel, the area used for the panel (length, width and height), the type of hardware and the quantity of hardware. When the quotation is completed, the quotation system based on the B / S architecture system sets the status value of the data file application status field of the intermediate table file to 1.
[0049] Through the status value of the data file application status field of the intermediate table file, the C / S architecture system can quickly understand the progress of the B / S architecture system, which facilitates the C / S architecture system to perform subsequent operations.
[0050] Optionally, in the automated testing method for the heterogeneous architecture integration system provided in the embodiment of the present application, the method also includes: the C / S architecture system reads the status value of the data file parsing status field of the intermediate table file; if the status value of the data file parsing status field is the preset value one, the C / S architecture system reads the status value of the data file application status field of the intermediate table file according to the preset time period two; if the status value of the data file application status field is the preset value three, it is determined whether the automated testing of the C / S architecture system is completed; if the automated testing of the C / S architecture system is completed, the C / S architecture system sets the status value of whether the intermediate table file is the last file field generated for this automated test to the preset value five.
[0051] For example, the home design software based on the C / S architecture system reads the status value of the data file parsing status field of the intermediate table file. When the status value of the data file parsing status field is 1, it means that the quotation system based on the B / S architecture system has completed the data parsing and judged that the data is normal. Then the home design software based on the C / S architecture system executes the next step and reads the status value of the data file application status field of the intermediate table file according to the preset time cycle 2 (for example, read every 1000 milliseconds until the status is 1). When the status value of the data file application status field is read to be the preset value 1, it means that the quotation system based on the B / S architecture system has completed the processing of the target data information. Then the next step is executed to determine whether the automated test of the home design software based on the C / S architecture system has been completed. If it has been completed, the home design software based on the C / S architecture system sets the status value of the intermediate table file's whether it is the last file field generated by this automated test to 1.
[0052] The C / S architecture system can quickly understand the test progress of the B / S architecture system through the intermediate table data, and adjust the automated test progress of the C / S architecture system based on the test progress of the B / S architecture.
[0053] Optionally, in the automated testing method for the heterogeneous architecture integration system provided in the embodiment of the present application, the method also includes: if the automated testing of the C / S architecture system is not completed, the C / S architecture system sets the status value of the field of whether the intermediate table file is the last file generated for this automated testing to a preset value of six; and continues to execute automated testing on the C / S architecture system until the automated testing of the C / S architecture system is completed.
[0054] When the automated test of the home design software based on the C / S architecture system is not completed, the home design software sets the status value of the field of whether the intermediate table file is the last file generated for this automated test to 0; and continues to execute the automated test.
[0055] The B / S architecture system completes automated testing through the target file generated by the C / S architecture system, so the C / S architecture system needs to write the automated testing progress into the intermediate table file, so that the B / S architecture system can determine the next execution content by reading the automated testing progress of the C / S architecture system.
[0056] Optionally, in the automated testing method for the heterogeneous architecture integration system provided in the embodiment of the present application, if the status value of the data file parsing status field is a preset value of four, the method further includes: the C / S architecture system marks the target data information that does not meet the preset requirements, and reports the problem in the target file, and continues to execute the step of determining whether the automated testing of the C / S architecture system is completed.
[0057] For example, the home design software based on the C / S architecture system reads the status value of the data file parsing status field of the intermediate table file. When the status value of the data file parsing status field is 0, it means that the quotation system based on the B / S architecture system determines that the data does not meet the preset requirements. Then the home design software marks the target data information that does not meet the requirements and reports the existence of a bug in the target file. Then continue to execute the step of determining whether the automated test of the home design software is completed.
[0058] The C / S architecture system marks the data with problems to facilitate subsequent developers to analyze the problems and propose solutions to the problems.
[0059] Optionally, in the automated testing method for the heterogeneous architecture integration system provided in the embodiment of the present application, the method also includes: the B / S architecture system reads the status value of the intermediate table file to determine whether it is the last file field generated for this automated test; if the status value of the last file field generated for this automated test is the preset value five, then the automated testing of the B / S architecture system is completed.
[0060] For example, the quotation system based on the B / S architecture system reads the status value of the intermediate table file to see whether it is the last file field generated by this automated test. When the read status value is 1, it means that the home design software based on the C / S architecture system has no new target file generated, so the automated test of the quotation system based on the B / S architecture system has ended.
[0061] The C / S architecture system and the B / S architecture system exchange data status through intermediate table files to achieve an integrated testing process, thereby improving the efficiency of automated testing of heterogeneous architecture integration systems.
[0062] Optionally, in the automated testing method for the heterogeneous architecture integration system provided in the embodiment of the present application, when the status value of the last file field generated for this automated test is the preset value six, the method also includes: continuing to execute the step of the B / S architecture system determining whether the target file exists in the cloud according to a preset time period one until the status value of the last file field generated for this automated test is the preset value five.
[0063] For example, the quotation system based on the B / S architecture system reads the status value of the last file field generated by this automated test in the intermediate table file. When the read status value is 0, it indicates that a new target file has been generated by the home design software based on the C / S architecture system. Therefore, the quotation system based on the B / S architecture system continues to determine whether the target file exists in the cloud according to the preset time period until the status value of the last file field generated by this automated test is 1.
[0064] The embodiment of the present application provides an automated testing method for a heterogeneous architecture integration system, wherein the heterogeneous architecture integration system includes a C / S architecture system and a B / S architecture system, and a target file is generated by performing automated testing on the C / S architecture system; during the automated testing process of the C / S architecture system, an intermediate table file is constructed, wherein the intermediate table file at least includes: a sequence number field of the target file, a file name field of the target file, a data file parsing status field, a data file application status field, and whether it is the last file field generated for this automated test; based on the intermediate table file, the B / S architecture system calls the target file to realize automated testing of the B / S architecture system. Through this application, the problem that the automated testing of the heterogeneous architecture integration system based on CAD software application in the related art is carried out independently, resulting in a relatively low efficiency of the automated testing process, is solved. The automated testing process of the integration of the C / S architecture system and the B / S architecture system is realized by constructing an intermediate table file, thereby achieving the effect of improving the efficiency of automated testing.
[0065] like Figure 2 As shown, it is an automatic test flow chart of an optional heterogeneous architecture integration system provided according to an embodiment of the present application. The automatic test process of the CAD system based on the C / S architecture system: the first step is to perform automatic testing; the second step is to obtain resource data from cloud resources (public cloud, private cloud), perform operations according to the process, and generate CAD drawing information and additional attribute information; the third step is to upload CAD drawing information and possible additional attribute information to the agreed intermediate storage system, such as cloud storage, etc.; the fourth step is to read the status value of the data file parsing status field in the intermediate table. If the value is 0, it means that the management system based on the B / S architecture system determines that there is a problem with the parsed data, then in the CAD system, mark the data and report the bug, and then continue to execute the next step; if the value is 1, the management system determines that the parsed data is normal, and then execute the next step. The fifth step is that the CAD system reads the status value of the data file application status field in the intermediate table file. If the status value is 0, it means that the management system is in the process of processing the parsed data. The CAD system sets a certain time waiting amount, for example, it runs a loop every 1000 milliseconds to judge once until the read status value is 1. When the read status value is 1, the next step is executed. The sixth step is to determine whether the CAD system automated test process has been completed. If it has been completed, the status value of the field in the intermediate table file indicating whether it is the last file of this run is set to 1; if it has not been completed, it is set to 0; for the management system automated test call.
[0066] The automated testing process of the management system based on the B / S architecture: the first step is to perform automated testing; the second step is to read the file provided by the CAD system. If the file has not been provided in the CAD system or the provided file has been processed, the management system will loop and run the judgment every 1000 milliseconds until the CAD system provides a new CAD data file. The third step is to parse the data information and additional attribute information in the CAD file to determine whether the various types of data parsed meet the requirements. If the required value is met, the management system sets the status value of the data parsing status field in the intermediate table file to 1; if it does not meet the requirements, the status value is set to 0; the fourth step is to test the parsed data when it is correct. If the test processing is completed, the management system sets the status value of the data file application status field in the intermediate table file to 1. The fifth step is to read the status value of the file field from the intermediate table file to see if it is the last file field of this run. If the status value is 0, continue to loop the above steps to test the next CAD file; if the status value is 1, the automated testing of the management system is completed.
[0067] It should be noted that the steps shown in the flowcharts of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and that, although a logical order is shown in the flowcharts, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0068] The embodiment of the present application also provides an automated testing device for a heterogeneous architecture integrated system. It should be noted that the automated testing device for a heterogeneous architecture integrated system in the embodiment of the present application can be used to execute the automated testing method for a heterogeneous architecture integrated system provided in the embodiment of the present application. The automated testing device for a heterogeneous architecture integrated system provided in the embodiment of the present application is introduced below.
[0069] Figure 3 Schematic diagram of an automated testing device for a heterogeneous architecture integrated system according to an embodiment of the present application. Figure 3 As shown, the device includes: a first testing unit 301, a building unit 302 and a calling unit 303.
[0070] The first testing unit 301 is used to perform automated testing on the C / S architecture system and generate a target file.
[0071] The construction unit 302 is used to construct an intermediate table file during the execution of automated testing by the C / S architecture system, wherein the intermediate table file at least includes: a target file sequence number field, a target file file name field, a data file parsing status field, a data file application status field, and whether it is the last file field generated for this automated test.
[0072] The calling unit 303 is used to call the target file according to the intermediate table file and the B / S architecture system to realize the automated testing of the B / S architecture system.
[0073] The automated testing device of the heterogeneous architecture integration system provided in the embodiment of the present application performs automated testing on the C / S architecture system through the first test unit 301 to generate a target file; the construction unit 302 constructs an intermediate table file during the automated testing of the C / S architecture system, wherein the intermediate table file at least includes: a sequence number field of the target file, a file name field of the target file, a data file parsing status field, a data file application status field, and whether it is the last file field generated by this automated test; the calling unit 303 calls the target file based on the intermediate table file, and the B / S architecture system calls the target file to realize the automated testing of the B / S architecture system, which solves the problem that the automated testing of the heterogeneous architecture integration system based on the CAD software application in the related art is carried out independently, resulting in a relatively low efficiency of the automated testing process. By constructing the intermediate table file, the C / S architecture system and the B / S architecture system are integrated and automated testing is realized, thereby achieving the effect of improving the efficiency of automated testing.
[0074] Optionally, in the automated testing device of the heterogeneous architecture integration system provided in the embodiment of the present application, the device also includes: a first storage unit, used to store the target file in the cloud after the target file is generated; the device also includes: a second storage unit, used to store the intermediate table file in the cloud after the intermediate table file is constructed.
[0075] Optionally, in the automated testing device for the heterogeneous architecture integration system provided in the embodiment of the present application, the calling unit includes: a first judgment module, used for the B / S architecture system to judge whether there is a target file in the cloud according to a preset time period one; a parsing module, used for the B / S architecture system to parse the target file to obtain target data information when the target file exists in the cloud; a second judgment module, used for the B / S architecture system to judge whether the target data information meets the preset requirements, and when the target data information meets the preset requirements, the B / S architecture system sets the status value of the data file parsing status field of the intermediate table file to a preset value one; a setting module, used for the B / S architecture system to set the status value of the data file parsing status field of the intermediate table file to a preset value two when the target data information does not meet the preset requirements.
[0076] Optionally, in the automated testing device for the heterogeneous architecture integration system provided in the embodiment of the present application, the device further includes: a processing unit, which is used for, when the target data information meets the preset requirements, the B / S architecture system to process the target data information according to the automated testing process of the B / S architecture system; and a first setting unit, which is used for, after the target data information is processed, the B / S architecture system to set the status value of the data file application status field of the intermediate table file to a preset value of three, wherein the initial status value of the data file application status field is a preset value of four.
[0077] Optionally, in the automated testing device for the heterogeneous architecture integration system provided in the embodiment of the present application, the device also includes: a first reading unit, used for the C / S architecture system to read the status value of the data file parsing status field of the intermediate table file; a second reading unit, used for if the status value of the data file parsing status field is a preset value one, the C / S architecture system reads the status value of the data file application status field of the intermediate table file according to a preset time period two; a first judgment unit, used for if the status value of the data file application status field is a preset value three, judging whether the automated testing of the C / S architecture system is completed; a second setting unit, used for if the automated testing of the C / S architecture system is completed, the C / S architecture system sets the status value of whether the intermediate table file is the last file field generated for this automated test to a preset value five.
[0078] Optionally, in the automated testing device for the heterogeneous architecture integration system provided in the embodiment of the present application, the device also includes: a third setting unit, which is used to set the status value of the field of whether the intermediate table file is the last file generated for this automated test to a preset value of six if the automated testing of the C / S architecture system is not completed; and a second testing unit, which is used to continue to perform automated testing on the C / S architecture system until the automated testing of the C / S architecture system is completed.
[0079] Optionally, in the automated testing device for the heterogeneous architecture integration system provided in the embodiment of the present application, the device further includes: a marking unit, which is used for, if the status value of the data file parsing status field is a preset value of four, the C / S architecture system marks the target data information that does not meet the preset requirements, and reports the problem in the target file, and continues to execute the step of determining whether the automated testing of the C / S architecture system is completed.
[0080] Optionally, in the automated testing device for the heterogeneous architecture integration system provided in the embodiment of the present application, the device further includes: a third reading unit, used for the B / S architecture system to read the status value of the intermediate table file to determine whether it is the last file field generated for this automated test; and a second judgment unit, used for determining whether the status value of the last file field generated for this automated test is a preset value of five, and the automated testing of the B / S architecture system is completed.
[0081] Optionally, in the automated testing device for the heterogeneous architecture integration system provided in the embodiment of the present application, the device further includes: an execution unit, for continuing to execute the step of determining whether the target file exists in the cloud according to a preset time period one of the B / S architecture system when the status value of the last file field generated for this automated test is a preset value of six, until the status value of the last file field generated for this automated test is a preset value of five.
[0082] The automated testing device of the heterogeneous architecture integration system includes a processor and a memory. The first test unit 301, the construction unit 302 and the calling unit 303 are all stored in the memory as program units, and the processor executes the program units stored in the memory to implement corresponding functions.
[0083] The processor includes a kernel, which calls the corresponding program unit from the memory. One or more kernels can be set, and the automatic testing of the heterogeneous architecture integration system can be achieved by adjusting the kernel parameters.
[0084] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM, and the memory includes at least one memory chip.
[0085] An embodiment of the present invention provides a computer-readable storage medium having a program stored thereon, which implements the automated testing method of the heterogeneous architecture integration system when executed by a processor.
[0086] An embodiment of the present invention provides a processor, which is used to run a program, wherein the program executes the automated testing method of the heterogeneous architecture integration system when running.
[0087] An embodiment of the present invention provides a device, which includes a processor, a memory, and a program stored in the memory and executable on the processor. When the processor executes the program, the following steps are implemented: performing automated testing on a C / S architecture system to generate a target file; during the automated testing of the C / S architecture system, constructing an intermediate table file, wherein the intermediate table file at least includes: a target file sequence number field, a target file file name field, a data file parsing status field, a data file application status field, and whether it is the last file field generated for this automated test; based on the intermediate table file, the B / S architecture system calls the target file to implement automated testing of the B / S architecture system.
[0088] Optionally, after generating the target file, the method further includes: storing the target file in the cloud; after constructing the intermediate table file, the method further includes: storing the intermediate table file in the cloud.
[0089] Optionally, based on the intermediate table file, the target file is called through the B / S architecture system to realize automated testing of the B / S architecture system, including: the B / S architecture system determines whether the target file exists in the cloud according to a preset time period one; when the target file exists in the cloud, the B / S architecture system parses the target file to obtain target data information; the B / S architecture system determines whether the target data information meets the preset requirements, and when the target data information meets the preset requirements, the B / S architecture system sets the status value of the data file parsing status field of the intermediate table file to a preset value one; when the target data information does not meet the preset requirements, the B / S architecture system sets the status value of the data file parsing status field of the intermediate table file to a preset value two.
[0090] Optionally, when the target data information meets the preset requirements, the method also includes: according to the automated testing process of the B / S architecture system, the B / S architecture system processes the target data information; after the target data information is processed, the B / S architecture system sets the status value of the data file application status field of the intermediate table file to a preset value of three, wherein the initial status value of the data file application status field is a preset value of four.
[0091] Optionally, the method also includes: the C / S architecture system reads the status value of the data file parsing status field of the intermediate table file; if the status value of the data file parsing status field is the preset value one, the C / S architecture system reads the status value of the data file application status field of the intermediate table file according to the preset time period two; if the status value of the data file application status field is the preset value three, it is determined whether the automated test of the C / S architecture system is completed; if the automated test of the C / S architecture system is completed, the C / S architecture system sets the status value of whether the intermediate table file is the last file field generated by this automated test to the preset value five.
[0092] Optionally, the method also includes: if the automated test of the C / S architecture system is not completed, the C / S architecture system sets the status value of the field of whether the intermediate table file is the last file generated for this automated test to a preset value of six; and continues to execute automated testing on the C / S architecture system until the automated test of the C / S architecture system is completed.
[0093] Optionally, if the status value of the data file parsing status field is a preset value of four, the method also includes: the C / S architecture system marks the target data information that does not meet the preset requirements, reports problems in the target file, and continues to execute the step of determining whether the automated testing of the C / S architecture system is completed.
[0094] Optionally, the method also includes: the B / S architecture system reads the status value of the last file field of the intermediate table file generated for this automated test; if the status value of the last file field generated for this automated test is the preset value five, the automated test of the B / S architecture system is completed.
[0095] Optionally, when the status value of the last file field generated for this automated test is a preset value of six, the method further includes: continuing to execute the step of determining whether the target file exists in the cloud according to a preset time period one by the B / S architecture system until the status value of the last file field generated for this automated test is a preset value of five. The device in this article can be a server, a PC, a PAD, a mobile phone, etc.
[0096] The present application also provides a computer program product, which, when executed on a data processing device, is suitable for executing a program that is initialized with the following method steps: performing automated testing on a C / S architecture system to generate a target file; during the automated testing of the C / S architecture system, constructing an intermediate table file, wherein the intermediate table file at least includes: a target file sequence number field, a target file file name field, a data file parsing status field, a data file application status field, and whether it is the last file field generated for this automated test; based on the intermediate table file, the B / S architecture system calls the target file to implement automated testing of the B / S architecture system.
[0097] Optionally, after generating the target file, the method further includes: storing the target file in the cloud; after constructing the intermediate table file, the method further includes: storing the intermediate table file in the cloud.
[0098] Optionally, based on the intermediate table file, the target file is called through the B / S architecture system to realize automated testing of the B / S architecture system, including: the B / S architecture system determines whether the target file exists in the cloud according to a preset time period one; when the target file exists in the cloud, the B / S architecture system parses the target file to obtain target data information; the B / S architecture system determines whether the target data information meets the preset requirements, and when the target data information meets the preset requirements, the B / S architecture system sets the status value of the data file parsing status field of the intermediate table file to a preset value one; when the target data information does not meet the preset requirements, the B / S architecture system sets the status value of the data file parsing status field of the intermediate table file to a preset value two.
[0099] Optionally, when the target data information meets the preset requirements, the method also includes: according to the automated testing process of the B / S architecture system, the B / S architecture system processes the target data information; after the target data information is processed, the B / S architecture system sets the status value of the data file application status field of the intermediate table file to a preset value of three, wherein the initial status value of the data file application status field is a preset value of four.
[0100] Optionally, the method also includes: the C / S architecture system reads the status value of the data file parsing status field of the intermediate table file; if the status value of the data file parsing status field is the preset value one, the C / S architecture system reads the status value of the data file application status field of the intermediate table file according to the preset time period two; if the status value of the data file application status field is the preset value three, it is determined whether the automated test of the C / S architecture system is completed; if the automated test of the C / S architecture system is completed, the C / S architecture system sets the status value of whether the intermediate table file is the last file field generated by this automated test to the preset value five.
[0101] Optionally, the method also includes: if the automated test of the C / S architecture system is not completed, the C / S architecture system sets the status value of the field of whether the intermediate table file is the last file generated for this automated test to a preset value of six; and continues to execute automated testing on the C / S architecture system until the automated test of the C / S architecture system is completed.
[0102] Optionally, if the status value of the data file parsing status field is a preset value of four, the method also includes: the C / S architecture system marks the target data information that does not meet the preset requirements, reports problems in the target file, and continues to execute the step of determining whether the automated testing of the C / S architecture system is completed.
[0103] Optionally, the method also includes: the B / S architecture system reads the status value of the last file field of the intermediate table file generated for this automated test; if the status value of the last file field generated for this automated test is the preset value five, the automated test of the B / S architecture system is completed.
[0104] Optionally, when the status value of the last file field generated for this automated test is the preset value six, the method also includes: continuing to execute the step of the B / S architecture system determining whether the target file exists in the cloud according to a preset time period one until the status value of the last file field generated for this automated test is the preset value five.
[0105] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.
[0106] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0107] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0108] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.
[0109] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0110] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0111] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0112] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0113] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.
[0114] The above are only embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included within the scope of the claims of the present application.
Claims
1. An automated testing method for a heterogeneous architecture integration system, characterized in that: The heterogeneous architecture integration system includes a C / S architecture system and a B / S architecture system, including: Performing automated testing on the C / S architecture system to generate target files; During the automated test execution of the C / S architecture system, an intermediate table file is constructed, wherein the intermediate table file at least includes: a sequence number field of the target file, a file name field of the target file, a data file parsing status field, a data file application status field, and a field indicating whether the file is the last file generated for this automated test; According to the intermediate table file, the B / S architecture system calls the target file to implement automated testing of the B / S architecture system; According to the intermediate table file, calling the target file through the B / S architecture system to realize the automated testing of the B / S architecture system includes: The B / S architecture system parses the target file to obtain target data information; The B / S architecture system determines whether the target data information meets the preset requirements, and when the target data information meets the preset requirements, the B / S architecture system sets the status value of the data file parsing status field of the intermediate table file to a preset value of one; When the target data information does not meet the preset requirement, the B / S architecture system sets the status value of the data file parsing status field of the intermediate table file to a preset value of two; When the target data information meets the preset requirements, the B / S architecture system processes the target data information according to the automated testing process of the B / S architecture system; After the target data information is processed, the B / S architecture system sets the status value of the data file application status field of the intermediate table file to a preset value of three, wherein the initial status value of the data file application status field is a preset value of four.
2. The method according to claim 1, characterized in that After generating the target file, the method further includes: storing the target file in the cloud; After constructing the intermediate table file, the method further includes: storing the intermediate table file in the cloud.
3. The method according to claim 2, characterized in that The method further comprises: The B / S architecture system determines whether the target file exists in the cloud according to a preset time period; When the target file exists in the cloud, the B / S architecture system parses the target file to obtain target data information.
4. The method according to claim 3, characterized in that The method further comprises: The C / S architecture system reads the status value of the data file parsing status field of the intermediate table file; If the status value of the data file parsing status field is the preset value one, the C / S architecture system reads the status value of the data file application status field of the intermediate table file according to the preset time period two; If the status value of the data file application status field is the preset value three, determining whether the automated test of the C / S architecture system is completed; If the automated test of the C / S architecture system has been completed, the C / S architecture system sets the status value of the field of the intermediate table file, indicating whether it is the last file generated by the automated test, to a preset value of five.
5. The method according to claim 4, characterized in that The method further comprises: If the automated test of the C / S architecture system is not completed, the C / S architecture system sets the status value of the field of whether the intermediate table file is the last file generated by this automated test to a preset value of six; Continue to perform automated testing on the C / S architecture system until the automated testing of the C / S architecture system is completed.
6. The method according to claim 4, characterized in that If the status value of the data file parsing status field is a preset value of four, the method further includes: The C / S architecture system marks the target data information that does not meet the preset requirements, reports the problem in the target file, and continues to execute the step of determining whether the automated test of the C / S architecture system is completed.
7. The method according to claim 4, characterized in that The method further comprises: The B / S architecture system reads the status value of the field of the intermediate table file to determine whether it is the last file generated by this automated test; If the status value of the field indicating whether it is the last file generated for this automated test is the preset value five, the automated test of the B / S architecture system is completed.
8. The method according to claim 5, characterized in that When the status value of the field "Whether it is the last file generated for this automated test" is a preset value of six, the method further includes: Continue to execute the step of determining whether the target file exists in the cloud according to the preset time period one by the B / S architecture system until the status value of the field "Whether it is the last file generated for this automated test" is the preset value five.
9. An automated testing device for a heterogeneous architecture integrated system, characterized in that: The heterogeneous architecture integration system includes a C / S architecture system and a B / S architecture system, including: A first testing unit is used to perform automated testing on the C / S architecture system and generate a target file; A construction unit is used to construct an intermediate table file during the automated test of the C / S architecture system, wherein the intermediate table file at least includes: a sequence number field of the target file, a file name field of the target file, a data file parsing status field, a data file application status field, and a field of whether it is the last file generated for this automated test; A calling unit, configured to call the target file according to the intermediate table file by the B / S architecture system, so as to realize automated testing of the B / S architecture system; The calling unit includes: a parsing module, which is used for the B / S architecture system to parse the target file and obtain target data information; a second judgment module, which is used for the B / S architecture system to judge whether the target data information meets the preset requirements, and when the target data information meets the preset requirements, the B / S architecture system sets the status value of the data file parsing status field of the intermediate table file to the preset value one; a setting module, which is used for the B / S architecture system to set the status value of the data file parsing status field of the intermediate table file to the preset value two when the target data information does not meet the preset requirements; A processing unit, configured to, when the target data information meets the preset requirements, process the target data information according to the automated testing process of the B / S architecture system; The first setting unit is used to set the status value of the data file application status field of the intermediate table file to a preset value of three after the target data information processing is completed, wherein the initial status value of the data file application status field is a preset value of four.
10. A computer-readable storage medium, characterized in that: The storage medium includes a stored program, wherein the program executes the automated testing method for the heterogeneous architecture integration system as described in any one of claims 1 to 8.
11. A processor, characterized in that: The processor is used to run a program, wherein the program, when running, executes the automated testing method for the heterogeneous architecture integration system described in any one of claims 1 to 8.
Citation Information
Patent Citations
Cloud network convergence architecture system testing method and device
CN109783392A
Data processing method and device, computer readable medium and electronic equipment
CN112445866A