CN107678917B - Test machine automation management method, device, equipment and storage medium - Google Patents

Test machine automation management method, device, equipment and storage medium Download PDF

Info

Publication number
CN107678917B
CN107678917B CN201710857294.3A CN201710857294A CN107678917B CN 107678917 B CN107678917 B CN 107678917B CN 201710857294 A CN201710857294 A CN 201710857294A CN 107678917 B CN107678917 B CN 107678917B
Authority
CN
China
Prior art keywords
priority
alarm information
test machine
level code
user
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710857294.3A
Other languages
Chinese (zh)
Other versions
CN107678917A (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.)
Ping An Technology Shenzhen Co Ltd
Original Assignee
Ping An Technology Shenzhen 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 Ping An Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Priority to CN201710857294.3A priority Critical patent/CN107678917B/en
Priority to PCT/CN2017/112310 priority patent/WO2019056545A1/en
Publication of CN107678917A publication Critical patent/CN107678917A/en
Application granted granted Critical
Publication of CN107678917B publication Critical patent/CN107678917B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/3006Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system is distributed, e.g. networked systems, clusters, multiprocessor systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/302Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a software system
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3051Monitoring arrangements for monitoring the configuration of the computing system or of the computing system component, e.g. monitoring the presence of processing resources, peripherals, I/O links, software programs
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3065Monitoring arrangements determined by the means or processing involved in reporting the monitored data
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/62Protecting access to data via a platform, e.g. using keys or access control rules
    • G06F21/6218Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2221/00Indexing scheme relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F2221/21Indexing scheme relating to G06F21/00 and subgroups addressing additional information or applications relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F2221/2141Access rights, e.g. capability lists, access control lists, access tables, access matrices

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Quality & Reliability (AREA)
  • Computing Systems (AREA)
  • Computer Hardware Design (AREA)
  • Mathematical Physics (AREA)
  • Databases & Information Systems (AREA)
  • Health & Medical Sciences (AREA)
  • Bioethics (AREA)
  • General Health & Medical Sciences (AREA)
  • Computer Security & Cryptography (AREA)
  • Software Systems (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention relates to the technical field of automatic testing, and provides a method, a device, equipment and a storage medium for automatic management of a testing machine, wherein the method for automatic management of the testing machine comprises the following steps: when detecting that the test machine abnormally sends alarm information, acquiring a level code corresponding to the alarm information; acquiring a processing priority according to the level code, and switching to an automatic response processing flow under the corresponding level code according to the processing priority; and when the alarm information is still detected to exist when the automatic response processing flow is finished, sending a field processing prompt. Before the test is executed, the abnormal condition which possibly occurs in the test process of the test machine is detected in advance, and the abnormal condition is processed in advance according to the alarm information, so that the unified management of the test machine is realized, and the problem that the test machine cannot be processed in time to cause abnormal test when the test machine has a problem is avoided.

Description

Test machine automation management method, device, equipment and storage medium
Technical Field
The invention relates to the field of automatic testing, in particular to a method, a device, equipment and a storage medium for automatic management of a testing machine.
Background
In an automated testing system, database files for testing are stored in a plurality of testing machines, which are generally in a management-lacking state and do not have a platform for unified management. The testing machine may be taken by some testing personnel to perform other automatic tests, or do some other things unrelated to the tests, so that the testing environment of the testing machine changes, for example, the problems of incorrect environment variables or insufficient directory authority and the like occur, which causes various problems when performing the corresponding automatic tests.
Disclosure of Invention
In view of the above problems, the present invention provides a method, an apparatus, a device and a storage medium for automatic management of a testing machine, which aims to perform a rapid diagnosis process on an abnormality of the automatic testing machine and ensure a normal operation of an automatic test.
The present invention is achieved in this way, and a first aspect of the present invention provides an automated management method for a test machine, including:
setting a level code according to the abnormality of a testing machine, and acquiring the level code in alarm information when detecting that the testing machine abnormally sends out the alarm information;
acquiring a processing priority according to the level code, and switching to an automatic response processing flow under the corresponding level code according to the processing priority;
when the alarm information is still detected to exist when the automatic response processing flow is executed, sending a field processing prompt;
the abnormality of the test machine comprises shutdown of the test machine, network disconnection, change of environment configuration information, insufficient storage space and use of the test machine, wherein the processing priority of a level code corresponding to alarm information with abnormality of shutdown of the test machine or network disconnection is a first priority, the processing priority of a level code corresponding to alarm information with abnormality of configuration information change or insufficient storage space is a second priority, the processing priority of a level code corresponding to alarm information with abnormality of use of the test machine is a third priority, and the levels of the first priority, the second priority and the third priority are sequentially decreased from high to low;
when detecting that the test machine generates abnormal alarm information, acquiring a level code corresponding to the alarm information, and the method further comprises the following steps:
acquiring user authority according to the login name of the user;
the method for acquiring the user authority according to the login name of the user further comprises the following steps:
when detecting that the operation request of the user exceeds the corresponding user right, applying for allowing an unauthorized operation request in the operation request to a server;
when the override operation request passes, changing the user authority to include the function of passing the override operation request;
before the user authority is obtained according to the login name of the user, the method comprises the following steps:
acquiring a login name requirement parameter instruction, and generating a static configuration table through an authority configuration tool; the static configuration table comprises a file object identifier and a file authorization authority;
storing the static configuration table to a node of a network file system corresponding to a file object identifier in the static configuration table; each node of the network file system comprises a network file operation interface and a static configuration table;
the test machine judges whether an operation object belongs to a local node or a remote node according to the received file operation request;
if the operation object is a local node, the test machine searches the corresponding file object identifier according to the matching algorithm of the operation object in the local static configuration table. The matching algorithm comprises a BF algorithm and a shift-and algorithm.
A second aspect of the present invention provides an automatic management device for a testing machine, including:
the level code setting module is used for setting a level code according to the abnormity of the tester;
the level code acquisition module is used for acquiring a level code in the alarm information when detecting that the test machine abnormally sends the alarm information;
the automatic response processing module is used for acquiring the processing priority according to the level code and switching to an automatic response processing flow under the corresponding level code according to the processing priority;
the field processing prompting module is used for sending out a field processing prompt when the alarm information is still detected when the automatic response processing flow is executed;
the abnormality of the test machine comprises shutdown of the test machine, network disconnection, change of environment configuration information, insufficient storage space and use of the test machine, wherein the processing priority of a level code corresponding to alarm information with abnormality of shutdown of the test machine or network disconnection is a first priority, the processing priority of a level code corresponding to alarm information with abnormality of configuration information change or insufficient storage space is a second priority, the processing priority of a level code corresponding to alarm information with abnormality of use of the test machine is a third priority, and the levels of the first priority, the second priority and the third priority are sequentially decreased from high to low;
the automatic management device of the testing machine further comprises a user authority acquisition module and an override operation module;
the user authority acquisition module acquires user authority according to the login name of the user;
when detecting that the operation request of the user exceeds the corresponding user authority, the override operation module applies the override operation request in the permission operation request to the server;
when the override operation request passes, the override operation module changes the user authority to include the function passing the override operation request;
the user right obtaining module is further configured to:
acquiring a login name requirement parameter instruction, and generating a static configuration table through an authority configuration tool; the static configuration table comprises a file object identifier and a file authorization authority;
storing the static configuration table to a node of a network file system corresponding to a file object identifier in the static configuration table; each node of the network file system comprises a network file operation interface and a static configuration table;
the test machine judges whether an operation object belongs to a local node or a remote node according to the received file operation request;
if the operation object is a local node, the test machine searches the corresponding file object identifier according to the matching algorithm of the operation object in the local static configuration table. The matching algorithm comprises a BF algorithm and a shift-and algorithm.
A third aspect of the present invention provides a terminal device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, the processor implementing the steps of the method according to the first aspect of the present invention when executing the computer program.
A fourth aspect of the invention provides a computer readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of the method according to the first aspect of the invention.
The embodiment of the invention provides a test machine automatic management method, a device, equipment and a storage medium, when detecting that a test machine abnormally sends alarm information, a level code corresponding to the alarm information is obtained, a processing priority is obtained according to the level code, an automatic response processing flow under the corresponding level code is switched to according to the processing priority, before the test is executed, abnormal conditions possibly occurring in the test process of the test machine are detected in advance, the abnormality is processed in advance according to the alarm information, the unified management of the test machine is realized, and the defect that the test result is inaccurate due to the fact that the test environment is changed when the test machine is used for other purposes is avoided.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
FIG. 1 is a flow chart of a method for automated test machine management according to an embodiment of the present invention;
FIG. 2 is a flow chart of a method for automated test machine management according to another embodiment of the present invention;
FIG. 3 is a flow chart of a method for automated test machine management according to another embodiment of the invention;
FIG. 4 is a flowchart illustrating a step S22 in a test machine automation management method according to another embodiment of the present invention;
FIG. 5 is a schematic structural diagram of an apparatus for automated management of a tester according to another embodiment of the present invention;
FIG. 6 is a schematic structural diagram of an automated tester management apparatus according to another embodiment of the present invention;
fig. 7 is a schematic structural diagram of a terminal device according to another embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention 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 invention and are not intended to limit the invention.
In order to explain the technical means of the present invention, the following description will be given by way of specific examples.
An embodiment of the present invention provides an automated management method for a testing machine, as shown in fig. 1, the automated management method for a testing machine includes:
and S10, setting a level code according to the abnormality of the testing machine, and acquiring the level code in the alarm information when detecting that the testing machine abnormally sends the alarm information.
In step S10, the abnormal condition of the tester refers to that some problem occurs in the tester and the test cannot be executed, or the test can be executed but it can be predicted that the test fails to be executed due to the abnormal condition in the process of executing the test, storing the abnormal conditions that often occur in the tester, and detecting each abnormal condition that may occur when detecting, where the abnormal condition that occurs in the tester includes but is not limited to shutdown of the tester, network disconnection, change of environmental configuration information, insufficient storage space, and the tester being in a use state; the alarm information is alarm signal information corresponding to the occurred abnormality, that is, the abnormality can be known clearly according to the alarm signal information, and specifically, the content of the alarm information can be known through a level code, wherein the processing priority of the level code corresponding to the alarm information with the abnormality being a shutdown of a testing machine or a network disconnection is a first priority, the processing priority of the level code corresponding to the alarm information with the abnormality being a change in configuration information or insufficient storage space is a second priority, the processing priority of the level code corresponding to the alarm information with the abnormality being a use state of the testing machine is a third priority, and the levels of the first priority, the second priority and the third priority are sequentially decreased from high to low, wherein the level code can comprise a priority mark code and an abnormality mark code, and the priority mark code can adopt a number, for example, the flag code of the first priority is 1, and the flag code of the second priority is 2, where the level of the first priority is higher than the level of the second priority, and the abnormal flag code may be represented by a chinese pinyin abbreviation of a problem included in the abnormality, or may be represented by a 0 or 1 code that can be recognized by other machines.
And S20, acquiring a processing priority according to the level code, and switching to an automatic response processing flow under the corresponding level code according to the processing priority.
In step S20, the obtaining of the processing priority according to the level code means obtaining a priority flag code according to the level code, and according to the priority of the flag code, the priority processing flow means obtaining a specific problem that an abnormality occurs according to the level code, and a processing scheme executed for the specific problem, for example, when a content testing machine that detects abnormal alarm information is shut down, the priority that detects the shutdown of the testing machine is the first priority, preferentially processes the alarm information, and automatically executes a startup flow for the testing machine; when the content of the alarm information with the abnormality is detected to be network disconnection and environmental configuration information change at the same time, and the priority level of the detected network disconnection and environmental configuration information change is a first priority and a third priority, the network disconnection with the first priority is preferentially processed, the process of automatically connecting the network is executed, the environmental configuration information change process with the third priority is executed after the network connection is successful, namely, the environmental configuration information of the testing machine is read again, and the environment is reconfigured according to the environmental configuration information.
And S30, when the alarm information is still detected when the automatic response processing flow is finished, sending a field processing prompt.
In step S30, when the automatic response processing flow is completed, the alarm information is detected again, and when the alarm information still exists, it indicates that the abnormal problem corresponding to the alarm information is not solved, that is, the abnormal problem cannot be solved by the automatic server automatic execution scheme, and at this time, manual processing is required, that is, the server sends a field processing prompt to prompt a maintenance person to perform field processing.
The embodiment of the invention provides an automatic management method for a testing machine, which is characterized in that when the testing machine is detected to send out alarm information abnormally, a level code corresponding to the alarm information is obtained, a processing priority is obtained according to the level code, the automatic response processing flow under the corresponding level code is switched to according to the processing priority, before the testing is executed, the abnormal condition which possibly occurs in the testing process of the testing machine is detected in advance, and the abnormality is processed in advance according to the alarm information, so that the unified management of the testing machine is realized, and the defect that the testing result is inaccurate due to the fact that the testing environment is changed when the testing machine is used for other purposes is avoided.
Another embodiment of the present invention provides an automated management method for a testing machine, as shown in fig. 2, the automated management method for a testing machine includes:
and S11, acquiring the user authority according to the login name of the user.
In step S11, the user logged into the tester management system may have a different role, such as a general tester, a test developer, or a system administrator. If the tester is a common tester, only the tester added by the tester can be managed, a test developer can manage the testers of different users, including operations such as adding, deleting, modifying and the like, a system administrator can also perform operations on the testers, and besides, the system administrator can manage the users and can also assign different authorities to the users.
As an implementation mode, an administrator generates a static configuration table by using an authority configuration tool according to requirements, wherein the static configuration table comprises a file object identifier XX and a file authorization authority YY; the file object identification XX is the unique identification of each network file in the network file system and is used for determining the physical position of the network file, and the file authorization authority YY comprises reading, writing, reading and writing; storing the static configuration table in an authority data storage end for the authority data using end to call; each distributed node of the network file system is provided with a network file operation interface and a static configuration table, wherein the network file operation interface is used for providing a user with writing a file access program and providing common file and directory operations such as opening, closing, reading, writing and the like; a user sends a file operation request through a network file operation interface, wherein the file operation request comprises an operation object and file operation; the test machine judges whether an operation object belongs to a local node or a remote node according to the received file operation request; if the operation object is a local node, the test machine searches a corresponding file object identifier XX according to a matching algorithm of the operation object in a local static configuration table, and judges whether the operation authority of the node exists according to the file operation: if the node has the operation authority, executing file operation on the node, and then returning a processing result to the user; and if the authority does not exist, sending an override operation request to the server.
The matching algorithm comprises a BF algorithm and a shift-and algorithm, and the BF algorithm and the shift-and algorithm are taken as examples respectively below to respectively introduce the matching algorithm provided by the invention:
BF Algorithm:
taking the number of characters of the pattern string as m and the number of characters of the text string as n as an example, the whole process is based on a BF algorithm, in the matching process, firstly judging whether the currently matched characters in the text string are special characters related in QP coding, then determining the characters with the ratio value of the characters to be matched in the pattern string based on the judgment result, and determining whether the matching is successful based on the comparison result.
If the text string is 69fa ═ r \ n ═ F25 ═ 2C ═ 61 ═ F2b, and the pattern string is a ≧ b, the specific implementation manner of matching the pattern string in the text string may be:
(1) judging whether the first character in the text string is ═ or not; if yes, continuing to judge whether the second and third characters are "\ r" "n"; and if the judgment result is negative, taking the data consisting of the second character and the third character as the hexadecimal ASCII code, decoding the hexadecimal ASCII code into the character "i", thereby determining that the character "i" is different from the character "a", and failing to match.
(2) And starting from the fourth character of the text string again, matching with the pattern string: judging whether the fourth character of the text string is ═ or not; if not, judging whether the fourth character is the same as the first character of the pattern string; if the judgment result is negative, the matching is failed.
(3) And starting from the fifth character of the text string again, matching with the pattern string: judging whether the fifth character of the text string is ═ or not; and if the judgment result is negative, determining that the fifth character is the same as the first character in the pattern string, so that the first character in the pattern string is successfully matched. Continue to match the second character of the pattern string in the text string: successively determining that the sixth character in the text string is "═ and the seventh character is" \ r \ n ", and then continuously judging whether the ninth character in the text string is" ═ or not; if so, continuously judging whether the hexadecimal data consisting of the tenth character and the eleventh character in the text string is the same as the second character of the pattern string in terms of numerical value; if the judgment result is negative, the matching is failed.
(4) And starting from the sixth character of the text string again, matching with the pattern string based on the matching method, and ending the whole matching process until all the characters of the text string are matched. It should be noted that, since the sixth to eight characters of the text string have been determined to be soft carriage returns involved in QP encoding, matching with the pattern string can be performed directly from the ninth character of the text string again, so as to improve matching efficiency. Wherein, the character string of the text string is completely matched with the pattern string 'a ≧ b', which is obtained in the matching process, and the character string '61 ═ F2 b'.
(II) shift-and algorithm:
taking the number of characters of the pattern string as m and the number of characters of the text string as n as an example, a shift-and algorithm is used to directly match the pattern string with the text string after the QP coding, wherein after a data matching device obtains the pattern string p and the text string t, an auxiliary table B (namely B [ pj ] ═ B [ pj ] |0m-j10j-1) needs to be obtained according to the pattern string p, then in each matching process, whether the currently matched characters in the text string t are the special characters involved in the QP coding is judged, then according to the judgment result, the characters involved in the updating operation of a preset mask D (namely D ((D < 1) |0m-11) & B [ q ]) are determined, finally, the preset mask D is updated according to the determined characters and the auxiliary table B, and when the highest position in D is 1, the matching of the whole pattern string is determined to be successful, and after the last character in the text string is matched, determining that the matching is finished.
When the current matched character in the text string is not ═ the character, directly substituting the bit mask in the auxiliary table B corresponding to the current matched character and the current preset mask D into a preset formula D ═ ((D < 1) |0m-11) & B [ q ], and realizing D updating operation; when the current matched character in the text string is "═ or", firstly, judging whether two characters adjacent to the next character are "\ r \ n", then when the judgment result is no, utilizing a formula q ═ (tpost +1 < 4) | tpost +2 to determine a hexadecimal ASCII code value formed by the two latter characters, then decoding the ASCII code value into a corresponding character, determining the decoded character as the character required to participate in D updating operation, and when the judgment result is yes, continuously judging whether the latter character adjacent to the latter two characters is "═ or not.
And S21, when the abnormal sending of alarm information of the test machine is detected, obtaining a level code corresponding to the alarm information.
Step S21 is the same as step S10, and please refer to the description of step S10 for details, which are not repeated herein.
And S31, acquiring a processing priority according to the level code, and switching to an automatic response processing flow under the corresponding level code according to the processing priority.
Step S31 is the same as step S20, and please refer to the description of step S20 for details, which are not repeated herein.
And S41, when the alarm information is still detected when the automatic response processing flow is finished, sending a field processing prompt according to the user authority.
In step S41, when the automatic response processing flow is completed, the alarm information is detected again, and when the alarm information still exists, it indicates that the abnormal problem corresponding to the alarm information is not solved, that is, the abnormal problem cannot be solved by the automatic server automatic execution scheme, and at this time, manual processing is required, that is, the server sends a field processing prompt according to the user authority and the occurred abnormal problem, to prompt the maintenance person to perform field processing, for example, when the environmental configuration change is abnormal, and the automatic response processing flow cannot process the abnormal problem, and a test person should be processed according to the user authority, then a field processing prompt is sent to the test person, and the test person is prompted to go to the field to perform processing.
Another embodiment of the present invention provides an automated management method for a testing machine, as shown in fig. 3, the method for obtaining a user right according to a login name of a user, and then the method further includes:
and S12, when the operation request of the user is detected to exceed the corresponding user authority, applying an unauthorized operation request allowing operation to the server.
In step S12, when it is detected that the operation request of the user exceeds the corresponding user right, at this time, the user cannot perform the operation, but the system records the operation content and performs the override operation application, for example, when a tester performs a test, a situation that a test script is modified during the test may occur, and if there is no right, the test cannot be continued, at this time, the override operation request may be performed to obtain an operation right outside the set right.
And S22, when the unauthorized operation request passes, changing the user authority to enable the user authority to comprise the function of passing the unauthorized operation request.
In step S22, when the unauthorized operation request passes, the user' S right may be modified, i.e., expanded, so that the user may perform the operation, and the modification may be temporary modification of the right or permanent modification of the right.
As an embodiment, as shown in fig. 4, when the override request passes, the user right is changed to include the function of passing the override request, including:
and S221, when the override operation request passes, adding a function corresponding to the override operation request in the user permission mapping table and setting a deadline.
In step S221, when the authority of the user is modified, the modification is set as a temporary modification authority, that is, an expiration time, for example, 4 hours or the like, corresponding to the authority in the authority mapping table is set for the function corresponding to the unauthorized operation request.
Step S222, when the operation request corresponding to the override operation request is received again, the user authority mapping table is inquired, and if the deadline is not reached, the function corresponding to the operation request is provided.
In step S222, when the user applies for the unauthorized operation again, the system detects the authority mapping table, and determines whether to allow providing the function corresponding to the operation according to the corresponding relationship between the authority and the time in the authority mapping table.
When the operation request of the user exceeds the authority range, the embodiment of the invention can record the unauthorized operation by the server and apply the unauthorized operation to a system administrator, when the unauthorized operation application passes, the operation authority of the user is expanded, and the deadline time is set for the operation, so that the user can execute the operation within the set time, convenience is brought to the user, and meanwhile, the safety of a test system is ensured.
Another embodiment of the present invention provides an automatic management apparatus 50 for a testing machine, as shown in fig. 5, the automatic management apparatus 50 for a testing machine includes:
a level code setting module 506, configured to set a level code according to an exception of the tester;
the level code acquiring module 501 is configured to acquire a level code in the alarm information when detecting that the test machine abnormally sends out the alarm information;
an automatic response processing module 502, configured to obtain a processing priority according to the level code, and switch to an automatic response processing flow under the corresponding level code according to the processing priority;
and the field processing prompting module 503 is configured to send a field processing prompt when the alarm information is still detected when the automatic response processing flow is completed.
The abnormality of the test machine comprises shutdown of the test machine, network disconnection, change of environment configuration information, insufficient storage space and use of the test machine, wherein the processing priority of a level code corresponding to alarm information with abnormality of shutdown of the test machine or network disconnection is a first priority, the processing priority of a level code corresponding to alarm information with abnormality of configuration information change or insufficient storage space is a second priority, the processing priority of a level code corresponding to alarm information with abnormality of use of the test machine is a third priority, and the levels of the first priority, the second priority and the third priority are sequentially decreased from high to low.
As shown in fig. 6, the test machine automation management device further includes a user right acquisition module 504 and an override operation module 505;
the user authority obtaining module 504 obtains the user authority according to the login name of the user;
when the automatic response processing flow is executed and the existence of alarm information is still detected, the field processing prompt module 505 sends out a field processing prompt according to the user authority;
when detecting that the operation request of the user exceeds the corresponding user authority, the override operation module 504 applies for an override operation request allowing operation to the server;
when the override operation request passes, the override operation module 504 changes the user authority to include the function requested by the override operation.
The specific working process of the module in the terminal device may refer to the corresponding process in the foregoing method embodiment, and is not described herein again.
Another embodiment of the present invention provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the method for automatically managing a tester in the foregoing embodiments is implemented, and for avoiding redundancy, details are not described here. Alternatively, the computer program is executed by the processor to implement the functions of each module/unit in the automatic management device of the tester in the above embodiments, and for avoiding redundancy, the details are not described here.
Fig. 7 is a schematic diagram of the terminal device in the present embodiment. As shown in fig. 7, the terminal device 6 includes a processor 60, a memory 61, and a computer program 62 stored in the memory 61 and executable on the processor 60. The processor 60, when executing the computer program 62, implements the various steps of the tester automation management method in the above-described embodiment, such as steps S10, S20, and S30 shown in fig. 1. Alternatively, the processor 60 implements the functions of each module/unit of the tester automation management device in the above-described embodiment when executing the computer program 62, such as the functions of the level code setting module 506, the level code acquiring module 501, the automatic response processing module 502, and the field processing prompting module 503 shown in fig. 5.
Illustratively, the computer program 62 may be divided into one or more modules/units, which are stored in the memory 61 and executed by the processor 60 to implement the present invention. One or more of the modules/units may be a series of computer program instruction segments capable of performing specific functions, which are used to describe the execution of the computer program 62 in the terminal device 6. For example, the computer program 62 may be divided into a level code setting module 506, a level code acquisition module 501, an automatic response processing module 502, and a field processing prompt module 503.
The terminal device 6 may be a desktop computer, a notebook, a palm computer, a cloud server, or other computing devices. The terminal device may include, but is not limited to, a processor 60, a memory 61. Those skilled in the art will appreciate that fig. 7 is merely an example of a terminal device 6 and does not constitute a limitation of terminal device 6 and may include more or fewer components than shown, or some components may be combined, or different components, e.g., the terminal device may also include input output devices, network access devices, buses, etc.
The Processor 60 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The storage 61 may be an internal storage unit of the terminal device 6, such as a hard disk or a memory of the terminal device 6. The memory 61 may also be an external storage device of the terminal device 6, such as a plug-in hard disk provided on the terminal device 6, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like. Further, the memory 61 may also include both an internal storage unit of the terminal device 6 and an external storage device. The memory 61 is used for storing computer programs and other programs and data required by the terminal device. The memory 61 may also be used to temporarily store data that has been output or is to be output.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-mentioned functions.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated modules/units, if implemented in the form of software functional units and sold or used as separate products, may be stored in a computer readable storage medium. Based on such understanding, all or part of the flow of the method according to the embodiments of the present invention may also be implemented by a computer program, which may be stored in a computer-readable storage medium, and when the computer program is executed by a processor, the steps of the method embodiments may be implemented. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like. It should be noted that the computer readable medium may contain other components which may be suitably increased or decreased as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media which may not include electrical carrier signals and telecommunications signals in accordance with legislation and patent practice.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present invention, and are intended to be included within the scope of the present invention.

Claims (7)

1. A test machine automation management method is characterized by comprising the following steps:
setting a level code according to the abnormality of a testing machine, and acquiring the level code in alarm information when detecting that the testing machine abnormally sends out the alarm information;
acquiring a processing priority according to the level code, and switching to an automatic response processing flow under the corresponding level code according to the processing priority;
when the alarm information is still detected to exist when the automatic response processing flow is executed, sending a field processing prompt;
the abnormality of the test machine comprises shutdown of the test machine, network disconnection, change of environment configuration information, insufficient storage space and use of the test machine, wherein the processing priority of a level code corresponding to alarm information with abnormality of shutdown of the test machine or network disconnection is a first priority, the processing priority of a level code corresponding to alarm information with abnormality of configuration information change or insufficient storage space is a second priority, the processing priority of a level code corresponding to alarm information with abnormality of use of the test machine is a third priority, and the levels of the first priority, the second priority and the third priority are sequentially decreased from high to low;
when detecting that the test machine generates abnormal alarm information, acquiring a level code corresponding to the alarm information, and the method further comprises the following steps:
acquiring user authority according to the login name of the user;
the method for acquiring the user authority according to the login name of the user further comprises the following steps:
when detecting that the operation request of the user exceeds the corresponding user right, applying for allowing an unauthorized operation request in the operation request to a server;
when the override operation request passes, changing the user authority to include the function of passing the override operation request;
before the user authority is obtained according to the login name of the user, the method comprises the following steps:
acquiring a login name requirement parameter instruction, and generating a static configuration table through an authority configuration tool; the static configuration table comprises a file object identifier and a file authorization authority;
storing the static configuration table to a node of a network file system corresponding to a file object identifier in the static configuration table; each node of the network file system comprises a network file operation interface and a static configuration table;
the test machine judges whether an operation object belongs to a local node or a remote node according to the received file operation request;
if the operation object is a local node, the test machine searches a corresponding file object identifier according to a matching algorithm of the operation object in a local static configuration table, wherein the matching algorithm comprises a BF algorithm and a shift-and algorithm.
2. The automated management method for testing machines according to claim 1, wherein when the presence of the alarm information is still detected after the execution of the automatic response processing flow is completed, sending a field processing prompt, comprising:
and when the alarm information is still detected to exist when the automatic response processing flow is executed, sending a field processing prompt according to the user authority.
3. The automated test machine management method according to claim 1, wherein when the override request passes, changing the user authority to include a function of passing the override request comprises:
when the override operation request passes, adding a function corresponding to the override operation request in a user authority mapping table and setting a deadline;
and when an operation request corresponding to the override operation request is received again, inquiring the user permission mapping table, and if the deadline is not reached, providing a function corresponding to the operation request.
4. An automatic management device for a testing machine, the automatic management device for the testing machine comprising:
the level code setting module is used for setting a level code according to the abnormity of the tester;
the level code acquisition module is used for acquiring a level code in the alarm information when detecting that the test machine abnormally sends the alarm information;
the automatic response processing module is used for acquiring the processing priority according to the level code and switching to an automatic response processing flow under the corresponding level code according to the processing priority;
the field processing prompting module is used for sending out a field processing prompt when the alarm information is still detected when the automatic response processing flow is executed;
the abnormality of the test machine comprises shutdown of the test machine, network disconnection, change of environment configuration information, insufficient storage space and use of the test machine, wherein the processing priority of a level code corresponding to alarm information with abnormality of shutdown of the test machine or network disconnection is a first priority, the processing priority of a level code corresponding to alarm information with abnormality of configuration information change or insufficient storage space is a second priority, the processing priority of a level code corresponding to alarm information with abnormality of use of the test machine is a third priority, and the levels of the first priority, the second priority and the third priority are sequentially decreased from high to low;
the automatic management device of the testing machine further comprises a user authority acquisition module and an override operation module;
the user authority acquisition module acquires user authority according to the login name of the user;
when detecting that the operation request of the user exceeds the corresponding user authority, the override operation module applies the override operation request in the permission operation request to the server;
when the override operation request passes, the override operation module changes the user authority to include the function passing the override operation request;
the user right obtaining module is further configured to:
acquiring a login name requirement parameter instruction, and generating a static configuration table through an authority configuration tool; the static configuration table comprises a file object identifier and a file authorization authority;
storing the static configuration table to a node of a network file system corresponding to a file object identifier in the static configuration table; each node of the network file system comprises a network file operation interface and a static configuration table;
the test machine judges whether an operation object belongs to a local node or a remote node according to the received file operation request;
if the operation object is a local node, the test machine searches a corresponding file object identifier according to a matching algorithm of the operation object in a local static configuration table, wherein the matching algorithm comprises a BF algorithm and a shift-and algorithm.
5. The automatic management device for testing machines of claim 4, wherein the field processing prompt module issues a field processing prompt according to the user authority when the presence of the alarm information is still detected after the automatic response processing flow is completed.
6. A terminal device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the steps of the method according to any of claims 1 to 3 when executing the computer program.
7. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 3.
CN201710857294.3A 2017-09-21 2017-09-21 Test machine automation management method, device, equipment and storage medium Active CN107678917B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201710857294.3A CN107678917B (en) 2017-09-21 2017-09-21 Test machine automation management method, device, equipment and storage medium
PCT/CN2017/112310 WO2019056545A1 (en) 2017-09-21 2017-11-22 Test machine automation management method and apparatus, device, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710857294.3A CN107678917B (en) 2017-09-21 2017-09-21 Test machine automation management method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN107678917A CN107678917A (en) 2018-02-09
CN107678917B true CN107678917B (en) 2020-03-20

Family

ID=61136039

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710857294.3A Active CN107678917B (en) 2017-09-21 2017-09-21 Test machine automation management method, device, equipment and storage medium

Country Status (2)

Country Link
CN (1) CN107678917B (en)
WO (1) WO2019056545A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110362062B (en) * 2019-07-12 2022-06-24 上海瀚银信息技术有限公司 Automatic fault processing system
CN112964974A (en) * 2021-03-18 2021-06-15 嘉盛半导体(苏州)有限公司 Semiconductor test monitoring method, device, equipment and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101145969A (en) * 2007-10-25 2008-03-19 中兴通讯股份有限公司 A method and system for reducing quantity of alarms reported by network elements
CN104252401A (en) * 2014-08-29 2014-12-31 北京阅联信息技术有限公司 Weight based device status judgment method and system thereof

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100454350C (en) * 2003-12-22 2009-01-21 深圳市世纪安软信息技术有限公司 Intelligent warning system and method through internet
US20090193436A1 (en) * 2008-01-30 2009-07-30 Inventec Corporation Alarm display system of cluster storage system and method thereof
CN103544093B (en) * 2012-07-13 2016-04-27 深圳市快播科技有限公司 Monitoring alarm control method and system thereof
CN103684880A (en) * 2013-12-31 2014-03-26 上海斐讯数据通信技术有限公司 Alarming control method and alarming device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101145969A (en) * 2007-10-25 2008-03-19 中兴通讯股份有限公司 A method and system for reducing quantity of alarms reported by network elements
CN104252401A (en) * 2014-08-29 2014-12-31 北京阅联信息技术有限公司 Weight based device status judgment method and system thereof

Also Published As

Publication number Publication date
CN107678917A (en) 2018-02-09
WO2019056545A1 (en) 2019-03-28

Similar Documents

Publication Publication Date Title
CN107766236B (en) Test task automatic management method, device, equipment and storage medium
WO2018000607A1 (en) Method and electronic apparatus for identifying test case failure causes
CN113127338A (en) Firmware testing method, server and computer readable storage medium
US10552242B2 (en) Runtime failure detection and correction
CN110737806A (en) Global ID generation method and device for business entity
CN108376110B (en) Automatic detection method, system and terminal equipment
CN108121774B (en) Data table backup method and terminal equipment
CN111338869B (en) Configuration parameter management method, device, equipment and storage medium
CN107678917B (en) Test machine automation management method, device, equipment and storage medium
CN111694612A (en) Configuration checking method, device, computer system and storage medium
CN107357619B (en) Method, device, equipment and storage medium for generating card configuration file
CN102981956B (en) Method, device and program modulating system that overlay symbol table is set up and searched
CN110688305B (en) Test environment synchronization method, device, medium and electronic equipment
CN108255946B (en) Code management method and device of laser etching equipment, equipment and storage medium
CN111124828B (en) Data processing method, device, equipment and storage medium
CN112817883A (en) Method, device and system for adapting interface platform and computer readable storage medium
CN111385613B (en) Television system repairing method, storage medium and application server
CN109446008B (en) Fault reason detection method, fault reason detection device and terminal equipment
CN111400128A (en) Log management method and device, computer equipment and storage medium
CN111367869A (en) Mirror image file processing method and device, storage medium and electronic equipment
CN108595292B (en) System optimization method, mobile terminal and computer storage medium
CN108712442B (en) Switch-in method of data acquisition end of power distribution cabinet and terminal equipment
CN108459940B (en) Configuration information modification method and device of application performance management system and electronic equipment
CN112433783A (en) Configuration method and related equipment
CN111538651A (en) Interface testing method, device, server 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