CN116743644A - Automatic test method, system, device and medium - Google Patents

Automatic test method, system, device and medium Download PDF

Info

Publication number
CN116743644A
CN116743644A CN202310901527.0A CN202310901527A CN116743644A CN 116743644 A CN116743644 A CN 116743644A CN 202310901527 A CN202310901527 A CN 202310901527A CN 116743644 A CN116743644 A CN 116743644A
Authority
CN
China
Prior art keywords
test
cards
automatic test
automatic
card
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202310901527.0A
Other languages
Chinese (zh)
Other versions
CN116743644B (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.)
Beijing Zhongyuan Yishang Technology Co ltd
Original Assignee
Beijing Zhongyuan Yishang Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Zhongyuan Yishang Technology Co ltd filed Critical Beijing Zhongyuan Yishang Technology Co ltd
Priority to CN202310901527.0A priority Critical patent/CN116743644B/en
Publication of CN116743644A publication Critical patent/CN116743644A/en
Application granted granted Critical
Publication of CN116743644B publication Critical patent/CN116743644B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F17/00Digital computing or data processing equipment or methods, specially adapted for specific functions
    • G06F17/10Complex mathematical operations
    • G06F17/18Complex mathematical operations for evaluating statistical data, e.g. average values, frequency distributions, probability functions, regression analysis
    • 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)
  • Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • General Physics & Mathematics (AREA)
  • Pure & Applied Mathematics (AREA)
  • Mathematical Analysis (AREA)
  • Theoretical Computer Science (AREA)
  • Computational Mathematics (AREA)
  • Mathematical Physics (AREA)
  • Mathematical Optimization (AREA)
  • Evolutionary Biology (AREA)
  • Signal Processing (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Operations Research (AREA)
  • Probability & Statistics with Applications (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Algebra (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Databases & Information Systems (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • Test And Diagnosis Of Digital Computers (AREA)

Abstract

The invention provides an automatic test method, an automatic test system, an automatic test device and a medium. The automatic test method comprises the steps of setting a synchronous test strategy between automatic test cycle times and a body separation card test; the computer performs performance test on each individual card according to the automatic test cycle times and the synchronous test strategy to obtain a plurality of performance test results; and forming a test report corresponding to each individual card by using the plurality of performance test results. The automatic test system includes modules corresponding to the method steps.

Description

Automatic test method, system, device and medium
Technical Field
The invention provides an automatic test method, an automatic test system, an automatic test device and an automatic test medium, and belongs to the technical field of automatic tests.
Background
The body-separating card belongs to an innovative product and integrates a plurality of operators; the method has various scheduling strategies such as operator priority, signal priority, automatic network disconnection and network disconnection, and the like, and ensures high reliability of network utilization of users. The test process of the body-separating card needs to be monitored manually and the body-separating card is switched to ensure that each body-separating card is tested completely, however, the method not only leads to the intermittence of the body-separating card test and reduces the test efficiency, but also greatly improves the labor force and easily causes the problems of missing the body-separating card test and error monitoring of experimental data.
Disclosure of Invention
The invention provides an automatic test method, an automatic test system, an automatic test device and an automatic test medium, which are used for solving the problems that the test efficiency is lower due to the fact that the existing body-separation card is tested intermittently, and the manual resource consumption and the error rate are higher due to the fact that the manual test is performed manually, and the adopted technical scheme is as follows:
an automatic test method, the automatic test method comprising:
setting a synchronous test strategy between the automatic test cycle times and the body division card test;
the computer performs performance test on each individual card according to the automatic test cycle times and the synchronous test strategy to obtain a plurality of performance test results;
and forming a test report corresponding to each individual card by using the plurality of performance test results.
Further, the set automatic test cycle number is obtained by:
wherein M represents the number of automatic test cycles; n represents the total number of the body parts cards; p (P) i Representing throughput per unit time of the i-th card; c (C) i Representing the spatial complexity of a test algorithm corresponding to the ith individual card; s is S j Representing the remaining available total computing power of the computer; Δt represents the network delay time of the network where the automatic test is located; t is t s Indicating the acquisition time of the index to be tested of each body-separating card; t is t p Representing the processing time of the index to be tested of each body division card; t represents the maximum theoretical duration of sustainable use of computer resources; f represents a cycle detection frequency; int []To round the function symbols up.
Further, the synchronization test strategy between the body card tests comprises:
scanning the split cards to obtain the total number of the split cards;
extracting the automatic test cycle number;
determining the number of the body-dividing cards which are tested simultaneously by using the total number of the body-dividing cards and the automatic test cycle times, wherein the number of the body-dividing cards which are tested simultaneously is obtained by the following formula:
wherein K represents the number of the body division cards which are tested simultaneously; m represents the number of automatic test cycles; n represents the total number of the body parts cards; u represents an adaptive adjustment coefficient, and the value range is u= [0.1,1]; floor means rounding down;
grouping the split cards according to the number of the split cards which are tested simultaneously, and obtaining a plurality of split card groups.
Further, the computer runs the test script by using the test software, and performs performance test on each individual card according to the automatic test cycle number and the synchronous test strategy to obtain a plurality of performance test results, including:
starting test software to run a test script by the computer;
the computer sequentially sends test instructions to the body-separating card group and receives returned performance test results in real time.
An automatic test system, the automatic test system comprising:
the setting module is used for setting synchronous test strategies between automatic test cycle times and the test of the body separation card;
the test module is used for performing performance test on each individual card by the computer according to the automatic test cycle times and the synchronous test strategy to obtain a plurality of performance test results;
and the result generation module is used for forming a test report corresponding to each individual card by utilizing the plurality of performance test results.
Further, the set automatic test cycle number is obtained by:
wherein M represents the number of automatic test cycles; n represents the total number of the body parts cards; p (P) i Representing throughput per unit time of the i-th card; c (C) i Representing the spatial complexity of a test algorithm corresponding to the ith individual card; s is S j Representing the remaining available total computing power of the computer; Δt represents the network delay time of the network where the automatic test is located; t is t s Indicating the acquisition time of the index to be tested of each body-separating card; t is t p Representing the processing time of the index to be tested of each body division card; t represents the maximum theoretical duration of sustainable use of computer resources; f represents a cycle detection frequency; int []To round the function symbols up.
Further, the setting module includes:
the total number acquisition module is used for scanning the body division cards and acquiring the total number of the body division cards;
the frequency extraction module is used for extracting the automatic test cycle frequency;
the number acquisition module is used for determining the number of the body-dividing cards which are tested simultaneously by utilizing the total number of the body-dividing cards and the automatic test cycle times, wherein the number of the body-dividing cards which are tested simultaneously is acquired through the following formula:
wherein K represents the number of the body division cards which are tested simultaneously; m represents the number of automatic test cycles; n represents the total number of the body parts cards; u represents an adaptive adjustment coefficient, and the value range is u= [0.1,1]; floor means rounding down;
grouping the split cards according to the number of the split cards which are tested simultaneously to obtain a plurality of split card groups.
Further, the test module includes:
the starting module is used for starting the test software by the computer to run the test script, and the structure receiving module is used for sequentially sending the test instruction to the body-separating card group by the computer and receiving the returned performance test result in real time.
A readable storage medium for automatic testing, the readable storage medium comprising a stored program, wherein the program, when run, controls a device in which the readable storage medium resides to perform any one of the automatic testing methods described above.
An automatic test device comprises a computer terminal, a communication module and one or more to-be-tested body-separating cards; the computer terminal is in signal connection with the one or more to-be-tested body-separating cards through the communication module;
the computer terminal comprises:
a memory for storing a program;
a processor for calling and running a stored program in memory to perform the automatic test method of any one of the above.
The invention has the beneficial effects that:
the invention provides an automatic test method, an automatic test system, an automatic test device and a medium, which can realize uninterrupted test aiming at a large number of individual cards, can automatically compare effects and automatically generate a test report, and can greatly improve test efficiency and test accuracy while reducing human errors.
Drawings
FIG. 1 is a schematic diagram of an automatic test method according to the present invention;
FIG. 2 is a flow chart of the automatic test method according to the present invention;
FIG. 3 is a system block diagram of an automatic test system according to the present invention.
Detailed Description
The preferred embodiments of the present invention will be described below with reference to the accompanying drawings, it being understood that the preferred embodiments described herein are for illustration and explanation of the present invention only, and are not intended to limit the present invention.
The embodiment of the invention provides an automatic test method, as shown in fig. 1 and 2, comprising the following steps:
s1, setting a synchronous test strategy between automatic test cycle times and a body separation card test;
s2, the computer performs performance test on each individual card according to the automatic test cycle times and the synchronous test strategy to obtain a plurality of performance test results;
s3, forming a test report corresponding to each individual card by using the performance test results.
The set automatic test cycle number is obtained by the following steps:
wherein M represents the number of automatic test cycles; n represents the total number of the body parts cards; p (P) i Representing throughput per unit time of the i-th card; c represents the spatial complexity of the test algorithm corresponding to the ith individual card; s is S j Representing the remaining available total computing power of the computer; Δt represents the network delay time of the network where the automatic test is located; t is t s Indicating the acquisition time of the index to be tested of each body-separating card; t is t p Representing the processing time of the index to be tested of each body division card; t represents the maximum theoretical duration of sustainable use of computer resources; f represents the cycle detection frequency.
The working principle of the technical scheme is as follows: before starting the test, a tester can set the automatic test cycle number and the synchronous test strategy according to the requirement so as to ensure the accuracy and the reliability of the test process. And performing performance test on each individual card by using an automatic test script, and distributing test tasks to each individual card. Various test tools are used to monitor and record performance metrics, such as response time, throughput, CPU utilization, memory utilization, etc., for individual add-on cards. During the test, a plurality of performance test results are collected and recorded for comparison and analysis. The tester may analyze the data using various tools and techniques, such as charts, statistical analysis, data mining, and the like. And after the test is finished, forming a test report corresponding to each individual card by using the performance test results. The test report includes performance assessment and defect reporting for each individual card to help developers identify and resolve problems and improve the quality of the software. Test personnel may use various tools and techniques to generate test reports, such as report generation tools, data visualization tools, and the like. Through using techniques such as automatic test, distributed system and test report to carry out the performance test to each individual card to generate the test report of each individual card, effectively improve efficiency of software testing and accuracy, help developer discernment and solve the problem, improve the quality of software.
Wherein, as shown in fig. 1, the test script is as follows:
the technical scheme has the effects that: the embodiment provides an automatic test method which can realize uninterrupted test when testing is conducted on a large number of body-separated cards, can automatically compare effects and automatically generate test reports, and can greatly improve test efficiency and test accuracy while reducing human errors. The automatic test cycle times and the synchronous test strategy are set, and the test is carried out by using the body-separating card, so that the test efficiency can be greatly improved. The tester can test a plurality of body-separating cards at the same time, so that the testing time and resources are saved. The performance test is performed by using the automatic test script and the test tool, so that the interference of human factors can be reduced, and the test accuracy and reliability are improved. Meanwhile, through multiple tests and setting of synchronous test strategies, consistency and reliability of test results can be ensured. By testing and analyzing the performance test data multiple times, comprehensive performance test data can be obtained and potential performance problems are found. These data can be used to generate detailed test reports, help developers identify and solve problems, and improve the quality of the software. By finding and solving the performance problems in time, the quality of the software and the user satisfaction can be improved. The performance test can ensure that the software normally operates under high load and can meet the requirements and expectations of users.
On the other hand, the matching performance between the automatic cycle number and the actual test situation can be effectively improved by setting the automatic test cycle number in the mode, a worker is not required to self-sketch the cycle number, the labor can be effectively saved, the matching performance between the cycle number and the actual test situation can be improved, the problems of long increase of test duration and reduction of test efficiency caused by too many cycle number settings are prevented, and the problems of inaccurate test results caused by insufficient test cycle number caused by too few cycle number settings can be prevented.
In one embodiment of the present invention, the synchronization test strategy between the card tests includes:
s101, scanning the split cards to obtain the total number of the split cards;
s102, extracting the automatic test cycle times;
s103, determining the number of the body-dividing cards which are tested simultaneously by using the total number of the body-dividing cards and the automatic test cycle times, wherein the number of the body-dividing cards which are tested simultaneously is obtained through the following formula:
wherein K represents the number of the body division cards which are tested simultaneously; m represents the number of automatic test cycles; n represents the total number of the body parts cards; u represents an adaptive adjustment coefficient, and the value range is u= [0.1,1]; floor means rounding down;
the working principle of the technical scheme is as follows: and scanning all the body-separating cards connected with the test system to obtain the number of the body-separating cards. The scanning process may be implemented by a network scanning tool, for example using a ping command to scan all devices in the network, or obtaining the number of knock-out cards through the API interface of the test system. And extracting the set automatic test cycle times from the configuration file or the test script of the test system as the performance test parameters. Dividing the total number of the body cards by the number of automatic test cycles to obtain the number of the body cards to be tested in each cycle. Meanwhile, in order to ensure the stability and consistency of the test, the test device can be adjusted according to the actual situation, for example, the number of the tested body cards is increased or reduced, or the test time interval is adjusted.
The number of cards per group tested at the same time should be a downward rounding of N x C/M, but this value must be guaranteed to be between 1 and N. Wherein N is the total number of the body-separating cards, M is the number of automatic test cycles, and C is the self-adaptive adjustment coefficient. Specifically:
if N C/M is less than 1, the number of the body cards of each group tested simultaneously should be at least 1;
if N is greater than N, the number of the individual cards of each group tested at the same time should be N;
otherwise, the number of cards per component tested at the same time should be a rounded down value of N x C/M.
For example, assuming that the total number of the card parts is 100, the number of automatic test cycles is 1000, and the adaptive adjustment coefficient is 0.5. Then, according to the above formula, it can be calculated that the number of the individual cards of each group tested at the same time should be:
K=max(1,min(100,floor(100*0.5/1000)))=max(1,min(100,floor(0.05)))=max(1,min(100,0))=1
therefore, 1 card body should be tested at the same time to maximize the utilization of system resources and calculation power and ensure the test efficiency.
Grouping the split cards according to the number of the split cards which are tested simultaneously to obtain a plurality of split card groups.
The technical scheme has the effects that: the test efficiency is improved: by reasonably calculating and adjusting the number of the split cards and the number of automatic test cycles, the test resources can be utilized to the greatest extent, and the test efficiency is improved. The test accuracy and stability are improved: by determining the number of the body-separating cards which are tested simultaneously, the stability and consistency of the test can be ensured. In the test process, each body-separating card can obtain the same number of test opportunities, so that the deviation and error of test results are reduced, and the test accuracy is improved. By testing and analyzing the performance test data multiple times, comprehensive performance test data can be obtained and potential performance problems are found. These data can be used to generate detailed test reports, help developers identify and solve problems, and improve the quality of the software. By finding and solving the performance problems in time, the quality of the software and the user satisfaction can be improved. The performance test can ensure that the software normally operates under high load and can meet the requirements and expectations of users.
In one embodiment of the present invention, a computer runs a test script using test software, performs a performance test on each card according to an automatic test cycle number and a synchronous test strategy, and obtains a plurality of performance test results, including:
s301, starting test software by a computer to run a test script, wherein the test software is SecureCRT software; the test script is a test script written by javaScript;
s302, the computer sequentially sends test instructions to the body separation card group and receives returned performance test results in real time.
The technical scheme has the effects that: the embodiment provides an automatic test method which can realize uninterrupted test when testing is conducted on a large number of body-separated cards, can automatically compare effects and automatically generate test reports, and can greatly improve test efficiency and test accuracy while reducing human errors. The automatic test cycle times and the synchronous test strategy are set, and the test is carried out by using the body-separating card, so that the test efficiency can be greatly improved. The tester can test a plurality of body-separating cards at the same time, so that the testing time and resources are saved. The performance test is performed by using the automatic test script and the test tool, so that the interference of human factors can be reduced, and the test accuracy and reliability are improved. Meanwhile, through multiple tests and setting of synchronous test strategies, consistency and reliability of test results can be ensured. By testing and analyzing the performance test data multiple times, comprehensive performance test data can be obtained and potential performance problems are found. These data can be used to generate detailed test reports, help developers identify and solve problems, and improve the quality of the software. By finding and solving the performance problems in time, the quality of the software and the user satisfaction can be improved. The performance test can ensure that the software normally operates under high load and can meet the requirements and expectations of users.
An embodiment of the present invention proposes an automatic test system, as shown in fig. 3, including:
the setting module is used for setting synchronous test strategies between automatic test cycle times and the test of the body separation card;
the test module is used for performing performance test on each individual card by the computer according to the automatic test cycle times and the synchronous test strategy to obtain a plurality of performance test results;
and the result generation module is used for forming a test report corresponding to each individual card by utilizing the plurality of performance test results.
The set automatic test cycle number is obtained by the following steps:
wherein M represents the number of automatic test cycles; n represents the total number of the body parts cards; p (P) i Representing throughput per unit time of the i-th card; c represents the spatial complexity of the test algorithm corresponding to the ith individual card; s is S j Representing the remaining available total computing power of the computer; Δt represents the network delay time of the network where the automatic test is located; t is t s Indicating the acquisition time of the index to be tested of each body-separating card; t is t p Representing the processing time of the index to be tested of each body division card; t represents the maximum theoretical duration of sustainable use of computer resources; f represents the cycle detection frequency.
Specifically, the setting module includes:
the total number acquisition module is used for scanning the body division cards and acquiring the total number of the body division cards;
the frequency extraction module is used for extracting the automatic test cycle frequency;
the number acquisition module is used for determining the number of the body-dividing cards which are tested simultaneously by utilizing the total number of the body-dividing cards and the automatic test cycle times, wherein the number of the body-dividing cards which are tested simultaneously is acquired through the following formula:
wherein K represents the number of the body division cards which are tested simultaneously; m represents the number of automatic test cycles; n represents the total number of the body parts cards; u represents an adaptive adjustment coefficient, and the value range is u= [0.1,1]; floor means rounding down;
the meaning of this formula is: the number of cards per group tested at the same time should be a downward rounding of N x C/M, but this value must be guaranteed to be between 1 and N. Wherein N is the total number of the body-separating cards, M is the number of automatic test cycles, and C is the self-adaptive adjustment coefficient. Specifically:
if N C/M is less than 1, the number of the body cards of each group tested simultaneously should be at least 1;
if N is greater than N, the number of the individual cards of each group tested at the same time should be N;
otherwise, the number of cards per component tested at the same time should be a rounded down value of N x C/M.
For example, assuming that the total number of the card parts is 100, the number of automatic test cycles is 1000, and the adaptive adjustment coefficient is 0.5. Then, according to the above formula, it can be calculated that the number of the individual cards of each group tested at the same time should be:
K=max(1,min(100,floor(100*0.5/1000)))=max(1,min(100,floor(0.05)))=max(1,min(100,0))=1
therefore, 1 card body should be tested at the same time to maximize the utilization of system resources and calculation power and ensure the test efficiency.
Grouping the split cards according to the number of the split cards which are tested simultaneously to obtain a plurality of split card groups.
Specifically, the test module includes:
the starting module is used for starting the test software to run the test script by the computer, wherein the test software is the SecureCRT software; the test script is a test script written by javaScript;
the structure receiving module is used for sequentially sending test instructions to the body-separating card group by the computer and receiving returned performance test results in real time.
The technical scheme has the effects that: the embodiment provides an automatic test system which can realize uninterrupted test when testing a large number of body-separating cards, can automatically compare effects and automatically generate test reports, and can greatly improve test efficiency and test accuracy while reducing human errors. The automatic test cycle times and the synchronous test strategy are set, and the test is carried out by using the body-separating card, so that the test efficiency can be greatly improved. The tester can test a plurality of body-separating cards at the same time, so that the testing time and resources are saved. The performance test is performed by using the automatic test script and the test tool, so that the interference of human factors can be reduced, and the test accuracy and reliability are improved. Meanwhile, through multiple tests and setting of synchronous test strategies, consistency and reliability of test results can be ensured. By testing and analyzing the performance test data multiple times, comprehensive performance test data can be obtained and potential performance problems are found. These data can be used to generate detailed test reports, help developers identify and solve problems, and improve the quality of the software. By finding and solving the performance problems in time, the quality of the software and the user satisfaction can be improved. The performance test can ensure that the software normally operates under high load and can meet the requirements and expectations of users.
The embodiment of the invention provides an automatic test readable storage medium, which comprises a stored program, wherein when the program runs, a device where the readable storage medium is located is controlled to execute the automatic test method according to any one of the above steps.
The technical scheme has the effects that: the embodiment provides an automatic test medium which can realize uninterrupted test when testing a large number of body-separating cards, can automatically compare effects and automatically generate test reports, and can greatly improve test efficiency and test accuracy while reducing human errors. The automatic test cycle times and the synchronous test strategy are set, and the test is carried out by using the body-separating card, so that the test efficiency can be greatly improved. The tester can test a plurality of body-separating cards at the same time, so that the testing time and resources are saved. The performance test is performed by using the automatic test script and the test tool, so that the interference of human factors can be reduced, and the test accuracy and reliability are improved. Meanwhile, through multiple tests and setting of synchronous test strategies, consistency and reliability of test results can be ensured. By testing and analyzing the performance test data multiple times, comprehensive performance test data can be obtained and potential performance problems are found. These data can be used to generate detailed test reports, help developers identify and solve problems, and improve the quality of the software. By finding and solving the performance problems in time, the quality of the software and the user satisfaction can be improved. The performance test can ensure that the software normally operates under high load and can meet the requirements and expectations of users.
The embodiment of the invention provides an automatic testing device, which comprises a computer terminal, a communication module and one or more to-be-tested body-separating cards; the computer terminal is in signal connection with the one or more to-be-tested body-separating cards through the communication module;
the computer terminal comprises:
a memory for storing a program;
a processor for calling and running a stored program in memory to perform the automatic test method of any one of the above.
The technical scheme has the effects that: the embodiment provides an automatic testing device which can realize uninterrupted testing when testing a large number of body-separating cards, can automatically compare effects and automatically generate a testing report, and can greatly improve testing efficiency and testing accuracy while reducing human errors. The automatic test cycle times and the synchronous test strategy are set, and the test is carried out by using the body-separating card, so that the test efficiency can be greatly improved. The tester can test a plurality of body-separating cards at the same time, so that the testing time and resources are saved. The performance test is performed by using the automatic test script and the test tool, so that the interference of human factors can be reduced, and the test accuracy and reliability are improved. Meanwhile, through multiple tests and setting of synchronous test strategies, consistency and reliability of test results can be ensured. By testing and analyzing the performance test data multiple times, comprehensive performance test data can be obtained and potential performance problems are found. These data can be used to generate detailed test reports, help developers identify and solve problems, and improve the quality of the software. By finding and solving the performance problems in time, the quality of the software and the user satisfaction can be improved. The performance test can ensure that the software normally operates under high load and can meet the requirements and expectations of users.
It will be apparent to those skilled in the art that various modifications and variations can be made to the present invention without departing from the spirit or scope of the invention. Thus, it is intended that the present invention also include such modifications and alterations insofar as they come within the scope of the appended claims or the equivalents thereof.

Claims (10)

1. An automatic test method, characterized in that the automatic test method comprises:
setting a synchronous test strategy between the automatic test cycle times and the body division card test;
the computer performs performance test on each individual card according to the automatic test cycle times and the synchronous test strategy to obtain a plurality of performance test results;
and forming a test report corresponding to each individual card by using the plurality of performance test results.
2. The automatic test method according to claim 1, wherein the set number of automatic test cycles is obtained by:
wherein M represents the number of automatic test cycles; n represents the total number of the body parts cards; p (P) i Units representing the i-th cardThroughput in time; c (C) i Representing the spatial complexity of a test algorithm corresponding to the ith individual card; s is S j Representing the remaining available total computing power of the computer; Δt represents the network delay time of the network where the automatic test is located; t is t s Indicating the acquisition time of the index to be tested of each body-separating card; t is t p Representing the processing time of the index to be tested of each body division card; t represents the maximum theoretical duration of sustainable use of computer resources; f represents a cycle detection frequency; int []To round the function symbols up.
3. The automatic test method of claim 1 wherein the synchronization test strategy between the body card tests comprises:
scanning the split cards to obtain the total number of the split cards;
extracting the automatic test cycle number;
determining the number of the body-dividing cards which are tested simultaneously by using the total number of the body-dividing cards and the automatic test cycle times, wherein the number of the body-dividing cards which are tested simultaneously is obtained by the following formula:
wherein K represents the number of the body division cards which are tested simultaneously; m represents the number of automatic test cycles; n represents the total number of the body parts cards; u represents an adaptive adjustment coefficient, and the value range is u= [0.1,1]; floor means rounding down;
grouping the split cards according to the number of the split cards which are tested simultaneously to obtain a plurality of split card groups.
4. The automatic test method of claim 1 wherein the computer running test scripts using test software performs performance testing on each individual card according to the number of automatic test cycles and a synchronous test strategy to obtain a plurality of performance test results, comprising:
starting test software to run a test script by the computer;
the computer sequentially sends test instructions to the body-separating card group and receives returned performance test results in real time.
5. An automatic test system, the automatic test system comprising:
the setting module is used for setting synchronous test strategies between automatic test cycle times and the test of the body separation card;
the test module is used for performing performance test on each individual card by the computer according to the automatic test cycle times and the synchronous test strategy to obtain a plurality of performance test results;
and the result generation module is used for forming a test report corresponding to each individual card by utilizing the plurality of performance test results.
6. The automatic test system of claim 5 wherein the set number of automatic test cycles is obtained by:
wherein M represents the number of automatic test cycles; n represents the total number of the body parts cards; p (P) i Representing throughput per unit time of the i-th card; c (C) i Representing the spatial complexity of a test algorithm corresponding to the ith individual card; s is S j Representing the remaining available total computing power of the computer; Δt represents the network delay time of the network where the automatic test is located; t is t s Indicating the acquisition time of the index to be tested of each body-separating card; t is t p Representing the processing time of the index to be tested of each body division card; t represents the maximum theoretical duration of sustainable use of computer resources; f represents a cycle detection frequency; int []To round the function symbols up.
7. The automated test system of claim 5, wherein the setup module comprises:
the total number acquisition module is used for scanning the body division cards and acquiring the total number of the body division cards;
the frequency extraction module is used for extracting the automatic test cycle frequency;
the number acquisition module is used for determining the number of the body-dividing cards which are tested simultaneously by utilizing the total number of the body-dividing cards and the automatic test cycle times, wherein the number of the body-dividing cards which are tested simultaneously is acquired through the following formula:
wherein K represents the number of the body division cards which are tested simultaneously; m represents the number of automatic test cycles; n represents the total number of the body parts cards; u represents an adaptive adjustment coefficient, and the value range is u= [0.1,1]; floor means rounding down;
grouping the split cards according to the number of the split cards which are tested simultaneously to obtain a plurality of split card groups.
8. The automated test system of claim 5, wherein the test module comprises:
the starting module is used for starting the test software to run the test script by the computer;
the structure receiving module is used for sequentially sending test instructions to the body-separating card group by the computer and receiving returned performance test results in real time.
9. A readable storage medium for automatic testing, characterized in that the readable storage medium comprises a stored program, wherein the program, when run, controls a device in which the readable storage medium is located to perform the automatic testing method according to any one of claims 1 to 4.
10. An automatic testing device is characterized by comprising a computer terminal, a communication module and one or more to-be-tested body-separating cards; the computer terminal is in signal connection with the one or more to-be-tested body-separating cards through the communication module;
the computer terminal comprises:
a memory for storing a program;
a processor for calling and running a stored program in a memory to perform the automatic test method of any one of claims 1 to 4.
CN202310901527.0A 2023-07-21 2023-07-21 Automatic test method, system, device and medium Active CN116743644B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310901527.0A CN116743644B (en) 2023-07-21 2023-07-21 Automatic test method, system, device and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310901527.0A CN116743644B (en) 2023-07-21 2023-07-21 Automatic test method, system, device and medium

Publications (2)

Publication Number Publication Date
CN116743644A true CN116743644A (en) 2023-09-12
CN116743644B CN116743644B (en) 2024-01-30

Family

ID=87908148

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310901527.0A Active CN116743644B (en) 2023-07-21 2023-07-21 Automatic test method, system, device and medium

Country Status (1)

Country Link
CN (1) CN116743644B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120136602A1 (en) * 2010-05-07 2012-05-31 Salesforce.Com, Inc. Method and system for automated performance testing in a multi-tenant environment
US20160294655A1 (en) * 2015-03-31 2016-10-06 Zuora, Inc. Systems and methods for live testing performance conditions of a multi-tenant system
CN111338866A (en) * 2020-02-20 2020-06-26 上海仪电(集团)有限公司中央研究院 Cloud host pressure testing method and system based on shadow body-divided virtual machine
CN112765014A (en) * 2021-01-04 2021-05-07 光大兴陇信托有限责任公司 Automatic test system for multi-user simultaneous operation and working method
CN115757165A (en) * 2022-11-29 2023-03-07 湖南快乐阳光互动娱乐传媒有限公司 Automatic testing method, device, equipment and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120136602A1 (en) * 2010-05-07 2012-05-31 Salesforce.Com, Inc. Method and system for automated performance testing in a multi-tenant environment
US20160294655A1 (en) * 2015-03-31 2016-10-06 Zuora, Inc. Systems and methods for live testing performance conditions of a multi-tenant system
CN111338866A (en) * 2020-02-20 2020-06-26 上海仪电(集团)有限公司中央研究院 Cloud host pressure testing method and system based on shadow body-divided virtual machine
CN112765014A (en) * 2021-01-04 2021-05-07 光大兴陇信托有限责任公司 Automatic test system for multi-user simultaneous operation and working method
CN115757165A (en) * 2022-11-29 2023-03-07 湖南快乐阳光互动娱乐传媒有限公司 Automatic testing method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN116743644B (en) 2024-01-30

Similar Documents

Publication Publication Date Title
CN102981951A (en) Platform and method of cloud test development
CN112994972B (en) Distributed probe monitoring platform
CN107196781B (en) Security configuration checking task allocation method and device
CN111181800B (en) Test data processing method and device, electronic equipment and storage medium
CN109446040B (en) Method and device for acquiring starting duration of application interface and terminal equipment
CN114255784A (en) Substation equipment fault diagnosis method based on voiceprint recognition and related device
CN116962471A (en) Medical equipment management system based on Internet of things
CN108108296A (en) A kind of cloud test method, server and client
CN105159806A (en) Terminal compatibility test system and operating method therefor
CN116743644B (en) Automatic test method, system, device and medium
US20230376397A1 (en) Method and System for Determining Interval Time for Testing of Server, and Device and Medium
CN113537590A (en) Data anomaly prediction method and system
CN112363883A (en) CPU pressure testing method and device
CN111597111A (en) Application program starting speed monitoring method and device
CN107396392A (en) Radio-frequency indicator testing method, device, equipment and the storage medium of WAP
CN108874646A (en) The method and apparatus for analyzing data
CN115454015A (en) Controller node detection method, controller node detection device, control system, vehicle and storage medium
US8265906B2 (en) Automatic identification of execution phases in load tests
CN113868031A (en) Method, device and system for testing performance consistency of hard disk
CN112104497A (en) Terminal management method, device, system, server, terminal and storage medium
CN101730120A (en) Reactivation testing method and device
CN110334017B (en) Test script generation method and related device
CN209911955U (en) Automatic testing arrangement based on app
CN117558660B (en) Management method and system for control workstation of semiconductor wafer detection equipment
CN117041018B (en) Remote intelligent operation and maintenance management method for data center and related equipment

Legal Events

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