CN113132522A - Test method, device, server and medium - Google Patents

Test method, device, server and medium Download PDF

Info

Publication number
CN113132522A
CN113132522A CN202110297590.9A CN202110297590A CN113132522A CN 113132522 A CN113132522 A CN 113132522A CN 202110297590 A CN202110297590 A CN 202110297590A CN 113132522 A CN113132522 A CN 113132522A
Authority
CN
China
Prior art keywords
test
tested
information
identification information
procedure
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.)
Pending
Application number
CN202110297590.9A
Other languages
Chinese (zh)
Inventor
张雨力
李滨村
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Jimi Iot Co ltd
Original Assignee
Shenzhen Jimi Iot Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Jimi Iot Co ltd filed Critical Shenzhen Jimi Iot Co ltd
Priority to CN202110297590.9A priority Critical patent/CN113132522A/en
Publication of CN113132522A publication Critical patent/CN113132522A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/24Arrangements for testing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2273Test methods

Abstract

The application is applicable to the technical field of computers, and provides a test method, which comprises the following steps: receiving test request information input by a first target user for a procedure to be tested of equipment to be tested, wherein the test request information comprises order identification information of an order to which the equipment to be tested belongs and procedure identification information of the procedure to be tested; acquiring test configuration information associated with order identification information and process identification information from a pre-stored associated information set, wherein the associated information in the associated information set comprises the associated order identification information, the associated process identification information and the test configuration information, and the test configuration information comprises a test instruction; and executing the test on the equipment to be tested based on the test instruction. In the application, the electronic equipment under different customization requirements can be tested by adopting the same test software, and the test efficiency of testing the electronic equipment is improved.

Description

Test method, device, server and medium
Technical Field
The present application belongs to the field of computer technologies, and in particular, to a test method, apparatus, server, and medium.
Background
When a factory produces electronic devices, it is often necessary to test various functions of the electronic devices. If the functions required to be realized by the same type of electronic equipment, such as a mobile phone, are different, the test process is also different.
In the related art, as the demand for personalized customization of electronic devices increases, if corresponding test software is developed for each customization, the software development cost will increase. In addition, the presence of excessive testing software is prone to confusion and error, resulting in reduced testing efficiency for testing electronic devices.
Disclosure of Invention
The embodiment of the application provides a testing method, a testing device, a server and a medium, and aims to solve the problem that the testing efficiency of testing electronic equipment in the related art is not high enough.
In a first aspect, an embodiment of the present application provides a testing method, where the method includes:
receiving test request information input by a first target user for a procedure to be tested of equipment to be tested, wherein the test request information comprises order identification information of an order to which the equipment to be tested belongs and procedure identification information of the procedure to be tested;
acquiring test configuration information associated with order identification information and process identification information from a pre-stored associated information set, wherein the associated information in the associated information set comprises the associated order identification information, the associated process identification information and the test configuration information, and the test configuration information comprises a test instruction;
and executing the test on the equipment to be tested based on the test instruction.
Further, before obtaining the test configuration information associated with the order identification information and the process identification information from the pre-stored associated information set, the method further includes:
receiving order description information input by a second target user, wherein the order description information comprises order identification information, process identification information of at least one process and order demand information;
aiming at a process in at least one process, determining an item to be tested aiming at the process according to order demand information; selecting a test instruction corresponding to the determined item to be tested, and storing the order identification information, the process identification information of the process and the selected test instruction into an associated information set in an associated manner.
Further, before performing a test on the device under test based on the test instruction, the method further includes:
if the test record information of the procedure to be tested of the equipment to be tested is stored currently, determining that the procedure to be tested is tested, stopping testing, and outputting information for prompting that the procedure to be tested is tested;
if the test record information aiming at the previous procedure of the equipment to be tested is not stored currently, determining that the previous procedure of the procedure to be tested is not tested, stopping testing, and outputting information for prompting that the previous procedure of the procedure to be tested is not tested.
Further, the test configuration information further includes an expected test result for the test instruction; and
executing a test on the device under test based on the test instruction, including:
sending a test instruction to the equipment to be tested, and receiving an actual test result returned by the equipment to be tested aiming at the test instruction;
if the actual test result is matched with the expected test result, test record information used for recording the test success is stored, and if the actual test result is not matched with the expected test result, information used for prompting the test failure is output.
Furthermore, a plurality of test instructions are provided, and each test instruction corresponds to one item to be tested; and
executing a test on the device under test based on the test instruction, including:
sending a plurality of test instructions to the equipment to be tested, and receiving actual test results returned by the equipment to be tested aiming at the test instructions;
aiming at an item to be tested, if the actual test result of the item to be tested is not matched with the expected test result, outputting information for prompting the test failure of the item to be tested;
and if the actual test result corresponding to each item to be tested is matched with the expected test result, storing test record information for recording the test success.
Further, after storing the test record information for recording the test success, the method further includes: and outputting information for prompting the success of the test.
Further, acquiring test configuration information associated with the order identification information and the process identification information from a pre-stored associated information set, includes:
and acquiring test configuration information associated with the order identification information and the process identification information from the associated information set stored in the target storage server.
In a second aspect, an embodiment of the present application provides a testing apparatus, including:
the information receiving unit is used for receiving test request information input by a first target user aiming at a procedure to be tested of the equipment to be tested, wherein the test request information comprises order identification information of an order to which the equipment to be tested belongs and procedure identification information of the procedure to be tested;
the instruction acquisition unit is used for acquiring test configuration information associated with the order identification information and the process identification information from a pre-stored associated information set, wherein the associated information in the associated information set comprises the associated order identification information, the process identification information and the test configuration information, and the test configuration information comprises a test instruction;
and the test execution unit is used for executing the test on the equipment to be tested based on the test instruction.
In a third aspect, an embodiment of the present application provides a server, including a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements the steps of any one of the test methods when executing the computer program.
In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, where a computer program is stored, and the computer program, when executed by a processor, implements the steps of any of the above-mentioned test methods.
In a fifth aspect, the present application provides a computer program product, which when run on a server, causes the server to execute any one of the above-mentioned test methods.
Compared with the related technology, the embodiment of the application has the beneficial effects that: when the electronic equipment is tested, the associated information of the test instruction for testing the electronic equipment is selected from the associated information set through the order identification information and the process identification information, so that the electronic equipment is tested by adopting the selected test instruction. The electronic equipment testing method and the electronic equipment testing system can realize the testing of the electronic equipment under different customization requirements by adopting the same testing software, and are beneficial to improving the testing efficiency of testing the electronic equipment.
It is understood that the beneficial effects of the second aspect to the fifth aspect can be referred to the related description of the first aspect, and are not described herein again.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required to be used in the embodiments or the related technical descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a schematic flow chart of a testing method according to an embodiment of the present application;
FIG. 2 is a schematic flow chart of a testing method according to another embodiment of the present application;
FIG. 3 is a schematic flow chart of a testing method according to another embodiment of the present application;
FIG. 4 is a schematic flow chart of a testing method according to still another embodiment of the present application;
FIG. 5 is a schematic structural diagram of a testing apparatus according to an embodiment of the present disclosure;
fig. 6 is a schematic structural diagram of a server according to an embodiment of the present application.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It should also be understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
As used in this specification and the appended claims, the term "if" may be interpreted contextually as "when", "upon" or "in response to" determining "or" in response to detecting ". Similarly, the phrase "if it is determined" or "if a [ described condition or event ] is detected" may be interpreted contextually to mean "upon determining" or "in response to determining" or "upon detecting [ described condition or event ]" or "in response to detecting [ described condition or event ]".
Furthermore, in the description of the present application and the appended claims, the terms "first," "second," "third," and the like are used for distinguishing between descriptions and not necessarily for describing or implying relative importance.
Reference throughout this specification to "one embodiment" or "some embodiments," or the like, means that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the present application. Thus, appearances of the phrases "in one embodiment," "in some embodiments," "in other embodiments," or the like, in various places throughout this specification are not necessarily all referring to the same embodiment, but rather "one or more but not all embodiments" unless specifically stated otherwise. The terms "comprising," "including," "having," and variations thereof mean "including, but not limited to," unless expressly specified otherwise.
In order to explain the technical means of the present application, the following examples are given below.
Example one
Referring to fig. 1, an embodiment of the present application provides a testing method, including:
step 101, receiving test request information input by a first target user for a procedure to be tested of a device to be tested.
The test request information comprises order identification information of an order to which the equipment to be tested belongs and process identification information of a process to be tested. The order identification information is generally information for identifying an order. The process identification information is generally information for identifying a process. In practice, the order identification information is usually an order number, and the process identification information is usually a process number. Here, there are usually a plurality of processes requiring testing for one device under test. For example, for a mobile phone, the process requiring testing may include a process of testing a circuit board, a process of testing a software application, and the like.
In this embodiment, the execution subject of the test method is generally a server, for example, a test server for providing test services. The server may be hardware or software. When the server is hardware, it may be implemented as a distributed server cluster formed by multiple servers, or may be implemented as a single server. When the server is software, it may be implemented as multiple pieces of software or software modules (e.g., multiple pieces of software or software modules used to provide distributed services), or as a single piece of software or software module. And is not particularly limited herein.
Wherein the first target user is typically a tester with access rights. In practice, the first target user is typically required to log into the account before performing the test. Specifically, the first target user may input account information, and then the execution main body may receive the account information, and then the execution main body may determine whether the account has an access right based on the account information, and determine accessible contents of the account. Optionally, the executing entity may generate a query statement from the received account information, and then send the query statement to a storage server in communication connection, so that the storage server may query the authority information related to the account information, and the executing entity may determine whether the account has an access authority and determine accessible content of the account through the authority information related to the account information returned by the storage server.
Step 102, obtaining test configuration information associated with the order identification information and the process identification information from a pre-stored associated information set.
The relevant information in the relevant information set comprises relevant order identification information, procedure identification information and test configuration information, and the test configuration information comprises a test instruction. The test configuration information is generally information for configuring test contents.
Here, the execution subject may search the association information where the order identification information and the process identification information are located from the association information set by using the order identification information and the process identification information.
And 103, executing the test on the device to be tested based on the test instruction.
Here, after obtaining the test instruction, the execution main body may test the device to be tested based on the test instruction. As an example, the execution subject may directly send the test instruction to the device under test to implement testing the device under test. As another example, the execution main body may further control a test auxiliary device, such as an agilent program-controlled power supply, a bluetooth adapter, or the like, to implement testing on the device to be tested. In practical application, if the test instruction is an instruction for testing the current of the device to be tested, when the device to be tested is tested, the execution main body can control the agilent program-controlled power supply to supply power to the device to be tested, and then control the agilent program-controlled power supply to return the current indication of the device to be tested, so as to realize the current test of the device to be tested. If the test instruction is an instruction for testing the Bluetooth of the equipment to be tested, the execution main body can control the Bluetooth adapter to realize the Bluetooth test of the equipment to be tested.
According to the method provided by the embodiment, when the electronic equipment is tested, the associated information where the test instruction for testing the electronic equipment is located is selected from the associated information set through the order identification information and the process identification information, so that the electronic equipment is tested by adopting the selected test instruction. The electronic equipment testing method and the electronic equipment testing system can realize the testing of the electronic equipment under different customization requirements by adopting the same testing software, and are beneficial to improving the testing efficiency of testing the electronic equipment.
In some optional implementation manners of this embodiment, obtaining, from a pre-stored associated information set, test configuration information associated with the order identification information and the process identification information includes:
and acquiring test configuration information associated with the order identification information and the process identification information from the associated information set stored in the target storage server.
The target storage server is usually a preset server for storing data. The related information set is stored in the target storage server, so that the storage resources of the test servers can be saved, and the information stored in the target storage server can be effectively shared in time when a plurality of test servers work simultaneously, thereby being beneficial to further improving the test efficiency. In practice, the executing entity generally stores the data to be stored in the target storage server, and centralized management of the stored data can be realized.
In some optional implementations of this embodiment, if the test configuration information further includes an expected test result for the test instruction. At this time, the test is performed on the device under test based on the test instruction, including: sending a test instruction to the equipment to be tested, and receiving an actual test result returned by the equipment to be tested aiming at the test instruction; if the actual test result is matched with the expected test result, test record information used for recording the test success is stored, and if the actual test result is not matched with the expected test result, information used for prompting the test failure is output.
The test recording information is generally information for recording the result of the test. The specific form of the information for prompting the test failure may include, but is not limited to: audio, text, pictures, video, etc.
In practice, the test configuration information typically has expected test results for the test instructions. After sending the test instruction to the device to be tested, the execution main body may receive an actual test result returned by the device to be tested based on the test instruction. In this way, the performing agent may compare the actual test result with the expected test result to determine whether the two fit. In practical applications, the expected test result may be a value or a value range. The fitting of the actual test result and the expected test result may mean that the actual test result and the expected test result have the same value, that the actual test result and the expected test result have similar values, or that the actual test result belongs to the value range indicated by the expected test result.
Here, if the actual test result is adapted to the expected test result, the execution body may store test record information for recording the success of the test. For example, it may be stored locally or in the target storage server. Once the storage is complete, the tester can learn that the test was successful. If the actual test result is not matched with the expected test result, the execution main body can output information for prompting test failure, and prompt a tester to perform corresponding processing on the to-be-tested equipment with test failure, so that the test efficiency is improved.
Optionally, after storing the test record information for recording the test success, the execution main body may further output information for prompting the test success. The specific form of the information for prompting the success of the test may include, but is not limited to: audio, text, pictures, video, etc. The realization mode can prompt the tester of successful test in time, and is favorable for further improving the test efficiency.
In some optional implementations of this embodiment, there are multiple test instructions, and each test instruction corresponds to one item to be tested. Wherein the items to be tested can be functional items to be tested. The items to be tested may be items to be tested for current, items to be tested for bluetooth, etc. At this time, executing the test on the device under test based on the test instruction may include:
step one, sending a plurality of test instructions to the equipment to be tested, and receiving actual test results returned by the equipment to be tested aiming at the test instructions.
Here, the execution body may transmit the plurality of test instructions to the device under test one by one. For each test instruction, the execution may receive an actual test result returned by the device under test for the test instruction.
And step two, aiming at the item to be tested, if the actual test result of the item to be tested is not matched with the expected test result, outputting information for prompting the test failure of the item to be tested.
Here, for each item to be tested, if the actual test result for the item to be tested does not match the expected test result, the execution main body may output information for prompting that the item to be tested fails to test.
And step three, if the actual test result corresponding to each item to be tested is matched with the expected test result, storing the test record information for recording the test success.
Here, if the actual test result is adapted to the expected test result for each item to be tested, at this time, it may be considered that all items to be tested pass the test, and the execution main body may store the test record information for recording the test success. For example, it may be stored locally or in the target storage server. Once the storage is complete, the tester can learn that the test was successful. The implementation mode can prompt the content of the test failure to the tester timely and accurately so as to prompt the tester to perform corresponding processing on the content of the test failure, and the test efficiency is further improved.
Optionally, after storing the test record information for recording the test success, the execution main body may further output information for prompting the test success. The specific form of the information for prompting the success of the test may include, but is not limited to: audio, text, pictures, video, etc. The realization mode can prompt the tester of successful test in time, and is favorable for further improving the test efficiency.
Example two
With continuing reference to fig. 2, fig. 2 is a schematic flow chart of a testing method provided in the embodiment of the present application.
Step 201, receiving test request information input by a first target user for a procedure to be tested of a device to be tested.
The test request information comprises order identification information of an order to which the equipment to be tested belongs and process identification information of a process to be tested.
Step 202, obtaining test configuration information associated with the order identification information and the process identification information from a pre-stored associated information set.
The relevant information in the relevant information set comprises relevant order identification information, procedure identification information and test configuration information, and the test configuration information comprises a test instruction.
In the present embodiment, the specific operations of steps 201-202 are substantially the same as the operations of steps 101-102 in the embodiment shown in fig. 1, and are not repeated herein.
Step 203, if the test record information of the procedure to be tested of the equipment to be tested is currently stored, determining that the procedure to be tested is tested, stopping the test, and outputting information for prompting that the procedure to be tested is tested.
Here, if the test record information of the process to be tested is currently stored, it can be considered that the process to be tested has been tested. At this time, the executing entity may stop testing the process to be tested and output information for prompting that the process to be tested has been tested. Therefore, repeated testing of the procedure to be tested can be avoided, and further improvement of testing efficiency is facilitated.
Step 204, if the test record information for the previous procedure of the device to be tested is not stored currently, determining that the previous procedure of the procedure to be tested is not tested, stopping testing, and outputting information for prompting that the previous procedure of the procedure to be tested is not tested.
Here, if the test record information of the previous process of the process to be tested cannot be found currently, it can be considered that the previous process of the process to be tested is not tested. At this time, the executing entity may stop testing the process to be tested and output information for prompting that a previous process of the process to be tested is not tested. Therefore, the test missing of the previous procedure of the procedure to be tested can be avoided, and the test efficiency is further improved.
In practice, the test record information is typically stored in the target storage server. When the test record information is stored in the target storage server, the execution main body may obtain the test record information of a certain process of the device to be tested by sending a request for querying the test record information of the process to the target storage server.
Step 205, performing a test on the device under test based on the test instruction.
In this embodiment, the specific operation of step 205 is substantially the same as the operation of step 103 in the embodiment shown in fig. 1, and is not described herein again.
The method provided by the embodiment can avoid repeated testing of the procedure to be tested, can avoid missing testing of the previous procedure of the procedure to be tested, can realize accurate testing of each procedure, and is favorable for further improving the testing efficiency of testing the equipment to be tested.
In an optional implementation manner of each embodiment of the present application, before obtaining, from a pre-stored associated information set, test configuration information associated with the order identification information and the process identification information, the test method may further include:
first, order description information input by a second target user is received, wherein the order description information comprises order identification information, process identification information of at least one process and order demand information. Then, aiming at a process in at least one process, determining an item to be tested aiming at the process according to the order demand information; selecting a test instruction corresponding to the determined item to be tested, and storing the order identification information, the process identification information of the process and the selected test instruction into an associated information set in an associated manner.
The order description information may be information for describing an order, and the order description information includes order identification information, process identification information of at least one process, and order demand information. The order demand information is generally information for describing order demands. The order requirements are typically the functional requirements of the device under test. As an example, the order requirement may be a bluetooth function requirement, an incoming call muting function requirement, or the like. It is noted that by default, the set of association information is empty.
The second target user is typically an administrator with access rights. The first target user and the second target user may be the same or different.
In practical application, for each item to be tested, a test instruction corresponding to the item to be tested may be set. Therefore, the corresponding test instruction can be found through the identification of the item to be tested.
Here, the execution body may receive order description information input by the user. Then, for each process, the order requirement information may be analyzed, such as semantic analysis, to determine the items to be tested for that process. For example, if the order requirement information includes information describing requirements of the bluetooth function, it may be determined that the items to be tested of the process may have items to be tested for testing the bluetooth function. The execution main body can directly select a test instruction corresponding to an item to be tested, and then associates the order identification information, the process identification information and the selected test instruction to be stored in an associated information set as associated information. Here, the number of test instructions in the association information may be one or more. The number of test instructions in the associated information corresponds to the number of items to be tested in the process.
The implementation mode can determine the items to be tested based on the order demands, so that the test instruction of each item to be tested is obtained, and the associated information aiming at the order demands is obtained. The method and the device are beneficial to obtaining the associated information aiming at different order demands, so that the electronic equipment under different customization demands can be tested by adopting the same test software, and the test efficiency of testing the electronic equipment is improved.
Fig. 3 is a schematic flowchart of a testing method provided in an embodiment of the present application. As shown in fig. 3, the testing method includes steps 301-307.
Step 301, a tester logs in an account.
Here, the tester is the first target user.
Step 302, the test server determines whether the tester has access rights. If there is no access right, step 301 is executed. Otherwise, if there is access right, step 303 is executed.
Step 303, the tester inputs the order number and the testing procedure.
Here, the input order number is order identification information, and the input test process is process identification information of a process to be tested.
Step 304, the test server obtains order configuration information.
Here, the order configuration information may include an order number, a software version number, a machine model of the device under test, a work serial number, a name of an item to be tested for each process, a test instruction, an expected test result for the test instruction, and the like.
Step 305, accessing the device to be tested.
Here, the test server establishes a test connection with the device under test and starts a test.
Step 306, the test server tests the device to be tested and uploads test record information to the target storage server.
Step 307, disconnecting the device under test.
Here, the test server disconnects the test connection from the device under test. And (5) finishing the test.
Fig. 4 is a schematic flowchart of a testing method provided in an embodiment of the present application. As shown in fig. 4, the testing method includes steps 401 and 413. The execution subject of steps 401 and 413 is the test server.
Step 401, accessing a device to be tested.
Here, the test server establishes a test connection with the device under test and starts a test.
Step 402, checking whether the test record information of the current process of the device to be tested exists. If so, go to step 403. If not, go to step 404.
Here, the current process is a process to be measured. In practice, the test record information is typically stored in the target storage server. When the test record information is stored in the target storage server, the test server may obtain the test record information of a certain process of the device to be tested by sending a request for querying the test record information of the process to the target storage server.
In step 403, an error is reported to indicate that the current process has been tested, and step 413 is executed.
Step 404, checking whether the test record information of the last process of the device to be tested exists. If not, go to step 405. If so, go to step 406.
Step 405, reporting an error, prompting the last process to miss the test, and executing step 413.
And step 406, issuing a test instruction to the device to be tested through the serial port.
Step 407, obtaining test result data returned by the device to be tested for the test instruction through the serial port.
At step 408, the test result data is processed based on the expected test result.
In practice, the test configuration information typically has expected test results for the test instructions. After sending the test instruction to the device to be tested, the test server may receive an actual test result returned by the device to be tested based on the test instruction. In this way, the test server may compare the actual test results with the expected test results to determine if the two are compatible. In practical applications, the expected test result may be a value or a value range. The fitting of the actual test result and the expected test result may mean that the actual test result and the expected test result have the same value, that the actual test result and the expected test result have similar values, or that the actual test result belongs to the value range indicated by the expected test result.
Step 409, determining whether the current item to be tested is tested successfully. If the test of the current item to be tested is successful, go to step 410, if not, go to step 411.
Step 410, determining whether all items to be tested are tested, if so, executing step 412. If not, go to step 406, and use the next item of test instruction to test the next item to be tested.
Step 411, displaying the failure and uploading the test record information for describing the test failure.
And step 412, displaying success and uploading test record information for describing the test success.
Step 413, disconnect the device under test.
Here, the test server disconnects the test connection from the device under test. And (5) finishing the test.
EXAMPLE III
Fig. 5 shows a block diagram of a testing apparatus 500 provided in the embodiment of the present application, which corresponds to the testing method in the first embodiment, and only shows the relevant parts in the embodiment of the present application for convenience of description.
Referring to fig. 5, the apparatus includes:
an information receiving unit 501, configured to receive test request information input by a first target user for a to-be-tested process of a to-be-tested device, where the test request information includes order identification information of an order to which the to-be-tested device belongs and process identification information of the to-be-tested process;
an instruction obtaining unit 502, configured to obtain test configuration information associated with the order identification information and the process identification information from a pre-stored associated information set, where the associated information in the associated information set includes the associated order identification information, the process identification information, and the test configuration information includes a test instruction;
the test execution unit 503 is configured to execute a test on the device under test based on the test instruction.
In some embodiments, the device further comprises an information storage unit (not shown in the figures). Wherein the information storage unit is used for: receiving order description information input by a second target user, wherein the order description information comprises order identification information, process identification information of at least one process and order demand information; aiming at a process in at least one process, determining an item to be tested aiming at the process according to order demand information; selecting a test instruction corresponding to the determined item to be tested, and storing the order identification information, the process identification information of the process and the selected test instruction into an associated information set in an associated manner.
In some embodiments, the apparatus further comprises a test troubleshooting unit (not shown in the figures). Wherein, the test investigation unit is used for: if the test record information of the procedure to be tested of the equipment to be tested is stored currently, determining that the procedure to be tested is tested, stopping testing, and outputting information for prompting that the procedure to be tested is tested; if the test record information aiming at the previous procedure of the equipment to be tested is not stored currently, determining that the previous procedure of the procedure to be tested is not tested, stopping testing, and outputting information for prompting that the previous procedure of the procedure to be tested is not tested.
In some embodiments, the test execution unit 503 is specifically configured to: sending a test instruction to the equipment to be tested, and receiving an actual test result returned by the equipment to be tested aiming at the test instruction;
if the actual test result is matched with the expected test result, test record information used for recording the test success is stored, and if the actual test result is not matched with the expected test result, information used for prompting the test failure is output.
In some embodiments, the test execution unit 503 is specifically configured to: sending a plurality of test instructions to the equipment to be tested, and receiving actual test results returned by the equipment to be tested aiming at the test instructions;
aiming at an item to be tested, if the actual test result of the item to be tested is not matched with the expected test result, outputting information for prompting the test failure of the item to be tested;
and if the actual test result corresponding to each item to be tested is matched with the expected test result, storing test record information for recording the test success.
In some embodiments, after storing the test recording information for recording the test success, the method further includes: and outputting information for prompting the success of the test.
In some embodiments, the instruction fetch unit 502 is specifically configured to: and acquiring test configuration information associated with the order identification information and the process identification information from the associated information set stored in the target storage server.
When the device provided by this embodiment is used for testing the electronic device, the associated information where the test instruction for testing the electronic device is located is selected from the associated information set through the order identification information and the process identification information, so that the electronic device is tested by using the selected test instruction. The electronic equipment testing method and the electronic equipment testing system can realize the testing of the electronic equipment under different customization requirements by adopting the same testing software, and are beneficial to improving the testing efficiency of testing the electronic equipment.
It should be noted that, for the information interaction, execution process, and other contents between the above-mentioned devices/units, the specific functions and technical effects thereof are based on the same concept as those of the embodiment of the method of the present application, which may be referred to in the embodiment of the method specifically, and are not described herein again.
Example four
Fig. 6 is a schematic structural diagram of a server 600 according to an embodiment of the present application. As shown in fig. 6, the server 600 of this embodiment includes: at least one processor 601 (only one processor is shown in fig. 6), a memory 602, and a computer program 603, such as a test program, stored in the memory 602 and executable on the at least one processor 601. The steps in any of the various method embodiments described above are implemented when the computer program 603 is executed by the processor 601. The steps in the embodiments of the respective test methods described above are implemented when the processor 601 executes the computer program 603. The processor 601, when executing the computer program 603, implements the functionality of each module/unit in the various device embodiments described above, e.g., the functionality of units 501-503 shown in fig. 5.
Illustratively, the computer program 603 may be partitioned into one or more modules/units, which are stored in the memory 602 and executed by the processor 601 to accomplish the present application. One or more modules/units may be a series of computer program instruction segments capable of performing certain functions, which are used to describe the execution of computer program 603 in server 600. For example, the computer program 603 may be divided into an information receiving unit, an instruction obtaining unit, and a test executing unit, and specific functions of each unit are described in the foregoing embodiments, and are not described herein again.
The server 600 may be a server, a desktop computer, a tablet computer, a cloud server, a mobile electronic device, and other computing devices. The server 600 may include, but is not limited to, a processor 601, a memory 602. Those skilled in the art will appreciate that fig. 6 is merely an example of a server 600 and is not intended to be limiting of server 600, and may include more or fewer components than those shown, or some components in combination, or different components, e.g., the server may also include input-output devices, network access devices, buses, etc.
The Processor 601 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The storage 602 may be an internal storage unit of the server 600, such as a hard disk or a memory of the server 600. The memory 602 may also be an external storage device of the server 600, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like provided on the server 600. Further, the memory 602 may also include both internal storage units of the server 600 and external storage devices. The memory 602 is used to store computer programs and other programs and data required by the server. The memory 602 may also be used to temporarily store data that has been output or is to be output.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules, so as to perform all or part of the functions described above. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the system may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus/server and method may be implemented in other ways. For example, the above-described apparatus/server embodiments are merely illustrative, and for example, a division of modules or units is merely a logical division, and an actual implementation may have another division, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
Units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated module, if implemented in the form of a software functional unit and sold or used as a separate product, may be stored in a computer readable storage medium. Based on such understanding, all or part of the flow in the method according to the embodiments described above may be implemented by a computer program, which is stored in a computer readable storage medium and used by a processor to implement the steps of the embodiments of the methods described above. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer readable medium may include: any entity or device capable of carrying computer program code, recording medium, U.S. disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution media, and the like. It should be noted that the computer readable medium may contain other components which may be suitably increased or decreased as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, in accordance with legislation and patent practice, the computer readable medium does not include electrical carrier signals and telecommunications signals.
The above embodiments are only used to illustrate the technical solutions of the present application, and not to limit the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present application and are intended to be included within the scope of the present application.

Claims (10)

1. A method of testing, the method comprising:
receiving test request information input by a first target user for a procedure to be tested of equipment to be tested, wherein the test request information comprises order identification information of an order to which the equipment to be tested belongs and procedure identification information of the procedure to be tested;
acquiring test configuration information associated with the order identification information and the process identification information from a pre-stored associated information set, wherein the associated information in the associated information set comprises the associated order identification information, the process identification information and the test configuration information, and the test configuration information comprises a test instruction;
and executing the test on the equipment to be tested based on the test instruction.
2. The method of claim 1, wherein prior to said obtaining test configuration information associated with said order identification information and said process identification information from a pre-stored set of associated information, said method further comprises:
receiving order description information input by a second target user, wherein the order description information comprises order identification information, process identification information of at least one process and order demand information;
determining an item to be tested for the process according to the order demand information for the process in the at least one process; selecting a test instruction corresponding to the determined item to be tested, and storing the order identification information, the process identification information of the process and the selected test instruction into an associated information set in an associated manner.
3. The method of claim 1, wherein prior to performing testing on the device under test based on the test instructions, further comprising:
if the test record information of the procedure to be tested of the equipment to be tested is stored currently, determining that the procedure to be tested is tested, stopping testing, and outputting information for prompting that the procedure to be tested is tested;
if the test record information aiming at the previous procedure of the equipment to be tested is not stored currently, determining that the previous procedure of the procedure to be tested is not tested, stopping testing, and outputting information for prompting that the previous procedure of the procedure to be tested is not tested.
4. The method of claim 1, wherein the test configuration information further includes expected test results for the test instructions; and
the executing the test to the device to be tested based on the test instruction comprises:
sending the test instruction to the equipment to be tested, and receiving an actual test result returned by the equipment to be tested aiming at the test instruction;
if the actual test result is matched with the expected test result, test record information used for recording test success is stored, and if the actual test result is not matched with the expected test result, information used for prompting test failure is output.
5. The method of claim 1, wherein there are a plurality of test instructions, each test instruction corresponding to an item to be tested; and
the executing the test to the device to be tested based on the test instruction comprises:
sending a plurality of test instructions to the equipment to be tested, and receiving an actual test result returned by the equipment to be tested aiming at each test instruction;
aiming at an item to be tested, if the actual test result of the item to be tested is not matched with the expected test result, outputting information for prompting the test failure of the item to be tested;
and if the actual test result corresponding to each item to be tested is matched with the expected test result, storing test record information for recording the test success.
6. The method according to claim 4 or 5, wherein after storing the test recording information for recording the test success, further comprising: and outputting information for prompting the success of the test.
7. The method of claim 1, wherein said obtaining test configuration information associated with said order identification information and said process identification information from a pre-stored set of associated information comprises:
and acquiring test configuration information associated with the order identification information and the process identification information from an associated information set stored in a target storage server.
8. A test apparatus, the apparatus comprising:
the device comprises an information receiving unit, a processing unit and a processing unit, wherein the information receiving unit is used for receiving test request information input by a first target user aiming at a procedure to be tested of equipment to be tested, and the test request information comprises order identification information of an order to which the equipment to be tested belongs and procedure identification information of the procedure to be tested;
the instruction acquisition unit is used for acquiring test configuration information associated with the order identification information and the process identification information from a pre-stored associated information set, wherein the associated information in the associated information set comprises the associated order identification information, the process identification information and the test configuration information, and the test configuration information comprises a test instruction;
and the test execution unit is used for executing the test on the equipment to be tested based on the test instruction.
9. A server comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the method according to any of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1 to 7.
CN202110297590.9A 2021-03-19 2021-03-19 Test method, device, server and medium Pending CN113132522A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110297590.9A CN113132522A (en) 2021-03-19 2021-03-19 Test method, device, server and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110297590.9A CN113132522A (en) 2021-03-19 2021-03-19 Test method, device, server and medium

Publications (1)

Publication Number Publication Date
CN113132522A true CN113132522A (en) 2021-07-16

Family

ID=76773613

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110297590.9A Pending CN113132522A (en) 2021-03-19 2021-03-19 Test method, device, server and medium

Country Status (1)

Country Link
CN (1) CN113132522A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113411144A (en) * 2021-07-30 2021-09-17 深圳市富创优越科技有限公司 Device testing method, server and medium
CN116708632A (en) * 2022-09-22 2023-09-05 荣耀终端有限公司 Test method and electronic equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170242409A1 (en) * 2016-02-19 2017-08-24 Dspace Digital Signal Processing And Control Engineering Gmbh Method for configuring a test device set up for testing an electronic control unit
CN108470004A (en) * 2018-04-09 2018-08-31 平安普惠企业管理有限公司 Test script generation method, test method, device, equipment and storage medium
CN109918309A (en) * 2019-03-15 2019-06-21 中国电子产品可靠性与环境试验研究所((工业和信息化部电子第五研究所)(中国赛宝实验室)) Electronic product test method, device, system and storage medium
CN110704303A (en) * 2019-09-05 2020-01-17 深圳开源互联网安全技术有限公司 Method and device for acquiring test coverage information
CN112199246A (en) * 2020-10-26 2021-01-08 Tcl通讯(宁波)有限公司 Terminal testing method and device, storage medium and mobile terminal
CN112433944A (en) * 2020-11-25 2021-03-02 平安普惠企业管理有限公司 Service testing method, device, computer equipment and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170242409A1 (en) * 2016-02-19 2017-08-24 Dspace Digital Signal Processing And Control Engineering Gmbh Method for configuring a test device set up for testing an electronic control unit
CN108470004A (en) * 2018-04-09 2018-08-31 平安普惠企业管理有限公司 Test script generation method, test method, device, equipment and storage medium
CN109918309A (en) * 2019-03-15 2019-06-21 中国电子产品可靠性与环境试验研究所((工业和信息化部电子第五研究所)(中国赛宝实验室)) Electronic product test method, device, system and storage medium
CN110704303A (en) * 2019-09-05 2020-01-17 深圳开源互联网安全技术有限公司 Method and device for acquiring test coverage information
CN112199246A (en) * 2020-10-26 2021-01-08 Tcl通讯(宁波)有限公司 Terminal testing method and device, storage medium and mobile terminal
CN112433944A (en) * 2020-11-25 2021-03-02 平安普惠企业管理有限公司 Service testing method, device, computer equipment and storage medium

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113411144A (en) * 2021-07-30 2021-09-17 深圳市富创优越科技有限公司 Device testing method, server and medium
CN116708632A (en) * 2022-09-22 2023-09-05 荣耀终端有限公司 Test method and electronic equipment
CN116708632B (en) * 2022-09-22 2024-04-05 荣耀终端有限公司 Test method and electronic equipment

Similar Documents

Publication Publication Date Title
CN109361562B (en) Automatic testing method based on associated network equipment access
CN110601880B (en) Cloud platform, service processing method, command interface and computer equipment
CN111352902A (en) Log processing method and device, terminal equipment and storage medium
WO2019227641A1 (en) Application testing method, apparatus, terminal device and medium
CN113132522A (en) Test method, device, server and medium
CN112035344A (en) Multi-scenario test method, device, equipment and computer readable storage medium
CN111190551B (en) Redis data migration system, migration method, migration device and terminal
CN110688305B (en) Test environment synchronization method, device, medium and electronic equipment
CN111693294A (en) Vehicle detection method and device, terminal equipment and storage medium
CN110267215B (en) Data detection method, equipment and storage medium
CN113220597B (en) Test method, test device, electronic equipment and storage medium
CN111221727A (en) Test method, test device, electronic equipment and computer readable medium
CN116069838A (en) Data processing method, device, computer equipment and storage medium
CN111339560B (en) Data isolation method, device and system
CN110940874B (en) Calibration method, server and medium for nuclear power station transformer protection device
CN110838929B (en) System error checking method and system error checking device
CN112241362A (en) Test method, test device, server and storage medium
CN115643172A (en) Abnormity detection method, abnormity detection device, terminal equipment and storage medium
CN112261072B (en) Service calling method, device, equipment and storage medium
CN115276844A (en) Communication module testing method and device and electronic equipment
CN110457187B (en) TPC-E test method and test server capable of conveniently running based on backup test data
CN112306040A (en) Vehicle detection method, device, equipment and server
CN115129575A (en) Code coverage result generation method and device
CN117192343B (en) Chip testing method based on auxiliary system, electronic equipment and medium
CN110661792B (en) Service ordered calling method and device, electronic equipment and storage medium

Legal Events

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