CN115118646A - Data interaction method and device for switch test system and electronic equipment - Google Patents

Data interaction method and device for switch test system and electronic equipment Download PDF

Info

Publication number
CN115118646A
CN115118646A CN202210762453.2A CN202210762453A CN115118646A CN 115118646 A CN115118646 A CN 115118646A CN 202210762453 A CN202210762453 A CN 202210762453A CN 115118646 A CN115118646 A CN 115118646A
Authority
CN
China
Prior art keywords
test
server
database
result
switch
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.)
Granted
Application number
CN202210762453.2A
Other languages
Chinese (zh)
Other versions
CN115118646B (en
Inventor
苏旭
陈翔
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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 CN202210762453.2A priority Critical patent/CN115118646B/en
Publication of CN115118646A publication Critical patent/CN115118646A/en
Application granted granted Critical
Publication of CN115118646B publication Critical patent/CN115118646B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2455Query execution
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/248Presentation of query results
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computational Linguistics (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Environmental & Geological Engineering (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention provides a data interaction method for a switch test system, which comprises the following steps: after receiving a test task determined by a user, a client generates a test process according to the test task and sends the test process to a server; after receiving the test process, the server disconnects a first link with the client and connects a second link with the database; the server side starts to check and test the switch to be tested according to the test process and the second link, generates test process information and uploads the test process information to the database, wherein the test process information comprises a check result and a test result; the method comprises the steps that a client accesses a database and traverses a database table in the database, wherein the database table comprises test process information corresponding to at least one test process; and the client generates a test result page according to the test process information. Through the interaction among the client, the server and the database, the server can store the switch test data while operating at the breakpoint, and the safety is improved.

Description

Data interaction method and device for switch test system and electronic equipment
Technical Field
The invention relates to the field of switch testing, in particular to a data interaction method and device for a switch testing system and electronic equipment.
Background
A switch is a network device for the forwarding of electrical (optical) signals. The test system can provide an exclusive electric signal channel for any two network nodes accessed into the switch, the test system is required to test the switch in the aspects of performance and the like after the switch is produced, and the test system is easy to cause the front-end interface to be stuck and blocked when carrying out long-time or complex rear-end test so as to influence the test result. If a direct data interaction mode is adopted in a test task of actually more than three days, data repair cannot be carried out once the front-end equipment is crashed.
Disclosure of Invention
Therefore, in order to solve the above technical problems, it is necessary to provide a method and an apparatus for exchanging data of a switch test system, which can improve security and support breakpoint operation of a server, and an electronic device.
In a first aspect, a data interaction method for a switch test system is provided, where the method includes:
after receiving a test task determined by a user, a client generates a test process according to the test task and sends the test process to a server;
after receiving the test process, the server disconnects a first link with the client and connects a second link with a database;
the server side starts to check and test the switch to be tested according to the test process and the second link, generates test process information and uploads the test process information to the database, wherein the test process information comprises a check result and a test result;
the client accesses the database and traverses a database table in the database, wherein the database table comprises test process information corresponding to at least one test process;
and the client generates a test result page according to the test process information.
In one embodiment, the step of the server starting to check and test the switch to be tested according to the test process and generating test process information to upload to the database includes:
the server side determines the switch to be tested and a test case according to the test process;
and the server side starts to check the working state of the switch to be tested according to the test case, generates a check result and uploads the check result to the database, wherein the check result comprises checking, abnormal check and normal check.
In one embodiment, the step of the server starting to check the working state of the switch to be tested according to the test case and generating a check result to upload to the database includes:
when the server generates the inspection result of normal inspection, the server starts to test the switch to be tested according to the test case and generates a test result to be uploaded to the database, wherein the test result comprises test case progress, test success and test exception;
and when the server generates the abnormal inspection result, stopping the inspection by the server and setting an inspection specific value corresponding to the test case in the inspection result.
In one embodiment, the step of starting, by the server, the test of the switch to be tested according to the test case and generating a test result to be uploaded to the database includes:
and when the server generates the test result with the abnormal test, the server stops the test and sets the test specific value corresponding to the test case in the test result.
In one embodiment, the generating, by the client, a test result page according to the test progress information includes:
and when the client detects that the test process information contains the inspection specific value or the test specific value, generating an alarm popup page according to the inspection specific value or the test specific value.
In one embodiment, the generating, by the client, a test result page according to the test progress information includes:
and when the client detects that the test process information is updated, updating the test result page according to the updated test process information and continuously traversing the database table.
In one embodiment, after the client generates the test result page according to the test progress information, the method further includes:
and when the server detects that the test results in all the test process information are successful, the server reconnects the first link.
In one embodiment, the switch test system adopts the data interaction method of the switch test system as claimed in any one of claims 1 to 7.
In another aspect, a data interaction apparatus for a switch test system is provided, the apparatus includes:
the process generation module is used for generating a test process according to the test task and sending the test process to the server after the client receives the test task determined by the user;
the processing module is used for disconnecting a first link with the client and connecting a second link with a database after the server receives the test process;
the information generation module is used for the server side to start to check and test the to-be-tested switch according to the test process and the second link, generate test process information and upload the test process information to the database, wherein the test process information comprises a check result and a test result;
the access module is used for the client side to access the database and traverse a database table in the database, wherein the database table comprises test process information corresponding to at least one test process;
and the page generating module is used for generating a test result page by the client according to the test process information.
In one embodiment, the step of the information generation module starting to check and test the switch to be tested according to the test process and generating test process information to upload to the database includes:
the server side determines the switch to be tested and a test case according to the test process;
and the server side starts to check the working state of the switch to be tested according to the test case, generates a check result and uploads the check result to the database, wherein the check result comprises checking, abnormal checking and normal checking.
In one embodiment, the step of starting, by the information generation module, checking the operating state of the switch to be tested according to the test case, generating a check result, and uploading the check result to the database includes:
when the server generates the inspection result of normal inspection, the server starts to test the switch to be tested according to the test case and generates a test result to be uploaded to the database, wherein the test result comprises test case progress, test success and test exception;
and when the server generates the abnormal inspection result, stopping the inspection by the server and setting an inspection specific value corresponding to the test case in the inspection result.
In one embodiment, the step of starting testing the switch to be tested and generating a test result to upload to the database by the information generation module according to the test case includes:
and when the server generates the test result of the test exception, the server stops the test and sets a test specific value corresponding to the test case in the test result.
In one embodiment, the generating, by the page generating module, a test result page according to the test progress information includes:
and when the client detects that the test process information contains the inspection specific value or the test specific value, generating an alarm popup page according to the inspection specific value or the test specific value.
In one embodiment, the generating, by the page generating module, a test result page according to the test progress information includes:
and when the client detects that the test process information is updated, updating the test result page according to the updated test process information and continuously traversing the database table.
In one embodiment, after the page generating module generates the test result page according to the test process information, the method further includes:
and when the server detects that the test results in all the test process information are successful, the server reconnects the first link.
In another aspect, an electronic device is provided, which includes a memory, a processor, and a computer program stored on the memory and executable on the processor, and the processor executes the computer program to implement the following steps:
after receiving a test task determined by a user, a client generates a test process according to the test task and sends the test process to a server;
after receiving the test process, the server disconnects a first link with the client and connects a second link with a database;
the server side starts to check and test the switch to be tested according to the test process and the second link, generates test process information and uploads the test process information to the database, wherein the test process information comprises a check result and a test result;
the client accesses the database and traverses a database table in the database, wherein the database table comprises test process information corresponding to at least one test process;
and the client generates a test result page according to the database table.
In one embodiment, the processor, when executing the computer program, performs the steps of:
the step that the server side starts to check and test the switch to be tested according to the test process and generates test process information to be uploaded to the database comprises the following steps:
the server determines the switch to be tested and a test case according to the test process;
and the server side starts to check the working state of the switch to be tested according to the test case, generates a check result and uploads the check result to the database, wherein the check result comprises checking, abnormal checking and normal checking.
In one embodiment, the processor, when executing the computer program, performs the steps of:
the step that the server side starts to check the working state of the switch to be tested according to the test case, generates a check result and uploads the check result to the database comprises the following steps:
when the server generates a check result of normal check, the server starts to test the switch to be tested according to the test case and generates a test result to be uploaded to the database, wherein the test result comprises test case progress, test success and test exception;
and when the server generates the abnormal inspection result, stopping the inspection by the server and setting an inspection specific value corresponding to the test case in the inspection result.
In one embodiment, the processor, when executing the computer program, performs the steps of:
the step that the server starts to test the switch to be tested according to the test case and generates a test result to be uploaded to the database comprises the following steps:
and when the server generates the test result with the abnormal test, the server stops the test and sets the test specific value corresponding to the test case in the test result.
In one embodiment, the processor, when executing the computer program, performs the steps of:
the step of generating a test result page by the client according to the test process information comprises:
and when the client detects that the test process information contains the inspection specific value or the test specific value, generating an alarm popup page according to the inspection specific value or the test specific value.
In one embodiment, the processor, when executing the computer program, performs the steps of:
the step of generating a test result page by the client according to the test process information comprises:
and when the client detects that the test process information is updated, updating the test result page according to the updated test process information and continuously traversing the database table.
In one embodiment, the processor, when executing the computer program, performs the steps of:
the client generates a test result page according to the test process information and then comprises the following steps:
and when the server detects that the test results in all the test process information are successful, the server reconnects the first link.
After a client receives a test task determined by a user, a test process is generated according to the test task and sent to a server; after receiving the test process, the server disconnects a first link with the client and connects a second link with a database; the server side starts to check and test the switch to be tested according to the test process and the second link, generates test process information and uploads the test process information to the database, wherein the test process information comprises a check result and a test result; the client accesses the database and traverses a database table in the database, wherein the database table comprises test process information corresponding to at least one test process; and the client generates a test result page according to the test process information. Through the interaction among the client, the server and the database, the client and the server are not directly connected when the system tests the switch, so that the server can run at a breakpoint, the safety of the switch during testing is improved, and the data loss caused by faults and the like is avoided by storing the testing process information through the database; and setting a specific value in the checking result or the testing result to enable the client to generate an alarm popup page on the ui interface when the client detects the related specific value, and timely prompting a specific fault during testing of the private branch exchange.
Drawings
FIG. 1 is an application topology diagram of a data interaction method of a switch test system;
FIG. 2 is a schematic diagram illustrating steps of a data interaction method for a switch test system;
FIG. 3 is a test result page effect diagram generated by the switch test system;
FIG. 4 is a schematic structural diagram of a data interaction device of a switch test system;
fig. 5 is an internal structural diagram of a computer device in an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The method for data interaction of the switch test system can be applied to an application topological graph of the method for data interaction of the switch test system shown in fig. 1, the server and the client are connected through the first link before a test task starts, the server disconnects the first link and connects the second link with the database after the test task starts, and the server reconnects the client after all the test tasks end.
In one embodiment, as shown in fig. 2, the present invention provides a data interaction method for a switch test system, where the method includes:
after receiving a test task determined by a user, a client generates a test process according to the test task and sends the test process to a server;
after receiving the test process, the server disconnects a first link with the client and connects a second link with a database;
the server side starts to check and test the switch to be tested according to the test process and the second link, generates test process information and uploads the test process information to the database, wherein the test process information comprises a check result and a test result;
the client accesses the database and traverses a database table in the database, wherein the database table comprises test process information corresponding to at least one test process;
and the client generates a test result page according to the test process information.
Specifically, the client includes ui (User Interface), the User determines a test task, that is, a code of the switch to be tested, such as S186, S203, and the like, through ui, the present invention can support a maximum of 20 × 100 switches to perform testing simultaneously, where the switch to be tested may be one or multiple, the client generates one or more test processes including a switch code according to one or more switch test tasks determined by the User and sends the test processes to the server device, for example, the switch of the code S186 to be tested is set as a test process No. 1, where the test process No. 1 may be displayed on ui as switch No. 1 > check log (task log) > check result > test result, and the User may check test process information, that is, the check result and the test result, by clicking a "check log" button. The server side immediately disconnects the first link with the client side after receiving the test processes sent by the client side, and reconnects the first link only after all the test processes are finished, namely after a user confirms at least one test task on ui and clicks a 'test start' button, the server side receives the test processes generated by the client side, and at the moment, if the client continues to confirm a new test task on ui, the server side does not receive the new test processes, and the server side reconnects the client side to receive the new test processes after all the previous test processes are tested successfully. When the server tests the switch, the client may first store the generated new test process, and send the new test process through the first link after waiting for the server to reconnect.
In one embodiment, the step of the server starting to check and test the switch to be tested according to the test process and generating test process information to upload to the database includes:
the server side determines the switch to be tested and a test case according to the test process;
and the server side starts to check the working state of the switch to be tested according to the test case, generates a check result and uploads the check result to the database, wherein the check result comprises checking, abnormal checking and normal checking.
Specifically, before the switch is determined, a user is required to connect a server with the switch through a serial port line, and then the server determines the switch to be tested and a test case according to a test process containing a switch code, wherein the test case comprises a specific method for testing the switch and a related test program, such as throughput test, the throughput is one of the most important indexes for measuring the performance of the switch, and the level of the throughput determines the maximum rate of sending and receiving frames by the switch without frame loss. During testing, the server side can calculate the speed under the full load state, so that a user can conveniently judge the throughput performance of the switch; as another example, a delay test, the indicator can determine when a packet is passing through the switch. The delay, if fifo (First in and First out), refers to the time interval from when the First bit of the received frame reaches the input port to when the First bit of the sent frame reaches the output port. The transmission rate is set to the rate obtained in the throughput test at the start of the test, frames are transmitted in specified intervals, and a time stamp frame is set on a specific frame. The time stamp of the marked frame is recorded both at the time of transmission and at the time of reception, and the difference between the two gives the delay time. Other switch test cases include backpressure tests, line-end blocking tests, full-mesh tests, and the like, which are not repeated herein. After the test cases are determined, the working states of the corresponding switches are checked according to different test cases, for example, when the switch No. 1 needs to perform throughput testing, the server side will first check the working states of each port in the switch No. 1 and generate corresponding check results to the database. For example, the number 1 switch has 24 ports in total, and sends the inspection result of "inspection in progress" to the database while inspecting the 24 ports, and sends the inspection result of "inspection in progress" once every time the port is inspected, and the inspection result includes a log (task log) generated when the port is inspected every time the port is inspected. When no exception exists in 24 ports in the switch No. 1, the server sends the check result of "check normal" to the database, and the test process No. 1 in the database table will contain the check results of 23 times of "checking" and one time of "check normal".
In one embodiment, the step of the server starting to check the working state of the switch to be tested according to the test case and generating a check result to upload to the database includes:
when the server generates the inspection result of normal inspection, the server starts to test the switch to be tested according to the test case and generates a test result to be uploaded to the database, wherein the test result comprises test case progress, test success and test exception;
and when the server generates the abnormal inspection result, stopping the inspection by the server and setting an inspection specific value corresponding to the test case in the inspection result.
Specifically, as described above, when it is found that the port No. 15 being checked has an exception during the throughput test, for example, the port does not respond or responds abnormally, the server immediately stops the test process corresponding to the switch (the rest of the test processes are not affected and continue to be executed) and generates a check result of "checking the exception". The checking result includes a checking specific value, because the port is checked to have an exception, the corresponding checking specific value is "port number + port of current switch + exception port", that is, at this time, the test process No. 1 in the database table includes 14 checking results of "checking" and "checking exception" 1 time, where the "checking exception" result of the 1 time also includes the generated checking specific value "switch No. 1 + port No. 15 + port".
In one embodiment, the step of starting, by the server, the test of the switch to be tested according to the test case and generating a test result to be uploaded to the database includes:
and when the server generates the test result with the abnormal test, the server stops the test and sets the test specific value corresponding to the test case in the test result.
Specifically, as described above, after checking whether the switch is abnormal in the test process No. 1 (performing throughput test on the switch encoded as S186), the server may start testing the switch No. 1 through the related procedure of the throughput test (the server and the switch send and receive data frames to each other, and the server calculates the maximum rate at which the switch sends and receives frames without frame loss). In the testing process, once a testing exception, such as a switch frame loss when a throughput test is found, the server side immediately stops the test and uploads a testing result of the testing exception, wherein the testing result comprises a testing specific value (the number 1 switch + the throughput test) and a task log generated when the switch is tested.
In one embodiment, the generating, by the client, a test result page according to the test progress information includes:
and when the client detects that the test process information contains the inspection specific value or the test specific value, generating an alarm popup page according to the inspection specific value or the test specific value.
Specifically, when the client detects that the test process information includes the inspection specific value or the test specific value, for example, it detects that the test result in the test process 1 includes "switch No. 1 + throughput test" and the test result at this time is abnormal, the client generates an alarm popup page on ui according to the test process information, the alarm popup page includes a field "switch No. 1 throughput test abnormal" and the field can be marked with red or other striking colors when generating a specific popup page, so as to remind the user to inspect and repair the fault of the switch No. 1.
In one embodiment, the generating, by the client, a test result page according to the test progress information includes:
and when the client detects that the test process information is updated, updating the test result page according to the updated test process information and continuously traversing the database table.
Specifically, when it is assumed that there are 50 ongoing test processes in the database table, the client continuously traverses the test process information corresponding to 1 to 50 test processes in the database table, and generates a test result page on the UI according to the traversed test process information, where a specific test result page effect diagram may be as shown in fig. 3, where 1 represents an inspection result of a working state, and 2 represents a test result of the switch. When the test process information traversing to one of the test processes is updated, an updated check result or test result is added in time, for example, if the test result traversing to the test process No. 30 is successful, the client displays '30 test success' on ui, and the user can check specific updated contents by clicking the check log.
In one embodiment, after the client generates the test result page according to the test progress information, the method further includes:
and when the server detects that the test results in all the test process information are successful, the server reconnects the first link.
Specifically, when all the test processes in the test result page are tested successfully, the server reconnects the first link, that is, only after the switches in the same batch are tested, the client can revisit and set the server, including checking whether the server fails, adding a new test program, and the like. If the test process has the abnormal inspection or abnormal test result, stopping the test and continuing the test after the user repairs the abnormal test.
In one embodiment, the switch test system employs the switch test system data interaction method of any one of claims 1 to 7.
Specifically, the switch testing system comprising the client, the server and the database can exist in an industrial personal computer, the first link and the second link can be connected through a network cable or a network and the like, the client at least comprises a ui interface, so that a user can conveniently check a test result in real time, and the server at least comprises a test program corresponding to a plurality of test cases, so that a plurality of switches can conveniently execute a test process simultaneously.
The scheme of this application has following beneficial effect:
1) interaction between the server and the client is realized through data storage, test progress and the like of the database, breakpoint operation is supported, the server is not affected by external factors such as the client and the like when testing the switch, safety is improved, and test data loss caused by faults is avoided;
2) the client generates an alarm popup page on the ui interface when detecting the relevant specific value by setting the specific value in the checking result or the testing result, and the client is reminded of specific faults in the test in time.
It should be understood that, although the steps in the flowchart of fig. 2 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not limited to being performed in the exact order illustrated and, unless explicitly stated herein, may be performed in other orders. Moreover, at least a portion of the steps in fig. 2 may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performance of the sub-steps or stages is not necessarily sequential, but may be performed in turn or alternately with other steps or at least a portion of the sub-steps or stages of other steps.
In one embodiment, a switch test system data interaction apparatus is provided as shown in fig. 4, the apparatus includes:
the process generation module 401 is configured to, after receiving a test task determined by a user, a client generate a test process according to the test task and send the test process to a server;
a processing module 402, configured to disconnect a first link with the client and connect a second link with a database after the server receives the test procedure;
an information generating module 403, configured to start, by the server, checking and testing the switch to be tested according to the test process and the second link, generate test process information, and upload the test process information to the database, where the test process information includes a check result and a test result;
an accessing module 404, configured to access the database and traverse a database table in the database by the client, where the database table includes test process information corresponding to at least one test process;
and a page generating module 405, configured to generate a test result page according to the test process information by the client.
In one embodiment, the step of the information generation module starting to check and test the switch to be tested according to the test process and generating test process information to upload to the database includes:
the server side determines the switch to be tested and a test case according to the test process;
and the server side starts to check the working state of the switch to be tested according to the test case, generates a check result and uploads the check result to the database, wherein the check result comprises checking, abnormal checking and normal checking.
In one embodiment, the step of starting to check the working state of the switch to be tested and generate a check result to upload the check result to the database by the information generation module according to the test case includes:
when the server generates the inspection result of normal inspection, the server starts to test the switch to be tested according to the test case and generates a test result to be uploaded to the database, wherein the test result comprises test case progress, test success and test exception;
and when the server generates the abnormal inspection result, stopping the inspection by the server and setting an inspection specific value corresponding to the test case in the inspection result.
In one embodiment, the step of starting to test the switch to be tested and generate a test result to be uploaded to the database by the information generation module according to the test case includes:
and when the server generates the test result with the abnormal test, the server stops the test and sets the test specific value corresponding to the test case in the test result.
In one embodiment, the generating, by the page generating module, a test result page according to the test progress information includes:
and when the client detects that the test process information contains the inspection specific value or the test specific value, generating an alarm popup page according to the inspection specific value or the test specific value.
In one embodiment, the generating, by the page generating module, a test result page according to the test progress information includes:
and when the client detects that the test process information is updated, updating the test result page according to the updated test process information and continuously traversing the database table.
In one embodiment, after the page generating module generates the test result page according to the test process information, the method further includes:
and when the server detects that the test results in all the test process information are successful, the server reconnects the first link.
For specific definition of the data interaction device of the switch test system, reference may be made to the above definition of the data interaction method of the switch test system, and details are not described herein again. All or part of each module in the data interaction device of the switch test system can be realized by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as shown in fig. 5. The computer device includes a processor, a memory, a network interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement an alert information processing method. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like.
Those skilled in the art will appreciate that the architecture shown in fig. 5 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, an electronic device is provided, comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, the processor implementing the following steps when executing the computer program:
after receiving a test task determined by a user, a client generates a test process according to the test task and sends the test process to a server;
after receiving the test process, the server disconnects a first link with the client and connects a second link with a database;
the server side starts to check and test the switch to be tested according to the test process and the second link, generates test process information and uploads the test process information to the database, wherein the test process information comprises a check result and a test result;
the client accesses the database and traverses a database table in the database, wherein the database table comprises test process information corresponding to at least one test process;
and the client generates a test result page according to the database table.
In one embodiment, the processor, when executing the computer program, performs the steps of:
the step that the server side starts to check and test the switch to be tested according to the test process and generates test process information to be uploaded to the database comprises the following steps:
the server determines the switch to be tested and a test case according to the test process;
and the server side starts to check the working state of the switch to be tested according to the test case, generates a check result and uploads the check result to the database, wherein the check result comprises checking, abnormal checking and normal checking.
In one embodiment, the processor, when executing the computer program, performs the steps of:
the step that the server side starts to check the working state of the switch to be tested according to the test case, generates a check result and uploads the check result to the database comprises the following steps:
when the server generates the inspection result of normal inspection, the server starts to test the switch to be tested according to the test case and generates a test result to be uploaded to the database, wherein the test result comprises test case progress, test success and test exception;
and when the server generates the abnormal inspection result, stopping the inspection by the server and setting an inspection specific value corresponding to the test case in the inspection result.
In one embodiment, the processor, when executing the computer program, performs the steps of:
the step that the server starts to test the switch to be tested according to the test case and generates a test result to be uploaded to the database comprises the following steps:
and when the server generates the test result with the abnormal test, the server stops the test and sets the test specific value corresponding to the test case in the test result.
In one embodiment, the processor, when executing the computer program, performs the steps of:
the step of generating a test result page by the client according to the test process information comprises:
and when the client detects that the test process information contains the inspection specific value or the test specific value, generating an alarm popup page according to the inspection specific value or the test specific value.
In one embodiment, the processor, when executing the computer program, performs the steps of:
the step of generating a test result page by the client according to the test process information comprises:
and when the client detects that the test process information is updated, updating the test result page according to the updated test process information and continuously traversing the database table.
In one embodiment, the processor, when executing the computer program, performs the steps of:
the client generates a test result page according to the test process information and then comprises the following steps:
and when the server detects that the test results in all the test process information are successful, the server reconnects the first link.
In one embodiment, a computer-readable storage medium is provided, having stored thereon a computer program which, when executed by a processor, performs the steps of:
after receiving a test task determined by a user, a client generates a test process according to the test task and sends the test process to a server;
after receiving the test process, the server disconnects a first link with the client and connects a second link with a database;
the server side starts to check and test the switch to be tested according to the test process and the second link, generates test process information and uploads the test process information to the database, wherein the test process information comprises a check result and a test result;
the client accesses the database and traverses a database table in the database, wherein the database table comprises test process information corresponding to at least one test process;
and the client generates a test result page according to the database table.
In one embodiment, the computer program when executed by a processor implements the steps of:
the step that the server side starts to check and test the switch to be tested according to the test process, generates test process information and uploads the test process information to the database comprises the following steps:
the server side determines the switch to be tested and a test case according to the test process;
and the server side starts to check the working state of the switch to be tested according to the test case, generates a check result and uploads the check result to the database, wherein the check result comprises checking, abnormal checking and normal checking.
In one embodiment, the computer program when executed by a processor performs the steps of:
the step that the server side starts to check the working state of the switch to be tested according to the test case, generates a check result and uploads the check result to the database comprises the following steps:
when the server generates a check result of normal check, the server starts to test the switch to be tested according to the test case and generates a test result to be uploaded to the database, wherein the test result comprises test case progress, test success and test exception;
and when the server generates the abnormal inspection result, stopping the inspection by the server and setting an inspection specific value corresponding to the test case in the inspection result.
In one embodiment, the computer program when executed by a processor implements the steps of:
the step that the server starts to test the switch to be tested according to the test case and generates a test result to be uploaded to the database comprises the following steps:
and when the server generates the test result with the abnormal test, the server stops the test and sets the test specific value corresponding to the test case in the test result.
In one embodiment, the computer program when executed by a processor implements the steps of:
the step of generating a test result page by the client according to the test process information comprises:
and when the client detects that the test process information contains the inspection specific value or the test specific value, generating an alarm popup page according to the inspection specific value or the test specific value.
In one embodiment, the computer program when executed by a processor implements the steps of:
the step of generating a test result page by the client according to the test process information comprises the following steps:
and when the client detects that the test process information is updated, updating the test result page according to the updated test process information and continuously traversing the database table.
In one embodiment, the computer program when executed by a processor implements the steps of:
the client generates a test result page according to the test process information and then comprises the following steps:
and when the server detects that the test results in all the test process information are successful, the server reconnects the first link.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A data interaction method for a switch test system is characterized by comprising the following steps:
after receiving a test task determined by a user, a client generates a test process according to the test task and sends the test process to a server;
after receiving the test process, the server disconnects a first link with the client and connects a second link with a database;
the server side starts to check and test the switch to be tested according to the test process and the second link, generates test process information and uploads the test process information to the database, wherein the test process information comprises a check result and a test result;
the client accesses the database and traverses a database table in the database, wherein the database table comprises test process information corresponding to at least one test process;
and the client generates a test result page according to the test process information.
2. The method of claim 1, wherein the server side starting to check and test the switch to be tested according to the test process and generating test process information to upload to the database comprises:
the server side determines the switch to be tested and a test case according to the test process;
and the server side starts to check the working state of the switch to be tested according to the test case, generates a check result and uploads the check result to the database, wherein the check result comprises checking, abnormal checking and normal checking.
3. The method of claim 2, wherein the step of the server starting to check the operating status of the switch to be tested according to the test case and generating a check result to upload to the database comprises:
when the server generates the inspection result of normal inspection, the server starts to test the switch to be tested according to the test case and generates a test result to be uploaded to the database, wherein the test result comprises test case progress, test success and test exception;
and when the server generates the abnormal inspection result, stopping the inspection by the server and setting an inspection specific value corresponding to the test case in the inspection result.
4. The method of claim 3, wherein the server starting to test the switch to be tested according to the test case and generating a test result to upload to the database comprises:
and when the server generates the test result with the abnormal test, the server stops the test and sets the test specific value corresponding to the test case in the test result.
5. The method of claim 4, wherein the client generating a test result page according to the test progress information comprises:
and when the client detects that the test process information contains the inspection specific value or the test specific value, generating an alarm popup page according to the inspection specific value or the test specific value.
6. The method of claim 1, wherein the client generating a test result page according to the test progress information comprises:
and when the client detects that the test process information is updated, updating the test result page according to the updated test process information and continuously traversing the database table.
7. The method of claim 6, wherein the step of the client generating a test result page according to the test progress information further comprises:
and when the server detects that the test results in all the test process information are successful, the server reconnects the first link.
8. A switch test system, characterized in that the switch test system employs the switch test system data interaction method of any one of claims 1 to 7.
9. A switch test system data interaction apparatus, the apparatus comprising:
the process generation module is used for generating a test process according to the test task and sending the test process to the server after the client receives the test task determined by the user;
the processing module is used for disconnecting a first link with the client and connecting a second link with a database after the server receives the test process;
the information generation module is used for the server side to start to check and test the switch to be tested according to the test process and the second link, generate test process information and upload the test process information to the database, wherein the test process information comprises a check result and a test result;
the access module is used for the client side to access the database and traverse a database table in the database, wherein the database table comprises test process information corresponding to at least one test process;
and the page generation module is used for generating a test result page by the client according to the test process information.
10. An electronic device, comprising:
one or more processors; and memory associated with the one or more processors for storing program instructions which, when read and executed by the one or more processors, perform the method of any of claims 1-7.
CN202210762453.2A 2022-06-29 2022-06-29 Data interaction method and device for switch test system and electronic equipment Active CN115118646B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210762453.2A CN115118646B (en) 2022-06-29 2022-06-29 Data interaction method and device for switch test system and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210762453.2A CN115118646B (en) 2022-06-29 2022-06-29 Data interaction method and device for switch test system and electronic equipment

Publications (2)

Publication Number Publication Date
CN115118646A true CN115118646A (en) 2022-09-27
CN115118646B CN115118646B (en) 2023-07-14

Family

ID=83329877

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210762453.2A Active CN115118646B (en) 2022-06-29 2022-06-29 Data interaction method and device for switch test system and electronic equipment

Country Status (1)

Country Link
CN (1) CN115118646B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117149638A (en) * 2023-09-01 2023-12-01 镁佳(北京)科技有限公司 UI (user interface) automatic testing method and device, computer equipment and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110399293A (en) * 2019-06-21 2019-11-01 平安科技(深圳)有限公司 System detection method, device, computer equipment and storage medium
CN112882883A (en) * 2021-02-25 2021-06-01 中国工商银行股份有限公司 Shutdown test method and apparatus, electronic device, and computer-readable storage medium

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110399293A (en) * 2019-06-21 2019-11-01 平安科技(深圳)有限公司 System detection method, device, computer equipment and storage medium
CN112882883A (en) * 2021-02-25 2021-06-01 中国工商银行股份有限公司 Shutdown test method and apparatus, electronic device, and computer-readable storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117149638A (en) * 2023-09-01 2023-12-01 镁佳(北京)科技有限公司 UI (user interface) automatic testing method and device, computer equipment and storage medium

Also Published As

Publication number Publication date
CN115118646B (en) 2023-07-14

Similar Documents

Publication Publication Date Title
US7954161B1 (en) Mechanism for characterizing soft failures in systems under attack
CN104796240A (en) Fuzz testing system for stateful network protocol
CN113572576B (en) Sampling data verification method and device, relay protection device and storage medium
CN115118646A (en) Data interaction method and device for switch test system and electronic equipment
CN110618853B (en) Detection method, device and equipment for zombie container
CN107391036B (en) Method and system for accessing stored VPD information
CN113220584A (en) Page testing method and device, computer equipment and readable storage medium
CN111176986B (en) Thread script debugging method and device, computer equipment and storage medium
CN103312554B (en) A kind of method of testing of multiserver interactive service and system
CN115328814B (en) Fault injection method, device, equipment and storage medium based on mirror pair
CN108052455A (en) A kind of software testing system and its test method
CN116166536A (en) Test method, test device, electronic equipment and storage medium
CN110381035A (en) Network security test method, device, computer equipment and readable storage medium storing program for executing
CN116048959A (en) Website testing method, device, equipment and storage medium
KR101626581B1 (en) Test method for error applition of portable communication terminal
CN113487186A (en) Client fault drilling method, device, computer system and readable storage medium
CN110879757B (en) Restarting method and device for abnormal operation of client and computer equipment
CN113297090B (en) System test method, device, computer equipment and storage medium
CN115150254B (en) PCIe link fault detection method, detection device, equipment and medium
CN115391227A (en) Fault testing method, device, equipment and medium based on distributed system
CN114595144A (en) Drive test method and device and computer equipment
CN116340099A (en) Method and device for acquiring fault information of central processing unit
CN116846734A (en) Sensor fault injection method, device, server and storage medium
CN115548836A (en) Fault confirmation method and device, excimer laser and electronic equipment
CN117707112A (en) Fault diagnosis method, system, 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
GR01 Patent grant
GR01 Patent grant