CN117472735A - Market stability testing system, method and device and electronic equipment - Google Patents

Market stability testing system, method and device and electronic equipment Download PDF

Info

Publication number
CN117472735A
CN117472735A CN202311271881.6A CN202311271881A CN117472735A CN 117472735 A CN117472735 A CN 117472735A CN 202311271881 A CN202311271881 A CN 202311271881A CN 117472735 A CN117472735 A CN 117472735A
Authority
CN
China
Prior art keywords
test
server
target
quotation
scene
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
CN202311271881.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 Securities Co Ltd
Original Assignee
China Securities 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 China Securities Co Ltd filed Critical China Securities Co Ltd
Priority to CN202311271881.6A priority Critical patent/CN117472735A/en
Publication of CN117472735A publication Critical patent/CN117472735A/en
Pending legal-status Critical Current

Links

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
    • G06F11/3684Test management for test design, e.g. generating new test cases
    • 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
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Business, Economics & Management (AREA)
  • Physics & Mathematics (AREA)
  • Accounting & Taxation (AREA)
  • General Engineering & Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Computer Hardware Design (AREA)
  • Finance (AREA)
  • Development Economics (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Strategic Management (AREA)
  • Technology Law (AREA)
  • General Business, Economics & Management (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The embodiment of the invention provides a system, a method, a device and electronic equipment for testing market stability, which relate to the technical field of testing, and comprise the following steps: an automatic test server, a quotation server and a financial client; the automatic test server determines a first test script and a second test script of the target test scene, and issues the first test script to the quotation server and issues the second test script to the financial client; the quotation server receives a first test script issued by the automatic test server, executes the first test script and issues target quotation information to the financial client in a first state; the financial client receives a second test script issued by the automatic test server, executes the second test script, detects whether the target market information is successfully received in the second state, obtains a detection result, and determines a market stability test result of the financial client in the target test scene based on the detection result. The efficiency of market stability test can be improved through this scheme.

Description

Market stability testing system, method and device and electronic equipment
Technical Field
The present invention relates to the field of testing technologies, and in particular, to a system, a method, an apparatus, and an electronic device for testing market stability.
Background
With the development of the financial industry, the trade of financial products is carried out by a client side, and the market information of the financial products is particularly important when the trade of the financial products is carried out; when a financial client is developed, market stability test is carried out on the financial client, and the financial client becomes an important component of software development. The market stability test is to test whether a financial client can acquire market information of a financial product under various network states, normal or abnormal running states of a server and other test scenes.
In the related art, a manual mode is generally adopted to manually perform market stability testing of a financial client.
If the market stability test is performed by adopting the related technology, the automation degree of the manual test mode is low, and the efficiency of the market stability test is definitely affected.
Disclosure of Invention
The embodiment of the invention aims to provide a market stability test system, a market stability test method, a market stability test device and electronic equipment, so that the market stability test efficiency is improved. The specific technical scheme is as follows:
In a first aspect, the present invention provides a market stability testing system, the system comprising: an automatic test server, a quotation server and a financial client;
the automatic test server is used for determining a first test script and a second test script corresponding to a target test scene, issuing the first test script to the quotation server and issuing the second test script to the financial client; when the first test script is executed by the quotation server, the running state of the quotation server is adjusted to be a first state required by the quotation server in the target test scene; when the second test script is executed by the financial client, the running state of the financial client is adjusted to be a second state required by the financial client under the target test scene;
the quotation server is used for receiving the first test script issued by the automatic test server, executing the first test script and issuing target quotation information about financial products to the financial client in the first state;
the financial client is configured to receive the second test script issued by the automated test server, execute the second test script, detect whether the second test script is successfully received for the target market information in the second state, obtain a detection result, and determine a market stability test result of the financial client in the target test scene based on the detection result.
Optionally, the system further comprises: the system network management module is a functional module used for network management in the electronic equipment to which the financial client belongs;
the automatic test server is further used for determining a third test script corresponding to the target test scene and issuing the third test script to the system network management module; when the third test script is executed by the system network management module, the network state of the electronic equipment is adjusted to be the network state required by the electronic equipment under the target test scene;
the system network management module is used for receiving the third test script issued by the automatic test server, executing the third test script and sending a network state change notification to the financial client;
the financial client is further configured to send request information about target market information of a financial product to the market server in response to receiving the network state change notification sent by the system network management module, and trigger detection of whether the target market information is successfully received in the second state, so as to obtain a detection result;
The quotation server issuing target quotation information about a financial product to the financial client in the first state, comprising:
and in response to receiving the request information, issuing target quotation information about a financial product to the financial client in the first state.
Optionally, the financial client is further configured to record target log information, where the target log information is log information about a network state and/or log information about the target market information;
the system further comprises: a log analysis server;
the log analysis server is used for periodically acquiring the log information recorded by the financial client and carrying out preset analysis processing on the acquired log information to obtain an analysis result.
Optionally, the target test scene includes:
the method comprises the steps of operating a behavior test scene, a network state test scene and/or a quotation server performance test scene by a user; wherein, the market server performance test scene includes: the quotation server runs a test scene, a quotation server pressure test scene or a quotation server destructive test scene.
Optionally, before the automated test server determines the first test script and the second test script corresponding to the target test scenario, the automated test server is further configured to: determining a target test scene;
The determining mode of the target test scene comprises the following steps: determining the target test scene according to preset corresponding relation between each time period and the test scene and the time period to which the current time belongs;
each time period comprises a time period before the disc is opened, a time period in the disc is opened, a time period after the disc is opened and a time period at night;
the test scene corresponding to the time period before the representation is opened comprises: the user operates the behavior test scene and the quotation server operates the test scene; the test scene corresponding to the time period in the representation opening comprises: a market server stress test scene and a user operation behavior test scene, and/or a market server destructive test scene and a network state test scene; the test scene corresponding to the time period after the disc is characterized by comprising: running a test scene and a network state test scene by the quotation server; the test scene corresponding to the time period for representing the night comprises the following steps: the system comprises a market server stress test scene and a user operation behavior test scene.
In a second aspect, the present invention provides a market stability testing method applied to an automated testing server, the method comprising:
Determining a first test script and a second test script corresponding to a target test scene; when the first test script is executed by the quotation server, the running state of the quotation server is adjusted to be a first state required by the quotation server under the target test scene; when the second test script is executed by the financial client, the running state of the financial client is adjusted to be a second state required by the financial client under the target test scene;
issuing the first test script to a quotation server, issuing the second test script to a financial client so that the quotation server receives the first test script issued by the automatic test server, executing the first test script and issuing target quotation information about financial products to the financial client in the first state; and the financial client receives the second test script issued by the automatic test server, executes the second test script, detects whether the second test script is successfully received aiming at the target market information in the second state, obtains a detection result, and determines a market stability test result of the financial client in the target test scene based on the detection result.
In a third aspect, the present invention provides a market stability testing method applied to a financial client, the method comprising:
receiving a second test script issued by an automatic test server, and executing the second test script; the second test script is a second test script which is determined by the automatic test server and corresponds to a target test scene, and when the second test script is executed by the financial client, the running state of the financial client is adjusted to be a second state required by the financial client under the target test scene;
detecting whether the target market information is successfully received in the second state, and obtaining a detection result;
determining a market stability test result of the financial client under the target test scene based on the detection result;
the target quotation information is target quotation information about financial products, which is issued to the financial client in the first state, and is received by the quotation server and issued by the automatic test server, and the first test script is executed; the first test script is a first test script which is determined by the automatic test server and corresponds to a target test scene, and when the first test script is executed by the quotation server, the running state of the quotation server is adjusted to be a first state required by the quotation server under the target test scene.
In a fourth aspect, the present invention provides a market stability testing device for use with an automated testing server, the device comprising:
the first determining module is used for determining a first test script and a second test script corresponding to the target test scene; when the first test script is executed by the quotation server, the running state of the quotation server is adjusted to be a first state required by the quotation server under the target test scene; when the second test script is executed by the financial client, the running state of the financial client is adjusted to be a second state required by the financial client under the target test scene;
the issuing module is used for issuing the first test script to a quotation server, issuing the second test script to a financial client so that the quotation server receives the first test script issued by the automatic test server, executing the first test script and issuing target quotation information about financial products to the financial client in the first state; and the financial client receives the second test script issued by the automatic test server, executes the second test script, detects whether the second test script is successfully received aiming at the target market information in the second state, obtains a detection result, and determines a market stability test result of the financial client in the target test scene based on the detection result.
In a fifth aspect, the present invention provides a market stability testing device, applied to a financial client, the device comprising:
the execution module is used for receiving a second test script issued by the automatic test server and executing the second test script; the second test script is a second test script which is determined by the automatic test server and corresponds to a target test scene, and when the second test script is executed by the financial client, the running state of the financial client is adjusted to be a second state required by the financial client under the target test scene;
the detection module is used for detecting whether the target quotation information is successfully received in the second state or not, and obtaining a detection result;
the second determining module is used for determining a market stability test result of the financial client under the target test scene based on the detection result;
the target quotation information is target quotation information about financial products, which is issued to the financial client in the first state, and is received by the quotation server and issued by the automatic test server, and the first test script is executed; the first test script is a first test script which is determined by the automatic test server and corresponds to a target test scene, and when the first test script is executed by the quotation server, the running state of the quotation server is adjusted to be a first state required by the quotation server under the target test scene.
In a sixth aspect, the present invention provides an electronic device, including a processor, a communication interface, a memory, and a communication bus, where the processor, the communication interface, and the memory complete communication with each other through the communication bus;
a memory for storing a computer program;
and the processor is used for realizing any one of the market stability testing methods when executing the programs stored in the memory.
In a seventh aspect, the present invention provides a computer readable storage medium having a computer program stored therein, which when executed by a processor implements any of the market stability testing methods.
The embodiment of the invention also provides a computer program product containing instructions, which when run on a computer, cause the computer to execute the market stability testing method described in any one of the above.
The embodiment of the invention has the beneficial effects that:
according to the market stability test system provided by the embodiment of the invention, the first test script and the second test script corresponding to the target test scene are preset in the automatic test server, when the first test script is executed by the market server, the running state of the market server is adjusted to be the first state required by the market server under the target test scene, and when the second test script is executed by the financial client, the running state of the financial client is adjusted to be the second state required by the financial client under the target test scene; that is, the automated test server may determine a first test script and a second test script corresponding to the target test scenario, issue the first test script to the quotation server, issue the second test script to the financial client, and respectively adjust the running states of the quotation server and the financial client to the states required by the target test scenario; the quotation server receives the first test script and executes the first test script, and issues target quotation information about the financial product to the financial client in a first state; the financial client receives the second test script and executes the second test script, detects whether the second test script is received aiming at the target market information in the second state, obtains a detection result, and can determine the market stability test result of the financial client in the target test scene based on the detection result. Therefore, in the invention, the financial client can detect whether the target market information is successfully received in the second state or not by the way of issuing the script by the automatic test server, and the market stability test result of the financial client in the target test scene is determined, so that the automation of the market stability test of the financial client is realized, and the efficiency of the market stability test is improved.
Of course, it is not necessary for any one product or method of practicing the invention to achieve all of the advantages set forth above at the same time.
Drawings
In order to more clearly illustrate the embodiments of the invention or the technical solutions in the prior art, the drawings used in the embodiments or the description of the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the invention, and other embodiments may be obtained according to these drawings to those skilled in the art.
FIG. 1 is a schematic diagram of a market stability testing system according to an embodiment of the present invention;
FIG. 2 is an interaction schematic diagram of a market stability testing system according to an embodiment of the present invention;
FIG. 3 is another schematic diagram of a market stability testing system according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of a market stability testing system according to an embodiment of the present invention;
fig. 5 is a schematic diagram of a test scenario set for different time periods according to an embodiment of the present invention;
FIG. 6 is a flow chart of a market stability testing method according to an embodiment of the present invention;
FIG. 7 is a schematic flow chart of a market stability testing method according to an embodiment of the present invention;
FIG. 8 is a schematic structural diagram of a market stability testing device according to an embodiment of the present invention;
FIG. 9 is a schematic diagram of another structure of a market stability testing device according to an embodiment of the present invention;
fig. 10 is a schematic diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. Based on the embodiments of the present invention, those of ordinary skill in the art will be able to devise all other embodiments that are obtained based on this application and are within the scope of the present invention.
With the rapid development of clients in the financial industry, it is very popular for users to conduct financial product transactions by means of clients, and the market information of financial products is particularly important for the transactions of financial products, so the requirements for obtaining the stability of the market information of financial products in clients are continuously rising. When developing a financial client, it becomes an important component to perform a market stability test on the financial client.
In the testing process in the related art, the market stability test of the financial client is usually manually performed by a manual mode, and whether the synchronization and refreshing of the market information in the financial client meet the expectations is manually verified.
If the market stability test is performed by adopting the related technology, the manual test mode has a great influence on the test efficiency of the testers, repeated tests are easy to cause, and the efficiency of the market stability test is definitely influenced; and the manual test mode can not realize the market stability test of the whole time period, has the limitation in time.
Based on the above, the embodiment of the invention provides a system, a method, a device and electronic equipment for testing the market stability, so as to improve the efficiency of the market stability test.
The following first describes a market stability testing system provided by the embodiment of the present invention.
The market stability test system provided by the embodiment of the invention can be applied to any scene with market stability test requirements, for example: the method comprises the steps of operating test scenes of normal operation of a user, test scenes of different network states, test scenes of different operating states of a server and the like. In addition, different types of test scenarios may be performed simultaneously, for example: the testing of different network states can be performed under the running testing scene of normal operation of a user; or, in the operation test scenario of normal operation of the user, the test of different network states, the test of different operation states of the server, and the like are performed, which is not limited by the present invention.
The market stability testing system provided by the embodiment of the invention comprises: an automatic test server, a quotation server and a financial client.
The financial client can be a financial client to be tested, the financial client can acquire market information about financial products, a result of whether the market information is successfully acquired can be used as a market stability test result, and if the market stability test result is failure in acquiring the market information, the financial client can be optimized, and the like.
The quotation server is a server for issuing quotation information, and can be a server cluster or a single server.
In the automatic test server, test scripts for various test scenes can be preset, and the market stability test for various test scenes can be automatically realized by issuing corresponding test scripts to the financial client and the market server.
Wherein, in the market stability testing system provided by the embodiment of the invention,
the automatic test server is used for determining a first test script and a second test script corresponding to a target test scene, issuing the first test script to the quotation server and issuing the second test script to the financial client; when the first test script is executed by the quotation server, the running state of the quotation server is adjusted to be a first state required by the quotation server in the target test scene; when the second test script is executed by the financial client, the running state of the financial client is adjusted to be a second state required by the financial client under the target test scene;
The quotation server is used for receiving the first test script issued by the automatic test server, executing the first test script and issuing target quotation information about financial products to the financial client in the first state;
the financial client is configured to receive the second test script issued by the automated test server, execute the second test script, detect whether the second test script is successfully received for the target market information in the second state, obtain a detection result, and determine a market stability test result of the financial client in the target test scene based on the detection result.
According to the market stability test system provided by the embodiment of the invention, the first test script and the second test script corresponding to the target test scene are preset in the automatic test server, when the first test script is executed by the market server, the running state of the market server is adjusted to be the first state required by the market server under the target test scene, and when the second test script is executed by the financial client, the running state of the financial client is adjusted to be the second state required by the financial client under the target test scene; that is, the automated test server may determine a first test script and a second test script corresponding to the target test scenario, issue the first test script to the quotation server, issue the second test script to the financial client, and respectively adjust the running states of the quotation server and the financial client to the states required by the target test scenario; the quotation server receives the first test script and executes the first test script, and issues target quotation information about the financial product to the financial client in a first state; the financial client receives the second test script and executes the second test script, detects whether the second test script is received aiming at the target market information in the second state, obtains a detection result, and can determine the market stability test result of the financial client in the target test scene based on the detection result. Therefore, in the invention, the financial client can detect whether the target market information is successfully received in the second state or not by the way of issuing the script by the automatic test server, and the market stability test result of the financial client in the target test scene is determined, so that the automation of the market stability test of the financial client is realized, and the efficiency of the market stability test is improved.
The following describes a market stability testing system provided by the embodiment of the invention with reference to the accompanying drawings.
Fig. 1 is a schematic diagram of a market stability testing system according to an embodiment of the present invention, as shown in fig. 1, the system includes: an automated test server 100, a quotation server 200, and a financial client 300;
the automated test server 100 is configured to determine a first test script and a second test script corresponding to a target test scenario, send the first test script to the quotation server 200, and send the second test script to the financial client 300; when the first test script is executed by the quotation server 200, the running state of the quotation server 200 is adjusted to a first state required by the quotation server 200 in the target test scene; when the second test script is executed by the financial client 300, the running state of the financial client 300 is adjusted to a second state required by the financial client 300 in the target test scenario;
the quotation server 200 is configured to receive the first test script issued by the automated test server 100, execute the first test script, and issue target quotation information about a financial product to the financial client 300 in the first state;
The financial client 300 is configured to receive the second test script issued by the automated test server 100, execute the second test script, detect whether the second state is successful in receiving the target market information, obtain a detection result, and determine a market stability test result of the financial client 300 in the target test scene based on the detection result.
Next, the description will be given of the market stability testing system provided by the embodiment of the present invention shown in fig. 1, in conjunction with the interaction process of the automated testing server 100, the market server 200, and the financial client 300 in the market stability testing system.
Fig. 2 is a schematic diagram of an interaction relationship of a market stability testing system according to an embodiment of the present invention, as shown in fig. 2, an interaction process of an automation testing server 100, a market server 200 and a financial client 300 in the market stability testing system may include the following steps:
s201: the automated test server 100 determines a first test script and a second test script corresponding to the target test scenario;
when the first test script is executed by the quotation server, the running state of the quotation server is adjusted to be a first state required by the quotation server in the target test scene; when the second test script is executed by the financial client, the running state of the financial client is adjusted to be a second state required by the financial client under the target test scene;
When the market stability test is performed, the automatic test server 100 is preset with test scripts corresponding to various test scenes, a first test script and a second test script corresponding to a target test scene can be determined first, the first test script and the second test script can be executed by the market server and the financial client respectively, when the first test script and the second test script are executed, the running state of the market server is adjusted to be a first state in the target test scene, the running state of the financial client is adjusted to be a second state in the target test scene, and the follow-up market server is in the first state, and the financial client is in the second state, so that the market stability test of the financial client in the target test scene is realized.
The target test scene may be any test scene related to market stability, and exemplary target test scenes include: the method comprises the steps of operating a behavior test scene, a network state test scene and/or a quotation server performance test scene by a user; wherein, the market server performance test scene includes: the quotation server runs a test scene, a quotation server pressure test scene or a quotation server destructive test scene.
The operation behavior testing scene of the user is to test the market stability under different operation behaviors of the user when the network state and the operation state of the market server are normal operation states, and the financial client can successfully acquire the market information under different operation behaviors (the operation behaviors can be operation behaviors causing reconnection of the market information, such as screen cutting, background cutting, long-time standing and the like); the network state test scenario is to test the market stability under different network states of the financial client when the operation behavior of the user is normal operation and the operation state of the market server is normal operation, and test different network states, such as: disconnected, weak or network change, etc., whether the financial client can successfully acquire the quotation information; the performance test of the quotation server is that when the operation behavior of the user is normal operation and the network state is normal operation, the quotation stability test is carried out under different performances of the quotation server, and under the different performances of the quotation server, whether the financial client can successfully acquire the quotation information is tested, specifically comprising: the quotation server runs a test scene, a quotation server pressure test scene or a quotation server destructive test scene.
The target test scenario may be one of the test scenarios described above, for example: the user operation behavior test scene can test different operation behaviors of the user at this time, specifically, the different operation behaviors of the user can be operation behaviors causing reconnection of market information, such as: switching operation behaviors such as page, backing, screen-off, standing for a long time and the like, and testing whether the financial client can successfully acquire the quotation information under the operation behaviors; at this time, the default quotation server can normally operate and the financial client network state is good. For the test scene, the first state of the quotation server is the normal running state of the quotation server, and the second state of the financial client is the state of operation behavior of reconnecting quotation information of a user in the financial client; the first test script is a script simulating the normal running state of the quotation server, and the second test script is a script simulating the operation behavior of the user causing the reconnection of quotation information.
The target test scenario may also be a plurality of test scenarios as described above, for example: the system comprises a network state test scene and a quotation server performance test scene, wherein the quotation server test scene can be a quotation server pressure test scene, and the system can default that the operation behavior of a user can not cause reconnection of quotation information; the network status of the financial client may be adjusted, for example: the normal network state is adjusted to be a weak network state, a broken network state or switched to other networks, and the performance pressure of the quotation server is adjusted, for example: the normal running state of the quotation server is adjusted to be in a high-pressure state, 1000 clients can be simulated to access the quotation server at the same time, or an instruction is sent to the 1000 clients, so that the 1000 clients access the quotation server at the same time, and the normal running state of the quotation server is adjusted to be in a high-pressure state; and in the scene, whether the financial client can successfully acquire the quotation information is tested. For the test scene, the first state of the quotation server is the high-pressure state of the quotation server, and the second state of the financial client is the normal running state of the financial client; the first test script is a script simulating a high-pressure state of the quotation server, and the second test script is a script simulating normal operation of the financial client.
In addition, the system further comprises: the system network management module is a functional module used for network management in the electronic equipment to which the financial client belongs;
the automatic test server is further used for determining a third test script corresponding to the target test scene and issuing the third test script to the system network management module; when the third test script is executed by the system network management module, the network state of the electronic equipment is adjusted to be the network state required by the electronic equipment under the target test scene;
the system network management module is used for receiving the third test script issued by the automatic test server, executing the third test script and sending a network state change notification to the financial client;
the financial client is further configured to send request information about target market information of a financial product to the market server in response to receiving the network state change notification sent by the system network management module, and trigger detection of whether the target market information is successfully received in the second state, so as to obtain a detection result;
The quotation server issuing target quotation information about a financial product to the financial client in the first state, comprising:
and in response to receiving the request information, issuing target quotation information about a financial product to the financial client in the first state.
The quotation stability test system also comprises a system network management module, wherein the system network management module is a functional module for network management in the electronic equipment to which the financial client belongs, and when the quotation stability test is carried out, the quotation server can control the network state of the electronic equipment through the system network management module in a script issuing mode; specifically, the automated test server determines a third test script corresponding to the target test scene and issues the third test script to the system network management module, the system network management module can receive and execute the third test script, at this time, the network state of the electronic device is a network state required by the electronic device, the system network management module can send a network state change notification to the financial client, and after receiving the network state change notification, the financial client can send request information for target quotation information to the quotation server and detect whether the financial client is successful in obtaining the target quotation information in the second state under the adjusted network state, thereby obtaining a detection result.
The system network management module can realize market stability test of network state test scenes for the financial clients, specifically, test scripts for various network states are preset in the automatic test server, the network state of the financial clients can be defaulted to be normal initially, the target test scenes can be network state test scenes, and at the moment, a third test script determined by the automatic test server is: the network state after the adjustment that the electronic equipment corresponds to is to simulate the test script of weak network, the test script of broken network or the test script of analog network replacement: a weak network state, a disconnected network state, or a network change state, wherein the network change state is a state in which a network to which the electronic device is connected is switched to another network.
It should be noted that, if the target test scenario is the above-mentioned test scenario, for the user operation behavior test scenario, the first test scenario is a scenario simulating normal operation of the market server, and the second test scenario is an operation behavior simulating reconnection of market information, for example: switching operation behaviors such as page switching, background returning, screen stopping, long-time standing and the like, and the third test script is a script simulating a normal network state. For the network state test scene, the first test script is a script for simulating normal running of the quotation server, the second test script is a script for simulating normal running of the financial client, and the third test script is a script for simulating adjustment of the normal network state into a weak network state, a broken network state or a network change state, namely a test script for simulating weak network, a test script for simulating broken network or a test script for simulating network change. Aiming at a performance test scene of the quotation server, if the performance test scene is specifically a running test scene of the quotation server, the first test script is a script for simulating normal running of the quotation server; if the first test script is a script simulating a high pressure state of the quotation server, 1000 clients can be simulated to access the quotation server at the same time, or an instruction is sent to the 1000 clients, so that the 1000 clients can access the quotation server at the same time, and the like; if the destructive testing of the market place server is specific, the market place server is a server cluster, for example: the quotation server consists of 10 servers, and the first test script can be a test script for closing 9 servers; and in the performance test scene of the quotation server, the second test script is a script for simulating normal running of the financial client, and the third test script is a script for simulating normal network state.
The first test scripts corresponding to different target test scenes can be the same or different, the second test scripts corresponding to different target test scenes can be the same or different, the third test scripts corresponding to different target test scenes can be the same or different, under the condition that different target test scenes are ensured, the corresponding first test scripts, second test scripts and third test scripts are different, and under the condition that at least one script is different, the invention does not limit the test scripts corresponding to different target test scenes.
In addition, before the automated test server 100 determines the first test script and the second test script corresponding to the target test scenario, the automated test server is further configured to: determining a target test scene;
the determining mode of the target test scene comprises the following steps: determining the target test scene according to preset corresponding relation between each time period and the test scene and the time period to which the current time belongs;
each time period comprises a time period before the disc is opened, a time period in the disc is opened, a time period after the disc is opened and a time period at night;
the test scene corresponding to the time period before the representation is opened comprises: the user operates the behavior test scene and the quotation server operates the test scene; the test scene corresponding to the time period in the representation opening comprises: a market server stress test scene and a user operation behavior test scene, and/or a market server destructive test scene and a network state test scene; the test scene corresponding to the time period after the disc is characterized by comprising: running a test scene and a network state test scene by the quotation server; the test scene corresponding to the time period for representing the night comprises the following steps: the system comprises a market server stress test scene and a user operation behavior test scene.
In the present invention, for different time periods: the method comprises the steps of determining a current time point and a time period of the current time point when a target test scene is determined, and further determining that the corresponding test scene is the target test scene; at this time, corresponding test scenes are arranged for the time period of the whole day, so that the automatic market stability test of the whole time period can be realized.
S202: the automated test server 100 issues the first test script to the quotation server;
after the automated test server determines the first test script, the first test script may be issued to the quotation server.
S203: the automated test server 100 issues the second test script to the financial client;
after the automated test server determines the second test script, the second test script may be issued to the financial client.
S204: the quotation server 200 receives the first test script issued by the automatic test server and executes the first test script;
The quotation server can receive a first test script issued by the automatic test server, execute the first test script, and adjust the running state of the quotation server to a first state after the execution is finished.
S205: the quotation server 200 issues target quotation information about the financial product to the financial client in the first state;
after the execution of the first test script, the running state of the quotation server is adjusted to be the first state, namely, the state required by the quotation server in the target test scene, and at the moment, the target quotation information about the financial product can be issued to the financial client in the first state so as to carry out the quotation stability test on the financial client subsequently.
S206: the financial client 300 receives the second test script issued by the automated test server and executes the second test script;
the financial client can receive a second test script issued by the automatic test server, execute the second test script, and adjust the running state of the financial client to a second state after the execution is completed.
S207: the financial client 300 detects whether the target market information is successfully received in the second state, a detection result is obtained, and a market stability test result of the financial client in the target test scene is determined based on the detection result;
After the second test script is executed, the running state of the financial client is adjusted to be a second state, namely, the state required by the financial client in the target test scene, whether the target market information is successfully received in the second state can be detected at the moment, a detection result is obtained, and the market stability test result of the financial client in the target test scene is determined based on the detection result.
The detection result may be a result of successful or unsuccessful receiving of the target market information, and may be directly used as a market stability test result of the financial client in the target test scene, or may be further analyzed, for example: the detection result is a target market information receiving failure, and the reason of the receiving failure can be analyzed, and the detection result of the target market information receiving failure, the reason of the receiving failure, and the like are used as market stability test results, and the invention is not limited to this.
It should be noted that, the financial client may also feed back the detection result or the market stability test result of the financial client in the target test scenario to the automated test server, which is all reasonable.
In addition, the financial client can also receive a network state change notification sent by the system network management module, the network state change notification can be used as an instruction for the financial client to acquire target quotation information, and the financial client can respond to the received network state change notification sent by the system network management module, send request information about the target quotation information of the financial product to a quotation server and trigger to detect whether the target quotation information is successfully received in a second state, so as to acquire a detection result; at this time, the quotation server may issue target quotation information about the financial product to the financial client in the first state in response to receiving the request information.
It will be appreciated that the steps S202 and S203 may be performed simultaneously, the steps S204 and S206 may be performed simultaneously, the step S205 may be performed after the step S206, and the order of performing the steps is not limited in the present invention.
According to the market stability test system provided by the embodiment of the invention, the first test script and the second test script corresponding to the target test scene are preset in the automatic test server, when the first test script is executed by the market server, the running state of the market server is adjusted to be the first state required by the market server under the target test scene, and when the second test script is executed by the financial client, the running state of the financial client is adjusted to be the second state required by the financial client under the target test scene; that is, the automated test server may determine a first test script and a second test script corresponding to the target test scenario, issue the first test script to the quotation server, issue the second test script to the financial client, and respectively adjust the running states of the quotation server and the financial client to the states required by the target test scenario; the quotation server receives the first test script and executes the first test script, and issues target quotation information about the financial product to the financial client in a first state; the financial client receives the second test script and executes the second test script, detects whether the second test script is received aiming at the target market information in the second state, obtains a detection result, and can determine the market stability test result of the financial client in the target test scene based on the detection result. Therefore, in the invention, the financial client can detect whether the target market information is successfully received in the second state or not by the way of issuing the script by the automatic test server, and the market stability test result of the financial client in the target test scene is determined, so that the automation of the market stability test of the financial client is realized, and the efficiency of the market stability test is improved.
Optionally, in another embodiment of the present invention, the financial client is further configured to record target log information, where the target log information is log information about a network state and/or log information about the target market information;
the system further comprises: a log analysis server;
the log analysis server is used for periodically acquiring the log information recorded by the financial client and carrying out preset analysis processing on the acquired log information to obtain an analysis result.
The financial client may also record target log information, such as: log information about network status may include network changes, network anomalies, network connection types, network signal strengths, and so forth; the target log information may also include log information about target quotation information, such as: logs generated when obtaining the target market information, such as: the failure to acquire the target market information may be recorded with the reason or type of the failure to acquire, etc.
It should be noted that the target log information may also include logs generated by other services or functions of the financial client, and the present invention is not limited to the target log information.
The market stability test system provided by the invention can also comprise a log analysis server, wherein the log analysis server can periodically acquire log information recorded by the financial client, can acquire all log information recorded by the financial client, namely target log information, and can also acquire part of log information recorded by the financial client, such as: regarding the log information of the network status, the present invention is not limited thereto, and the log analysis server may perform predetermined analysis processing on the obtained log information, for example: disturbance analysis of network channels, analysis of network capacity switching of financial clients, pressure analysis of a market server, trigger analysis of market information reconnection logic of the financial clients and the like are carried out, analysis results are obtained, and can be transmitted into other systems for workers (such as operation and maintenance personnel or developers and the like) to view and optimize a market stability test system and the like, and defects and the like in the market stability test system can be optimized.
The market stability testing system provided by the embodiment of the invention is described below with reference to another embodiment.
As shown in fig. 3, the market stability test system includes: a server and a mobile terminal; wherein, the server side includes: the system comprises a quotation server cluster, an automatic test server and a log analysis server, wherein the quotation server cluster, the automatic test server and the log analysis server correspond to the quotation server, the automatic test server and the log analysis server respectively; the log analysis server includes: test result collection service and test result analysis service; the mobile terminal, namely the electronic device, comprises: financial client and system network management module, financial client includes: the system comprises a quotation module, a communication module and a log module.
The automatic test server is preset with scripts aiming at various target test scenes, and a first test script, a second test script and a third test script corresponding to the target test scenes can be determined first; the first test script is issued to the quotation server cluster, the second test script is issued to the quotation module in the financial client, the third test script is issued to the system network management module, the test script is further executed, the quotation server cluster executes the first test script, the quotation module executes the second test script, the system network management module executes the third test script, after the execution is finished, the quotation server cluster is in a first state (such as a normal running state, a high pressure state or a destructive state) corresponding to a target test scene, the quotation module of the financial client is in a second state (such as a normal running state or a state simulating operation behavior of reconnecting quotation information caused by a user) corresponding to the target test scene, and the network state of the mobile terminal is a network state (such as a normal network state, a weak network state, a network disconnection state or a network change state) corresponding to the target test scene. In addition, the automated test server may perform test script delivery on the quotation server cluster, the network of the mobile terminal, and the quotation module of the financial client, for example: disturbance of network channels, network switching of mobile terminals, pressure adjustment of a quotation server cluster, triggering of quotation information reconnection logic of a financial client, and the like.
The quotation server cluster can provide quotation service for the mobile terminal, namely, the quotation server can push quotation to a quotation module in the financial client, specifically, after the quotation server cluster executes the first test script of the automatic test server, the running state of the quotation server cluster is a first state, and the quotation server cluster can push quotation to the quotation module in the first state. The automatic test platform can provide a pressure test interface and a destructive test interface for the quotation server cluster, so that the state of the quotation server cluster is adjusted to be a high pressure state or a destructive state.
The system network management module may be understood as a network connection module of the mobile terminal, and may include management of on-off connection of a cellular network, a Wi-Fi network, etc., where the automatic test server may remotely control a network state of the system network management module by issuing a third script, for example: and controlling network states such as network on-off, jitter and weak network. After the system network management module finishes executing the third test script, the network state of the mobile terminal is adjusted to be the network state required by the mobile terminal in the target test scene, and the system network management module can send a network change notification to the communication module. Of course, the system network management module may also feed back to the automated test server the result of executing the third test script, for example: and feeding back the successful execution result and the executed network state to the automatic test server.
After receiving the notification of network change, the communication module can forward the notification of network change to the quotation module, or send an instruction for obtaining quotation information to the quotation module, and after receiving the notification or the instruction, the quotation module can respond to the received notification or instruction and send a request to the quotation server cluster to obtain quotation information. Of course, the communication module may also output the abnormal network state to the log module.
After the quotation module receives the second test script of the automatic test server, the running state of the financial client is adjusted to be the second state, after the notice or the instruction of the communication module is received, a request can be sent to the quotation server cluster, quotation information of quotation pushing by the quotation server cluster is obtained, whether the target quotation information is successfully received in the second state is triggered and detected, and a detection result is obtained. Of course, the quotation module may also output the exception log to the log module.
The log module can receive and record logs output by the quotation module and the passing module, and can receive logs output by the quotation module in normal operation besides abnormal logs output by the quotation module; the log module can receive logs of normal network states output by the communication module and the like besides the logs of the abnormal network states output by the communication module; the log module can record various logs related to network states and generated by acquiring market information in the market stability test process.
The log analysis server can acquire and analyze the log recorded by the log module; specifically, the test result collection service can regularly pull logs of the line about the emotion stability and the network from the log module and transmit the logs to the test result analysis service, the test result analysis service can analyze the log content, screen out abnormal logs, input the characteristics of the abnormal logs (such as network connection type, network signal strength, abnormal log error code, abnormal log stack and the like) to other systems, compare abnormal scenes existing in the historical emotion stability test, and perform preliminary diagnosis on the current emotion stability test so as to facilitate subsequent positioning analysis and the like.
It should be noted that, the financial client may provide the user with market information of the financial product, and the financial client includes: the system comprises a quotation module, a communication module, a log module and other financial service modules; according to the scheme, stability test is mainly carried out on the quotation module, the automatic test server can send out various abnormal scenes to the quotation module and trigger quotation stability test under various abnormal scenes, the generated behavior log is recorded and stored by the log module, and the log server is to be pulled at regular time.
Therefore, the market stability test system provided by the invention has the advantages that the test scripts aiming at various scenes are preset in the automatic test server, the first test script, the second test script and the third test script corresponding to the target test scene can be determined and issued to the market server cluster, the market quotation module and the system network management module, and the automatic market quotation stability test can be realized through the interaction of the modules in the market quotation stability test system, so that the problems of incomplete market quotation stability test and easiness in repeated test in manual test are solved, and the test efficiency and the test quality aiming at the market quotation stability of the financial client are improved.
The market stability testing system provided by the embodiment of the invention is described below with reference to another embodiment.
As shown in fig. 4, the market stability test system includes: the system comprises an automatic test server, a quotation server cluster, a financial client and a log analysis server; of course, a system network management module may also be included.
The mode of issuing the test script by the automatic test server can realize market stability test under different test scenes, and the different test scenes can comprise:
1. Conventional user behavior operation test;
when a user uses a financial client, operations such as page switching, background returning, screen extinguishing, long-time standing and the like can cause reconnection of market information, and the quick and efficient reconnection of market information is particularly important for the financial client.
The invention can preset the user behavior in the automatic test server, send the user behavior to the financial client in a test script mode, trigger the reconnection scene of various market information and judge the reconnection result to be fed back to the automatic test server.
2. Breaking, changing and weakening the network behavior test;
when a user uses a financial client, the situations of switching of a cellular network base station, network disconnection, weak network, cellular/Wi-Fi switching and the like, or the situations of switching of a double card, switching of a plurality of networks and the like can occur, and whether the market information can be reconnected to work in the situations is also very important for the financial client.
The invention can preset the network adjustment behavior in the automatic test server, and send the network adjustment behavior to the system network management module in the mobile terminal in a test script mode, simulate various network scenes and network adjustment behaviors, thereby testing whether the financial client can be normally connected with the quotation server cluster in various network states.
3. Testing the cluster pressure of the quotation server;
the test scene simulates that when the current user quantity is large, the market stability test is carried out on the financial client. Specifically, the automated test server performs pressure access on the quotation server cluster (for example, by means of issuing a script, the quotation server cluster simulates a pressure state that 1000 financial clients access the quotation server cluster simultaneously, or the automated test server enables 1000 financial clients to access the quotation server cluster simultaneously by means of issuing a script), and tests whether the financial clients can normally connect the quotation server cluster in the scene, or can test whether the quotation server cluster can be reconnected in the scenes of disconnected, network exchange, weak network and the like of the financial clients.
4. Destructive testing of the market place server cluster;
and when part of servers in the simulated quotation server cluster are down, the test scene is used for testing quotation stability of the financial client. Specifically, the automatic test server performs start-stop control on the quotation server cluster (for example, 10 servers in the quotation server cluster and 9 servers are closed), and tests whether the financial client can normally connect the quotation server cluster in the scene, and of course, whether the quotation server cluster can be reconnected in the scenes of disconnection, network replacement, weak network and the like of the financial client.
5. Normal operation test of the quotation server cluster;
and the test scene simulates that the market quotation server cluster normally operates, and the market quotation stability test is carried out on the financial client. Specifically, the automatic test server issues the script to the quotation server cluster, so that the quotation server cluster operates normally, whether the financial client can be normally connected with the quotation server cluster in the scene is tested, and whether the quotation server cluster can be reconnected in the scenes of disconnected, network exchange, weak network and the like of the financial client can be tested.
For various test scenarios, the log module of the financial client may record and store reconnection behavior process logs (network connection type, network signal strength, exception log error code, exception log stack, etc.).
The log analysis server can regularly pull logs from the log module of the financial client and analyze the logs, screen out abnormal logs, input the characteristics (network connection type, network signal strength, abnormal log error codes, abnormal log stacks and the like) of the abnormal logs into other systems, compare the abnormal scenes existing in the historical market stability test, and enable operation and maintenance/development staff to perform preliminary diagnosis on the current market stability test so as to facilitate subsequent positioning analysis and the like.
It should be noted that the above test scenario may alternatively be tested, and of course, a plurality of test scenarios may also be tested at the same time, which is not limited by the present invention.
In addition, in the invention, corresponding test scenes are preset for different time periods to realize the market stability test of the whole time period, wherein the test scenes of different time periods are shown in fig. 5, and the different time periods comprise: front, middle, back, night market;
for the front of the disk, the test scenario corresponding to the time period is: normal operation test and conventional user behavior operation test of the quotation server cluster;
for the disc, the test scenario corresponding to the time period is: the method comprises the steps of a market server cluster pressure test, a market server cluster destructive test, a conventional user behavior operation test, and a network disconnection, network replacement and weak network behavior test;
for the post-disk, the test scenario corresponding to this time period is: normal operation test of the quotation server cluster, network disconnection, network replacement and weak network behavior test;
for night market, the test scene corresponding to the time period is as follows: and (5) testing the stress of the market quotation server cluster and testing the conventional user behavior operation.
At this time, when determining the target test scene, the automated test server may determine a time period corresponding to the current time point, and use the test scene corresponding to the determined time period as the target test scene.
According to the market stability test system provided by the invention, the test scripts of various test scenes are preset in the automatic test server, the market stability test under various test scenes can be realized by the mode that the test scripts are issued by the automatic test server, and the updating actions of market information are different in different time periods. The scheme provided by the invention can realize automatic market stability test, provides guarantee for market stability test and improves the efficiency of market stability test; the full-time test can realize inspection type test, and ensures the stability of the quotation function of the financial client; and a sufficient abnormal positioning basis is provided for developers by means of log analysis.
Based on the market stability testing system, the invention also provides a market stability testing method which is applied to an automatic testing server, as shown in fig. 6, and comprises the following steps:
s601: determining a first test script and a second test script corresponding to a target test scene;
When the first test script is executed by the quotation server, the running state of the quotation server is adjusted to be a first state required by the quotation server in the target test scene; when the second test script is executed by the financial client, the running state of the financial client is adjusted to be a second state required by the financial client under the target test scene;
s602: issuing the first test script to a quotation server, issuing the second test script to a financial client so that the quotation server receives the first test script issued by the automatic test server, executing the first test script and issuing target quotation information about financial products to the financial client in the first state; and the financial client receives the second test script issued by the automatic test server, executes the second test script, detects whether the second test script is successfully received aiming at the target market information in the second state, obtains a detection result, and determines a market stability test result of the financial client in the target test scene based on the detection result.
In the invention, a first test script and a second test script corresponding to a target test scene are preset in an automatic test server, when the first test script is executed by a quotation server, the running state of the quotation server is adjusted to be a first state required by the quotation server under the target test scene, and when the second test script is executed by a financial client, the running state of the financial client is adjusted to be a second state required by the financial client under the target test scene; that is, the automated test server may determine a first test script and a second test script corresponding to the target test scenario, issue the first test script to the quotation server, issue the second test script to the financial client, and respectively adjust the running states of the quotation server and the financial client to the states required by the target test scenario; the quotation server receives the first test script and executes the first test script, and issues target quotation information about the financial product to the financial client in a first state; the financial client receives the second test script and executes the second test script, detects whether the second test script is received aiming at the target market information in the second state, obtains a detection result, and can determine the market stability test result of the financial client in the target test scene based on the detection result. Therefore, in the invention, the financial client can detect whether the target market information is successfully received in the second state or not by the way of issuing the script by the automatic test server, and the market stability test result of the financial client in the target test scene is determined, so that the automation of the market stability test of the financial client is realized, and the efficiency of the market stability test is improved.
Optionally, the method further comprises: determining a third test script corresponding to the target test scene, and issuing the third test script to the system network management module; the system network management module receives the third test script issued by the automatic test server, executes the third test script and sends a network state change notification to the financial client; the financial client responds to the network state change notification sent by the system network management module, sends request information of target quotation information of financial products to the quotation server, and triggers the step of detecting whether the target quotation information is successfully received in the second state to obtain a detection result;
when the third test script is executed by the system network management module, the network state of the electronic equipment is adjusted to be the network state required by the electronic equipment under the target test scene;
the quotation server issuing target quotation information about a financial product to the financial client in the first state, comprising:
and in response to receiving the request information, issuing target quotation information about a financial product to the financial client in the first state.
Optionally, the target test scene includes:
the method comprises the steps of operating a behavior test scene, a network state test scene and/or a quotation server performance test scene by a user; wherein, the market server performance test scene includes: the quotation server runs a test scene, a quotation server pressure test scene or a quotation server destructive test scene.
Optionally, before determining the first test script and the second test script corresponding to the target test scene, the method further includes: determining a target test scene;
the determining mode of the target test scene comprises the following steps: determining the target test scene according to preset corresponding relation between each time period and the test scene and the time period to which the current time belongs;
each time period comprises a time period before the disc is opened, a time period in the disc is opened, a time period after the disc is opened and a time period at night;
the test scene corresponding to the time period before the representation is opened comprises: the user operates the behavior test scene and the quotation server operates the test scene; the test scene corresponding to the time period in the representation opening comprises: a market server stress test scene and a user operation behavior test scene, and/or a market server destructive test scene and a network state test scene; the test scene corresponding to the time period after the disc is characterized by comprising: running a test scene and a network state test scene by the quotation server; the test scene corresponding to the time period for representing the night comprises the following steps: the system comprises a market server stress test scene and a user operation behavior test scene.
Based on the market stability testing system, the invention also provides a market stability testing method applied to a financial client, as shown in fig. 7, the method comprises the following steps:
s701: receiving a second test script issued by an automatic test server, and executing the second test script; the second test script is a second test script which is determined by the automatic test server and corresponds to a target test scene, and when the second test script is executed by the financial client, the running state of the financial client is adjusted to be a second state required by the financial client under the target test scene;
s702: detecting whether the target market information is successfully received in the second state, and obtaining a detection result;
s703: determining a market stability test result of the financial client under the target test scene based on the detection result;
the target quotation information is target quotation information about financial products, which is issued to the financial client in the first state, and is received by the quotation server and issued by the automatic test server, and the first test script is executed; the first test script is a first test script which is determined by the automatic test server and corresponds to a target test scene, and when the first test script is executed by the quotation server, the running state of the quotation server is adjusted to be a first state required by the quotation server under the target test scene.
In the invention, a first test script and a second test script corresponding to a target test scene are preset in an automatic test server, when the first test script is executed by a quotation server, the running state of the quotation server is adjusted to be a first state required by the quotation server under the target test scene, and when the second test script is executed by a financial client, the running state of the financial client is adjusted to be a second state required by the financial client under the target test scene; that is, the automated test server may determine a first test script and a second test script corresponding to the target test scenario, issue the first test script to the quotation server, issue the second test script to the financial client, and respectively adjust the running states of the quotation server and the financial client to the states required by the target test scenario; the quotation server receives the first test script and executes the first test script, and issues target quotation information about the financial product to the financial client in a first state; the financial client receives the second test script and executes the second test script, detects whether the second test script is received aiming at the target market information in the second state, obtains a detection result, and can determine the market stability test result of the financial client in the target test scene based on the detection result. Therefore, in the invention, the financial client can detect whether the target market information is successfully received in the second state or not by the way of issuing the script by the automatic test server, and the market stability test result of the financial client in the target test scene is determined, so that the automation of the market stability test of the financial client is realized, and the efficiency of the market stability test is improved.
Optionally, the method further comprises: responding to the network state change notification sent by the system network management module, sending request information of target quotation information about financial products to the quotation server, and triggering and detecting whether the target quotation information is successfully received in the second state to obtain a detection result;
the network state change notification is that the system network management module receives the third test script issued by the automatic test server and executes the third test script issued by the third test script; the third test script is a third test script which is determined by the automatic test server and corresponds to the target test scene, and the third test script is issued to the system network management module; when the third test script is executed by the system network management module, the network state of the electronic equipment is adjusted to be the network state required by the electronic equipment under the target test scene;
the quotation server issuing target quotation information about a financial product to the financial client in the first state, comprising:
and in response to receiving the request information, issuing target quotation information about a financial product to the financial client in the first state.
Optionally, the method further comprises: and recording target log information, wherein the target log information is log information about network state and/or log information about the target market information.
Optionally, the target test scene includes:
the method comprises the steps of operating a behavior test scene, a network state test scene and/or a quotation server performance test scene by a user; wherein, the market server performance test scene includes: the quotation server runs a test scene, a quotation server pressure test scene or a quotation server destructive test scene.
Optionally, before the automated test server determines the first test script and the second test script corresponding to the target test scenario, the automated test server is further configured to: determining a target test scene;
the determining mode of the target test scene comprises the following steps: determining the target test scene according to preset corresponding relation between each time period and the test scene and the time period to which the current time belongs;
each time period comprises a time period before the disc is opened, a time period in the disc is opened, a time period after the disc is opened and a time period at night;
the test scene corresponding to the time period before the representation is opened comprises: the user operates the behavior test scene and the quotation server operates the test scene; the test scene corresponding to the time period in the representation opening comprises: a market server stress test scene and a user operation behavior test scene, and/or a market server destructive test scene and a network state test scene; the test scene corresponding to the time period after the disc is characterized by comprising: running a test scene and a network state test scene by the quotation server; the test scene corresponding to the time period for representing the night comprises the following steps: the system comprises a market server stress test scene and a user operation behavior test scene.
Based on the above market stability testing method, the invention also provides a market stability testing device, which is applied to an automatic testing server, as shown in fig. 8, and the device comprises:
a first determining module 810, configured to determine a first test script and a second test script corresponding to a target test scenario; when the first test script is executed by the quotation server, the running state of the quotation server is adjusted to be a first state required by the quotation server under the target test scene; when the second test script is executed by the financial client, the running state of the financial client is adjusted to be a second state required by the financial client under the target test scene;
the issuing module 820 is configured to issue the first test script to a quotation server, issue the second test script to a financial client, so that the quotation server receives the first test script issued by the automated test server, execute the first test script, and issue target quotation information about a financial product to the financial client in the first state; and the financial client receives the second test script issued by the automatic test server, executes the second test script, detects whether the second test script is successfully received aiming at the target market information in the second state, obtains a detection result, and determines a market stability test result of the financial client in the target test scene based on the detection result.
In the invention, a first test script and a second test script corresponding to a target test scene are preset in an automatic test server, when the first test script is executed by a quotation server, the running state of the quotation server is adjusted to be a first state required by the quotation server under the target test scene, and when the second test script is executed by a financial client, the running state of the financial client is adjusted to be a second state required by the financial client under the target test scene; that is, the automated test server may determine a first test script and a second test script corresponding to the target test scenario, issue the first test script to the quotation server, issue the second test script to the financial client, and respectively adjust the running states of the quotation server and the financial client to the states required by the target test scenario; the quotation server receives the first test script and executes the first test script, and issues target quotation information about the financial product to the financial client in a first state; the financial client receives the second test script and executes the second test script, detects whether the second test script is received aiming at the target market information in the second state, obtains a detection result, and can determine the market stability test result of the financial client in the target test scene based on the detection result. Therefore, in the invention, the financial client can detect whether the target market information is successfully received in the second state or not by the way of issuing the script by the automatic test server, and the market stability test result of the financial client in the target test scene is determined, so that the automation of the market stability test of the financial client is realized, and the efficiency of the market stability test is improved.
Optionally, the apparatus further comprises: the third determining module is used for determining a third test script corresponding to the target test scene and issuing the third test script to the system network management module; the system network management module receives the third test script issued by the automatic test server, executes the third test script and sends a network state change notification to the financial client; the financial client responds to the network state change notification sent by the system network management module, sends request information of target quotation information of financial products to the quotation server, and triggers the step of detecting whether the target quotation information is successfully received in the second state to obtain a detection result;
when the third test script is executed by the system network management module, the network state of the electronic equipment is adjusted to be the network state required by the electronic equipment under the target test scene;
the quotation server issuing target quotation information about a financial product to the financial client in the first state, comprising:
And in response to receiving the request information, issuing target quotation information about a financial product to the financial client in the first state.
Optionally, the target test scene includes:
the method comprises the steps of operating a behavior test scene, a network state test scene and/or a quotation server performance test scene by a user; wherein, the market server performance test scene includes: the quotation server runs a test scene, a quotation server pressure test scene or a quotation server destructive test scene.
Optionally, the apparatus further comprises a fourth determining module for: determining a target test scene;
the determining mode of the target test scene comprises the following steps: determining the target test scene according to preset corresponding relation between each time period and the test scene and the time period to which the current time belongs;
each time period comprises a time period before the disc is opened, a time period in the disc is opened, a time period after the disc is opened and a time period at night;
the test scene corresponding to the time period before the representation is opened comprises: the user operates the behavior test scene and the quotation server operates the test scene; the test scene corresponding to the time period in the representation opening comprises: a market server stress test scene and a user operation behavior test scene, and/or a market server destructive test scene and a network state test scene; the test scene corresponding to the time period after the disc is characterized by comprising: running a test scene and a network state test scene by the quotation server; the test scene corresponding to the time period for representing the night comprises the following steps: the system comprises a market server stress test scene and a user operation behavior test scene.
Based on the above market stability testing method, the invention also provides a market stability testing device, which is applied to a financial client, as shown in fig. 9, and the device comprises:
an execution module 910, configured to receive a second test script issued by the automated test server, and execute the second test script; the second test script is a second test script which is determined by the automatic test server and corresponds to a target test scene, and when the second test script is executed by the financial client, the running state of the financial client is adjusted to be a second state required by the financial client under the target test scene;
the detection module 920 is configured to detect whether the target market information is successfully received in the second state, so as to obtain a detection result;
a second determining module 930, configured to determine a market stability test result of the financial client in the target test scenario based on the detection result;
the target quotation information is target quotation information about financial products, which is issued to the financial client in the first state, and is received by the quotation server and issued by the automatic test server, and the first test script is executed; the first test script is a first test script which is determined by the automatic test server and corresponds to a target test scene, and when the first test script is executed by the quotation server, the running state of the quotation server is adjusted to be a first state required by the quotation server under the target test scene.
In the invention, a first test script and a second test script corresponding to a target test scene are preset in an automatic test server, when the first test script is executed by a quotation server, the running state of the quotation server is adjusted to be a first state required by the quotation server under the target test scene, and when the second test script is executed by a financial client, the running state of the financial client is adjusted to be a second state required by the financial client under the target test scene; that is, the automated test server may determine a first test script and a second test script corresponding to the target test scenario, issue the first test script to the quotation server, issue the second test script to the financial client, and respectively adjust the running states of the quotation server and the financial client to the states required by the target test scenario; the quotation server receives the first test script and executes the first test script, and issues target quotation information about the financial product to the financial client in a first state; the financial client receives the second test script and executes the second test script, detects whether the second test script is received aiming at the target market information in the second state, obtains a detection result, and can determine the market stability test result of the financial client in the target test scene based on the detection result. Therefore, in the invention, the financial client can detect whether the target market information is successfully received in the second state or not by the way of issuing the script by the automatic test server, and the market stability test result of the financial client in the target test scene is determined, so that the automation of the market stability test of the financial client is realized, and the efficiency of the market stability test is improved.
Optionally, the apparatus further comprises: the sending module is used for responding to the network state change notification sent by the system network management module, sending request information of target quotation information of financial products to the quotation server, and triggering and detecting whether the target quotation information is successfully received in the second state or not to obtain a detection result;
the network state change notification is that the system network management module receives the third test script issued by the automatic test server and executes the third test script issued by the third test script; the third test script is a third test script which is determined by the automatic test server and corresponds to the target test scene, and the third test script is issued to the system network management module; when the third test script is executed by the system network management module, the network state of the electronic equipment is adjusted to be the network state required by the electronic equipment under the target test scene;
the quotation server issuing target quotation information about a financial product to the financial client in the first state, comprising:
And in response to receiving the request information, issuing target quotation information about a financial product to the financial client in the first state.
Optionally, the apparatus further comprises: and the recording module is used for recording target log information, wherein the target log information is log information about network state and/or log information about target quotation information.
Optionally, the target test scene includes:
the method comprises the steps of operating a behavior test scene, a network state test scene and/or a quotation server performance test scene by a user; wherein, the market server performance test scene includes: the quotation server runs a test scene, a quotation server pressure test scene or a quotation server destructive test scene.
Optionally, before the automated test server determines the first test script and the second test script corresponding to the target test scenario, the automated test server is further configured to: determining a target test scene;
the determining mode of the target test scene comprises the following steps: determining the target test scene according to preset corresponding relation between each time period and the test scene and the time period to which the current time belongs;
each time period comprises a time period before the disc is opened, a time period in the disc is opened, a time period after the disc is opened and a time period at night;
The test scene corresponding to the time period before the representation is opened comprises: the user operates the behavior test scene and the quotation server operates the test scene; the test scene corresponding to the time period in the representation opening comprises: a market server stress test scene and a user operation behavior test scene, and/or a market server destructive test scene and a network state test scene; the test scene corresponding to the time period after the disc is characterized by comprising: running a test scene and a network state test scene by the quotation server; the test scene corresponding to the time period for representing the night comprises the following steps: the system comprises a market server stress test scene and a user operation behavior test scene.
The embodiment of the invention also provides an electronic device, as shown in fig. 10, which comprises a processor 1001, a communication interface 1002, a memory 1003 and a communication bus 1004, wherein the processor 1001, the communication interface 1002 and the memory 1003 complete communication with each other through the communication bus 1004,
a memory 1003 for storing a computer program;
the processor 1001 is configured to implement any of the above-described market stability testing methods when executing the program stored in the memory 1003.
The communication bus mentioned above for the electronic devices may be a peripheral component interconnect standard (Peripheral Component Interconnect, PCI) bus or an extended industry standard architecture (Extended Industry Standard Architecture, EISA) bus, etc. The communication bus may be classified as an address bus, a data bus, a control bus, or the like. For ease of illustration, the figures are shown with only one bold line, but not with only one bus or one type of bus.
The communication interface is used for communication between the electronic device and other devices.
The Memory may include random access Memory (Random Access Memory, RAM) or may include Non-Volatile Memory (NVM), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the aforementioned processor.
The processor may be a general-purpose processor, including a central processing unit (Central Processing Unit, CPU), a network processor (Network Processor, NP), etc.; but also digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), field programmable gate arrays (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
In yet another embodiment of the present invention, a computer readable storage medium is provided, in which a computer program is stored, which when executed by a processor implements the steps of any of the above-mentioned line condition stability testing methods.
In yet another embodiment of the present invention, there is also provided a computer program product containing instructions that, when run on a computer, cause the computer to perform any of the above-described methods of testing the situational stability of the embodiment.
In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, produces a flow or function in accordance with embodiments of the present invention, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus. The computer instructions may be stored in or transmitted from one computer-readable storage medium to another, for example, by wired (e.g., coaxial cable, optical fiber, digital Subscriber Line (DSL)), or wireless (e.g., infrared, wireless, microwave, etc.). The computer readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that contains an integration of one or more available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid State Disk (SSD)), etc.
It is noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
In this specification, each embodiment is described in a related manner, and identical and similar parts of each embodiment are all referred to each other, and each embodiment mainly describes differences from other embodiments. In particular, for the method and apparatus embodiments, the description is relatively simple, as it is substantially similar to the system embodiments, with reference to the portions of the system embodiments that are relevant.
The foregoing description is only of the preferred embodiments of the present invention and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention are included in the protection scope of the present invention.

Claims (10)

1. A market stability testing system, the system comprising: an automatic test server, a quotation server and a financial client;
the automatic test server is used for determining a first test script and a second test script corresponding to a target test scene, issuing the first test script to the quotation server and issuing the second test script to the financial client; when the first test script is executed by the quotation server, the running state of the quotation server is adjusted to be a first state required by the quotation server in the target test scene; when the second test script is executed by the financial client, the running state of the financial client is adjusted to be a second state required by the financial client under the target test scene;
the quotation server is used for receiving the first test script issued by the automatic test server, executing the first test script and issuing target quotation information about financial products to the financial client in the first state;
The financial client is configured to receive the second test script issued by the automated test server, execute the second test script, detect whether the second test script is successfully received for the target market information in the second state, obtain a detection result, and determine a market stability test result of the financial client in the target test scene based on the detection result.
2. The system of claim 1, wherein the system further comprises: the system network management module is a functional module used for network management in the electronic equipment to which the financial client belongs;
the automatic test server is further used for determining a third test script corresponding to the target test scene and issuing the third test script to the system network management module; when the third test script is executed by the system network management module, the network state of the electronic equipment is adjusted to be the network state required by the electronic equipment under the target test scene;
the system network management module is used for receiving the third test script issued by the automatic test server, executing the third test script and sending a network state change notification to the financial client;
The financial client is further configured to send request information about target market information of a financial product to the market server in response to receiving the network state change notification sent by the system network management module, and trigger detection of whether the target market information is successfully received in the second state, so as to obtain a detection result;
the quotation server issuing target quotation information about a financial product to the financial client in the first state, comprising:
and in response to receiving the request information, issuing target quotation information about a financial product to the financial client in the first state.
3. The system of claim 2, wherein the financial client is further configured to record target log information, the target log information being log information about a network status and/or log information about the target market information;
the system further comprises: a log analysis server;
the log analysis server is used for periodically acquiring the log information recorded by the financial client and carrying out preset analysis processing on the acquired log information to obtain an analysis result.
4. A system according to any one of claims 1-3, wherein the target test scenario comprises:
the method comprises the steps of operating a behavior test scene, a network state test scene and/or a quotation server performance test scene by a user; wherein, the market server performance test scene includes: the quotation server runs a test scene, a quotation server pressure test scene or a quotation server destructive test scene.
5. The system of claim 4, wherein before the automated test server determines the first test script and the second test script corresponding to the target test scenario, the automated test server is further configured to: determining a target test scene;
the determining mode of the target test scene comprises the following steps: determining the target test scene according to preset corresponding relation between each time period and the test scene and the time period to which the current time belongs;
each time period comprises a time period before the disc is opened, a time period in the disc is opened, a time period after the disc is opened and a time period at night;
the test scene corresponding to the time period before the representation is opened comprises: the user operates the behavior test scene and the quotation server operates the test scene; the test scene corresponding to the time period in the representation opening comprises: a market server stress test scene and a user operation behavior test scene, and/or a market server destructive test scene and a network state test scene; the test scene corresponding to the time period after the disc is characterized by comprising: running a test scene and a network state test scene by the quotation server; the test scene corresponding to the time period for representing the night comprises the following steps: the system comprises a market server stress test scene and a user operation behavior test scene.
6. A market stability testing method, for use with an automated testing server, the method comprising:
determining a first test script and a second test script corresponding to a target test scene; when the first test script is executed by the quotation server, the running state of the quotation server is adjusted to be a first state required by the quotation server under the target test scene; when the second test script is executed by the financial client, the running state of the financial client is adjusted to be a second state required by the financial client under the target test scene;
issuing the first test script to a quotation server, issuing the second test script to a financial client so that the quotation server receives the first test script issued by the automatic test server, executing the first test script and issuing target quotation information about financial products to the financial client in the first state; and the financial client receives the second test script issued by the automatic test server, executes the second test script, detects whether the second test script is successfully received aiming at the target market information in the second state, obtains a detection result, and determines a market stability test result of the financial client in the target test scene based on the detection result.
7. A market stability testing method, applied to a financial client, comprising:
receiving a second test script issued by an automatic test server, and executing the second test script; the second test script is a second test script which is determined by the automatic test server and corresponds to a target test scene, and when the second test script is executed by the financial client, the running state of the financial client is adjusted to be a second state required by the financial client under the target test scene;
detecting whether the target market information is successfully received in the second state, and obtaining a detection result;
determining a market stability test result of the financial client under the target test scene based on the detection result;
the target quotation information is target quotation information about financial products, which is issued to the financial client in the first state, and is received by the quotation server and issued by the automatic test server, and the first test script is executed; the first test script is a first test script which is determined by the automatic test server and corresponds to a target test scene, and when the first test script is executed by the quotation server, the running state of the quotation server is adjusted to be a first state required by the quotation server under the target test scene.
8. A market stability testing device for use with an automated testing server, the device comprising:
the first determining module is used for determining a first test script and a second test script corresponding to the target test scene; when the first test script is executed by the quotation server, the running state of the quotation server is adjusted to be a first state required by the quotation server under the target test scene; when the second test script is executed by the financial client, the running state of the financial client is adjusted to be a second state required by the financial client under the target test scene;
the issuing module is used for issuing the first test script to a quotation server, issuing the second test script to a financial client so that the quotation server receives the first test script issued by the automatic test server, executing the first test script and issuing target quotation information about financial products to the financial client in the first state; and the financial client receives the second test script issued by the automatic test server, executes the second test script, detects whether the second test script is successfully received aiming at the target market information in the second state, obtains a detection result, and determines a market stability test result of the financial client in the target test scene based on the detection result.
9. A market stability testing device for use with a financial client, the device comprising:
the execution module is used for receiving a second test script issued by the automatic test server and executing the second test script; the second test script is a second test script which is determined by the automatic test server and corresponds to a target test scene, and when the second test script is executed by the financial client, the running state of the financial client is adjusted to be a second state required by the financial client under the target test scene;
the detection module is used for detecting whether the target quotation information is successfully received in the second state or not, and obtaining a detection result;
the second determining module is used for determining a market stability test result of the financial client under the target test scene based on the detection result;
the target quotation information is target quotation information about financial products, which is issued to the financial client in the first state, and is received by the quotation server and issued by the automatic test server, and the first test script is executed; the first test script is a first test script which is determined by the automatic test server and corresponds to a target test scene, and when the first test script is executed by the quotation server, the running state of the quotation server is adjusted to be a first state required by the quotation server under the target test scene.
10. The electronic equipment is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory are communicated with each other through the communication bus;
a memory for storing a computer program;
a processor for implementing the method of any one of claims 6 or 7 when executing a program stored on a memory.
CN202311271881.6A 2023-09-28 2023-09-28 Market stability testing system, method and device and electronic equipment Pending CN117472735A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311271881.6A CN117472735A (en) 2023-09-28 2023-09-28 Market stability testing system, method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311271881.6A CN117472735A (en) 2023-09-28 2023-09-28 Market stability testing system, method and device and electronic equipment

Publications (1)

Publication Number Publication Date
CN117472735A true CN117472735A (en) 2024-01-30

Family

ID=89630221

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311271881.6A Pending CN117472735A (en) 2023-09-28 2023-09-28 Market stability testing system, method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN117472735A (en)

Similar Documents

Publication Publication Date Title
CN108399114B (en) System performance testing method and device and storage medium
CN107294808B (en) Interface test method, device and system
US20220321440A1 (en) Interface Service Function Monitoring Method and System Based on Data Acquisition
CN111190755B (en) Application program function exception handling method and device
CN109995614B (en) Alpha testing method and device
CN113127356A (en) Pressure measurement method and device, electronic equipment and storage medium
CN104144084A (en) Terminal state monitoring method and device
CN113495820A (en) Method and device for collecting and processing abnormal information and abnormal monitoring system
CN110209556B (en) Disaster tolerance testing method, payment method, device, medium and service equipment
CN110704299A (en) Android platform APP abnormity testing method and device
CN110134558B (en) Method and device for detecting server
CN112269697B (en) Equipment storage performance testing method, system and related device
CN113238935A (en) Application testing method, system, device, medium, and computer program product
CN116545891A (en) Automatic distribution network testing method based on intelligent equipment
CN111930625A (en) Log obtaining method, device and system based on cloud service platform
CN109587349B (en) Multimedia agent line testing method and device, electronic equipment and storage medium
CN117472735A (en) Market stability testing system, method and device and electronic equipment
CN116166536A (en) Test method, test device, electronic equipment and storage medium
CN116230067A (en) Automatic testing method, system, equipment and medium for solid state disk
CN115840686A (en) Server performance test method and device, electronic equipment and storage medium
CN112948195B (en) Interface testing method, device, electronic equipment and storage medium
CN115437865A (en) Method, device, equipment and medium for testing abnormal power failure of hard disk
CN112860509A (en) Dial testing alarm method and device
US9037917B2 (en) Automated line test action and monitoring system
CN107438259B (en) Method for positioning network management system performance module fault

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