Movatterモバイル変換


[0]ホーム

URL:


CN113516333B - Performance test method and system based on accurate business model - Google Patents

Performance test method and system based on accurate business model
Download PDF

Info

Publication number
CN113516333B
CN113516333BCN202110259269.1ACN202110259269ACN113516333BCN 113516333 BCN113516333 BCN 113516333BCN 202110259269 ACN202110259269 ACN 202110259269ACN 113516333 BCN113516333 BCN 113516333B
Authority
CN
China
Prior art keywords
transaction
model
data
minute
daily
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110259269.1A
Other languages
Chinese (zh)
Other versions
CN113516333A (en
Inventor
林骥
严国强
黄玲玲
王燕梅
郭超年
马胜蓝
程舒晗
王桐森
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fujian Rural Credit Union
Original Assignee
Fujian Rural Credit Union
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 Fujian Rural Credit UnionfiledCriticalFujian Rural Credit Union
Priority to CN202110259269.1ApriorityCriticalpatent/CN113516333B/en
Publication of CN113516333ApublicationCriticalpatent/CN113516333A/en
Application grantedgrantedCritical
Publication of CN113516333BpublicationCriticalpatent/CN113516333B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Classifications

Landscapes

Abstract

The invention provides a performance test method and system based on an accurate service model, wherein the method comprises the following steps: step 10, providing transaction data through an APM, automatically acquiring the transaction data through a timing batch running task, and storing the transaction data under a specified directory path of a file server according to a certain format; step 20, storing the transaction data into a database; step 30, extracting relevant system data in the transaction data for visual display; step 40, generating a corresponding business model by manually screening modeling intervals of daily trade peak time or analyzing the trade data through automatic analysis rules to obtain the corresponding business model; and 50, outputting a service model result, carrying out accurate construction of a test model according to the service model and executing a corresponding performance test flow according to the processing capacity of the highest transaction amount evaluation system of the service model. The invention realizes the creation of the accurate business model based on the actual transaction amount to improve the performance test efficiency.

Description

Performance test method and system based on accurate business model
Technical Field
The invention relates to the field of software testing, in particular to a performance testing method and system based on an accurate business model.
Background
In recent years, with the rapid development of information technology, the performance requirements of software product users on the actual service scene of software processing are higher and higher, and meanwhile, the phenomenon that the service model of a software system shows dynamic change and has specialization of effectiveness is more obvious. The trade that software performance test relates to is numerous, business statistics is complicated and dynamic update changes, is difficult to realize the accurate location of business modeling during performance test, and business model selection is not accurate enough, or is inconsistent with production transaction model, all will lead to performance test result and actual scene deviation of production, test conclusion reference value to be influenced, and the judgement to system throughput is misled easily.
At present, in the implementation process of performance test, aiming at a performance test service model of a tested system, the service model is determined by more depending on experience judgment of a project group and historical data of production in a certain period, the service model is not accurately analyzed, an actual production transaction scene cannot be attached, and certain uncertainty and risk are brought to a performance test result. In view of the above, the present invention provides a performance test method and system for implementing an accurate service model.
Disclosure of Invention
One of the technical problems to be solved by the invention is to provide a performance testing method based on an accurate service model, which can improve the efficiency of performance testing by realizing the accurate service model.
One of the technical problems to be solved by the invention is realized in the following way: a performance test method based on an accurate service model comprises the following steps:
step 10, providing transaction data through an APM, automatically acquiring the transaction data through a timing batch running task, and storing the transaction data under a specified directory path of a file server according to a certain format;
step 20, storing the transaction data into a database;
step 30, extracting relevant system data in the transaction data for visual display;
step 40, generating a corresponding business model by manually screening modeling intervals of daily trade peak time or analyzing the trade data through automatic analysis rules to obtain the corresponding business model;
and 50, outputting a service model result, carrying out accurate construction of a test model according to the service model and executing a corresponding performance test flow according to the processing capacity of the highest transaction amount evaluation system of the service model.
Further, the step 30 specifically includes: and extracting relevant system data in the transaction data, and displaying the relevant system data through a Grafana visual graphic display tool, wherein the relevant system data comprises daily transaction total amount, daily transaction amount per minute, daily transaction curve graph and daily peak period transaction duty ratio.
Further, the step 40 further includes:
step 41, selecting a manual analysis mode or an automatic analysis mode according to the requirement to obtain a corresponding service model, if the manual analysis mode is adopted, entering a step 42, otherwise, entering a step 43;
step 42, according to the displayed related system data, manually screening modeling intervals of a minute peak time point and a daily transaction peak time period to respectively obtain a minute peak service model and a daily service model data;
step 43, automatically acquiring a minute peak time point and a minute peak transaction amount in the transaction data, generating minute peak service model data, and calculating a time period with the maximum average minute transaction amount as a daily modeling interval to generate daily service model data;
step 44, matching the minute peak service model data with the existing minute peak service model data, if the matching is successful, updating the data in the existing minute peak service model, otherwise, creating a minute peak service model; and simultaneously, matching the daily service model data with the existing daily service model data, if the matching is successful, updating the data in the existing daily service model, otherwise, creating a daily service model.
Further, the step 43 further includes:
step 431, automatically executing an SQL script through a timing task to obtain a minute peak time point and a minute peak transaction amount in APM data, wherein the obtaining mode of the minute peak time point is as follows: inquiring each minute time point and each minute transaction amount within 24 hours of the whole day from a database storing APM production data through an SQL script, grouping the minute time points and arranging the minute time points in descending order of the minute transaction amount, and taking the minute time point with the maximum minute transaction amount as a minute peak time point, wherein the obtaining mode of the minute peak transaction amount is as follows: inquiring the total transaction amount of the minute peak time point from a database storing APM production data through an SQL script;
step 432, analyzing the transaction type of the minute peak, the transaction amount, the ratio of the transaction amount to the total transaction amount of the minute peak, grouping according to the transaction type, and arranging according to the descending order of the transaction amount to generate minute peak service model data;
step 433, setting a dividing line, obtaining a peak interval set of the current day according to the dividing line, and selecting a peak interval with duration exceeding a preset number of minutes to obtain a long-time interval set;
step 434, calculating the average minute trading volume of each interval in the interval set, and taking the interval with the maximum value of the average minute trading volume as a daily modeling interval;
and 435, analyzing the transaction types, the transaction amounts and the total transaction amount ratio of the transaction amounts and the daily modeling interval in the daily modeling interval through SQL, grouping according to the transaction types, and arranging according to the transaction amount descending order to generate daily business model data.
Further, the minute peak service model and the day service model in the step 44 are respectively matched in the following manner:
setting the difference value of the transaction number as X, the difference value of the transaction type number as Z, and the difference value of each transaction as Y;
judging whether the transaction number difference value of the current model and the existing model is smaller than X, if yes, judging whether the transaction type number difference value of the current model and the existing model is smaller than Z, if yes, judging whether the transaction type number difference value of the current model and the existing model is smaller than Y, if yes, judging that the current model and the existing model are the same, taking a group of model data with larger transaction amount as updated model data, and ending the flow; otherwise, judging the model as different models, and creating a new model.
Further, the method further comprises: setting an automatic new model and an automatic reminding function of model update, and outputting an updated or newly-built service model report through corresponding communication means when the service model is updated or newly-built, wherein the communication means comprise communication software, an e-mail or a company OA system.
The second technical problem to be solved by the invention is to provide a performance test system based on an accurate service model, which can improve the efficiency of performance test by realizing the accurate service model.
The second technical problem to be solved by the invention is realized in the following way: a performance testing system based on an accurate business model, comprising:
the data acquisition module is used for providing transaction data through the APM, automatically acquiring the transaction data through a timing batch running task and storing the transaction data under a specified directory path of the file server according to a certain format;
the data warehouse-in module is used for storing the transaction data into a database;
the data display module is used for extracting relevant system data in the transaction data to carry out visual display;
the business model creation module is used for generating a corresponding business model by manually screening modeling intervals of daily transaction peak time or analyzing transaction data through automatic analysis rules to obtain the corresponding business model; and
and the performance test module is used for outputting a service model result, evaluating the processing capacity of the system according to the highest transaction amount of the service model, carrying out accurate construction of the test model according to the service model, and executing a corresponding performance test flow.
Further, the data display module specifically includes: and the related system data comprises daily transaction total amount, daily transaction amount per minute, daily transaction curve graph and daily peak period transaction duty ratio.
Further, the service model creation module further comprises a selection module, a manual module, an intelligent module and a matching module;
the selection module is used for selecting a manual analysis mode or an automatic analysis mode according to the requirement to obtain a corresponding service model, executing the manual module if the manual analysis mode is adopted, and executing the intelligent module if the manual analysis mode is not adopted;
the manual module is used for respectively obtaining a minute peak service model and a daily service model data by manually screening modeling intervals of a minute peak time point and a daily transaction peak time period according to the displayed related system data;
the intelligent module is used for automatically acquiring a minute peak time point and a minute peak transaction amount in the transaction data, generating minute peak service model data, calculating a time period with the maximum average minute transaction amount as a daily modeling interval, and generating daily service model data;
the matching module is used for matching the minute peak service model data with the existing minute peak service model data, if the matching is successful, updating the data in the existing minute peak service model, otherwise, creating a minute peak service model; and simultaneously, matching the daily service model data with the existing daily service model data, if the matching is successful, updating the data in the existing daily service model, otherwise, creating a daily service model.
Further, the intelligent module specifically includes:
automatically executing an SQL script through a timing task to obtain a minute peak time point and a minute peak transaction amount in APM data, wherein the obtaining mode of the minute peak time point is as follows: inquiring each minute time point and each minute transaction amount within 24 hours of the whole day from a database storing APM production data through an SQL script, grouping the minute time points and arranging the minute time points in descending order of the minute transaction amount, and taking the minute time point with the maximum minute transaction amount as a minute peak time point, wherein the obtaining mode of the minute peak transaction amount is as follows: inquiring the total transaction amount of the minute peak time point from a database storing APM production data through an SQL script;
analyzing the transaction type of the minute peak value, the transaction amount and the total transaction amount ratio of the minute peak value, grouping according to the transaction type, and arranging according to the transaction amount in a descending order to generate minute peak value business model data;
setting a dividing line, acquiring a peak interval set of the current day according to the dividing line, and selecting a peak interval with duration exceeding a preset number of minutes to obtain a long-time interval set;
calculating the average minute trading volume of each interval in the interval set of the long time, and taking the interval with the maximum value of the average minute trading volume as a daily modeling interval;
and analyzing the transaction types, the transaction amounts and the total transaction amount ratio of the transaction amounts and the daily modeling interval in the daily modeling interval through SQL, grouping according to the transaction types, and arranging according to the transaction amount descending order to generate daily business model data.
Further, the minute peak service model and the day service model in the matching module are respectively matched in the following mode:
setting the difference value of the transaction number as X, the difference value of the transaction type number as Z, and the difference value of each transaction as Y;
judging whether the transaction number difference value of the current model and the existing model is smaller than X, if yes, judging whether the transaction type number difference value of the current model and the existing model is smaller than Z, if yes, judging whether the transaction type number difference value of the current model and the existing model is smaller than Y, if yes, judging that the current model and the existing model are the same, taking a group of model data with larger transaction amount as updated model data, and ending the flow; otherwise, judging the model as different models, and creating a new model.
Further, the system also comprises a notification module for setting an automatic new model and an automatic reminding function of model update, and when the service model is updated or newly built, the updated or newly built service model report is output through a corresponding communication means, wherein the communication means comprises communication software, an e-mail or a company OA system.
The invention has the advantages that:
1. the transaction index setting is realized, the multi-factor multi-index can be dynamically set according to the actual situation to analyze and judge the service model, the actual application of the accurate service model in the performance test scene is realized, and a real and reliable basis is provided for the performance test scene to more accord with the actual service scene of production
2. The method has the advantages that the automatic analysis of the model script is realized, the dynamic update of the performance service model of the current monitoring system is realized, the continuous update of the model, the new model and the daily comparison function are realized after one modeling, the manual complex operation is reduced, the repeatability and the hysteresis of manual comparison are avoided, the automatic update operation is realized, the accurate analysis and the model taking efficiency of the service model are obviously improved, the analysis time of the service model is reduced, and the management of the service model is facilitated.
3. And the service model report is updated and output regularly, so that the functions of dynamic tracking and automatic reminding of the service system model result are realized, and the communication cost of the performance test engineer for modeling the production and the fetch of operation staff and development staff is reduced.
Drawings
The invention will be further described with reference to examples of embodiments with reference to the accompanying drawings.
Fig. 1 is a flowchart of an implementation of a performance testing method based on an accurate service model according to the present invention.
FIG. 2 is a diagram showing a daily peak interval according to an embodiment of the method of the present invention.
FIG. 3 is a flow chart of the execution of the model update and update portion of the present invention.
Fig. 4 is a schematic structural diagram of a performance testing system based on an accurate service model according to the present invention.
Detailed Description
As shown in fig. 1, the performance testing method based on the accurate service model of the present invention includes:
step 10, providing transaction data through an APM, automatically acquiring the transaction data through a timing batch running task, storing the transaction data under a specified directory path of a file server according to a certain format, for example, dividing the format of the transaction data according to a system, separating each data field through 'I', and storing the transaction data in a file with a specified format; the step 10 further includes: and the downloading function is provided for the performance tester to automatically download data for analysis and processing, and the acquired data is deleted.
Step 20, storing the transaction data into a database, such as a MySQL database, and providing a data basis for the subsequent manual analysis verification of the service model and the accurate automatic analysis performance test service model;
step 30, extracting relevant system data in the transaction data for visual display; so as to conveniently display related system data for performance testers in real time;
step 40, generating a corresponding business model by manually screening modeling intervals of daily trade peak time or analyzing the trade data through automatic analysis rules to obtain the corresponding business model;
and 50, outputting a service model result, carrying out accurate construction of a test model according to the service model and executing a corresponding performance test flow according to the processing capacity of the highest transaction amount evaluation system of the service model. The number of the models output in the step can be one or more (the number of the models is determined according to the actual conditions and types of the minute peak service model and the daily peak time period service model), and the processing capacity of the system is evaluated according to the highest transaction amount of the models, so that the accurate construction of the test model can be completed according to the service model through the subsequent performance test.
Preferably, the step 30 specifically includes: and extracting relevant system data in the transaction data, and displaying the relevant system data through a Grafana visual graphic display tool, wherein the relevant system data comprises daily transaction total amount, daily transaction amount per minute, daily transaction curve graph and daily peak period transaction duty ratio. The visualization tool Grafana is a cross-platform open source measurement analysis and visualization tool, and can perform visual display of APM data by inquiring collected data and then performing visual display, so that a function of providing visual page display for manually analyzing a service model is realized, and a performance tester can conveniently analyze an application system service model.
Preferably, the step 40 further includes:
step 41, selecting a manual analysis mode or an automatic analysis mode according to the requirement to obtain a corresponding service model, if the manual analysis mode is adopted, entering a step 42, otherwise, entering a step 43;
step 42, according to the displayed related system data, manually screening modeling intervals of a minute peak time point and a daily transaction peak time period to respectively obtain minute peak service model data and daily service model data, and displaying transaction types and transaction occupation ratios of the minute peak time point and the peak time period;
step 43, automatically acquiring a minute peak time point and a minute peak transaction amount in the transaction data, generating minute peak service model data, and calculating a time period with the maximum average minute transaction amount as a daily modeling interval to generate daily service model data; according to the manual analysis business model experience, designing an automatic analysis business model rule, and completing an automatic analysis accurate business model according to APM actual transaction amount data;
step 44, matching the minute peak service model data with the existing minute peak service model data, if the matching is successful, updating the data in the existing minute peak service model, otherwise, creating a minute peak service model; and simultaneously, matching the daily service model data with the existing daily service model data, if the matching is successful, updating the data in the existing daily service model, otherwise, creating a daily service model.
Preferably, the step 43 further includes:
step 431, automatically executing an SQL script through a timing task to obtain a minute peak time point and a minute peak transaction amount in APM data, wherein the obtaining mode of the minute peak time point is as follows: inquiring each minute time point and each minute transaction amount within 24 hours of the whole day from a database storing APM production data through an SQL script, grouping the minute time points and arranging the minute time points in descending order of the minute transaction amount, and taking the minute time point with the maximum minute transaction amount as a minute peak time point, wherein the obtaining mode of the minute peak transaction amount is as follows: inquiring the total transaction amount of the minute peak time point from a database storing APM production data through an SQL script;
step 432, analyzing the transaction type of the minute peak, the transaction amount, the ratio of the transaction amount to the total transaction amount of the minute peak, grouping according to the transaction type, and arranging according to the descending order of the transaction amount to generate minute peak service model data;
step 433, setting a dividing line, obtaining a peak interval set of the current day according to the dividing line, and selecting a peak interval with duration exceeding a preset number of minutes to obtain a long-time interval set; for example, take 80% of the minute peak transaction amount (the value can be adjusted according to the need) as a dividing line, take a daily peak section as shown in fig. 2 in a peak section set (1 or N sections can be obtained), intercept an ascending section (the abscissa is a minute time axis) when the current day exceeds the dividing line, and intercept rules of the abscissa of the ascending section (i.e. the peak section) are: taking the interval set of time abscissas of the nth (N > =1 and odd) and the (n+1) th times exceeding 80% of the minute peak transaction amount (e.g. 06:20-09:05 peak interval, 14:30-17:30 peak interval) according to the minute time axis; selecting a set of interval formabilities with duration exceeding a preset minute M (M is configurable) to eliminate short time intervals of steep rise or dip peaks;
step 434, calculating the average minute trading volume of each interval in the interval set, and taking the interval with the maximum value of the average minute trading volume as a daily modeling interval; the interval average minute transaction amount is equal to the time abscissa interval transaction total amount divided by the time abscissa interval minute number;
and 435, analyzing the transaction types, the transaction amounts and the total transaction amount ratio of the transaction amounts and the daily modeling interval in the daily modeling interval through SQL, grouping according to the transaction types, and arranging according to the transaction amount descending order to generate daily business model data.
Preferably, as shown in fig. 3, the minute peak service model and the day service model in the step 44 are respectively matched in the following manner:
setting the difference value of the transaction number as X, the difference value of the transaction type number as Z, and the difference value of each transaction as Y;
judging whether the transaction number difference value of the current model and the existing model is smaller than X, if yes, judging whether the transaction type number difference value of the current model and the existing model is smaller than Z, if yes, judging whether the transaction type number difference value of the current model and the existing model is smaller than Y, if yes, judging that the current model and the existing model are the same, taking a group of model data with larger transaction amount as updated model data, and ending the flow; otherwise, judging the model as different models, and creating a new model.
The transaction number difference value is the difference between the transaction number of the current model and the transaction number of the existing model divided by the transaction number of the existing model, the transaction type number difference value is the difference between the transaction type number of the current model and the transaction type number of the existing model divided by the transaction type number of the existing model, and the transaction duty ratio difference value is the difference between the transaction duty ratio of the current model and the transaction duty ratio of the existing model.
In general, a model corresponds to a service scene, if the model is the same, that is, the model which indicates that the service scene has a corresponding model, only part of data in the existing model needs to be updated, and if the model is different, that indicates that the service scene has no corresponding model, a new model needs to be created. By the matching mode, the current minute peak service model is matched with the existing minute peak service model, and the current day service model is matched with the existing day service model, so that the accuracy of model data in different service scenes can be ensured.
Preferably, the method further comprises: setting an automatic new model and an automatic reminding function of model update, and outputting an updated or newly-built service model report through corresponding communication means when the service model is updated or newly-built, wherein the communication means comprise communication software, an e-mail or a company OA system. By updating the existing model and creating the automatic reminding function of the new model, the communication cost of the performance test engineer for production and fetch modeling from operation and maintenance personnel and development personnel can be reduced.
As shown in fig. 4, a performance test system based on an accurate service model of the present invention includes:
the data acquisition module is used for providing transaction data through the APM, automatically acquiring the transaction data through a timing batch running task, storing the transaction data under a specified directory path of the file server according to a certain format, for example, dividing the format of the transaction data according to a system, separating each data field through 'I', and storing the transaction data in a file with a specified format; the data acquisition module further includes: providing a downloading function for performance testing personnel to automatically download data for analysis and processing, and deleting the fetched data;
the data storage module is used for storing the transaction data into a database, such as a MySQL database, and providing a data basis for the follow-up manual analysis and verification of the service model and the accurate automatic analysis performance test service model;
the data display module is used for extracting relevant system data in the transaction data to carry out visual display; so as to conveniently display related system data for performance testers in real time;
the business model creation module is used for generating a corresponding business model by manually screening modeling intervals of daily transaction peak time or analyzing transaction data through automatic analysis rules to obtain the corresponding business model; and
and the performance test module is used for outputting a service model result, evaluating the processing capacity of the system according to the highest transaction amount of the service model, carrying out accurate construction of the test model according to the service model, and executing a corresponding performance test flow. The number of the models output in the step can be one or more (the number of the models is determined according to the actual conditions and types of the minute peak service model and the daily peak time period service model), and the processing capacity of the system is evaluated according to the highest transaction amount of the models, so that the accurate construction of the test model can be completed according to the service model through the subsequent performance test.
Preferably, the data display module specifically includes: and the related system data comprises daily transaction total amount, daily transaction amount per minute, daily transaction curve graph and daily peak period transaction duty ratio. The visualization tool Grafana is a cross-platform open source measurement analysis and visualization tool, and can perform visual display of APM data by inquiring collected data and then performing visual display, so that a function of providing visual page display for manually analyzing a service model is realized, and a performance tester can conveniently analyze an application system service model.
Preferably, the service model creation module further comprises a selection module, a manual module, an intelligent module and a matching module;
the selection module is used for selecting a manual analysis mode or an automatic analysis mode according to the requirement to obtain a corresponding service model, executing the manual module if the manual analysis mode is adopted, and executing the intelligent module if the manual analysis mode is not adopted;
the manual module is used for respectively obtaining a minute peak service model and a day service model data by manually screening modeling intervals of a minute peak time point and a day transaction peak time period according to the displayed related system data, and displaying transaction types and transaction occupation ratios of the minute peak time point and the peak time period;
the intelligent module is used for automatically acquiring a minute peak time point and a minute peak transaction amount in the transaction data, generating minute peak service model data, calculating a time period with the maximum average minute transaction amount as a daily modeling interval, and generating daily service model data; according to the manual analysis business model experience, designing an automatic analysis business model rule, and completing an automatic analysis accurate business model according to APM actual transaction amount data;
the matching module is used for matching the minute peak service model data with the existing minute peak service model data, if the matching is successful, updating the data in the existing minute peak service model, otherwise, creating a minute peak service model; and simultaneously, matching the daily service model data with the existing daily service model data, if the matching is successful, updating the data in the existing daily service model, otherwise, creating a daily service model.
Preferably, the intelligent module specifically includes:
automatically executing an SQL script through a timing task to obtain a minute peak time point and a minute peak transaction amount in APM data, wherein the obtaining mode of the minute peak time point is as follows: inquiring each minute time point and each minute transaction amount within 24 hours of the whole day from a database storing APM production data through an SQL script, grouping the minute time points and arranging the minute time points in descending order of the minute transaction amount, and taking the minute time point with the maximum minute transaction amount as a minute peak time point, wherein the obtaining mode of the minute peak transaction amount is as follows: inquiring the total transaction amount of the minute peak time point from a database storing APM production data through an SQL script;
analyzing the transaction type of the minute peak value, the transaction amount and the total transaction amount ratio of the minute peak value, grouping according to the transaction type, and arranging according to the transaction amount in a descending order to generate minute peak value business model data;
setting a dividing line, acquiring a peak interval set of the current day according to the dividing line, and selecting a peak interval with duration exceeding a preset number of minutes to obtain a long-time interval set; for example, take 80% of the minute peak transaction amount (the value can be adjusted according to the need) as a dividing line, take a daily peak section as shown in fig. 2 in a peak section set (1 or N sections can be obtained), intercept an ascending section (the abscissa is a minute time axis) when the current day exceeds the dividing line, and intercept rules of the abscissa of the ascending section (i.e. the peak section) are: taking the interval set of time abscissas of the nth (N > =1 and odd) and the (n+1) th times exceeding 80% of the minute peak transaction amount (e.g. 06:20-09:05 peak interval, 14:30-17:30 peak interval) according to the minute time axis; selecting a set of interval formabilities with duration exceeding a preset minute M (M is configurable) to eliminate short time intervals of steep rise or dip peaks;
calculating the average minute trading volume of each interval in the interval set of the long time, and taking the interval with the maximum value of the average minute trading volume as a daily modeling interval; the interval average minute transaction amount is equal to the time abscissa interval transaction total amount divided by the time abscissa interval minute number;
and analyzing the transaction types, the transaction amounts and the total transaction amount ratio of the transaction amounts and the daily modeling interval in the daily modeling interval through SQL, grouping according to the transaction types, and arranging according to the transaction amount descending order to generate daily business model data.
Preferably, the minute peak service model and the day service model in the matching module are respectively matched in the following modes:
setting the difference value of the transaction number as X, the difference value of the transaction type number as Z, and the difference value of each transaction as Y;
judging whether the transaction number difference value of the current model and the existing model is smaller than X, if yes, judging whether the transaction type number difference value of the current model and the existing model is smaller than Z, if yes, judging whether the transaction type number difference value of the current model and the existing model is smaller than Y, if yes, judging that the current model and the existing model are the same, taking a group of model data with larger transaction amount as updated model data, and ending the flow; otherwise, judging the model as different models, and creating a new model.
The transaction number difference value is the difference between the transaction number of the current model and the transaction number of the existing model divided by the transaction number of the existing model, the transaction type number difference value is the difference between the transaction type number of the current model and the transaction type number of the existing model divided by the transaction type number of the existing model, and the transaction duty ratio difference value is the difference between the transaction duty ratio of the current model and the transaction duty ratio of the existing model.
In general, a model corresponds to a service scene, if the model is the same, that is, the model which indicates that the service scene has a corresponding model, only part of data in the existing model needs to be updated, and if the model is different, that indicates that the service scene has no corresponding model, a new model needs to be created. By the matching mode, the current minute peak service model is matched with the existing minute peak service model, and the current day service model is matched with the existing day service model, so that the accuracy of model data in different service scenes can be ensured.
Preferably, the system further comprises a notification module for setting an automatic new model and an automatic reminding function of model update, and when the service model is updated or newly built, the updated or newly built service model report is output through a corresponding communication means, wherein the communication means comprises communication software, an email or a company OA system. By updating the existing model and creating the automatic reminding function of the new model, the communication cost of the performance test engineer for production and fetch modeling from operation and maintenance personnel and development personnel can be reduced.
According to the invention, a normalization system for continuously updating the performance test service model is formed by constructing a performance test accurate service model from related transaction service volume statistics, service volume analysis, service transaction volume peak value accurate positioning, manual auxiliary verification analysis, performance model automatic analysis comparison, service model modeling, dynamic tracking reminding and model updating, the accurate matching of the production multi-service model is realized from service analysis to model dynamic updating and automatic comparison, the types of the service model are enriched, a real and reliable basis is provided for the performance test scene to more accord with the actual production service scene, and the overall efficiency of the performance test is improved.
While specific embodiments of the invention have been described above, it will be appreciated by those skilled in the art that the specific embodiments described are illustrative only and not intended to limit the scope of the invention, and that equivalent modifications and variations of the invention in light of the spirit of the invention will be covered by the claims of the present invention.

Claims (6)

step 431, automatically executing an SQL script through a timing task to obtain a minute peak time point and a minute peak transaction amount in APM data, wherein the obtaining mode of the minute peak time point is as follows: inquiring each minute time point and each minute transaction amount within 24 hours of the whole day from a database storing APM production data through an SQL script, grouping the minute time points and arranging the minute time points in descending order of the minute transaction amount, and taking the minute time point with the maximum minute transaction amount as a minute peak time point, wherein the obtaining mode of the minute peak transaction amount is as follows: inquiring the total transaction amount of the minute peak time point from a database storing APM production data through an SQL script;
automatically executing an SQL script through a timing task to obtain a minute peak time point and a minute peak transaction amount in APM data, wherein the obtaining mode of the minute peak time point is as follows: inquiring each minute time point and each minute transaction amount within 24 hours of the whole day from a database storing APM production data through an SQL script, grouping the minute time points and arranging the minute time points in descending order of the minute transaction amount, and taking the minute time point with the maximum minute transaction amount as a minute peak time point, wherein the obtaining mode of the minute peak transaction amount is as follows: inquiring the total transaction amount of the minute peak time point from a database storing APM production data through an SQL script;
CN202110259269.1A2021-03-102021-03-10Performance test method and system based on accurate business modelActiveCN113516333B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN202110259269.1ACN113516333B (en)2021-03-102021-03-10Performance test method and system based on accurate business model

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN202110259269.1ACN113516333B (en)2021-03-102021-03-10Performance test method and system based on accurate business model

Publications (2)

Publication NumberPublication Date
CN113516333A CN113516333A (en)2021-10-19
CN113516333Btrue CN113516333B (en)2023-11-14

Family

ID=78061481

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN202110259269.1AActiveCN113516333B (en)2021-03-102021-03-10Performance test method and system based on accurate business model

Country Status (1)

CountryLink
CN (1)CN113516333B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US6311144B1 (en)*1998-05-132001-10-30Nabil A. Abu El AtaMethod and apparatus for designing and analyzing information systems using multi-layer mathematical models
US7290048B1 (en)*2002-03-292007-10-30Hyperformix, Inc.Method of semi-automatic data collection, data analysis, and model generation for the performance analysis of enterprise applications
WO2017133615A1 (en)*2016-02-032017-08-10腾讯科技(深圳)有限公司Service parameter acquisition method and apparatus
CN108537544A (en)*2018-04-042018-09-14中南大学A kind of transaction system method for real-time monitoring and its monitoring system
CN110147305A (en)*2019-04-192019-08-20平安普惠企业管理有限公司A kind of test model construction method and system based on big data
CN111488272A (en)*2020-03-112020-08-04苏州浪潮智能科技有限公司Automatic testing method and device for complex transaction files
CN111737125A (en)*2020-06-192020-10-02中国工商银行股份有限公司Method and device for generating market data of quantitative transaction and server
CN111813661A (en)*2020-06-152020-10-23福建省农村信用社联合社Global service data drive automatic test method, device, equipment and medium

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US20040236673A1 (en)*2000-10-172004-11-25Eder Jeff ScottCollaborative risk transfer system
US7818150B2 (en)*2005-03-112010-10-19Hyperformix, Inc.Method for building enterprise scalability models from load test and trace test data
US20160055427A1 (en)*2014-10-152016-02-25Brighterion, Inc.Method for providing data science, artificial intelligence and machine learning as-a-service
US10394583B2 (en)*2016-03-312019-08-27Ca, Inc.Automated model generation for a software system

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US6311144B1 (en)*1998-05-132001-10-30Nabil A. Abu El AtaMethod and apparatus for designing and analyzing information systems using multi-layer mathematical models
US7290048B1 (en)*2002-03-292007-10-30Hyperformix, Inc.Method of semi-automatic data collection, data analysis, and model generation for the performance analysis of enterprise applications
WO2017133615A1 (en)*2016-02-032017-08-10腾讯科技(深圳)有限公司Service parameter acquisition method and apparatus
CN108537544A (en)*2018-04-042018-09-14中南大学A kind of transaction system method for real-time monitoring and its monitoring system
CN110147305A (en)*2019-04-192019-08-20平安普惠企业管理有限公司A kind of test model construction method and system based on big data
CN111488272A (en)*2020-03-112020-08-04苏州浪潮智能科技有限公司Automatic testing method and device for complex transaction files
CN111813661A (en)*2020-06-152020-10-23福建省农村信用社联合社Global service data drive automatic test method, device, equipment and medium
CN111737125A (en)*2020-06-192020-10-02中国工商银行股份有限公司Method and device for generating market data of quantitative transaction and server

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
生产原型交易回放测试设计及实践;曾立环;;中国金融电脑(第05期);第39-48页*
金融交易系统测试质量改进与度量研究;李宁;中国优秀硕士学位论文(第1期);第I138-766页*

Also Published As

Publication numberPublication date
CN113516333A (en)2021-10-19

Similar Documents

PublicationPublication DateTitle
CN111241168A (en)Real-time online microscopic traffic simulation method and system
CN110995524B (en)Flow data monitoring method and device, electronic equipment and computer readable medium
CN111737646A (en)Advertisement promotion effect evaluation data processing method, system and storage medium
CN111476441A (en)Load prediction method for electric vehicle charging equipment and related device
CN111291216B (en)Method and system for analyzing foothold based on face structured data
CN113537563B (en)Pollution emergency management and control effect evaluation method and device
CN111190817A (en)Method and device for processing software defects
CN115097796B (en)Quality control system and method for simulating big data and correcting AQL value
CN119337105B (en) Method and system for constructing OLED efficiency roll-off prediction model
CN113516333B (en)Performance test method and system based on accurate business model
JPWO2017221856A1 (en) Analysis device, analysis method, and storage medium
CN112434750B (en)Dam monitoring data development mode identification method based on convolutional neural network
CN119494018A (en) Intelligent data analysis method based on spatiotemporal big data
CN111752991B (en)Meter data statistics method and device and meter statistics data acquisition method
CN110232130A (en)Metadata management pedigree generation method, device, computer equipment and storage medium
CN118521177A (en)Enterprise digital transformation evaluation system and method based on big data
CN112598326A (en)Model iteration method and device, electronic equipment and storage medium
CN116932679A (en)GIS technology-based multi-mode industrial weather service inspection application method
CN115344495B (en)Data analysis method, device, computer equipment and medium for batch task test
CN114238092B (en)Software performance evaluation method, device, equipment and readable storage medium
CN117394336A (en)Photovoltaic power station generated power prediction method and system
CN115617670A (en)Software test management method, storage medium and system
CN115759885A (en)Material sampling inspection method and device based on distributed material supply
CN115471060A (en)Digital value monitoring system and digital value evaluation method
CN116910324B (en)Visual report configuration method and system for experimental big data

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
GR01Patent grant
GR01Patent grant

[8]ページ先頭

©2009-2025 Movatter.jp