CN112685322B - Customized test method, device and system - Google Patents

Customized test method, device and system Download PDF

Info

Publication number
CN112685322B
CN112685322B CN202110037319.1A CN202110037319A CN112685322B CN 112685322 B CN112685322 B CN 112685322B CN 202110037319 A CN202110037319 A CN 202110037319A CN 112685322 B CN112685322 B CN 112685322B
Authority
CN
China
Prior art keywords
test
tested equipment
customized
information
command
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
CN202110037319.1A
Other languages
Chinese (zh)
Other versions
CN112685322A (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.)
Wuhan Sipuling Technology Co Ltd
Original Assignee
Wuhan Sipuling Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Wuhan Sipuling Technology Co Ltd filed Critical Wuhan Sipuling Technology Co Ltd
Priority to CN202110037319.1A priority Critical patent/CN112685322B/en
Publication of CN112685322A publication Critical patent/CN112685322A/en
Application granted granted Critical
Publication of CN112685322B publication Critical patent/CN112685322B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Test And Diagnosis Of Digital Computers (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention relates to a customized test method, a device and a system, wherein the method comprises the following steps: building a customized test environment and acquiring manufacturer information selected by a user; inquiring and matching in a stored test scheme database according to manufacturer information, and determining a corresponding test application scheme; according to the test application scheme, determining corresponding tested equipment and a first predictive command, and automatically connecting to the tested equipment through a serial port; acquiring version information of the tested equipment, and judging whether the test conditions are met or not according to the version information and manufacturer information; and if so, executing the first prediction command in the tested equipment, and recording and storing corresponding test result data. The invention does not need to manually carry out related operation, reduces the operation time and energy of testers, greatly improves the accuracy, and outputs effective test result data to be provided for users to check and analyze.

Description

Customized test method, device and system
Technical Field
The present invention relates to the field of network technologies, and in particular, to a customized test method, apparatus, and system.
Background
At present, when a product is tested in a customized manner, because the types of devices to be tested and the versions of manufacturers to be tested are diversified, and the quantity of function configurations required by each type of device and each type of device manufacturer is inconsistent, when testing is to be performed, function differentiation and re-configuration of related automatic scripts are required according to the requirements of the types of devices, and the specification of the devices with the types of devices needs to be inquired each time and then manually adjusted, so that the time is consumed when testing each function, one test item needs to be stopped and re-adjusted each time, and the accuracy and the working efficiency are very low. In summary, how to perform a customized test method with high efficiency and low labor cost is an urgent problem to be solved.
Disclosure of Invention
Accordingly, there is a need for a customized test method, apparatus and system to solve the problem of how to perform a customized test method with high efficiency and low labor cost.
The invention provides a customized test method applied to a test machine, which comprises the following steps:
building a customized test environment and acquiring manufacturer information selected by a user;
inquiring and matching in a stored test scheme database according to the manufacturer information, and determining a corresponding test application scheme;
according to the test application scheme, determining corresponding tested equipment and a first prediction command, and automatically connecting to the tested equipment through a serial port;
acquiring version information of the tested equipment, and judging whether a test condition is met according to the version information and the manufacturer information;
and if so, executing the first prediction command in the tested equipment, and recording and storing corresponding test result data.
Further, the building of the customized test environment comprises:
connecting the tester and the tested equipment, wherein the tested equipment is connected with an internal switch;
judging whether the communication between the tester and the tested equipment is normal or not;
if the communication is normal, automatically configuring the IP address of the tested equipment;
and if the communication is abnormal, generating network abnormity prompt information to remind a user to debug until the communication between the tester and the tested equipment is normal.
Further, the acquiring manufacturer information selected by the user includes:
generating selection prompt information, wherein the selection prompt information is used for prompting a user to select a customized manufacturer;
and generating the manufacturer information according to the customized manufacturer selected by the user.
Further, the version information includes an operation version and a hardware model of the device under test, and the obtaining the version information of the device under test and determining whether the test condition is satisfied according to the version information and the vendor information includes:
checking the running version and the hardware model of the tested equipment according to the execution result of the first prediction command in the tested equipment;
and if the running version is consistent with the version information in the manufacturer information and the hardware model is consistent with the model information in the manufacturer information, the test condition is met.
Further, before checking the running version and the hardware model of the device under test according to the execution result of the first predictive command in the device under test, the method further includes:
judging whether the operation language corresponding to the first prediction command is consistent with the operation language corresponding to the running version of the tested equipment or not;
if not, updating the operation language in the first predictive command until the operation language corresponding to the first predictive command is matched with the operation language corresponding to the running version of the tested equipment;
and if the first prediction command is consistent with the second prediction command, executing the first prediction command on the tested equipment.
Further, the executing the first predictive command in the device under test, and the recording and storing the corresponding test result data includes:
determining a test point and a parameter threshold corresponding to the tested equipment according to the first prediction command;
executing the first predictive command at the test point, and determining a corresponding test point parameter value;
determining corresponding test result data according to the comparison result of the parameter values of the test points and the parameter threshold values;
judging whether the test result accords with the test application scheme or not according to the test result data;
and recording and storing the corresponding test result data.
Further, the test result data includes at least one of current test version data, current test equipment hardware model data, test function module data, and problem module data.
Further, the customized test method further comprises:
obtaining a user-defined test point and a user-defined parameter threshold;
determining a self-defined test scheme according to the self-defined test points and the self-defined parameter threshold;
according to the self-defined test scheme, determining the corresponding tested equipment and a second prediction command, and automatically connecting to the tested equipment through a serial port;
acquiring version information of the tested equipment, and judging whether the test condition is met according to the version information and the manufacturer information;
and if so, executing the second prediction command in the tested equipment, and recording and storing corresponding test result data.
The invention also provides a customized test device, which comprises a processor and a memory, wherein the memory is stored with a computer program, and the computer program is executed by the processor to realize the customized test method.
The invention also provides a customized test system which comprises a test machine, a tested device, an internal switch and the customized test device.
Compared with the prior art, the invention has the beneficial effects that: firstly, building a customized test environment to ensure normal communication connection, and then acquiring manufacturer information selected by a user through a test machine so as to effectively determine manufacturer information corresponding to tested equipment to be tested by the user; then, a test application scheme corresponding to manufacturer information is determined through query matching in a test scheme database, so that different test application schemes are automatically matched according to different manufacturer information, the test intelligence and efficiency are ensured, and the flow steps of manually distinguishing functions according to different tested equipment and different manufacturers are reduced; furthermore, according to various information in the test application scheme, the tested equipment and the first predictive command are determined, and the management interface IP is automatically configured to carry out serial port connection, so that complicated test processes such as manual debugging connection and the like are avoided; furthermore, after the connection is successful, the version information is matched again, whether the manufacturer information required to be tested by the user is consistent with the version information of the tested equipment or not is determined, and the accuracy of subsequent testing is ensured; and finally, only under the condition of consistent matching, executing the first predictive command in the test application scheme in the tested equipment so as to effectively store corresponding test result data and facilitate the analysis and the checking of testers. In summary, according to manufacturer information selected by a user, the invention automatically matches a corresponding test application scheme in a test scheme database on a testing machine, performs selection of a device to be tested and determination of a first predictive command through the test application scheme, automatically configures related predictive commands according to devices of different models to execute tests of multiple functional quantities, does not need to stop modifying any parameter in the middle, does not need to manually perform related operations, reduces operation time and energy of a tester, greatly improves accuracy, outputs effective test result data to the user, helps the tester to verify and analyze a functional module in actual research and development, realizes quick positioning of a problem module, saves labor cost of research and development, and greatly improves test performance.
Drawings
FIG. 1 is a first flowchart illustrating a customized testing method according to the present invention;
FIG. 2 is a schematic flow chart of building a customized test environment according to the present invention;
FIG. 3 is a schematic structural diagram of a topology environment provided by the present invention;
FIG. 4 is a schematic diagram of a process for obtaining vendor information according to the present invention;
FIG. 5 is a schematic flow chart of the present invention for determining whether the test condition is satisfied;
FIG. 6 is a flow chart illustrating the matching operation language provided by the present invention;
FIG. 7 is a schematic flow chart of determining test result data according to the present invention;
FIG. 8 is a second flowchart illustrating a customized testing method according to the present invention;
fig. 9 is a schematic structural diagram of a customized testing apparatus provided in the present invention.
Detailed Description
The accompanying drawings, which are incorporated in and constitute a part of this application, illustrate preferred embodiments of the invention and together with the description, serve to explain the principles of the invention and not to limit the scope of the invention.
Example 1
An embodiment of the present invention provides a customized testing method, and with reference to fig. 1, fig. 1 is a first flowchart of the customized testing method provided by the present invention, where the customized testing method includes steps S1 to S5, where:
in the step S1, a customized test environment is built, and manufacturer information selected by a user is obtained;
in step S2, inquiring and matching in a stored test scheme database according to the manufacturer information, and determining a corresponding test application scheme;
in step S3, according to the test application scheme, determining corresponding tested equipment and a first predictive command, and automatically connecting to the tested equipment through a serial port;
in step S4, version information of the tested device is obtained, and whether the test condition is met or not is judged according to the version information and manufacturer information;
in step S5, if yes, executing the first prediction command in the device under test, and recording and storing corresponding test result data.
In the embodiment of the invention, firstly, the establishment of a customized test environment is carried out to ensure normal communication connection, and then manufacturer information selected by a user is obtained through a test machine, so that manufacturer information corresponding to tested equipment to be tested by the user is effectively determined; then, a test application scheme corresponding to manufacturer information is determined through query matching in a test scheme database, so that different test application schemes are automatically matched according to different manufacturer information, the test intelligence and efficiency are ensured, and the flow steps of manually distinguishing functions according to different tested equipment and different manufacturers are reduced; furthermore, according to various information in the test application scheme, the tested device and the first predictive command are determined, and serial port connection is performed by automatically configuring a management interface IP, so that complicated test processes such as manual debugging connection and the like are avoided; furthermore, after the connection is successful, the version information is matched again, whether the manufacturer information required to be tested by the user is consistent with the version information of the tested equipment or not is determined, and the accuracy of subsequent testing is ensured; and finally, only under the condition of consistent matching, executing the first predictive command in the test application scheme in the tested equipment so as to effectively store corresponding test result data and facilitate the analysis and the checking of testers.
Preferably, referring to fig. 2, fig. 2 is a schematic flowchart of the process of building the customized test environment provided by the present invention, where the step S1 includes steps S11 to S14, where:
in step S11, connecting a tester and a device under test, wherein the device under test is connected to an internal switch;
in step S12, it is determined whether the communication between the tester and the device under test is normal;
in step S13, if the communication is normal, the IP address of the tested device is automatically configured;
in step S14, if the communication is not normal, a network abnormality prompt message is generated to prompt the user to debug until the communication between the tester and the device under test is normal.
As a specific embodiment, the test environment is built according to the topological graph, the test machine is directly connected with the tested equipment, and the tested equipment is connected to the internal switch, so that the tested equipment is ensured to be a customized factory environment; after the topology environment is successfully built, a customized test system is operated on a test machine, the customized test system tries to connect to the tested equipment at the moment, whether the connection communication between the test machine and the tested equipment is normal or not is confirmed, if the customized test system cannot be connected to the tested equipment, network abnormity prompt information is generated to give a user clear prompt, and the user is reminded to check the test machine to the tested equipment network; after the connection communication between the testing machine and the tested equipment is normal, the IP address of the tested equipment is automatically configured, so that a stable and efficient customized testing environment is built.
It should be noted that, referring to fig. 3, fig. 3 is a schematic structural diagram of a topology environment provided by the present invention, wherein a tester is directly connected to a device to be tested, the device to be tested is connected to an internal switch, and network communication between the three devices is ensured.
It should be noted that the test scheme database provides a plurality of predefined test schemes, there are default module test schemes corresponding to the needs of manufacturers, and also a plurality of similar UAC test schemes, IPS test schemes, FW test schemes, etc., and when these predefined test schemes are selected, the automatic test can be performed one by one according to the module functions included in the test schemes, and the test points outside the test schemes will not be tested.
Preferably, referring to fig. 4, fig. 4 is a schematic flow chart of obtaining vendor information provided by the present invention, and the step S1 further includes a step S15 to a step S16, where:
in step S15, generating selection prompt information, where the selection prompt information is used to prompt the user to select a customized vendor;
in step S16, manufacturer information is generated according to the customized manufacturer selected by the user.
As a specific embodiment, the embodiment provides a plurality of choices to the user on the test machine by using the selection prompt information, the user selects the corresponding customized manufacturer according to the test requirement, and the test machine generates the corresponding manufacturer information according to the selected customized manufacturer, where the manufacturer information includes the running version and the hardware model of the device to be tested corresponding to the manufacturer, so as to facilitate the determination of the subsequent test application scheme. It can be understood that different tested devices correspond to a plurality of customized manufacturers, the tester provided by the invention stores the relevant information of the customized manufacturers to form a manufacturer information database, and the corresponding manufacturer information can be generated by querying the database according to the selection of a user.
Preferably, if the user selects a customized manufacturer not included in the manufacturer information database, the user is prompted to perform operations of customizing manufacturer information and customizing a corresponding test application scheme, the manufacturer information database is subjected to data expansion according to the user-defined manufacturer information, and the test scheme database is subjected to data expansion according to the user-defined manufacturer information and the customized test application scheme.
Preferably, referring to fig. 5, fig. 5 is a schematic flow chart illustrating the method for determining whether the test condition is satisfied, where the step S4 further includes a step S41 to a step S42, where:
in step S41, checking the running version and the hardware model of the device under test according to the execution result of the first predictive command in the device under test;
in step S42, if the running version is consistent with the version information in the vendor information and the hardware model is consistent with the model information in the vendor information, the test condition is satisfied.
As a specific embodiment, before testing, the present embodiment verifies whether the running version and the hardware model of the device under test are consistent with the running version and the hardware model in the vendor information, so as to ensure that the device under test is indeed selected by the user through the testing machine, thereby ensuring the stability of subsequent testing.
Preferably, referring to fig. 6, fig. 6 is a schematic flow chart of the matching operation language provided by the present invention, and step S4 further includes step S401 to step S403 before step S, where:
in step S401, determining whether the operation language corresponding to the first language-predictive command is consistent with the operation language corresponding to the running version of the device under test;
in step S402, if the operation language is not consistent with the first predictive command, the operation language in the first predictive command is updated until the operation language corresponding to the first predictive command matches the operation language corresponding to the version information;
in step S403, if the two commands match, a first prediction command is executed on the device under test.
As a specific embodiment, before testing, the embodiment first matches the operation language corresponding to the first predictive command with the operation language corresponding to the running version of the device under test to ensure that the first predictive command can be accurately executed in the device under test, and updates and converts the operation language of the first predictive command if the first predictive command does not match the operation language of the device under test until the operation languages of the first predictive command and the device under test are consistent in form.
Preferably, referring to fig. 7, fig. 7 is a schematic flowchart of determining test result data provided by the present invention, and the step S5 includes steps S51 to S55, where:
in step S51, determining a test point and a parameter threshold corresponding to the device under test according to the first predictive command;
in step S52, a first predictive command is executed at the test point to determine a corresponding test point parameter value;
in step S53, according to the comparison result of the parameter value and the parameter threshold value of the test point, determining corresponding test result data;
in step S54, determining whether the test result conforms to the test application scheme according to the test result data;
in step S55, the corresponding test result data is recorded and stored.
As a specific embodiment, in the functional test of this embodiment, there are a plurality of test points, a corresponding test point and a parameter threshold corresponding to each test point are determined by a first predictive command, the corresponding first predictive command is executed at each test point to obtain a corresponding test point parameter value, and by comparing the test point parameter value with the parameter threshold, whether the test point meets the test requirement can be effectively determined, so that the customized test of this item is completed, and corresponding test result data is generated to the user, which is convenient for the user to visually check and analyze.
In a specific embodiment, the first predictive command includes a "subinterface configuration test command", corresponding to a maximum configuration value of 50, and a "response time test command", corresponding to a maximum configuration value of 0.5. When a 'subinterface configuration test command' is executed on the tested equipment, the corresponding parameter value of the test point is 60, if the parameter value is more than 50, the test result does not meet the test requirement, and corresponding test result data is generated to display the test data and the test result of the test point; when the 'response time test command' is executed on the tested equipment, the corresponding parameter value of the test point is 0.1 and is less than 0.5, the test result meets the test requirement, and corresponding test result data is generated to display the test data and the test result of the test point. The first prediction command realizes the test of a plurality of test points, generates test result data of the plurality of test points, forms a corresponding test report and feeds the test report back to a user, and the user can conveniently check and analyze the test report.
Preferably, the test result data includes at least one of current test version data, current test device hardware model data, test function module data, and problem module data. Therefore, test result data are comprehensively formed according to the test results of the plurality of test points, and a related test report is generated, so that the user can conveniently and quickly position.
Preferably, referring to fig. 8, fig. 8 is a flowchart illustrating a second customized testing method provided by the present invention, where the customized testing method further includes steps S6 to S10, where:
in step S6, a user-defined test point and a user-defined parameter threshold are obtained;
in step S7, a self-defined test scheme is determined according to the self-defined test points and the self-defined parameter threshold;
in step S8, according to the self-defined test scheme, determining corresponding tested equipment and a second predictive command, and automatically connecting to the tested equipment through a serial port;
in step S9, version information of the tested device is obtained, and whether the test condition is met is judged according to the version information and manufacturer information;
in step S10, if yes, a second prediction command is executed in the device under test, and corresponding test result data is recorded and stored.
As a specific embodiment, if there is no test scheme meeting the current test requirement in the test scheme database (in general, there is no corresponding manufacturer information or the user needs to customize), the user selects to add a customized test scheme, and clicks the newly added customized test scheme, all test function points and corresponding test point object specification value configuration parameter input boxes are popped up, the user can select customized test points and customized parameter thresholds to be tested according to his own requirements, so that customized test can be effectively performed according to the specified test points, and the flexibility and reliability of the test method are increased.
In a specific embodiment of the present invention, the specific test flow is as follows:
the first step is as follows: correctly building a customized test environment (see step S11 to step S14);
the second step is that: a user selects a tested manufacturer (including GY, LZ, AH and the like) on a testing machine to generate corresponding manufacturer information;
the third step: the user self-defines the test scheme;
the fourth step: if the user does not select the custom scheme, inquiring and matching in the test scheme database according to the manufacturer information, determining a corresponding test application scheme, and determining corresponding tested equipment and a first predictive command according to the test application scheme;
the fifth step: if the user selects the custom scheme, selecting a test point, selecting a parameter threshold corresponding to the test point, for example: selecting a test point ' subinterface configuration ', filling in a ' subinterface configuration maximum value parameter: 50 "; determining a self-defined test scheme according to the self-defined test points and the self-defined parameter threshold; determining corresponding tested equipment and a second predictive command according to the self-defined test scheme, and automatically connecting the tested equipment and the second predictive command to the tested equipment through a serial port;
and a sixth step: obtaining user confirmation selection correct information, including but not limited to confirming that a tester is correct, and a test scheme (a test application scheme or a custom scheme) is correct;
the seventh step: the testing machine automatically connects the tested device, and after the testing machine is correctly connected to the tested device, the operation language corresponding to the predicted testing command (the first predicted command or the second predicted command) is used for matching with the operation language corresponding to the running version of the tested device, wherein due to the diversity of manufacturers and the involvement of a plurality of manufacturers, the operation commands of each manufacturer are inconsistent, a plurality of commands need to be tried, if the operation commands are not matched, new language commands are replaced for execution, and finally, legal testing commands can be found;
eighth step: after the usable test command is correctly predicted, the predicted test command (the first predicted command or the second predicted command) is executed in the tested equipment, the running version and the hardware model of the tested equipment are checked, whether the selected manufacturer in the test scheme is the same as the manufacturer of the actual test equipment is compared, and if the manufacturer is the same as the manufacturer of the actual test equipment, the test scheme is tested.
The ninth step: testing is performed according to the selected function in the selected test scheme (test application scheme or custom scheme), for example: in this example, the test of 'subinterface configuration' and 'the maximum value of the current manufacturer configuration is 50' are selected, the automatic test system performs subinterface configuration test according to the predictive command, predicts that the maximum value of a single test point is 50 +/-10, checks whether the test requirement is met, executes various predictive test commands, determines corresponding test result data, forms a test report output, compares the test result with a test scheme, checks whether the test result meets the test scheme, and completes the customized test.
Example 2
An embodiment of the present invention provides a customized test apparatus, and with reference to fig. 9, fig. 9 is a schematic structural diagram of the customized test apparatus provided in the present invention, where the customized test apparatus 900 includes:
an obtaining unit 901, configured to build a customized test environment and obtain manufacturer information selected by a user;
a processing unit 902, configured to perform query matching in a stored test scheme database according to manufacturer information, and determine a corresponding test application scheme; the device is also used for determining the corresponding device to be tested and the first predictive command according to the test application scheme, and automatically connecting the device to be tested through a serial port; the system is also used for acquiring version information of the tested equipment and judging whether the test conditions are met according to the version information and manufacturer information;
and the test unit 903 is used for executing the first prediction command in the tested device if the first prediction command is met, and recording and storing corresponding test result data.
Example 3
An embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the customized test method as above is implemented.
Example 4
The embodiment of the invention provides a customized test system, which comprises a test machine, a tested device, an internal switch and the customized test device.
The invention discloses a customized test method, a customized test device and a customized test system, wherein firstly, the customized test environment is established to ensure normal communication connection, and then manufacturer information selected by a user is acquired through a test machine, so that manufacturer information corresponding to tested equipment to be tested by the user is effectively determined; then, a test application scheme corresponding to manufacturer information is determined through query matching in a test scheme database, so that different test application schemes are automatically matched according to different manufacturer information, the test intelligence and efficiency are ensured, and the flow steps of manually distinguishing functions according to different tested equipment and different manufacturers are reduced; furthermore, according to various information in the test application scheme, the tested equipment and the first predictive command are determined, and the management interface IP is automatically configured to carry out serial port connection, so that complicated test processes such as manual debugging connection and the like are avoided; furthermore, after the connection is successful, the matching of the version information is carried out again, whether the manufacturer information required to be tested by the user is consistent with the version information of the tested equipment or not is determined, and the accuracy of the subsequent test is ensured; and finally, only under the condition of consistent matching, executing the first predictive command in the test application scheme in the tested equipment so as to effectively store corresponding test result data and facilitate the analysis and the checking of testers.
According to the technical scheme, the corresponding test application scheme is automatically matched in the test scheme database on the testing machine according to manufacturer information selected by a user, the tested equipment is selected and the first predictive command is determined through the test application scheme, the related predictive commands are automatically configured according to different types of equipment to execute the test of multiple functional quantities, any parameter is not required to be stopped and modified, manual operation is not required, the operation time and energy of a tester are reduced, the accuracy is greatly improved, effective test result data is output and provided for the user, the tester is helped to verify and analyze the functional module in actual research and development, the problem module is quickly positioned, the research and development labor cost is saved, and the test efficiency is greatly improved.
While the invention has been described with reference to specific preferred embodiments, it will be understood by those skilled in the art that various changes and modifications may be made without departing from the spirit and scope of the invention as defined in the following claims.

Claims (7)

1. A customized test method is applied to a test machine and comprises the following steps:
building a customized test environment and acquiring manufacturer information selected by a user;
inquiring and matching in a stored test scheme database according to the manufacturer information, and determining a corresponding test application scheme;
according to the test application scheme, determining corresponding tested equipment and a first prediction command, and automatically connecting to the tested equipment through a serial port;
acquiring version information of the tested equipment, and judging whether a test condition is met according to the version information and the manufacturer information;
if yes, executing the first prediction command in the tested equipment, and recording and storing corresponding test result data;
the version information includes an operation version and a hardware model of the device under test, the obtaining of the version information of the device under test, and the judging whether the test condition is met according to the version information and the manufacturer information includes:
checking the running version and the hardware model of the tested equipment according to the execution result of the first prediction command in the tested equipment;
if the running version is consistent with version information in the manufacturer information and the hardware model is consistent with model information in the manufacturer information, the test condition is met;
before the checking the running version and the hardware model of the device under test according to the execution result of the first predictive command in the device under test, the method further comprises:
judging whether the operation language corresponding to the first prediction command is consistent with the operation language corresponding to the running version of the tested equipment or not;
if not, updating the operation language in the first predictive command until the operation language corresponding to the first predictive command is matched with the operation language corresponding to the running version of the tested equipment;
if the first prediction command is consistent with the second prediction command, the first prediction command is executed on the tested equipment;
the customized test method further comprises the following steps:
obtaining a user-defined test point and a user-defined parameter threshold;
determining a self-defined test scheme according to the self-defined test point and the self-defined parameter threshold;
according to the self-defined test scheme, determining the corresponding tested equipment and a second predictive command, and automatically connecting to the tested equipment through a serial port;
acquiring version information of the tested equipment, and judging whether the test condition is met according to the version information and the manufacturer information;
and if so, executing the second prediction command in the tested equipment, and recording and storing corresponding test result data.
2. The customized test method according to claim 1, wherein the building of the customized test environment comprises:
connecting the tester with the tested equipment, wherein the tested equipment is connected with an internal switch;
judging whether the communication between the tester and the tested equipment is normal or not;
if the communication is normal, automatically configuring the IP address of the tested equipment;
and if the communication is abnormal, generating network abnormity prompt information to remind a user to debug until the communication between the tester and the tested equipment is normal.
3. The customized test method according to claim 1, wherein the obtaining of the vendor information selected by the user comprises:
generating selection prompt information, wherein the selection prompt information is used for prompting a user to select a customized manufacturer;
and generating the manufacturer information according to the customized manufacturer selected by the user.
4. The customized test method according to claim 1, wherein the executing the first predictive command in the device under test, and the recording and storing the corresponding test result data comprises:
determining a test point and a parameter threshold corresponding to the tested equipment according to the first prediction command;
executing the first predictive command at the test point, and determining a corresponding test point parameter value;
determining corresponding test result data according to the comparison result of the parameter values of the test points and the parameter threshold values;
judging whether the test result accords with the test application scheme or not according to the test result data;
and recording and storing the corresponding test result data.
5. The customized test method according to claim 4, wherein the test result data comprises at least one of current test version data, current test equipment hardware model data, test function module data, and problem module data.
6. A customized testing apparatus comprising a processor and a memory, wherein the memory stores a computer program, and the computer program, when executed by the processor, implements the customized testing method according to any one of claims 1-5.
7. A customized test system comprising a tester, a device under test, an internal switch, and the customized test apparatus according to claim 6.
CN202110037319.1A 2021-01-12 2021-01-12 Customized test method, device and system Active CN112685322B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110037319.1A CN112685322B (en) 2021-01-12 2021-01-12 Customized test method, device and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110037319.1A CN112685322B (en) 2021-01-12 2021-01-12 Customized test method, device and system

Publications (2)

Publication Number Publication Date
CN112685322A CN112685322A (en) 2021-04-20
CN112685322B true CN112685322B (en) 2022-10-04

Family

ID=75457567

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110037319.1A Active CN112685322B (en) 2021-01-12 2021-01-12 Customized test method, device and system

Country Status (1)

Country Link
CN (1) CN112685322B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114640578A (en) * 2022-03-15 2022-06-17 中国电信股份有限公司 Automatic configuration method, device and system of equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016170937A1 (en) * 2015-04-20 2016-10-27 三菱電機株式会社 Test automation device, test automation method, and test automation program
WO2018010552A1 (en) * 2016-07-12 2018-01-18 博彦科技股份有限公司 Test method and device
CN109857643A (en) * 2018-12-29 2019-06-07 北京奇安信科技有限公司 A kind of method and device of virtual platform performance automatic test
CN110175112A (en) * 2019-04-17 2019-08-27 武汉思普崚技术有限公司 The method and apparatus of Kernel-based methods management raising version testing efficiency
CN111309586A (en) * 2018-12-12 2020-06-19 迈普通信技术股份有限公司 Command testing method, device and storage medium thereof

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8214800B2 (en) * 2005-03-02 2012-07-03 Advantest Corporation Compact representation of vendor hardware module revisions in an open architecture test system
US8380665B2 (en) * 2011-02-24 2013-02-19 Oracle International Corporation Application workload capture and replay system
CN101128007A (en) * 2007-09-21 2008-02-20 中兴通讯股份有限公司 Testing method for mobile communication terminal
CN101236522B (en) * 2008-01-25 2010-06-02 中兴通讯股份有限公司 Hardware module test method and apparatus
US20120253728A1 (en) * 2011-04-01 2012-10-04 Verizon Patent And Licensing Inc. Method and system for intelligent automated testing in a multi-vendor, multi-protocol heterogeneous environment
CN104360951B (en) * 2014-12-09 2017-09-29 迈普通信技术股份有限公司 A kind of script method of testing and device
CN111277449B (en) * 2018-12-05 2021-08-13 ***通信集团广西有限公司 Safety testing method and device for voice service equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016170937A1 (en) * 2015-04-20 2016-10-27 三菱電機株式会社 Test automation device, test automation method, and test automation program
WO2018010552A1 (en) * 2016-07-12 2018-01-18 博彦科技股份有限公司 Test method and device
CN111309586A (en) * 2018-12-12 2020-06-19 迈普通信技术股份有限公司 Command testing method, device and storage medium thereof
CN109857643A (en) * 2018-12-29 2019-06-07 北京奇安信科技有限公司 A kind of method and device of virtual platform performance automatic test
CN110175112A (en) * 2019-04-17 2019-08-27 武汉思普崚技术有限公司 The method and apparatus of Kernel-based methods management raising version testing efficiency

Also Published As

Publication number Publication date
CN112685322A (en) 2021-04-20

Similar Documents

Publication Publication Date Title
CN109361562B (en) Automatic testing method based on associated network equipment access
CN110708210B (en) Cloud test configuration method and device, computer equipment and storage medium
US7496815B2 (en) Method and apparatus for automatic generation of system test libraries
CN106126414B (en) Application software testing method and system
CN108874649B (en) Method and device for generating automatic test script and computer equipment thereof
CN112685322B (en) Customized test method, device and system
CN110928556A (en) Automatic program burning method and device for railway vehicle, and testing method and system
CN111651358B (en) Method for generating test case, software test method, device and server
CN106227630B (en) Detection system for embedded wireless module
CN110888804B (en) Interface test method and interface test platform
KR101252358B1 (en) Apparatus and method for testing plc command
CN116483416A (en) Firmware online upgrading method, server and storage medium
CN112416796B (en) Software upgrading test method and device
KR100636404B1 (en) Method and System for Testing by Using Automatic Control Program
CN115185819A (en) System testing method, device, equipment and computer readable storage medium
CN114385493A (en) Performance test method and device, electronic equipment and storage medium
CN114924546A (en) Calibration system and method for hardware-in-loop test
CN114154169A (en) Jenkins and JMeter-based automatic test method and device
CN114124769A (en) Base station testing method and device, electronic equipment and storage medium
CN111813665A (en) Big data platform interface data testing method and system based on python
CN112231228B (en) Firmware upgrade test method, device, platform, equipment and storage medium
CN117192343B (en) Chip testing method based on auxiliary system, electronic equipment and medium
CN112231228A (en) Firmware upgrade test method, device, platform, equipment and storage medium
CN117667692A (en) Equipment testing method and system
CN114487758B (en) Test method and test system for semiconductor equipment

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