CN114238140A - Access test method and device - Google Patents

Access test method and device Download PDF

Info

Publication number
CN114238140A
CN114238140A CN202111590357.6A CN202111590357A CN114238140A CN 114238140 A CN114238140 A CN 114238140A CN 202111590357 A CN202111590357 A CN 202111590357A CN 114238140 A CN114238140 A CN 114238140A
Authority
CN
China
Prior art keywords
parameter
server
detected
parameter item
detection condition
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111590357.6A
Other languages
Chinese (zh)
Inventor
杨东平
马婕
贾永洁
顾旺军
付磊
余永彬
罗金梅
王建军
李娜
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Construction Bank Corp
Original Assignee
China Construction Bank Corp
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 China Construction Bank Corp filed Critical China Construction Bank Corp
Priority to CN202111590357.6A priority Critical patent/CN114238140A/en
Publication of CN114238140A publication Critical patent/CN114238140A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
    • G06F11/3409Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment for performance assessment
    • 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/3696Methods or tools to render software testable

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention discloses an access testing method and device, which are applicable to the technical field of automatic testing and are used for improving the accuracy of a detection result of a parameter item to be detected and improving the detection efficiency of the parameter item to be detected. The method comprises the following steps: acquiring a value of a parameter item to be detected and a detection condition parameter of the parameter item to be detected from a server to be detected; determining a detection result according to the value of the parameter item and the detection condition, wherein the detection result indicates that the parameter item is correct or wrong, and the detection condition is determined according to the detection condition parameter; and outputting a detection result. The server to be detected can comprise a server which is configured with a system to be detected in the server cluster, the system to be detected can comprise a system which needs to perform non-functional testing, and the server to be detected can be a database server and/or an application server, so that whether the non-functional testing is allowed to be performed by the access testing identification system before the non-functional testing is performed can be judged, and the detection efficiency is improved.

Description

Access test method and device
Technical Field
The present application relates to the field of automated testing technologies, and in particular, to an admission testing method and apparatus.
Background
In the internet era today, more and more systems (or software, applications) are developed by groups or enterprises, and before these systems are put into use, various tests, such as functional tests and non-functional tests, are often required. Before the system is subjected to the non-functional test, the value of the parameter item participating in the non-functional test in the server needs to be subjected to the admission test so as to ensure that the parameter meets the requirement of the non-functional test. The parameter item is used for performing non-functional test, if the value of the parameter item is correct, the parameter item can be used for performing non-functional test, otherwise, if the value of the parameter item is incorrect, the parameter item cannot be used for performing non-functional test.
At present, the parameter checking work of non-functional tests is usually manual detection by research personnel, the values of parameter items are detected according to self experiences, an effective and reliable automatic implementation mode is not available, so that the problem of low accuracy caused by omission of detection results of the parameter items possibly exists, a large amount of labor cost is required to be invested, and the detection efficiency is extremely low.
Disclosure of Invention
The application provides an access testing method and device, which are used for improving the accuracy of a detection result of a parameter item to be detected and improving the detection efficiency of the parameter item to be detected.
In a first aspect, the present application provides an admission test method, including:
acquiring a value of a parameter item to be detected and a detection condition parameter of the parameter item to be detected from a server to be detected;
determining a detection result according to the value of the parameter item and the detection condition, wherein the detection result indicates that the parameter item is correct or wrong, and the detection condition is determined according to the detection condition parameter;
and outputting a detection result.
By adopting the method, the access testing device can determine the detection result of the parameter item to be detected according to the value and the detection condition of the parameter item, improve the accuracy of the detection result of the parameter item to be detected and improve the detection efficiency of the parameter item to be detected.
In one possible design, determining the detection condition of the parameter item according to the detection condition parameter includes: determining an expected result of the parameter item according to the detection condition parameters of the parameter item to be detected; the detection conditions are determined according to the desired result.
By adopting the design, the access testing device can determine the detection conditions according to the expected result, and the accuracy of the detection conditions is improved, so that the accuracy of the detection result of the parameter item to be detected is further improved.
In one possible design, the server includes a database server, and the method for acquiring the value of the parameter item to be detected and the detection condition parameter of the parameter item to be detected from the server to be detected includes: sending a message request through a performance test (JMeter) computer programming language Database interface (Java Database Connectivity, JDBC), wherein the message request comprises an identifier of a server; and receiving a response message through JMeter JDBC, wherein the response message comprises the value of the parameter item and the detection condition parameter.
By adopting the design, the access testing device can acquire the values of the parameter items and the detection condition parameters in the database server through the JMeter JDBC.
In one possible design, a database server is used to manage the application servers.
In one possible design, the server includes an application server, and the obtaining of the value of the parameter item to be detected and the detection condition parameter of the parameter item to be detected from the server to be detected includes: sending a message request through a JMeter Secure Shell (SSH), wherein the message request comprises an identifier of a server; and receiving a response message through the JMeter SSH, wherein the response message comprises the value of the parameter item and the detection condition parameter.
By adopting the design, the access testing device can acquire the value of the parameter item and the detection condition parameter in the application server through the JMeter SSH.
In one possible design, the detection condition parameters include performance parameters of the server.
In one possible design, the method further includes: polling the server to be detected from a plurality of servers included in the server set.
By adopting the design, the access testing device can poll and acquire the values of the parameter items to be detected and the detection condition parameters of the parameter items to be detected in the plurality of servers to be detected, so that the testing efficiency is improved.
In a second aspect, the present application further provides an admission test apparatus, including:
the communication module is used for acquiring the value of the parameter item to be detected and the detection condition parameter of the parameter item to be detected from the server to be detected;
the processing module is used for determining a detection result according to the value of the parameter item and the detection condition, the detection result indicates that the parameter item is correct or wrong, and the detection condition is determined according to the detection condition parameter;
the communication module is also used for outputting the detection result.
In one possible design, the processing module is specifically configured to: determining an expected result of the parameter item according to the detection condition parameters of the parameter item to be detected; the detection conditions are determined according to the desired result.
In one possible design, the communication module is specifically configured to: sending a message request through JMeter JDBC, wherein the message request comprises an identifier of a server; and receiving a response message through JMeter JDBC, wherein the response message comprises the value of the parameter item and the detection condition parameter.
In one possible design, a database server is used to manage the application servers.
In one possible design, the communication module is specifically configured to: sending a message request through a JMeter SSH, wherein the message request comprises an identifier of a server; and receiving a response message through the JMeter SSH, wherein the response message comprises the value of the parameter item and the detection condition parameter.
In one possible design, the detection condition parameters include performance parameters of the server.
In one possible design, the processing module is further to: polling the server to be detected from a plurality of servers included in the server set.
In a third aspect, the present application further provides an electronic device comprising a processor configured to implement the steps of the admission test method according to the first aspect and any possible design thereof when executing a computer program stored in a memory.
In a fourth aspect, the present application also provides a computer-readable storage medium storing a computer program which, when executed by a processor, implements the steps of the admission test method as described in the first aspect above and any possible design thereof.
In a fifth aspect, the present application further provides a computer program product comprising a computer program that, when executed by a processor, performs the steps of the admission test method according to the first aspect and any possible design thereof.
In addition, for technical effects brought by the second aspect to the ninth aspect, reference may be made to the description of the first aspect, and details are not described here.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
Fig. 1 is a schematic view of an application scenario of an admission test apparatus according to an embodiment of the present application;
fig. 2 is a schematic flowchart of an admission test method according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of an admission test apparatus according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of another admission test apparatus according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application clearer, the present application will be described in further detail with reference to the accompanying drawings, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application. According to the technical scheme, the data acquisition, storage, use, processing and the like meet relevant regulations of national laws and regulations.
In order to improve the accuracy of the detection result of the parameter item to be detected and improve the detection efficiency of the parameter item to be detected, the embodiment of the application provides an admission test method and an admission test device.
The following explains the present application with respect to terms:
JMeter tool:
the JMeter tool, also known as Apache (Apache) JMeter tool, is a Java-based stress testing tool developed by the Apache organization. For stress testing of software, it was originally designed for testing of global wide area network (Web) applications, but was later extended to other areas of testing. It can be used to test static and dynamic resources such as static files, computer programming language (Java) servlets, Common Gateway Interface (CGI) scripts, Java objects, databases, File Transfer Protocol (FTP) servers, and the like. JMeter can be used to simulate huge loads on servers, networks or objects, test their strengths and analyze overall performance from different stress classes. Additionally, JMeter can perform a function/regression test on the application to verify that your program returns the results you expect by creating a script with assertions. JMeter allows assertions to be created using regular expressions for maximum flexibility. Apache JMeter can be used to test the performance of static and dynamic resources (files, servlets, computer programming language (Perl) scripts, Java objects, databases and queries, FTP servers, etc.). It can be used to simulate heavy loads on servers, networks or objects to test their strengths or to analyze the overall performance under different stress types. A JMeter tool can be used for graphical analysis of performance or to test servers/scripts/objects at large concurrent loads.
JMeter SSH Command Request (Command Request):
SSH is an abbreviation for Secure Shell, established by The Network work Group of The Internet Engineering Task Force (IETF); SSH is a security protocol built on an application layer basis. SSH is a relatively reliable protocol that provides security specifically for telnet sessions and other web services. The SSH protocol can effectively prevent the problem of information leakage in the remote management process. SSH was initially a program on the UNIX (UNIX) system and was subsequently rapidly expanded to other operating platforms. SSH, when used correctly, can remedy vulnerabilities in the network. SSH clients are applicable to a variety of platforms. Almost all UNIX platforms, including the HP 9000 series (HP-UX), a computer operating system (Linux), Advanced Interactive eXecutive (AIX), a computer operating system (Solaris), Digital (Digital) UNIX, a computer operating system (Irix), and others, can run SSH. The SSH Command Request in the JMeter tool is a protocol that relies on standard Linux commands and login between JMeter-initiated and tested servers.
Performance test bienzhil (JMeter Bean Shell):
the Bean Shell is a scripting language completely conforming to Java grammar specification and has own grammars and methods; bean Shell is a loosely typed scripting language (similar to JS); the Bean Shell is written in Java, a small, free, downloadable, embedded Java source code interpreter, with object scripting language features, a very compact interpreter jar file size of 175 k. The Bean Shell executes standard Java statements and expressions, additionally including some scripting commands and syntax. JMeter Bean Shell provides a runtime environment for executing Java code blocks in JMeter.
JMeter JDBC Request (Request):
JDBC is an application program interface in the Java language that is used to specify how a client program accesses a database, providing methods such as querying and updating data in the database. JDBC is also a trademark of Sun Microsystems, Inc. (Sun Microsystems). We generally say JDBC is relational database oriented. JMeter JDBC Request is a protocol for executing Structured Query Language (SQL/SQL) and Procedural SQL (Procedural Language) codeblocks in a JMeter tool.
A server:
a server is one of computers that runs faster, is more heavily loaded, and is more expensive than a regular computer. The server provides computing or application services for other clients (such as Personal Computers (PCs), smart phones, Automatic Teller Machines (ATMs), and other terminals, even large devices such as train systems) in the network. The server has high-speed Central Processing Unit (CPU/CPU) computing capability, long-time reliable operation, strong computer interface (Input/Output, I/O) external data throughput capability and better expansibility. Generally, a server has the capability of responding to a service request, supporting a service, and guaranteeing the service according to the service provided by the server. The server is used as an electronic device, and the internal structure of the server is very complex, but the difference with the internal structure of a common computer is not great, such as: cpu, hard disk, memory, system bus, etc.
Hereinafter, embodiments of the present application will be described in detail with reference to the drawings.
Fig. 1 is a possible applicable scenario of an admission test apparatus according to an embodiment of the present application. The scenario may comprise means (also referred to as admission test means) for performing the admission test method provided herein. The access test device can comprise a JMeter tool and a JMeter unified collection parameter platform, wherein the JMeter tool can be used for determining a detection result, and the JMeter unified collection parameter platform can be used for acquiring a value of a parameter item to be detected and a detection condition parameter of the parameter item to be detected. It should be understood that the JMeter tool and the JMeter unified collection parameter platform may be integrated or separated. The scenario may further include a server cluster, where the server cluster includes at least one server, and the suspected system (also may be the suspected application) is deployed on one or more servers, where the server cluster may include a database server and/or an application server, and the database server may be used in connection with the application server, where the database server may be used for performing add-drop and modify-check on data in the process of processing transaction, and the database server may be further used for managing the application server, for example, the application server may be used for initiating a request for add-drop and modify-check on data to the database server, and the database server may determine an action to be performed according to the request, and in this design, the database server may be dedicated to management of data, and the application server may provide an application service, and may be an own network application server, the scalability and the safety of the system to be tested are improved. Furthermore, the admission test device can acquire the value of the parameter item to be detected and the detection condition parameter of the parameter item to be detected from any one of the servers of the server cluster, so that the compatibility and the flexibility of the admission test device are improved. The scenario may further include a monitoring platform for displaying values of parameter items of the detected system to experts or business personnel of each party.
Fig. 2 is a flowchart illustrating an admission test method according to an embodiment of the present application, which specifically includes the following steps:
s201: the admittance testing device obtains the value of the parameter item to be tested and the testing condition parameter of the parameter item to be tested from the server to be tested, and the parameter item is used for non-functional testing.
Specifically, the admission test device obtains the value of the parameter item to be detected and the detection condition parameter of the parameter item to be detected from the server to be detected. The server to be detected can comprise a server which is configured with a system to be detected in a server cluster, and the system to be detected can comprise a system which needs to perform non-functional test; the parameter items to be detected may comprise parameter items for non-functional testing of the system under test, in other words, the parameter items may be parameter items of key performance parameters of the operating system, the database, the middleware and/or the system under test, which affect the performance of the system under test. The parameter item to be detected may include one parameter item, or may include a plurality of parameter items. The non-functional test refers to other tests except for the functional test in a broad sense, including a performance test, a capacity test, an availability test, a reliability test, a maintainability test, an ease-of-use test, an expansibility test, and the like, which is generally understood as a performance test in a narrow sense. The determination method of the server to be detected and the parameter item to be detected is not limited in this application, and reference may be made to the determination method in the art.
For example, the parameter items to be detected may include a public application JDBC initialization Capacity (initial Capacity) parameter item, a public application JDBC maximum Capacity (Max Capacity) parameter item, a public application JDBC minimum Capacity (Min Capacity) parameter item, a public application minimum buffer Pool Size (Min Pool Size) parameter item, a public application maximum buffer Pool Size (Max Pool Size) parameter item, a public database index Full Scan (Full Scan) parameter item, a public operating system CPU parameter item, a public operating system Memory (Memory/MEM) parameter item, and a public operating system file scanner (file no) parameter item.
Optionally, the detection condition parameter includes a performance parameter of the server. The detection condition parameter of the parameter item to be detected may be one value or a set formed by a plurality of values.
In a possible design, the admission test device may send the value of the parameter item to be detected and the detection condition parameter of the parameter item to be detected to the monitoring platform through a hypertext Transfer Protocol (HTTP) component in the JMeter tool. The admission testing device can also send other server performance parameters which are not used for the system to be tested to perform non-functional testing to the monitoring platform through the HTTP component in the JMeter tool.
Optionally, the admission test device may also use a periodic instruction (crossbar) technology to periodically run the JMeter script in a command line manner, so as to periodically send the value of the parameter item to be detected and the detection condition parameter of the parameter item to be detected to the monitoring platform, or periodically send other server performance parameters that are not used for the non-functional test of the system to be detected to the monitoring platform.
In an implementation manner of S201, when the server includes a database server, the admission test device may send a message request through a JMeter JDBC, where the message request includes an identifier of the server; the access test device can also receive a response message through the JMeter JDBC, wherein the response message comprises the value of the parameter item and the detection condition parameter. Wherein the database server may be used to manage the application server.
Specifically, when the server includes a database server, the admission test device may send a message Request (for example, the message Request includes an sql statement or sends a plsql statement) through the JDBC Request in the JMeter unified collection parameter platform, where the message Request includes an identifier of at least one server to be detected. Optionally, the message request may further include at least one parameter item to be detected.
Further, the admission test device may further receive, through JDBC Request in the JMeter unified collection parameter platform, a value of the at least one parameter item to be detected corresponding to the identifier of the at least one server and a detection condition parameter of the at least one parameter item to be detected.
The parameters of the database server mainly refer to performance parameters of an Oracle database, and the performance parameters comprise a process number configuration parameter, a memory area configuration parameter, a logic reading parameter and a physical reading index parameter.
In an implementation manner of S201, when the server includes an application server, the admission test device may send a message request through the JMeter SSH, where the message request includes an identifier of the server; the access test device can also receive a response message through the JMeter SSH, wherein the response message comprises the value of the parameter item and the detection condition parameter.
Specifically, when the server includes an application server, the admission test device may send a message Request (for example, the message Request includes a protocol of login between the admission test device and the server to be detected and a standard Linux Command, and the protocol is used for logging in the server) through an SSH Command Request in the JMeter unified collection parameter platform, and the message Request includes an identifier of at least one server to be detected. Optionally, the message request may further include at least one parameter item to be detected.
Further, the admission test device may further receive, through the SSH Command Request in the JMeter unified collection parameter platform, a value of the at least one parameter item to be detected and the at least one detection condition parameter to be detected, which correspond to the identifier of the at least one server.
The parameters of the application server comprise operating system performance parameters, middleware performance parameters and application performance parameters.
In one possible design, the admission test arrangement polls the servers to be detected from a plurality of servers comprised by the set of servers. Specifically, the access test device can perform cycle control through a traversal array (For easy) controller in the JMeter tool, so as to detect a plurality of servers. It should be understood that, if the message request includes the identifiers of the multiple servers, the admission test device may traverse the servers corresponding to the identifiers of the multiple servers, and obtain the value of the parameter item to be detected and the detection condition parameter of the parameter item to be detected from the servers to be detected. By adopting the design, the access testing device can continuously update the value of the parameter item to be detected and the detection condition parameter of the parameter item to be detected, thereby improving the accuracy of the parameter condition and the accuracy of the detection result of the parameter item.
In one possible design, prior to S201, the admission test device may also configure generic items of the system under inspection, which may include server addresses, usernames, passwords, and parameter assertions, using the configuration element component of the JMeter tool.
By way of example, the general items of the system to be checked may include a common application thread pool item, a common application database connection pool item, a common application heap size item, a common application cache size item, a common database dynamic performance item, a common database table read-write item, a common database core parameter item, a common operating system user resource item, a common operating system hardware configuration item, and a common operating system high availability switching item.
In a possible design, before S201, the admission test apparatus may also configure the parameter items to be detected in the system to be detected, for example, including one or more of the above general items, using the configuration element of the JMeter tool.
For example, the parameter items to be detected may include a common application parameter value standard parameter item, a common application custom variable parameter item, a common database parameter value standard parameter item, a common data volume connection configuration parameter item, and a common operating system parameter value standard parameter item.
S202: the access testing device determines a detection result according to the value of the parameter item and the detection condition, the detection result indicates that the parameter item is correct or wrong, and the detection condition is determined according to the detection condition parameter.
Wherein the detection condition represents at least one condition that should be satisfied by a parameter item available for non-functional testing.
Specifically, if the detection condition parameters include performance parameters of the server, the admission test device may determine the detection conditions according to the performance parameters of the server, and may also determine that the parameter items are correct or that the parameter items are incorrect according to values of the parameter items and the detection conditions.
In an implementation manner of S202, the admission test device determines an expected result of the parameter item according to the detection condition parameter of the parameter item to be detected; the admission test device determines the detection conditions according to the expected result.
Specifically, if the detection condition parameters include performance parameters of the server, the admission test device may determine an expected result according to the performance parameters of the server, where the expected result may include one or more expected values of the parameter items to be detected; the admission test device may also determine a detection condition according to the expected result, for example, the detection condition may include being greater than, less than, equal to, greater than or equal to, or less than or equal to a certain expected value.
In one implementation of S202, the admission test device may perform filtering and/or verification on the parameters of the detection condition through the Bean Shell (for example, setting rules of the filtering and/or verification through a scripting language), so as to determine the detection condition.
S203: and the access test device outputs a test result. For example, the admission test device may send the detection result to the monitoring platform.
In one implementation of S203, the admission testing apparatus may send the detection result to the monitoring platform through an HTTP component in the JMeter tool. Optionally, the admission test device may use a Crontab technology, periodically run a JMeter script in a command line manner, periodically collect the environmental parameters, and send the environmental parameters to the monitoring platform for centralized display.
By adopting the method, the access testing device can determine the detection result of the parameter item to be detected according to the value and the detection condition of the parameter item, improve the accuracy of the detection result of the parameter item to be detected and improve the detection efficiency of the parameter item to be detected.
It should be noted that the admission test method in the present application may be applied to each stage of the initiating case of the test scenario of the system to be tested. For example, the admission test method may be applied to the early stage of the initial case, or may be applied to the middle stage of the initial case, or may be applied to the later stage of the analysis of the initial case.
For example, when the admission test method is applied to the early inspection stage of the initiating case, the interactive interface of the present application may be a "view result tree" monitoring graph in a JMeter tool, and the interactive role is a test engineer. The 'view result tree' monitoring graph can visually display the values of the parameter items in each server and the detection condition parameters, so that the test conditions can be quickly determined. By adopting the method, the access test depends on the JMeter tool daily used by the test engineer, the test engineer does not need to switch the tool and the platform, and the use convenience is improved.
Illustratively, when the admission test method is applied to the middle-stage operation stage of the initiating case, the parameter item to be detected may include "disk usage rate", and if the value of the parameter item exceeds a certain threshold, the detection result of the parameter item is a parameter item detection failure. In addition, the parameter checking script of the present application uses the same running tool and platform as the test script. In the middle-term operation stage of the initiating case, the disk space may be continuously consumed, and the data volume of the database in the server may also be changed, so that the values of some parameter items may be changed. By adopting the method, the parameter item can be tested in the middle-stage operation stage, so that the testability of the test scene is judged.
For example, when the admission test method is applied to the later analysis stage of the initiating case, the admission test device in the present application may send the detection result of the parameter item of the system to be detected to the monitoring platform for displaying. The interactive interface can be an interface of a monitoring platform, and the interactive roles can be managers, test experts, developers and the like. By adopting the method, the access test device can output the test result, so that managers, test experts and developers can visually know the detection result of the parameter item of the tested system, and the efficiency of analyzing the value of the parameter item and judging the reasonability is improved.
Fig. 3 is a schematic diagram of a modular structure of an admission test apparatus according to an embodiment of the present application. The apparatus may include a communication module 301 and a processing module 302.
For example, the communication module 301 may be configured to obtain, from the server to be detected, a value of the parameter item to be detected and a detection condition parameter of the parameter item to be detected. The processing module 302 is configured to determine a detection result according to a value of the parameter item and a detection condition, where the detection result indicates that the parameter item is correct or the parameter item is incorrect, and the detection condition is determined according to the detection condition parameter, and the communication module 301 is further configured to output the detection result.
In one possible design, the processing module 302 may be specifically configured to: determining an expected result of the parameter item according to the detection condition parameters of the parameter item to be detected; the detection conditions are determined according to the desired result.
In one possible design, the communication module 301 is specifically configured to: sending a message request through JMeter JDBC, wherein the message request comprises an identifier of a server; and receiving a response message through JMeter JDBC, wherein the response message comprises the value of the parameter item and the detection condition parameter.
In one possible design, a database server is used to manage the application servers.
In one possible design, the communication module 301 is specifically configured to: sending a message request through a JMeter SSH, wherein the message request comprises an identifier of a server; and receiving a response message through the JMeter SSH, wherein the response message comprises the value of the parameter item and the detection condition parameter.
In one possible design, the detection condition parameters include performance parameters of the server.
In one possible design, the processing module 302 is further configured to: polling the server to be detected from a plurality of servers included in the server set.
Fig. 4 shows a schematic structural diagram of an admission test apparatus according to an embodiment of the present application.
The electronic device in the embodiments of the present application may include a processor 401. The processor 401 is the control center of the apparatus, and various interfaces and lines may be used to connect various parts of the apparatus by executing or executing instructions stored in the memory 402 and calling up data stored in the memory 402. Optionally, the processor 401 may include one or more processing units, and the processor 401 may integrate an application processor and a modem processor, wherein the application processor mainly handles operating systems, application programs, and the like, and the modem processor mainly handles wireless communication. It will be appreciated that the modem processor described above may not be integrated into the processor 401. In some embodiments, processor 401 and memory 402 may be implemented on the same chip, or in some embodiments, they may be implemented separately on separate chips.
The processor 401 may be a general-purpose processor, such as a Central Processing Unit (CPU), digital signal processor, application specific integrated circuit, field programmable gate array or other programmable logic device, discrete gate or transistor logic, discrete hardware components, or the like, that may implement or perform the methods, steps, and logic blocks disclosed in embodiments of the present application. A general purpose processor may be a microprocessor or any conventional processor or the like. The steps executed by the admission test system disclosed in the embodiments of the present application may be directly executed by a hardware processor, or may be executed by a combination of hardware and software modules in the processor.
In the embodiment of the present application, the memory 402 stores instructions executable by the at least one processor 401, and the at least one processor 401 may be configured to execute the communication procedure executed by the admission test apparatus by executing the instructions stored in the memory 402.
Memory 402, which is a non-volatile computer-readable storage medium, may be used to store non-volatile software programs, non-volatile computer-executable programs, and modules. The Memory 402 may include at least one type of storage medium, and may include, for example, a flash Memory, a hard disk, a multimedia card, a card-type Memory, a Random Access Memory (RAM), a Static Random Access Memory (SRAM), a Programmable Read Only Memory (PROM), a Read Only Memory (ROM), a charge Erasable Programmable Read Only Memory (EEPROM), a magnetic Memory, a magnetic disk, an optical disk, and so on. The memory 402 is any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer, but is not limited to such. The memory 402 in the embodiments of the present application may also be circuitry or any other device capable of performing a storage function for storing program instructions and/or data.
In this embodiment, the apparatus may further include a communication interface 403, and the electronic device may transmit data through the communication interface 403. For example, the electronic device is an access testing device, the communication interface 403 may be used to execute the communication module 301.
Alternatively, the communication module 301 and/or the processing module 302 shown in fig. 3 may be implemented by the processor 401 (or the processor 401 and the memory 402) shown in fig. 4, that is, the actions of the communication module 301 and/or the processing module 302 may be performed by the processor 401 (or the processor 401 and the memory 402).
Based on the same inventive concept, the present application also provides a computer-readable storage medium, which can store instructions that, when executed on a computer, cause the computer to perform the operation steps provided by the above method embodiments. The computer readable storage medium may be the memory 402 shown in fig. 4.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present application without departing from the spirit and scope of the application. Thus, if such modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is intended to include such modifications and variations as well.

Claims (17)

1. An admission test method, characterized in that the method comprises:
acquiring a value of a parameter item to be detected and a detection condition parameter of the parameter item to be detected from a server to be detected, wherein the parameter item is used for performing non-functional test;
determining a detection result according to the value of the parameter item and a detection condition, wherein the detection result indicates that the parameter item is correct or wrong, and the detection condition is determined according to the detection condition parameter;
and outputting the detection result.
2. The method of claim 1, wherein determining the detection condition of the parameter item based on the detection condition parameter comprises:
determining an expected result of the parameter item according to the detection condition parameters of the parameter item to be detected;
determining the detection condition based on the expected result.
3. The method of claim 1, wherein the server includes a database server, and the obtaining the value of the parameter item to be detected and the detection condition parameter of the parameter item to be detected from the server to be detected includes:
sending a message request through a performance test JMeter Java database interface JDBC, wherein the message request comprises an identifier of the server;
and receiving a response message through JMeter JDBC, wherein the response message comprises the value of the parameter item and the detection condition parameter.
4. The method of claim 3, wherein the database server is for managing an application server, the application server for providing application services.
5. The method of claim 1, wherein the server includes an application server, and the obtaining the value of the parameter item to be detected and the detection condition parameter of the parameter item to be detected from the server to be detected includes:
sending a message request through a JMeter Security Shell (SSH), wherein the message request comprises an identifier of the server;
and receiving a response message through the JMeter SSH, wherein the response message comprises the value of the parameter item and the detection condition parameter.
6. The method of claim 1, wherein the detection condition parameters comprise performance parameters of the server.
7. The method of claim 1, wherein the method further comprises:
polling the server to be detected from a plurality of servers included in the server set.
8. An admission test apparatus, characterized in that the apparatus comprises:
the communication module is used for acquiring the value of the parameter item to be detected and the detection condition parameter of the parameter item to be detected from the server to be detected;
the processing module is used for determining a detection result according to the value of the parameter item and a detection condition, the detection result indicates that the parameter item is correct or wrong, and the detection condition is determined according to the detection condition parameter;
the communication module is further configured to output the detection result.
9. The apparatus of claim 8, wherein the processing module is specifically configured to:
determining an expected result of the parameter item according to the detection condition parameters of the parameter item to be detected;
determining the detection condition based on the expected result.
10. The apparatus of claim 8, wherein the communication module is specifically configured to:
sending a message request through JMeter JDBC, wherein the message request comprises the identifier of the server;
and receiving a response message through JMeter JDBC, wherein the response message comprises the value of the parameter item and the detection condition parameter.
11. The apparatus of claim 10, wherein the database server is configured to manage the application server.
12. The apparatus of claim 8, wherein the communication module is specifically configured to:
sending a message request through a JMeter SSH, wherein the message request comprises an identifier of the server;
and receiving a response message through the JMeter SSH, wherein the response message comprises the value of the parameter item and the detection condition parameter.
13. The apparatus of claim 8, wherein the detection condition parameter comprises a performance parameter of the server.
14. The apparatus of claim 8, wherein the processing module is further to:
polling the server to be detected from a plurality of servers included in the server set.
15. An electronic device, characterized in that the electronic device comprises a processor for implementing the steps of the method according to any of claims 1-7 when executing a computer program stored in a memory.
16. A computer-readable storage medium, characterized in that it stores a computer program which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 7.
17. A computer program product comprising a computer program which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 7.
CN202111590357.6A 2021-12-23 2021-12-23 Access test method and device Pending CN114238140A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111590357.6A CN114238140A (en) 2021-12-23 2021-12-23 Access test method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111590357.6A CN114238140A (en) 2021-12-23 2021-12-23 Access test method and device

Publications (1)

Publication Number Publication Date
CN114238140A true CN114238140A (en) 2022-03-25

Family

ID=80762049

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111590357.6A Pending CN114238140A (en) 2021-12-23 2021-12-23 Access test method and device

Country Status (1)

Country Link
CN (1) CN114238140A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115344327A (en) * 2022-08-19 2022-11-15 中电金信软件有限公司 Application module switching method and device, electronic equipment and readable storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115344327A (en) * 2022-08-19 2022-11-15 中电金信软件有限公司 Application module switching method and device, electronic equipment and readable storage medium
CN115344327B (en) * 2022-08-19 2023-07-28 中电金信软件有限公司 Application module switching method and device, electronic equipment and readable storage medium

Similar Documents

Publication Publication Date Title
CN109302522B (en) Test method, test device, computer system, and computer medium
US10769228B2 (en) Systems and methods for web analytics testing and web development
CN110750458A (en) Big data platform testing method and device, readable storage medium and electronic equipment
WO2022016847A1 (en) Automatic test method and device applied to cloud platform
CN110912776B (en) Automatic fuzzy test method and device for entity router management protocol
CN105512044B (en) Update method and system for the library of object of keyword driving test
US8219856B2 (en) Memory growth detection
CN108038039B (en) Method for recording log and micro-service system
CN107168844B (en) Performance monitoring method and device
EP3245588A1 (en) Root cause analysis of non-deterministic tests
CN112306837A (en) Cloud pressure testing method and platform, equipment and readable storage medium
CN112671605A (en) Test method and device and electronic equipment
CN110838929B (en) System error checking method and system error checking device
TW201629768A (en) Infrastructure rule generation
CN105164647A (en) Generating a fingerprint representing a response of an application to a simulation of a fault of an external service
CN114238140A (en) Access test method and device
CN111949548B (en) Automatic unauthorized penetration testing method and storage device
CN113965497A (en) Server abnormity identification method and device, computer equipment and readable storage medium
CN116401113B (en) Environment verification method, device and medium for heterogeneous many-core architecture acceleration card
CN114116388A (en) Applet data acquisition method, device and equipment and readable storage medium
CN116414594A (en) Fault tree updating method, device, computer equipment and storage medium
CN113656314A (en) Pressure test processing method and device
CN111597101A (en) SDK access state detection method, computer device and computer readable storage medium
CN111324542B (en) Web application regression test case selection system, method and equipment
CN115733828A (en) API parameter identification method and device, electronic equipment and storage medium

Legal Events

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