CN115686963A - Server compatibility testing method and device - Google Patents

Server compatibility testing method and device Download PDF

Info

Publication number
CN115686963A
CN115686963A CN202211367384.1A CN202211367384A CN115686963A CN 115686963 A CN115686963 A CN 115686963A CN 202211367384 A CN202211367384 A CN 202211367384A CN 115686963 A CN115686963 A CN 115686963A
Authority
CN
China
Prior art keywords
test
result
record
solution
historical
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
CN202211367384.1A
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.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent 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 Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN202211367384.1A priority Critical patent/CN115686963A/en
Publication of CN115686963A publication Critical patent/CN115686963A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The invention provides a method and a device for testing the compatibility of a server, which can match the current test condition with the test condition of a historical test record when an abnormal return result is encountered during the execution of a test task, determine a solution for processing the abnormal return result which is the same as the current return result in the historical test record under the condition of executing the same test case, and automatically execute the solution to solve the problem of the current abnormal return result.

Description

Server compatibility testing method and device
Technical Field
The embodiment of the invention relates to the technical field of server testing, in particular to a method and a device for testing server compatibility, electronic equipment and a computer readable storage medium.
Background
The server compatibility test is mainly to perform adaptation test on all component lists supported by the server, for example: memory, hard disk, network card, etc. The comprehensiveness, effectiveness and accuracy of the test are crucial to the stability and expandability of the server product after the product faces the market. Due to different requirements on the server, the evaluation criteria for the test results are different.
In the related art, the problems occurring in the testing process of the server need to be actively solved by testing personnel, and after the server is tested each time, the obtained testing results need to be manually corrected.
When the mode meets the test problem, a solution cannot be quickly found, the test progress is slowed, the workload of testers is increased by means of artificial correction, and the working efficiency is reduced.
Disclosure of Invention
The invention provides a method and a device for testing server compatibility, electronic equipment and a computer readable storage medium, and aims to solve the problems that problems occurring in the server testing process in the prior art cannot be processed in time and testing results need to be manually corrected.
In a first aspect, the present invention discloses a method for testing server compatibility, including:
acquiring a test task, wherein the test task comprises a test condition of a server to be tested;
detecting the test environment and configuration data of the server to be tested based on the test task, and acquiring an abnormal return result;
carrying out similarity matching on the current test condition and the test condition of the historical test record, and determining a target record in the historical test record, wherein the target record comprises a corresponding relation between an abnormal return result and a solution and a corresponding relation between second test data and a second test result;
processing the abnormal return result according to the solution until the test environment and the configuration data of the server to be tested accord with the test conditions, completing the test and outputting first test data;
and calibrating the first test result of the first test data according to the corresponding relation between the second test data and the second test result, and taking the calibrated first test result as a final test result.
In a second aspect, an embodiment of the present invention provides a device for testing server compatibility, including:
the first acquisition module is used for acquiring a test task, wherein the test task comprises test conditions of a server to be tested;
the second acquisition module is used for detecting the test environment and the configuration data of the server to be tested based on the test task and acquiring an abnormal return result;
the matching module is used for carrying out similarity matching on the current test condition and the test condition of the historical test record and determining a target record in the historical test record, wherein the target record comprises a corresponding relation between an abnormal return result and a solution and a corresponding relation between second test data and a second test result;
the exception handling module is used for handling the exception return result according to the solution until the test environment and the configuration data of the server to be tested accord with the test conditions, completing the test and outputting first test data;
a calibration module for calibrating the first test result of the first test data according to the corresponding relationship between the second test data and the second test result, and taking the calibrated first test result as the final test result
In a third aspect, an embodiment of the present invention further provides an electronic device, including a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the method of the first aspect.
In a fourth aspect, the embodiments of the present invention also provide a computer-readable storage medium, where instructions of the computer-readable storage medium, when executed by a processor of an electronic device, enable the electronic device to perform the method of the first aspect.
In the embodiment of the invention, when a test task is executed and an abnormal return result is met, the current test condition can be matched with the test condition of the historical test record, a solution for processing the abnormal return result which is the same as the current test record under the condition of executing the same test case (the test case is the premise of testing, and the test task executes the test according to the test case) is determined, the solution is automatically executed to solve the problem of the current abnormal return result, the automatic and rapid processing of the current abnormal return result can be realized through the similarity matching with the historical test record, the test efficiency of the server is improved, the workload of testers is reduced, and after the test is finished, the current test result is automatically calibrated according to the historical test record, so that the test result meets the actual requirement.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
Drawings
Fig. 1 is a flowchart illustrating steps of a method for testing server compatibility according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating steps of another method for testing server compatibility according to an embodiment of the present invention;
FIG. 3 is a flowchart of analyzing the result of a test task according to an embodiment of the present invention;
fig. 4 is a block diagram of a device for testing server compatibility according to an embodiment of the present invention;
FIG. 5 is a logic block diagram of an electronic device provided by an embodiment of the invention;
fig. 6 is a logic block diagram of another electronic device according to an embodiment of the present invention.
Detailed Description
Exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the invention are shown in the drawings, it should be understood that the invention may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the invention to those skilled in the art.
Fig. 1 is a flowchart of steps of a method for testing server compatibility according to an embodiment of the present invention, where as shown in fig. 1, the method may include:
step 101, a test task is obtained, wherein the test task comprises a test condition of a server to be tested.
In the embodiment of the invention, when a server is tested, and test items such as a novel component configured by the server, a model platform of the server, an operating system version of the server and the like are introduced, a test engineer usually performs a universal type selection test and an access test, and after determining each configuration of the server, executes a test task for each test item based on actual requirements, verifies whether the test items are compatible, and meets the actual requirements. Finally, determining the test conditions which are compatible with the test items and need to be met.
Specifically, the test for the server may be performed based on a test platform, where the test platform obtains a test task for each server to be tested, and the test task may include: the method comprises the following steps of participating in the contents of specific items in actual production of the test, stages of the test, test item configuration, test cases, labels of servers to be tested, configuration items capable of being customized, preset calibration thresholds and the like. And determining the test conditions of the server to be tested according to the parameters and the configuration determined by the test task. After the test platform acquires the test task for each server to be tested, the test platform can automatically start the test on the server to be tested.
And 102, detecting the test environment and configuration data of the server to be tested based on the test task, and acquiring an abnormal return result.
In this embodiment of the present invention, the test platform may detect the test environment and the configuration data of the server to be tested based on the content determined by the test task, for example, the test environment may include: whether the test item can be identified, whether the test interface can be used, whether the configuration of the test item meets the requirements, and the like, and the configuration data can comprise: whether the tested installation tool is installed and available, whether the installation driver is assembled, whether the test mode meets the preset requirement, whether the firmware version meets the preset requirement, and the like, for example: the physical configuration of the current server to be tested can be identified to be compared with the test item configuration in the test task, whether the test interface is available or not is verified, whether the test item configuration meets the preset requirement or not is verified, if the test item configuration does not meet the preset requirement, an abnormal return result which is about that the test item configuration does not meet the preset requirement is returned, for example, the abnormal return result can be: test items are not identifiable, interfaces are not available, firmware versions do not match, etc. And after the abnormal return result is correctly processed, the next detection of the test environment or the configuration data is continuously carried out.
And 103, performing similarity matching on the current test condition and the test condition of the historical test record, and determining a target record in the historical test record, wherein the target record comprises a corresponding relation between the abnormal return result and the solution and a corresponding relation between the second test data and the second test result.
In the embodiment of the invention, after an abnormal return result is encountered, the similarity matching can be automatically carried out on the current test condition and the test condition of the historical test record, and the historical test record can be a test record which is stored after the test of the server which is carried out before the current test and has similar configuration with the current server to be tested is completed. Specifically, for the processing of the current abnormal return result, the corresponding solution may be referred to in the historical test record when the same test case is tested under similar test conditions and when the same abnormal return result occurs, so as to solve the currently encountered abnormal return result. For example: similar test conditions may include: and testing the conditions such as the same items, the similarity of the configuration of the test items, the similarity of the configuration of the server to be tested and the like in the same test scene and the same stage, and obtaining a solution for solving the current abnormal return result by matching the current test condition with the test condition which accords with the similarity value in the historical test record.
Further, the target record further includes a corresponding relationship between second test data and a second test result, where the second test data is a corresponding relationship between test data obtained under similar test conditions and a final test result corresponding to the test data in the historical test record. In an actual test, after the test on the server is finished, the test result corresponding to the test data is often required to be given according to different requirements, so that the second test result corresponding to the second test record can be a result which is obtained after artificial correction and meets the actual requirement.
And 104, processing the abnormal return result according to the solution until the test environment and the configuration data of the server to be tested meet the test conditions, completing the test and outputting first test data.
In the embodiment of the present invention, after determining a solution corresponding to an abnormal return result according to similarity matching of test conditions, the solution may be automatically executed to process a current abnormal return result, and after processing of a server to be tested is completed, the test process is continued until a test environment and configuration data of the server to be tested conform to the test conditions, and after a test case successfully completes a test, first test data is output, where the first test data may be data output after the server to be tested executes the test case under the current test conditions, for example: and after the current test case is executed, the occupation or processing speed of the hard disk and the memory and the like are calculated.
And 105, calibrating a first test result of the first test data according to the corresponding relation between the second test data and the second test result, and taking the calibrated first test result as a final test result.
Specifically, after the first test data is obtained, the first test result corresponding to the first test data may be modified based on the historical test record, for example: if, in the historical test record, for a certain test item, the performance of the first test data is better than that of the second test data, but the test result corresponding to the first test data is that the test item does not pass, and the test result corresponding to the second test data is that the test item passes, the first test result corresponding to the first test data can be calibrated to be that the test item passes, and the accuracy of outputting the test result is improved by the way of automatically calibrating the test result.
In summary, in the embodiment of the present invention, when an abnormal return result is encountered during execution of a test task, a current test condition may be matched with a test condition of a historical test record, a solution for processing the abnormal return result that is the same as that of the current test record under the condition of executing the same test case is determined, and the solution is automatically executed to solve the problem of the current abnormal return result.
Fig. 2 is a flowchart of steps of another method for testing server compatibility according to an embodiment of the present invention, and as shown in fig. 2, the method may include:
step 201, a test task is obtained, where the test task is used to determine a test condition of a server to be tested.
This step can refer to step 101, and is not described herein.
Step 202, based on the test task, detecting the test environment and configuration data of the server to be tested, and obtaining an abnormal return result.
This step can refer to step 102, and is not described herein.
Step 203, performing similarity matching between the current test condition and the test condition of the historical test record to obtain a first similarity value.
In the embodiment of the invention, when the similarity matching is carried out on the current test condition and the test condition of the historical test record, the first similarity value can be obtained according to the similarity matching result, the size of the first similarity value can represent whether the current test condition is matched with the test condition of the historical test record, and if the similarity is matched with the current test condition, the problem of the current abnormal return result can be solved by referring to the solution recorded by the historical test record.
Step 204, determining at least one historical test record with the first similarity value larger than a first preset threshold as a target record, wherein the target record comprises a corresponding relation between an abnormal return result and a solution and a corresponding relation between second test data and a second test result.
In the embodiment of the present invention, the first preset threshold may be a self-defined threshold of the similarity, for example, the threshold may be set to 90%, when the current test record is matched with the historical test conditions, there may be a plurality of historical test records having a similarity value greater than or equal to 90%, at this time, the historical test record meeting the first preset threshold may be used as the target record, the meeting of the first target threshold indicates that the test conditions are similar, and the solution of the exception return result in the test process and the test result may be used as a reference.
And step 205, processing the exception return result according to the solution until the test environment and the configuration data of the server to be tested meet the test conditions, completing the test and outputting first test data.
This step can refer to step 104, and is not described herein.
Optionally, the method further comprises: sorting the target records according to the size of the similarity value; step 205 specifically includes:
sub-step 2051, matching the exception return result with the target record, and determining at least one target solution.
In the embodiment of the present invention, after the target record is determined, the target records may be further sorted according to the size of the similarity value, the first highest similarity value may be sorted before the second lowest similarity value may be sorted after the first lowest similarity value is determined, after the exception return result is matched with the target record, at least one solution may be obtained, and after the solution is obtained, the exception return result may be solved by autonomously attempting to perform resolution.
Further, the same exception solution may have different causes, so that the corresponding solutions may also have multiple types, and when executing the solution, different solutions may be tried in sequence to solve the problem of exception return result.
Sub-step 2052, executing the target solution according to the sequence of the target record, so as to process the abnormal return result.
In the embodiment of the present invention, when executing the determined at least one target solution, the target solutions corresponding to the target records with a large similarity value may be executed preferentially according to the sequence of the target records corresponding to the target solution, so as to ensure that the abnormal return result may be solved quickly, and improve the efficiency of solving the abnormal return result.
Optionally, step 205 may specifically further include:
sub-step 2053 determines if the solution belongs to an auto-execute solution.
In the embodiment of the present invention, the determined target solution may be a solution that cannot be automatically completed by the test platform, and therefore, when the target solution is executed, execution may be first attempted, and if the target solution cannot be automatically executed, execution of the solution is completed by intervention of a tester.
Sub-step 2054 of automatically executing the step of the solution if the solution belongs to an auto-execute solution.
In the embodiment of the present invention, if the current solution is a solution that can be autonomously completed by the test platform, the test platform autonomously completes the solution without notifying a tester, for example, the exception returned result is that the installation tool cannot be installed, and the corresponding solution is to modify the installation parameters, and at this time, the test platform autonomously completes the solution.
And a substep 2055 of issuing the solution to a tester terminal if the solution does not belong to the automatic execution scheme.
In the embodiment of the invention, if the solution does not belong to the automatic execution scheme, the solution is issued to the tester terminal, for example, if the abnormal return result is that the installation tool cannot be installed, the corresponding solution is the replacement installation package, and because the network limitation of the test platform cannot directly download the corresponding installation package from the internet, the solution can be issued to the tester terminal, and the tester terminal intervenes to complete the solution of the abnormal return result.
And step 206, calibrating a first test result of the first test data according to the corresponding relation between the second test data and the second test result, and taking the calibrated first test result as a final test result.
Optionally, step 206 may specifically include:
sub-step 2061, comparing the first test data with a second preset threshold value to obtain a first test result, wherein the first test result comprises pass or fail.
In the embodiment of the present invention, after obtaining the first test data, the first test data may be compared with a second preset threshold to obtain a first test result, where the second preset threshold may be a standard requirement value of a general compatibility test, or may be a reference value determined when the component is shipped from a factory, for example, if the first test data includes a hard disk parameter, the obtained hard disk parameter is an occupancy rate of 50%, and a value specified by the second preset threshold is less than 40%, then the first test result is failed at this time. That is, for a component, a hard disk, the compatibility requirement is not satisfied under the current test conditions.
In substep 2062, if the value of the first test data is greater than the value of the second test data, and the first test result is failed and the second test result is passed, the first test result is corrected to the second test result as the final test result.
In the embodiment of the present invention, after the first test data and the first test result are obtained, whether a test record of a similar scene exists in the historical test records or not may be determined according to similarity matching of the test conditions, and if a test record of a similar scene exists, the second test data and the second test result recorded in the historical test records may be used as reference records for calibrating the test result of the current test. For example: if the hard disk parameters corresponding to the second test record in the historical test record are occupancy rates of 50%, and the second test result is passed, the test result of the component hard disk tested at this time can be calibrated to be passed. Through the similarity matching with the historical test record, the intelligent automatic calibration of the test result is realized, the accuracy of the output test result is improved, the test efficiency is improved, and meanwhile, the adaptability adjustment can be performed on the second preset threshold value according to the current calibration result, so that the setting of the second preset threshold value is more scientific.
Optionally, the method further comprises:
step 207, obtaining the test condition of each test task, and the exception return result and the corresponding solution in the test process as a first historical test record.
In the embodiment of the invention, if the current abnormal return result is matched and solved according to the similarity between the current test condition and the historical test condition, a calibration library stored with the historical test record needs to be constructed, so that the test condition of the current test, different test cases, abnormal return results corresponding to different test stages and records of corresponding solutions are stored when the server is tested each time, the solutions can be searched according to the similarity matching when the server is tested subsequently, the abnormal return results are automatically solved, the test efficiency is improved, the historical test records are continuously expanded, the probability of solving the abnormal return results according to the historical test records is improved, and the overall test efficiency is further improved.
Step 208, the test data and the test result of each test task are obtained as a second historical test record.
In the embodiment of the invention, the finally obtained test data and test results of each test task can also be used as reference data for outputting the test results in the subsequent test of the server. Because different projects, use scenes or different companies have different performance requirements on the server, after the server is tested, for the test without special requirements, the test result is output according to the standard of the general compatibility test, and for the test with special requirements, the test result is required to be output according to the specified standard. Therefore, after the server to be tested is tested, the output test result can be calibrated by referring to the test result of the historical test record, so that the test result meets the requirement different from the universal standard.
Step 209, saving the first historical test record and the second historical test record each time as a historical test record.
In the embodiment of the present invention, the first historical test record and the second historical test record may be stored as one historical test record, and during a subsequent test, a corresponding solution may be obtained or a final test result may be calibrated by matching the similarity of the test conditions of the historical test records.
Optionally, the method further comprises:
and step 210, detecting whether the abnormal return result is processed completely to obtain a processing result.
In the embodiment of the present invention, after the solution is executed, whether the previous abnormal return result exists in the current server may be detected again to determine whether the problem of the abnormal return result is solved normally.
Step 211, if the processing result is completed, saving the current test condition, the exception return result and the corresponding solution in the historical test record.
In the embodiment of the invention, if the abnormal return result is solved after the secondary detection, the solution can solve the abnormality under the current test condition and the test case, at the moment, the data of the current test condition, the solution and the like can be stored as the historical test record for later test reference, and the historical test record can cover more test problems by continuously expanding the historical test record, so that the success rate of the solution for solving the problem of the abnormal return result according to the historical test record is higher, and the test efficiency is improved.
And step 212, if the processing result is unfinished, quitting the testing process, and sending the abnormal return result to the tester terminal.
In the embodiment of the invention, if the abnormal return result is not normally solved after the solution is executed, the current test platform cannot solve the abnormal return result, at the moment, the abnormal return result can be sent to the test personnel terminal, the test personnel can adjust the test scheme or other solutions, the test platform automatically solves the problem, the test efficiency can be improved, the test personnel can be timely informed, and the efficient completion of the test process is ensured.
Referring to fig. 3, fig. 3 is a diagram of a test process of a test task and a full flow step of calibration of a test result, after a test is started according to the test task, a test environment check of a server to be tested is performed first, a physical configuration of the server to be tested is identified, and is compared with a configuration of a test item in the test task, whether a test interface is available or not is verified, whether an operating system version is identifiable and communicated or not is verified, for a server component, a same series of components of the same manufacturer can execute the same configuration of the test item, a test is performed, if the configuration of the test item is not detected, a solution is obtained by matching a test condition in a history test record according to a screening condition preferentially according to an attribute of the server to be tested, the solution is executed according to a similarity of the test condition from high to low, if a problem cannot be solved or the solution cannot be automatically executed, a forced test flow is exited is notified to a tester to solve the problem of the server to be tested, the test item is classified into a corresponding test condition coverage range, and after the solution is completed, a next test is executed.
After the test environment inspection is passed, entering a test of configuration data, such as detecting and installing a test tool, installing component drive, switching a test mode, refreshing a firmware version, if the test is not passed, returning an abnormal return result according to an exit code, performing similarity matching with the test condition of the historical test record, performing independent attempt to solve the problem according to a corresponding solution, if the problem can be solved, namely the test item passes the test, classifying the test item into a corresponding test condition coverage range, if the problem cannot be solved, issuing the abnormal return result to a test personnel terminal, informing the test personnel of solving the problem of the server to be tested, and after the solution is completed, executing the next step.
After the test of test environment and configuration data is completed, the components of the server to be tested are identified to be tested according to the test mode, the components meeting the test requirements are screened, each component executes the test operation of corresponding bandwidth, frequency and speed according to the test case requirements, test data are output according to time intervals, the test data are analyzed to obtain the test result, in addition, the monitoring is started in the test process, if non-test problems exist, the method comprises the following steps: and informing a tester in time of disk dropping, power failure, starting failure and the like, and responding to the self-defined input of the tester to confirm whether to continuously execute the test task. After the test is completed, the test results are collected, and the analysis of different branches is performed according to the test mode, for example: calculating the difference between the proportion of the actual test data value in the theoretical value and the judgment standard according to the test times to generate a curve graph, screening the expected results of items, client lines, component series, operating system versions, component interpolation and the like, if the expected results meet the requirements, calculating various statistical values of the curve graph, and comparing the statistical values with the expected values of the test cases to obtain a first test result; if a mixed insertion scene exists, filtering out test components meeting test conditions, grouping according to positions, control types, component series and the like, setting a bottleneck value according to a controller of each group, comparing an actual performance value with a theoretical value of a specification, and comparing the actual performance value with an expected value of a test case to obtain a first test result. And calibrating the first test result according to the historical test record, or reserving for a tester to confirm the final test result, so that an execution scheme of the compatibility test of the test item under each project can be obtained. The abnormal return result is automatically solved in the whole testing process, the testing result is automatically calibrated, the testing efficiency of the compatibility testing of the server is improved, the reliability of the testing result is improved, and the workload of testing personnel is reduced.
In summary, in the embodiment of the present invention, when an abnormal return result is encountered during execution of a test task, a current test condition may be matched with a test condition of a historical test record, a solution for processing the abnormal return result that is the same as the current abnormal return result in the case of executing the same test case is determined, and the solution is automatically executed to solve the problem of the current abnormal return result.
Fig. 4 is a block diagram of a server compatibility testing apparatus according to an embodiment of the present invention, where the apparatus 30 includes:
a first obtaining module 301, configured to obtain a test task, where the test task includes a test condition of a server to be tested;
a second obtaining module 302, configured to detect, based on the test task, a test environment and configuration data of the server to be tested, and obtain an abnormal return result;
a matching module 303, configured to perform similarity matching on the current test condition and the test condition of the historical test record, and determine a target record in the historical test record, where the target record includes a correspondence between the exception return result and the solution and a correspondence between the second test data and the second test result;
an exception handling module 304, configured to handle the exception return result according to the solution until the test environment and the configuration data of the server to be tested meet the test condition, complete the test, and output first test data;
the calibration module 305 calibrates the first test result of the first test data according to the corresponding relationship between the second test data and the second test result, and takes the calibrated first test result as the final test result.
Optionally, the matching module 303 comprises:
the first matching submodule is used for carrying out similarity matching on the current test condition and the test condition of the historical test record to obtain a first similarity value;
and the target record determining module is used for determining at least one historical test record with the first similarity value larger than a first preset threshold value as a target record.
Optionally, the apparatus further comprises:
the sorting module is used for sorting the target records according to the size of the similarity value;
the exception handling module 304 specifically includes:
the second matching submodule is used for matching the abnormal return result with the target record and determining at least one target solution;
and the execution submodule is used for executing the target solution according to the sequence of the target record so as to process the abnormal return result.
Optionally, the apparatus further comprises:
the third acquisition module is used for acquiring the test conditions of each test task, abnormal return results in the test process and corresponding solutions as first historical test records;
the fourth acquisition module is used for acquiring the test data and the test result of each test task as a second historical test record;
and the historical test record construction module is used for storing the first historical test record and the second historical test record as a historical test record each time.
Optionally, the calibration module comprises:
the comparison sub-module is used for comparing the first test data with a second preset threshold value to obtain a first test result, and the first test result comprises a pass or a fail;
and the calibration submodule is used for correcting the first test result into a second test result as a final test result if the value of the first test data is greater than that of the second test data, the first test result is failed, and the second test result is passed.
Optionally, the apparatus further comprises:
the detection module is used for detecting whether the abnormal return result is processed completely to obtain a processing result;
the first processing module is used for saving the current test condition, the abnormal return result and the corresponding solution in the historical test record if the processing result is finished;
and the second processing module is used for quitting the test process and sending the abnormal return result to the tester terminal if the processing result is incomplete.
Optionally, the exception handling module 304 further includes:
the judging module is used for judging whether the solution belongs to an automatic execution scheme or not;
a third processing module, configured to automatically execute the step of the solution if the solution belongs to an automatic execution scheme;
and the fourth processing module is used for issuing the solution to the tester terminal if the solution does not belong to the automatic execution scheme.
In summary, in the embodiment of the present invention, when an abnormal return result is encountered during execution of a test task, a current test condition may be matched with a test condition of a historical test record, a solution for processing the abnormal return result that is the same as the current abnormal return result in the case of executing the same test case is determined, and the solution is automatically executed to solve the problem of the current abnormal return result.
Fig. 5 is a block diagram illustrating an electronic device 600 according to an example embodiment. For example, the electronic device 600 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
Referring to fig. 5, electronic device 600 may include one or more of the following components: processing component 602, memory 604, power component 606, multimedia component 608, audio component 610, input/output (I/O) interface 612, sensor component 614, and communication component 616.
The processing component 602 generally controls overall operation of the electronic device 600, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 602 may include one or more processors 620 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 602 can include one or more modules that facilitate interaction between the processing component 602 and other components. For example, the processing component 602 can include a multimedia module to facilitate interaction between the multimedia component 608 and the processing component 602.
The memory 604 is used to store various types of data to support operations at the electronic device 600. Examples of such data include instructions for any application or method operating on the electronic device 600, contact data, phonebook data, messages, pictures, multimedia, and so forth. The memory 604 may be implemented by any type or combination of volatile and non-volatile storage devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
The power supply component 606 provides power to the various components of the electronic device 600. The power components 606 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the electronic device 600.
The multimedia component 608 includes a screen that provides an output interface between the electronic device 600 and a user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense demarcations of a touch or slide action, but also detect a duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 608 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the electronic device 600 is in an operation mode, such as a photographing mode or a multimedia mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 610 is used to output and/or input audio signals. For example, the audio component 610 may include a Microphone (MIC) for receiving external audio signals when the electronic device 600 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signal may further be stored in the memory 604 or transmitted via the communication component 616. In some embodiments, audio component 610 further includes a speaker for outputting audio signals.
The I/O interface 612 provides an interface between the processing component 602 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor component 614 includes one or more sensors for providing various aspects of status assessment for the electronic device 600. For example, the sensor component 614 may detect an open/closed state of the electronic device 600, the relative positioning of components, such as a display and keypad of the electronic device 600, the sensor component 614 may also detect a change in position of the electronic device 600 or a component of the electronic device 600, the presence or absence of user contact with the electronic device 600, orientation or acceleration/deceleration of the electronic device 600, and a change in temperature of the electronic device 600. The sensor assembly 614 may include a proximity sensor configured to detect the presence of a nearby object in the absence of any physical contact. The sensor assembly 614 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 614 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 616 is operable to facilitate wired or wireless communication between the electronic device 600 and other devices. The electronic device 600 may access a wireless network based on a communication standard, such as WiFi, an operator network (such as 2G, 3G, 4G, or 5G), or a combination thereof. In an exemplary embodiment, the communication component 616 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 616 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, ultra Wideband (UWB) technology, bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the electronic device 600 may be implemented by one or more Application Specific Integrated Circuits (ASICs), digital Signal Processors (DSPs), digital Signal Processing Devices (DSPDs), programmable Logic Devices (PLDs), field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for implementing one of the server compatibility testing methods provided by the embodiments of the present application.
In an exemplary embodiment, a non-transitory computer readable storage medium comprising instructions, such as the memory 604 comprising instructions, executable by the processor 620 of the electronic device 600 to perform the above-described method is also provided. For example, the non-transitory storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
Fig. 6 is a block diagram of an electronic device 700 shown in accordance with an example embodiment. For example, the electronic device 700 may be provided as a server. Referring to fig. 6, electronic device 700 includes a processing component 722 that further includes one or more processors, and memory resources, represented by memory 732, for storing instructions, such as applications, that are executable by processing component 722. The application programs stored in memory 732 may include one or more modules that each correspond to a set of instructions. In addition, the processing component 722 is configured to execute the instructions to execute a server compatibility testing method provided by the embodiment of the application.
The electronic device 700 may also include a power component 726 configured to perform power management of the electronic device 700, a wired or wireless network interface 750 configured to connect the electronic device 700 to a network, and an input/output (I/O) interface 758. The electronic device 700 may operate based on an operating system stored in memory 732, such as Windows Server, mac OS XTM, unixTM, linuxTM, freeBSDTM, or the like.
An embodiment of the present application further provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, the method for testing the compatibility of the server is implemented.
Other embodiments of the present application will be apparent to those skilled in the art from consideration of the specification and practice of the application disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the application and including such departures from the present disclosure as come within known or customary practice in the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the application being indicated by the following claims.
It will be understood that the present application is not limited to the precise arrangements that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the application is limited only by the appended claims.

Claims (10)

1. A method for testing server compatibility, the method comprising:
acquiring a test task, wherein the test task comprises a test condition of a server to be tested;
detecting the test environment and configuration data of the server to be tested based on the test task, and acquiring an abnormal return result;
performing similarity matching on the current test condition and the test condition of the historical test record, and determining a target record in the historical test record, wherein the target record comprises a corresponding relation between an abnormal return result and a solution and a corresponding relation between second test data and a second test result;
processing the abnormal return result according to the solution until the test environment and the configuration data of the server to be tested accord with the test conditions, completing the test and outputting first test data;
and calibrating the first test result of the first test data according to the corresponding relation between the second test data and the second test result, and taking the calibrated first test result as a final test result.
2. The method of claim 1, wherein the similarity matching of the current test condition with the test condition of the historical test record to determine the target record in the historical test record comprises:
carrying out similarity matching on the current test condition and the test condition of the historical test record to obtain a first similarity value;
and determining at least one historical test record with the first similarity value larger than a first preset threshold value as a target record.
3. The method of claim 2, further comprising:
sorting the target records according to the size of the similarity value;
the processing the exception return result according to the solution comprises:
matching the abnormal return result with the target record to determine at least one target solution;
and executing the target solution according to the sequence of the target record so as to process the abnormal return result.
4. The method of claim 1, further comprising:
acquiring the test condition of each test task, and an abnormal return result and a corresponding solution in the test process as a first historical test record;
acquiring test data and test results of each test task as a second historical test record;
and saving the first historical test record and the second historical test record as a historical test record each time.
5. The method according to claim 1, wherein the calibrating the first test result of the first test data according to the corresponding relationship between the second test data and the second test result, and taking the calibrated first test result as a final test result includes:
comparing the first test data with a second preset threshold value to obtain a first test result, wherein the first test result comprises pass or fail;
and if the value of the first test data is larger than that of the second test data, the first test result is failed, and the second test result is passed, correcting the first test result into a second test result to serve as a final test result.
6. The method of claim 1, wherein after processing the exception return according to the solution, the method further comprises:
detecting whether the abnormal return result is processed completely to obtain a processing result;
if the processing result is finished, saving the current test condition, the abnormal return result and the corresponding solution in the historical test record;
and if the processing result is unfinished, quitting the test process, and sending the abnormal return result to the tester terminal.
7. The method of claim 1, wherein processing the exception return according to the solution comprises:
judging whether the solution belongs to an automatic execution scheme or not;
a step of automatically executing the solution if the solution belongs to an automatic execution scheme;
and if the solution does not belong to the automatic execution scheme, issuing the solution to a tester terminal.
8. A server compatibility testing apparatus, the apparatus comprising:
the first acquisition module is used for acquiring a test task, and the test task comprises test conditions of a server to be tested;
the second acquisition module is used for detecting the test environment and the configuration data of the server to be tested based on the test task and acquiring an abnormal return result;
the matching module is used for carrying out similarity matching on the current test condition and the test condition of the historical test record and determining a target record in the historical test record, wherein the target record comprises a corresponding relation between an abnormal return result and a solution and a corresponding relation between second test data and a second test result;
the exception handling module is used for handling the exception return result according to the solution until the test environment and the configuration data of the server to be tested accord with the test conditions, completing the test and outputting first test data;
and the calibration module is used for calibrating the first test result of the first test data according to the corresponding relation between the second test data and the second test result, and taking the calibrated first test result as a final test result.
9. An electronic device, comprising: a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the method of any one of claims 1 to 7.
10. A computer-readable storage medium, wherein instructions in the computer-readable storage medium, when executed by a processor of an electronic device, enable the electronic device to perform the method of any of claims 1-7.
CN202211367384.1A 2022-11-02 2022-11-02 Server compatibility testing method and device Pending CN115686963A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211367384.1A CN115686963A (en) 2022-11-02 2022-11-02 Server compatibility testing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211367384.1A CN115686963A (en) 2022-11-02 2022-11-02 Server compatibility testing method and device

Publications (1)

Publication Number Publication Date
CN115686963A true CN115686963A (en) 2023-02-03

Family

ID=85047672

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211367384.1A Pending CN115686963A (en) 2022-11-02 2022-11-02 Server compatibility testing method and device

Country Status (1)

Country Link
CN (1) CN115686963A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116705137A (en) * 2023-05-08 2023-09-05 深圳市晶存科技有限公司 Test mode switching method for solid state disk
CN116743603A (en) * 2023-08-16 2023-09-12 广州海晟科技有限公司 Safe operation and maintenance method and system for private cloud platform information system

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116705137A (en) * 2023-05-08 2023-09-05 深圳市晶存科技有限公司 Test mode switching method for solid state disk
CN116705137B (en) * 2023-05-08 2024-04-02 深圳市晶存科技有限公司 Test mode switching method for solid state disk
CN116743603A (en) * 2023-08-16 2023-09-12 广州海晟科技有限公司 Safe operation and maintenance method and system for private cloud platform information system
CN116743603B (en) * 2023-08-16 2023-10-20 广州海晟科技有限公司 Safe operation and maintenance method and system for private cloud platform information system

Similar Documents

Publication Publication Date Title
CN115686963A (en) Server compatibility testing method and device
US10241857B2 (en) Method, apparatus and system for automatically repairing device
CN111078446B (en) Fault information acquisition method and device, electronic equipment and storage medium
CN110162442B (en) System performance bottleneck positioning method and system
US8972793B2 (en) Apparatus and method for analyzing error generation in mobile terminal
CN115150929B (en) Method and device for adjusting antenna power and readable storage medium
CN108365982A (en) Unit exception adjustment method, device, equipment and storage medium
CN116069612A (en) Abnormality positioning method and device and electronic equipment
CN111913850A (en) Data anomaly detection method, device, equipment and storage medium
CN111428806A (en) Image tag determination method and device, electronic equipment and storage medium
CN112395192A (en) Information processing method and device
CN111611470A (en) Data processing method and device and electronic equipment
CN115904883A (en) RPA flow execution visualization abnormity monitoring method, device and medium
CN109981406B (en) Test method, device, system and computer readable storage medium
CN115408277A (en) Interface testing method and device
CN111782508A (en) Automatic test method, device, electronic equipment and storage medium
CN116303103B (en) Evaluation set generation method, device and equipment of automatic driving scene library
CN108132882A (en) Information acquisition method, device and electronic equipment
CN112733141B (en) Information processing method and device
CN112363917B (en) Application program debugging exception processing method and device, electronic equipment and medium
CN112068975B (en) Information processing method and device
CN118193348A (en) Version detection method, device, equipment, medium and program of application program
CN114139804A (en) Task duration determining method and device, electronic equipment and storage medium
CN114115196A (en) Method, device, equipment and storage medium for detecting equipment reliability
CN116069457A (en) Application program clamping and positioning method and device and electronic 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