CN112765014B - Automatic test system for multi-user simultaneous operation and working method - Google Patents

Automatic test system for multi-user simultaneous operation and working method Download PDF

Info

Publication number
CN112765014B
CN112765014B CN202110004299.8A CN202110004299A CN112765014B CN 112765014 B CN112765014 B CN 112765014B CN 202110004299 A CN202110004299 A CN 202110004299A CN 112765014 B CN112765014 B CN 112765014B
Authority
CN
China
Prior art keywords
module
function
test
service
sub
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
CN202110004299.8A
Other languages
Chinese (zh)
Other versions
CN112765014A (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.)
Everbright Xinglong Trust Co ltd
Original Assignee
Everbright Xinglong Trust 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 Everbright Xinglong Trust Co ltd filed Critical Everbright Xinglong Trust Co ltd
Priority to CN202110004299.8A priority Critical patent/CN112765014B/en
Publication of CN112765014A publication Critical patent/CN112765014A/en
Application granted granted Critical
Publication of CN112765014B publication Critical patent/CN112765014B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

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

Abstract

The invention provides an automatic test system for multi-user simultaneous operation and a working method thereof. The scheme comprises an operation simulation subsystem, a script checking subsystem, a service checking subsystem and an inter-service connectivity testing subsystem; the operation simulation subsystem comprises an environment simulation module to be tested and a multi-user access test module, the script checking subsystem comprises an automatic operation script module and a function numbering module, the service checking subsystem comprises a service function checking module and a service execution efficiency checking module, and the inter-service connectivity test subsystem comprises a service inter-checking module and an inter-service interaction information accuracy verification module; according to the scheme, through multi-level data test division, simulation environment and user operation basic data are provided, and service self-checking and mutual inquiry are carried out, so that the problem that multiple users easily make mistakes in online operation test memory at the same time is solved based on modes of temporary storage space, shared data pool and the like.

Description

Automatic test system for multi-user simultaneous operation and working method
Technical Field
The invention relates to the technical field of Internet, in particular to an automatic test system for multi-user simultaneous operation and a working method thereof.
Background
Currently, with the continuous development of internet technology, more and more management systems are built on the internet. Because a large amount of information is stored in the management systems in the internet, and many new functions may appear in the use process, the service functions and the stored information are very important, so that before the management systems are used or after a period of use, the service functions, the storage capacity, the computing capacity, the communication speed and the like of the management systems need to be comprehensively tested. Although the forms of these management systems vary, they all share a common or similar structure. This creates conditions for the centralized testing.
However, the existing scheme has the following defects: in general, there is no system for automatically testing a plurality of users, but in actual use, the plurality of users operate in a management system at the same time and the plurality of users perform service functions at the same time, which is quite common. If the traditional manual testing method of some single users is adopted, the situations of conflict between the memory address and the business function operation in the testing process may occur.
Disclosure of Invention
In view of the above problems, the present invention provides an automatic test system and a working method for multi-user simultaneous operation, which can effectively avoid the situations of memory address and business function operation conflict in the test process caused by manual test of a traditional single user.
According to an embodiment of the present invention, there is provided an automatic test system for multi-user simultaneous operation, the system including: the operation simulation subsystem, the script checking subsystem, the business checking subsystem and the inter-business connectivity testing subsystem; the operation simulation subsystem comprises an environment simulation module to be tested and a multi-user access test module, the script checking subsystem comprises an automatic operation script module and a function numbering module, the service checking subsystem comprises a service function checking module and a service execution efficiency checking module, and the inter-service connectivity test subsystem comprises a service inter-checking module and an inter-service interaction information accuracy verification module; the operation simulation subsystem provides simulation environment and a plurality of user operation basic data for the script checking subsystem, the service checking subsystem performs service function and execution efficiency checking, and the inter-service connectivity testing subsystem performs service mutual checking and interactive query.
In one or more embodiments, preferably, the environment simulation module to be tested includes:
the to-be-tested environment acquisition submodule is used for inputting all to-be-tested environments to be tested;
the repeated environment eliminating sub-module is used for eliminating repeated environments to be tested;
the to-be-measured environment classification sub-module is used for classifying to-be-measured environments to obtain a to-be-measured environment classification table;
the to-be-tested environment building sub-module is used for generating a to-be-tested environment test packet;
and the environment simulation sub-module is used for combining the environment classification table to be tested and the environment test package to be tested to form a simulation environment.
In one or more embodiments, preferably, the multi-user access test module includes:
sharing a data pool, and researching input basic data of each user to be tested flow;
the temporary users are used for establishing temporary test users one by one according to a user test scheme to be tested, and setting a test principle;
a temporary data pool, wherein the user testing schemes with function conflicts in the shared data pool are extracted and stored as temporary data;
the modification confirmation sub-module is used for generating a determined test scheme according to the temporary data and storing the test scheme into the shared data pool;
and the user operation basic data establishing sub-module establishes a plurality of user operation basic data according to the final data of the shared data pool.
In one or more embodiments, preferably, the automation script module includes:
the function generating sub-module generates each function test scheme according to all functions to be tested;
the function checking sub-module forms a corresponding test program according to each function test scheme;
the functional molecule disassembly module obtains a test program with the processing time length exceeding half of the average test time and splits the test program into 2 test functions;
the function merging sub-module is used for obtaining sub-modules with similar functions and merging the sub-modules into a standard test function;
the function execution sub-module is used for obtaining the relation between input and output according to the functions of the sub-modules;
and the automatic processing sub-module generates a function list to be executed according to the input-output relation of the function execution sub-module.
In one or more embodiments, preferably, the function numbering module includes:
the function service classification sub-module classifies the to-be-executed function list according to service functions and decomposes the to-be-executed function list into single service functions and interactive services;
the function list user classification sub-module is divided into multi-user tests and single-user tests according to the number of initiating users, and sequences from few to many according to the number of user tests;
and the sequential coding sub-module is used for generating a single service function test list and an interactive service function list.
In one or more embodiments, preferably, the service function checking module includes:
the function effect classification sub-module classifies the test function effect into an indexable function and an non-indexable function;
the function effect verification sub-module tests the final execution effect of the service function and stores the final execution effect as a final service function operation index;
and the function efficiency degree analysis submodule compares the final service function operation index with the service function index to generate a function execution efficiency check result, wherein the function execution efficiency check result comprises a finished proportion, an excess finished proportion, an unfinished proportion and a finished proportion.
In one or more embodiments, preferably, the service execution efficiency checking module includes:
executing a node inspection sub-module to obtain all detection stages of a service function test scheme;
the node execution efficiency calculation sub-module obtains the difference between the time nodes of all detection stages of the service function test scheme and the starting time of the service function, and obtains the node execution efficiency;
the total execution efficiency calculation sub-module obtains the difference between the time node of the last stage of the service function test scheme and the starting time of the service function, and obtains the total execution efficiency;
and the efficiency verification sub-module acquires the execution standard of the service function and compares the total execution efficiency with the size relation between the node execution efficiency and the execution standard of the service function.
In one or more embodiments, preferably, the business inter-checking module includes:
the mutual checking function list sub-module generates a mutual checking function list according to the interactive service function list;
the tertiary circulation inquiry submodule carries out tertiary circulation on tasks which need more than 2 times of interaction in the mutual inquiry function list and confirms that the service function is correct;
and the service hedging test sub-module is used for testing whether interaction is normal or not when 2 users interact hedging operation only with different services.
In one or more embodiments, preferably, the inter-service interaction information accuracy verification module includes:
the data transmission module is used for transmitting data among services;
the receiving data module is used for obtaining service data of the interaction party and returning the service data;
the timing module records the interaction speed and the reaction speed between the businesses;
and the data comparison module is used for comparing the interaction speed and the reaction speed with the time required by the interaction function between services.
Further, in an embodiment of the present invention, there is provided a working method of an automatic test system for multi-user simultaneous operation, the method including:
determining whether all subsystems in the automatic test system for multi-user simultaneous operation have been deployed successfully;
executing the environment simulation module to be tested in the operation simulation subsystem to obtain a simulation environment;
operating the multi-user access test module under the simulation environment to obtain a plurality of user operation basic data;
according to the operation basic data of the plurality of users, an automatic operation script module is operated to obtain a group of continuous function lists to be executed;
according to the to-be-executed function list, performing service classification by utilizing the function numbering module to obtain a single service function test list and an interactive service function list;
according to the single service function test list, a service checking subsystem is utilized to check service functions and execution efficiency;
and utilizing the inter-service connectivity testing subsystem to perform service interaction and interaction query according to the interaction service function list.
The technical scheme provided by the embodiment of the invention can comprise the following beneficial effects:
according to the embodiment of the invention, the scheme provides an automatic test system and a working method for multi-user simultaneous operation, a multi-level subsystem is designed through multi-level data test division, simulation environment and user operation basic data are provided, business self-checking and mutual inquiry are carried out, the problem of error of multi-user simultaneous online operation test memory is solved based on temporary storage space, a shared data pool and the like, and test efficiency and data reliability are improved.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and claims thereof as well as the appended drawings.
The technical scheme of the invention is further described in detail through the drawings and the embodiments.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings that are needed in the description of the embodiments will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present invention, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a block diagram of an automatic test system for multiple user simultaneous operation in accordance with one embodiment of the present invention.
FIG. 2 is a block diagram of an environmental simulation module under test in an automatic test system for multiple user simultaneous operation in accordance with one embodiment of the present invention.
FIG. 3 is a block diagram of a multi-user access test module in an automatic test system for multi-user simultaneous operation in accordance with one embodiment of the present invention.
FIG. 4 is a block diagram of an automation script module in an automation test system for multiple user simultaneous operation in accordance with one embodiment of the present invention.
FIG. 5 is a schematic diagram of a function numbering module in an automatic test system for multiple user simultaneous operation according to one embodiment of the invention.
Fig. 6 is a block diagram of a service function check module in an automatic test system for multi-user simultaneous operation according to an embodiment of the present invention.
Fig. 7 is a block diagram of a service execution efficiency check module in an automatic test system for multi-user simultaneous operation according to an embodiment of the present invention.
Fig. 8 is a block diagram of a business inter-checking module in an automatic test system for multi-user simultaneous operation according to an embodiment of the present invention.
Fig. 9 is a block diagram of an inter-service interaction information accuracy verification module in an automatic test system for multi-user simultaneous operation according to an embodiment of the present invention.
FIG. 10 is a schematic diagram of multi-user simultaneous operation logic in an automatic test system for multi-user simultaneous operation according to one embodiment of the present invention.
FIG. 11 is a schematic diagram of multi-user automatic test logic relationship in an automatic test system for multi-user simultaneous operation in accordance with one embodiment of the present invention.
FIG. 12 is a flow chart of a method of operation of an automatic test system for multiple user simultaneous operation in accordance with one embodiment of the present invention.
Detailed Description
In some of the flows described in the specification and claims of the present invention and in the foregoing figures, a plurality of operations occurring in a particular order are included, but it should be understood that the operations may be performed out of order or performed in parallel, with the order of operations such as 101, 102, etc., being merely used to distinguish between the various operations, the order of the operations themselves not representing any order of execution. In addition, the flows may include more or fewer operations, and the operations may be performed sequentially or in parallel. It should be noted that, the descriptions of "first" and "second" herein are used to distinguish different messages, devices, modules, etc., and do not represent a sequence, and are not limited to the "first" and the "second" being different types.
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. 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 fall within the scope of the invention.
Currently, with the continuous development of internet technology, more and more management systems are built on the internet. Because a large amount of information is stored in the management systems in the internet, and many new functions may appear in the use process, the service functions and the stored information are very important, so that before the management systems are used or after a period of use, the service functions, the storage capacity, the computing capacity, the communication speed and the like of the management systems need to be comprehensively tested. Although the forms of these management systems vary, they all share a common or similar structure. This creates conditions for the centralized testing.
However, the existing scheme has the following defects: in general, there is no system for automatically testing a plurality of users, but in actual use, the plurality of users operate in a management system at the same time and the plurality of users perform service functions at the same time, which is quite common. If the traditional manual testing method of some single users is adopted, the situations of conflict between the memory address and the business function operation in the testing process may occur.
In the embodiment of the invention, an automatic test system for multi-user simultaneous operation is provided, the test flow is simplified through multi-level data test division, and the mode of independently using a temporary storage space and a shared data pool based on multi-user simultaneous operation in the system ensures that no memory conflict exists in the operation process, thereby realizing the online operation compatibility of multiple users.
FIG. 1 is a block diagram of an automatic test system for multiple user simultaneous operation in accordance with one embodiment of the present invention.
As shown in fig. 1, in one or more embodiments, preferably, according to an embodiment of the present invention, there is provided an automatic test system for multi-user simultaneous operation, the system comprising: an operation simulation subsystem 101, a script checking subsystem 102, a business checking subsystem 103, and an inter-business connectivity testing subsystem 104; the operation simulation subsystem 101 comprises an environment simulation module 105 to be tested and a multi-user access test module 106, the script checking subsystem 102 comprises an automatic operation script module 107 and a function numbering module 108, the service checking subsystem 103 comprises a service function checking module 109 and a service execution efficiency checking module 110, and the inter-service connectivity test subsystem 104 comprises a service inter-checking module 111 and an inter-service interaction information accuracy verification module 112; the operation simulation subsystem 101 provides simulation environment and a plurality of user operation basic data for the script checking subsystem 102, the service checking subsystem 103 performs service function and execution efficiency checking, and the inter-service connectivity testing subsystem 104 performs service mutual checking and interaction query.
In the embodiment of the invention, the provided integral system architecture is the basis for the subsequent sub-module disassembly, firstly, a simulation environment and a plurality of user operation basic data are provided for the script checking subsystem through the operation simulation subsystem, then, a single service test is carried out on a test script obtained by the script checking subsystem by utilizing the service checking subsystem, and then, communication between systems, service function execution efficiency and the like are carried out by utilizing the inter-service connectivity testing subsystem, and finally, the automatic test of a general multi-type system can be realized.
Further, fig. 2 to 12 respectively illustrate specific respective modules in the embodiment of the present invention.
FIG. 2 is a block diagram of an environmental simulation module under test in an automatic test system for multiple user simultaneous operation in accordance with one embodiment of the present invention.
As shown in fig. 2, in one or more embodiments, the environment simulation module to be tested 105 preferably includes:
the to-be-tested environment obtaining submodule 201 is used for inputting all to-be-tested environments to be tested;
a duplicate environment rejection sub-module 202, configured to reject duplicate environments to be tested;
the to-be-measured environment classification sub-module 203 is configured to classify the to-be-measured environment to obtain a to-be-measured environment classification table;
the to-be-tested environment building sub-module 204 is used for generating a to-be-tested environment test packet;
the environment simulation sub-module 205 is configured to combine the to-be-tested environment classification table and the to-be-tested environment test package to form a simulation environment.
In the embodiment of the invention, the simulation of the external environment is the basis of the test, the to-be-tested environment acquisition submodule provides the test environment according to all requirements, but the test environments are ordered and classified, so that the finally formed simulation environment comprises the classification, namely different areas provide different test environments. The environment to be tested is provided with a certain sequence, namely, the environment to be tested can change in different tests. Therefore, the environment to be tested is not needed in the initial stage in the generated environment to be tested test package, but the environment to be tested test package possibly called in the test process. In this way, a quick, automatic test can be achieved without waiting repeatedly for the preparation of the test environment.
FIG. 3 is a block diagram of a multi-user access test module in an automatic test system for multi-user simultaneous operation in accordance with one embodiment of the present invention.
As shown in fig. 3, in one or more embodiments, the multi-user access test module 106 preferably includes:
sharing a data pool 301, and researching input basic data of each user to be tested flow;
temporary users 302, which are used for establishing temporary test users one by one according to the test scheme of the user to be tested and setting a test principle;
a temporary data pool 303, wherein the user test schemes with function conflicts in the shared data pool 301 are extracted and stored as temporary data;
a modification confirmation sub-module 304, configured to generate a determined test scheme according to the temporary data, and store the test scheme in the shared data pool 301;
the user operation basic data establishing sub-module 305 establishes a plurality of user operation basic data according to the final data of the shared data pool 301.
In the embodiment of the invention, a foundation is laid for establishing basic multi-user simultaneous operation through three temporary data pools, shared data pools and modification confirmation sub-modules. Specifically, when a user operates a certain block address, the temporary data pool is operated first, and then the temporary data pool is replaced by the modification confirmation sub-module to enter the system, so that other users are not affected, but the shared data pool is changed. After the change is confirmed, the new shared data pools are respectively and periodically shared to other simultaneous operation users of other sub-modules which do not use the modification confirmation. The method can effectively avoid the data compatibility risk brought by simultaneous operation.
FIG. 4 is a block diagram of an automation script module in an automation test system for multiple user simultaneous operation in accordance with one embodiment of the present invention.
As shown in fig. 4, in one or more embodiments, the automation script module 107 preferably includes:
a function generating sub-module 401 for generating each function test scheme according to all functions to be tested;
a function checking sub-module 402, which forms a corresponding test program according to each function test scheme;
the function splitting module 403 obtains a test program with a processing time length exceeding half of the average test time, and splits the test program into 2 test functions;
a function merging sub-module 404, which obtains sub-modules with similar functions and merges the sub-modules into a standard test function;
a function execution sub-module 405 for obtaining the relationship between input and output according to the functions of the sub-modules;
the automatic processing sub-module 406 generates a list of functions to be executed according to the input-output relationship of the function execution sub-module 405.
In the embodiment of the invention, due to the automatic test function provided normally, redundant and repeated parts exist to a certain extent, and the main purposes of function generation, function checking and function splitting are to split the original functions into reassignments according to a certain rule, so that a to-be-executed function list which is more efficient and deletes the redundant parts is generated by utilizing the function merging, function executing and automatic processing submodule.
FIG. 5 is a schematic diagram of a function numbering module in an automatic test system for multiple user simultaneous operation according to one embodiment of the invention.
As shown in fig. 5, in one or more embodiments, the function numbering module 108 preferably includes:
the function service classification submodule 501 classifies the list of functions to be executed according to service functions and decomposes the list of functions to be executed into single service functions and interactive services;
the function list user classification sub-module 502 is divided into multi-user tests and single-user tests according to the number of initiating users, and sequences from few to many according to the number of user tests;
the sequential coding sub-module 503 generates a list of single service functions and a list of interactive service functions.
In the embodiment of the invention, the function numbering module determines whether each test belongs to a single service test or an interactive test one by one through the initiation number and the service number of the users, analyzes whether the test relates to the simultaneous operation condition of multiple users, and generates a function list to provide data basis for the subsequent test.
Fig. 6 is a block diagram of a service function check module in an automatic test system for multi-user simultaneous operation according to an embodiment of the present invention.
As shown in fig. 6, in one or more embodiments, preferably, the service function checking module 109 includes:
the function effect classification submodule 601 classifies test function effects into indexable functions and non-indexable functions;
the function effect verification sub-module 602 tests the final execution effect of the service function and stores the final execution effect as a final service function operation index;
the function efficiency degree analysis submodule 603 compares the final service function operation index with the service function index to generate a function execution efficiency check result, where the function execution efficiency check result includes completed, overfinished, incomplete, and completed proportions.
In the embodiment of the invention, in order to obtain an explicit test result, the test functions are classified according to the effect of the functions, specifically, if the test result of a single function is only completed and not completed, the function is not indexed, and when the conditions of 10%, 20%, 100% and even overfull and the like can occur, the function can be standardized, and finally, the function is divided into a completion proportion.
Fig. 7 is a block diagram of a service execution efficiency check module in an automatic test system for multi-user simultaneous operation according to an embodiment of the present invention.
As shown in fig. 7, in one or more embodiments, preferably, the service execution efficiency checking module 110 includes:
executing a node inspection sub-module 701 to obtain all detection stages of the service function test scheme;
the node execution efficiency calculation sub-module 702 obtains the difference between the time nodes of all detection stages of the service function test scheme and the starting time of the service function, and obtains the node execution efficiency;
the total execution efficiency calculation sub-module 703 obtains the difference between the time node of the last stage of the service function test scheme and the start time of the service function, and obtains the total execution efficiency;
and an efficiency verification sub-module 704, which obtains the execution standard of the service function, and compares the total execution efficiency with the size relation between the node execution efficiency and the execution standard of the service function.
In the embodiment of the invention, the final test not only comprises whether the test can be completed or not, but also comprises the test efficiency, and specifically, the test of the total time of the whole task function and the efficiency test of part of important nodes can be respectively carried out. These execution efficiencies are an important part of the test results automatically obtained by the automated test system.
Fig. 8 is a block diagram of a business inter-checking module in an automatic test system for multi-user simultaneous operation according to an embodiment of the present invention.
As shown in fig. 8, in one or more embodiments, preferably, the service inter-checking module 111 includes:
a mutual checking function list sub-module 801 generates a mutual checking function list according to the interactive service function list;
a third cycle inquiry sub-module 802, which performs third cycle on the task requiring more than 2 interactions in the inter-check function list, and confirms that the service function is correct;
the service hedging test submodule 803 tests whether interaction is normal or not when only the hedging operation is interacted by different services by 2 users.
In the embodiment of the invention, the service queried by the mutual query system comprises a hedging test, namely, the two users send a designated command to the opposite server at the same time to judge whether the command can be normally fed back, and in addition, the test is needed to test whether the query is left for a plurality of times, the query can be normally operated, and the conflict condition of data can not occur.
Fig. 9 is a block diagram of an inter-service interaction information accuracy verification module in an automatic test system for multi-user simultaneous operation according to an embodiment of the present invention.
As shown in fig. 9, in one or more embodiments, the inter-service interaction information accuracy verification module 112 preferably includes:
a data transmission module 901 for transmitting data between services;
a data receiving module 902 acquires service data of the interaction party and returns the service data;
the timing module 903 records the interaction speed and the reaction speed between the services;
the data comparison module 904 compares the interaction speed and the reaction speed with the required time of the interaction function between services.
In the embodiment of the invention, the final interaction between services mainly tests the communication capability, tests according to actual requirements, and considers that the capability cannot be satisfied when the data transmission and the data operation cannot be completed within the required time.
FIG. 10 is a schematic diagram of multi-user simultaneous operation logic in an automatic test system for multi-user simultaneous operation according to one embodiment of the present invention. In one or more embodiments, as shown in fig. 10, preferably, the graph is a memory space relationship in the operation process of multiple users, and the temporary data pool 1002, the temporary data pool 1003, the temporary data pool 1004, and the temporary data pool 1005 are respectively data pools currently operated by the users 1006, 1007, 1008, and 1009, when one of the users submits data, the other users cannot submit the data in a short period, and can only wait for the respective temporary data pools to update according to the latest shared data pool 1001, thereby ensuring the security of the data.
FIG. 11 is a schematic diagram of multi-user automatic test logic relationship in an automatic test system for multi-user simultaneous operation in accordance with one embodiment of the present invention. As shown in fig. 11, in one or more embodiments, preferably, the relationship indicates a test scenario when a plurality of users perform a plurality of service scenario operations simultaneously, where the scenario is one of the cases in the embodiments of the present invention, and this case is the test case of the most complex automatic test system at present, where this case is the case. The invention can test single service and interactive service, which is mainly used to ensure the reliability of each service function and can not influence each other.
FIG. 12 is a flow chart of a method of operation of an automatic test system for multiple user simultaneous operation in accordance with one embodiment of the present invention.
As shown in fig. 12, further, there is provided a working method of an automatic test system for multi-user simultaneous operation in an embodiment of the present invention, the method including:
s1201, determining whether all subsystems in the automatic test system for multi-user simultaneous operation are deployed successfully;
s1202, executing the environment to be tested simulation module 105 in the operation simulation subsystem 101 to obtain a simulation environment;
s1203, operating the multi-user access test module 106 under the simulation environment to obtain a plurality of user operation basic data;
s1204, according to the plurality of user operation basic data, an automatic operation script module 107 is operated to obtain a group of continuous function lists to be executed;
s1205, according to the to-be-executed function list, performing service classification by utilizing the function numbering module 108 to obtain a single service function test list and an interactive service function list;
s1206, checking service functions and execution efficiency by utilizing the service checking subsystem 103 according to the single service function test list;
s1207, utilizing the inter-service connectivity test subsystem 104 to perform service interaction and interaction query according to the interaction service function list.
In the embodiment of the invention, based on the system, the execution working method of the system is designed in a matched manner, and the main purpose is to be able to clearly understand the operation relation between the data processed in the subsystem.
In the technical scheme of the embodiment, an automatic test system and a working method for multi-user simultaneous operation are provided, a multi-level subsystem is designed through multi-level data test division, simulation environment and user operation basic data are provided, business self-checking and mutual inquiry are carried out, the problem of error of multi-user simultaneous online operation test memory is solved based on modes of temporary storage space, shared data pool and the like, and test efficiency and data reliability are improved.
It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, magnetic disk storage, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It will be apparent to those skilled in the art that various modifications and variations can be made to the present invention without departing from the spirit or scope of the invention. Thus, it is intended that the present invention also include such modifications and alterations insofar as they come within the scope of the appended claims or the equivalents thereof.

Claims (8)

1. An automatic test system for multiple user simultaneous operation, comprising: an operation simulation subsystem (101), a script checking subsystem (102), a business checking subsystem (103) and an inter-business connectivity testing subsystem (104); the operation simulation subsystem (101) comprises an environment simulation module (105) to be tested and a multi-user access test module (106), the script checking subsystem (102) comprises an automatic operation script module (107) and a function numbering module (108), the business checking subsystem (103) comprises a business function checking module (109) and a business execution efficiency checking module (110), and the business connectivity test subsystem (104) comprises a business mutual checking module (111) and a business interaction information accuracy verification module (112); the operation simulation subsystem (101) provides simulation environment and a plurality of user operation basic data for the script checking subsystem (102), the service checking subsystem (103) performs service function and execution efficiency checking, and the inter-service connectivity testing subsystem (104) performs service mutual checking and interaction query;
wherein the multi-user access test module (106) comprises:
a shared data pool (301) for researching input basic data of each user flow to be detected;
the temporary users (302) are used for establishing temporary test users one by one according to a user test scheme to be tested and setting a test principle;
a temporary data pool (303) for extracting and storing the user test schemes with the function conflict in the shared data pool (301) as temporary data;
a modification validation sub-module (304) for generating a determined test plan from the temporary data and storing to the shared data pool (301);
a user operation basic data establishing sub-module (305) for establishing a plurality of user operation basic data according to the final data of the shared data pool (301);
wherein the function numbering module (108) comprises:
the function service classification submodule (501) classifies a to-be-executed function list according to service functions and decomposes the to a single service function and an interactive service;
the function list user classification submodule (502) is divided into multi-user tests and single-user tests according to the number of initiating users, and sequences from few to many according to the number of user tests;
a sequential coding sub-module (503) for generating a single service function test list and an interactive service function list;
the function numbering module determines whether each test belongs to a single service test or an interactive test one by one according to the number of initiated users and the number of services, analyzes whether the test involves multi-user simultaneous operation, and generates a function list to provide data basis for subsequent tests;
the working process of the automatic test system for multi-user simultaneous operation comprises the steps of utilizing a service checking subsystem (103) to check service functions and execution efficiency according to the single service function test list; and utilizing the inter-service connectivity test subsystem (104) to perform service interaction and interaction query according to the interaction service function list.
2. An automatic test system for multi-user simultaneous operation according to claim 1, wherein said environment simulation under test module (105) comprises:
the to-be-tested environment acquisition submodule (201) is used for inputting all to-be-tested environments to be tested;
the repeated environment eliminating sub-module (202) is used for eliminating repeated environments to be tested;
the to-be-measured environment classification sub-module (203) is used for classifying to-be-measured environments to obtain a to-be-measured environment classification table;
the environment to be tested is built into the sub-module (204) to be tested, and is used for generating an environment to be tested test packet;
and the environment simulation sub-module (205) is used for combining the environment classification table to be tested and the environment test package to be tested to form a simulation environment.
3. An automatic test system for multiple user simultaneous operation according to claim 1, wherein said automation script module (107) comprises:
a function generation sub-module (401) for generating each function test scheme according to all functions to be tested;
a function checking sub-module (402) for forming a corresponding test program according to each function test scheme;
the function splitting module (403) is used for obtaining a test program with the processing time length exceeding half of the average test time and splitting the test program into 2 test functions;
a function merging sub-module (404) for obtaining sub-modules with similar functions and merging the sub-modules into a standard test function;
a function execution sub-module (405) for obtaining the relationship between input and output according to the function of each sub-module;
and the automatic processing sub-module (406) generates a function list to be executed according to the input-output relation of the function execution sub-module (405).
4. An automatic test system for multi-user simultaneous operation as in claim 1 wherein said business function checking module (109) comprises:
the function effect classification submodule (601) classifies test function effects into indexable functions and non-indexable functions;
a functional effect verification sub-module (602) for testing the final execution effect of the service function and storing the final execution effect as a final service function operation index;
and the function efficiency degree analysis submodule (603) is used for comparing the final service function operation index with the service function index to generate a function execution efficiency check result, wherein the function execution efficiency check result comprises a finished proportion, an excessive finished proportion, an unfinished proportion and a finished proportion.
5. An automatic test system for multi-user simultaneous operation as in claim 1 wherein said business execution efficiency checking module (110) comprises:
executing a node inspection sub-module (701) to obtain all detection stages of the service function test scheme;
the node execution efficiency calculation sub-module (702) obtains the difference between the time nodes of all detection stages of the service function test scheme and the starting time of the service function, and obtains the node execution efficiency;
a total execution efficiency calculation sub-module (703) for obtaining a difference between a time node of a last stage of the service function test scheme and a start time of the service function, and obtaining a total execution efficiency;
and an efficiency verification sub-module (704) acquires the execution standard of the service function and compares the total execution efficiency with the size relation between the node execution efficiency and the execution standard of the service function.
6. An automatic test system for multi-user simultaneous operation according to claim 1, wherein said business inter-checking module (111) comprises:
a mutual checking function list sub-module (801) for generating a mutual checking function list according to the interactive service function list;
a third cycle inquiry sub-module (802) for performing a third cycle on the tasks requiring more than 2 interactions in the inter-check function list, and confirming that the service function is correct;
and the business hedging test submodule (803) is used for testing whether interaction is normal or not when different businesses only interact hedging operation at the same time.
7. An automatic test system for multiple user simultaneous operation as in claim 1 wherein said inter-service interaction information accuracy verification module (112) comprises:
a data transmission module (901) for transmitting data between services;
a receiving data module (902) for acquiring service data of the interaction party and returning the service data;
a timing module (903) for recording the interaction speed and the reaction speed between the services;
and the data comparison module (904) is used for comparing the interaction speed and the reaction speed with the time required by the interaction function between services.
8. A method of operation employing the automatic test system for multiple user simultaneous operation of any of claims 1-7, the method further comprising:
determining whether all subsystems in the automatic test system for multi-user simultaneous operation have been deployed successfully;
executing the environment to be tested simulation module (105) in the operation simulation subsystem (101) to obtain a simulation environment;
operating the multi-user access test module (106) under the simulation environment to obtain a plurality of user operation basic data;
according to the plurality of user operation basic data, an automatic operation script module (107) is operated to obtain a group of continuous function lists to be executed;
and according to the to-be-executed function list, performing service classification by utilizing the function numbering module (108) to obtain a single service function test list and an interactive service function list.
CN202110004299.8A 2021-01-04 2021-01-04 Automatic test system for multi-user simultaneous operation and working method Active CN112765014B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110004299.8A CN112765014B (en) 2021-01-04 2021-01-04 Automatic test system for multi-user simultaneous operation and working method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110004299.8A CN112765014B (en) 2021-01-04 2021-01-04 Automatic test system for multi-user simultaneous operation and working method

Publications (2)

Publication Number Publication Date
CN112765014A CN112765014A (en) 2021-05-07
CN112765014B true CN112765014B (en) 2024-02-20

Family

ID=75699145

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110004299.8A Active CN112765014B (en) 2021-01-04 2021-01-04 Automatic test system for multi-user simultaneous operation and working method

Country Status (1)

Country Link
CN (1) CN112765014B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116743644B (en) * 2023-07-21 2024-01-30 北京中元易尚科技有限公司 Automatic test method, system, device and medium

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101605348A (en) * 2008-11-24 2009-12-16 中国移动通信集团广东有限公司 A kind of data service simulation method and application system
CN103002490A (en) * 2011-09-08 2013-03-27 中国移动通信集团公司 Service simulation testing system and realizing method thereof
CN103544049A (en) * 2012-07-10 2014-01-29 百度在线网络技术(北京)有限公司 Testing environment automatic processing method, and method and device for realizing testing automation
CN104331477A (en) * 2014-11-04 2015-02-04 哈尔滨工业大学 Method for testing concurrency property of cloud platform based on federated research
CN105045710A (en) * 2015-06-30 2015-11-11 吉林大学 Method for automatically generating test data in cloud computing environment
CN105530659A (en) * 2014-10-22 2016-04-27 中国移动通信集团公司 Service test system, method and device of mobile terminal
CN109828921A (en) * 2019-01-18 2019-05-31 上海极链网络科技有限公司 HTML5 webpage automated function test method, system and electronic equipment
CN110287092A (en) * 2019-05-10 2019-09-27 广东电力交易中心有限责任公司 A kind of electricity transaction system and its automatic test approach based on graphical interfaces
CN110784374A (en) * 2019-10-25 2020-02-11 上海中通吉网络技术有限公司 Method, device, equipment and system for monitoring operation state of service system
CN111538646A (en) * 2020-04-02 2020-08-14 航天恒星科技有限公司 System and method for testing performance of spatial information network

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101605348A (en) * 2008-11-24 2009-12-16 中国移动通信集团广东有限公司 A kind of data service simulation method and application system
CN103002490A (en) * 2011-09-08 2013-03-27 中国移动通信集团公司 Service simulation testing system and realizing method thereof
CN103544049A (en) * 2012-07-10 2014-01-29 百度在线网络技术(北京)有限公司 Testing environment automatic processing method, and method and device for realizing testing automation
CN105530659A (en) * 2014-10-22 2016-04-27 中国移动通信集团公司 Service test system, method and device of mobile terminal
CN104331477A (en) * 2014-11-04 2015-02-04 哈尔滨工业大学 Method for testing concurrency property of cloud platform based on federated research
CN105045710A (en) * 2015-06-30 2015-11-11 吉林大学 Method for automatically generating test data in cloud computing environment
CN109828921A (en) * 2019-01-18 2019-05-31 上海极链网络科技有限公司 HTML5 webpage automated function test method, system and electronic equipment
CN110287092A (en) * 2019-05-10 2019-09-27 广东电力交易中心有限责任公司 A kind of electricity transaction system and its automatic test approach based on graphical interfaces
CN110784374A (en) * 2019-10-25 2020-02-11 上海中通吉网络技术有限公司 Method, device, equipment and system for monitoring operation state of service system
CN111538646A (en) * 2020-04-02 2020-08-14 航天恒星科技有限公司 System and method for testing performance of spatial information network

Also Published As

Publication number Publication date
CN112765014A (en) 2021-05-07

Similar Documents

Publication Publication Date Title
CN108595157B (en) Block chain data processing method, device, equipment and storage medium
CN110309071B (en) Test code generation method and module, and test method and system
CN106528424B (en) Test method and test platform based on background system service or interface
CN106599197B (en) Data acquisition exchange engine
CN104252481B (en) The dynamic check method and apparatus of master-slave database consistency
Van Der Aalst Decomposing process mining problems using passages
CN106506283B (en) Business test method and device of bank and enterprise docking system
CN105022691B (en) A kind of increasingly automated method for testing software based on uml diagram
van der Aalst Distributed process discovery and conformance checking
CN109344056B (en) Test method and test device
US8365112B2 (en) Verification apparatus and design verification program
US20100121668A1 (en) Automated compliance checking for process instance migration
CN107741903A (en) Application compatibility method of testing, device, computer equipment and storage medium
CN110389898A (en) Acquisition methods, device, terminal and the computer readable storage medium of Test Strategy
CN112799782B (en) Model generation system, method, electronic device and storage medium
CN108829802B (en) Associated log playback method and device
CN112765014B (en) Automatic test system for multi-user simultaneous operation and working method
CN111752846A (en) Interface testing method and device
CN113326026B (en) Method and terminal for generating micro-service business process interface
Yin et al. An automated test case generation approach based on activity diagrams of SysML
CN107122849B (en) Spark R-based product detection total completion time minimization method
CN115713404A (en) Credit evaluation method for construction industry enterprises
CN112395343B (en) DSG-based field change data acquisition and extraction method
Motta et al. Characterizing architectural information in commit messages: an exploratory study
CN115250231B (en) Application configuration method and device

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