CN116974908A - Cloud platform-based software compatibility testing method and system - Google Patents

Cloud platform-based software compatibility testing method and system Download PDF

Info

Publication number
CN116974908A
CN116974908A CN202310696224.XA CN202310696224A CN116974908A CN 116974908 A CN116974908 A CN 116974908A CN 202310696224 A CN202310696224 A CN 202310696224A CN 116974908 A CN116974908 A CN 116974908A
Authority
CN
China
Prior art keywords
test
software
software compatibility
terminal
testing
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
CN202310696224.XA
Other languages
Chinese (zh)
Other versions
CN116974908B (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.)
Zhongke Software Evaluation Guangzhou Co ltd
Original Assignee
Zhongke Software Evaluation Guangzhou 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 Zhongke Software Evaluation Guangzhou Co ltd filed Critical Zhongke Software Evaluation Guangzhou Co ltd
Priority to CN202310696224.XA priority Critical patent/CN116974908B/en
Publication of CN116974908A publication Critical patent/CN116974908A/en
Application granted granted Critical
Publication of CN116974908B publication Critical patent/CN116974908B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3684Test management for test design, e.g. generating new test cases
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3692Test management for test results analysis

Landscapes

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

Abstract

The invention discloses a cloud platform-based software compatibility testing method and a cloud platform-based software compatibility testing system, which belong to the technical field of software testing, and the cloud platform-based software compatibility testing method and the cloud platform-based software compatibility testing system can eliminate the influence caused by a testing terminal by setting a testing terminal cluster and dividing the testing terminal cluster into a judging terminal and an executing terminal, ensure more accurate software testing results, automatically execute the whole testing process, intercept pictures of a testing interface in the testing process, provide analysis basis for workers when abnormality occurs, and effectively improve the testing efficiency.

Description

Cloud platform-based software compatibility testing method and system
Technical Field
The invention belongs to the technical field of software testing, and particularly relates to a cloud platform-based software compatibility testing method and system.
Background
With the rapid development of software technology, more and more computer application software is emerging. After the software is designed, the software operator performs software testing on the designed software in order to ensure that the software can normally run. The method for testing the compatibility of software or application generally installs the software or application to be tested on the terminal equipment to be tested, and tests the compatibility of the software or application on the terminal equipment to obtain whether the software or application runs stably on the terminal equipment, etc.
In the prior art, a worker often runs the installed software on the mobile terminal, and manually tests whether the running process of the software is normal, so that the test efficiency is low, the influence of the mobile terminal equipment is large, and if the mobile terminal itself has a plurality of loopholes, the software test result may be inaccurate.
Disclosure of Invention
The invention provides a cloud platform-based software compatibility testing method and system, which are used for solving the problems in the prior art.
In a first aspect, the present invention provides a method for testing software compatibility based on a cloud platform, including:
constructing a plurality of software compatible test units on a cloud platform, and establishing connection between the software compatible test units and test terminal clusters, wherein each software compatible test unit corresponds to one test terminal cluster, and each test terminal cluster comprises a plurality of test terminals with different types;
the method comprises the steps of receiving software to be tested and test cases corresponding to the software to be tested, which are transmitted by a user side, through a software compatibility test unit, generating software compatibility test data according to the software to be tested and the test cases corresponding to the software to be tested, and transmitting the software compatibility test data to a test terminal cluster;
processing the software compatibility test data through the test terminal cluster, obtaining a software compatibility test result in a fixed period, and transmitting the software compatibility test result to a corresponding software compatibility test unit;
determining the corresponding test efficiency of each software compatibility test unit according to the software compatibility test result, and adjusting the software compatibility test data according to the test efficiency to obtain adjusted software compatibility test data;
transmitting the adjusted software compatibility test data to a test terminal cluster, and processing the adjusted software compatibility test data through the test terminal cluster to obtain a final software compatibility test result;
and receiving a final software compatibility test result transmitted by the test terminal cluster through the software compatibility test module, generating a test report based on the final software compatibility test result, and feeding back the test report to the user side to complete the software compatibility test.
Further, constructing a plurality of software compatible test units on the cloud platform, and establishing connection between the software compatible test units and the test terminal cluster, including:
creating a plurality of virtual servers on a cloud platform, wherein each virtual server is used as a software compatibility testing unit;
according to the existing test terminals, the test terminal clusters with the same number as the virtual servers are divided, and the types and the numbers of the test terminals in any two test terminal clusters are the same;
and establishing connection between the software compatible test unit and the test terminal cluster in a one-to-one corresponding connection relation.
Further, in each software compatibility testing process, when the test terminal clusters with the same number as the virtual servers are divided, a fixed number of test terminals are randomly selected from the existing test terminals, and the selected number is smaller than the total number of the test terminals.
Further, receiving the software to be tested and the test cases corresponding to the software to be tested transmitted by the user terminal through the software compatibility test unit, generating software compatibility test data according to the software to be tested and the test cases corresponding to the software to be tested, and transmitting the software compatibility test data to the test terminal cluster, including:
receiving software to be tested and a test case corresponding to the software to be tested transmitted by a user terminal through a software compatible test unit;
generating test times of each software compatible module, generating software compatible test data according to the software to be tested, the test cases corresponding to the software to be tested and the test times, and transmitting the software compatible test data to the test terminal cluster.
Further, the software compatibility test data is processed through the test terminal cluster, a software compatibility test result in a fixed period is obtained, and the software compatibility test result is transmitted to a corresponding software compatibility test unit, which comprises the following steps:
any one terminal in the test terminal cluster is used as a judging terminal, and other terminals are used as executing terminals;
analyzing the software compatibility test data through the execution terminal and the judging terminal to obtain software to be tested, test cases corresponding to the software to be tested and test times;
controlling an execution terminal to run the software to be tested through the judging terminal, and executing a test case corresponding to the software to be tested to obtain a corresponding test result;
receiving test results output by an execution terminal in the same test terminal cluster through a judging terminal, determining software compatibility test results corresponding to the test terminal cluster by adopting a majority of consistent judging methods, and accumulating the software compatibility test results through the judging terminal until the number of the software compatibility test results determined by the judging terminal reaches the test times;
transmitting the accumulated software compatibility test results to a software compatibility test unit, when the software compatibility test unit acquires the first accumulated software compatibility test result, determining the test time length of currently executing software compatibility as a fixed period, and synchronously acquiring the accumulated software compatibility test results of other test terminal clusters in the fixed period to determine the corresponding actual test times of each software compatibility test unit.
Further, according to the software compatibility test result, determining the test efficiency corresponding to each software compatibility test unit, and adjusting the software compatibility test data according to the test efficiency to obtain adjusted software compatibility test data, including:
according to the software compatibility test result, determining that the test efficiency corresponding to the first software test module receiving the accumulated software compatibility test result is 1, and determining the test efficiency corresponding to each software compatibility test unit;
subtracting the actual test times corresponding to each software compatible test unit from the total test times to obtain residual test times, and distributing the residual test times to different software compatible test units according to the ratio of the test efficiency to obtain the test times corresponding to each software compatible test unit;
and reconstructing software compatibility test data by adopting the number of times to be tested, the software to be tested and the test cases corresponding to the software to be tested, and obtaining the adjusted software compatibility test data.
Further, after determining the test efficiency corresponding to each software compatible test unit, the method further includes: if the testing efficiency corresponding to the software compatible testing unit is lower than the set threshold value, the software compatible testing unit and the corresponding testing terminal cluster do not participate in the subsequent testing.
Further, the adjusted software compatibility test data is transmitted to the test terminal cluster, and the adjusted software compatibility test data is processed through the test terminal cluster to obtain a final software compatibility test result, which comprises the following steps:
transmitting the adjusted software compatibility test data to a test terminal cluster;
any one terminal in the test terminal cluster is used as a judging terminal, and other terminals are used as executing terminals;
analyzing the software compatibility test data through the execution terminal and the judging terminal to obtain software to be tested, test cases corresponding to the software to be tested and times to be tested;
the method comprises the steps that an execution terminal is controlled by a judging terminal to run software to be tested, a test case corresponding to the software to be tested is executed, a corresponding test result is obtained, a plurality of test images are intercepted according to a preset time interval in the test process, and a first test image is intercepted at the moment of starting the test;
receiving test results output by the execution terminals in the same test terminal cluster through the judging terminal, determining real test results corresponding to the test terminal cluster by adopting a majority consistency judging method, and forming a final software compatibility test result of the test process by the test results output by the execution terminal corresponding to any real test result and the intercepted test image;
based on the number of times to be tested, a plurality of final software compatibility test results are obtained, and the execution process of the test terminal cluster is completed.
Further, the method further comprises the following steps: and distributing the confidence coefficient for each test terminal, updating the confidence coefficient of the test terminal in each test process, and not participating in the construction of the test terminal cluster after the confidence coefficient of the test terminal is reduced to a set threshold value.
The invention provides a software compatibility testing system based on a cloud platform, which comprises a building module, a first transmission module, a remote testing module, an adjusting module, a testing result obtaining module and a testing report output module, wherein the building module is used for building a testing platform;
the construction module is used for constructing a plurality of software compatible test units on the cloud platform and establishing connection between the software compatible test units and test terminal clusters, each software compatible test unit corresponds to one test terminal cluster, and each test terminal cluster comprises a plurality of test terminals with different types;
the first transmission module is used for receiving the software to be tested and the test cases corresponding to the software to be tested transmitted by the user side through the software compatibility test unit, generating software compatibility test data according to the software to be tested and the test cases corresponding to the software to be tested, and transmitting the software compatibility test data to the test terminal cluster;
the remote test module is used for processing the software compatibility test data through the test terminal cluster, obtaining a software compatibility test result in a fixed period and transmitting the software compatibility test result to a corresponding software compatibility test unit;
the adjusting module is used for determining the testing efficiency corresponding to each software compatibility testing unit according to the software compatibility testing result, and adjusting the software compatibility testing data according to the testing efficiency to obtain adjusted software compatibility testing data;
the test result acquisition module is used for transmitting the adjusted software compatibility test data to the test terminal cluster, and processing the adjusted software compatibility test data through the test terminal cluster to acquire a final software compatibility test result;
the test report output module is used for receiving a final software compatibility test result transmitted by the test terminal cluster through the software compatibility test module, generating a test report based on the final software compatibility test result, and feeding the test report back to the user side to complete the software compatibility test.
According to the cloud platform-based software compatibility testing method and system, the testing terminal cluster is set, and the testing terminal cluster is divided into the judging terminal and the executing terminal, so that the influence caused by the testing terminal can be eliminated, more accurate software testing results are ensured, the whole testing process is automatically executed, pictures of a testing interface can be intercepted in the testing process, and when abnormality occurs, an analysis basis can be provided for staff, and the testing efficiency is effectively improved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
Fig. 1 is a flowchart of a software compatibility testing method based on a cloud platform according to an embodiment of the present invention.
Fig. 2 is a schematic structural diagram of a software compatibility testing system based on a cloud platform according to an embodiment of the present invention.
The system comprises a construction module 201, a first transmission module 202, a remote test module 203, a regulation module 204, a test result acquisition module 205 and a test report output module 206.
Specific embodiments of the present invention have been shown by way of the above drawings and will be described in more detail below. The drawings and the written description are not intended to limit the scope of the inventive concepts in any way, but rather to illustrate the inventive concepts to those skilled in the art by reference to the specific embodiments.
Detailed Description
Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The implementations described in the following exemplary examples do not represent all implementations consistent with the invention. Rather, they are merely examples of apparatus and methods consistent with aspects of the invention as detailed in the accompanying claims.
Embodiments of the present invention are described in detail below with reference to the accompanying drawings.
As shown in fig. 1, the present invention provides a software compatibility testing method based on a cloud platform, including:
s101, constructing a plurality of software compatible test units on a cloud platform, and establishing connection between the software compatible test units and test terminal clusters, wherein each software compatible test unit corresponds to one test terminal cluster, and each test terminal cluster comprises a plurality of test terminals with different types.
Each software compatible test unit is equivalent to a transfer program, and the test terminal clusters can be a fixed number of mobile devices selected from the existing test terminals, for example, the existing test terminals can be collected in different M models, and each time the test terminal clusters constructed in the software test process are different.
S102, receiving the software to be tested and the test cases corresponding to the software to be tested transmitted by the user terminal through the software compatibility test unit, generating software compatibility test data according to the software to be tested and the test cases corresponding to the software to be tested, and transmitting the software compatibility test data to the test terminal cluster.
The software to be tested can be various APP (Application program) in the mobile device, and the test case corresponding to the software to be tested can be pre-stored data to be executed or operation to be executed, or can be a test case generated by human-computer interaction by a user. In the whole test process, each test case needs to be executed for a preset number of times to verify the compatibility of the software to be tested, so as to determine whether the software to be tested can stably run.
In addition, it is also possible to verify whether the software to be tested has compatibility problems with other software, for example, a plurality of base APP is set on the test terminal, and when the APP and the software to be tested are run on the test terminal, the compatibility between the software to be tested and other software can be determined.
Optionally, besides the test case is adopted for testing, the software to be tested can be directly obtained, then compatibility testing software is preset on the testing terminal, and the software to be tested is tested through the compatibility testing software.
S103, processing the software compatibility test data through the test terminal cluster, obtaining a software compatibility test result in a fixed period, and transmitting the software compatibility test result to a corresponding software compatibility test unit.
The test terminal cluster with the preset test times executed at first can be used as a reference, the time for the test terminal cluster to execute the test with the test times can be a fixed period, and the test efficiency of the test terminal cluster is used as 1, so that the test efficiency of other test terminal clusters can be determined, namely the completed test times divided by the test times.
S104, determining the testing efficiency corresponding to each software compatibility testing unit according to the software compatibility testing result, and adjusting the software compatibility testing data according to the testing efficiency to obtain the adjusted software compatibility testing data.
The embodiment adopts the method of parallel operation of the multiple test terminal clusters to carry out the software compatibility test, so that the software test time can be effectively shortened, and different test terminal clusters have different processing efficiencies, if each test terminal cluster adopts fixed test times, the test efficiency can be inevitably reduced, and therefore, the test times are distributed according to the test efficiency, and the test efficiency of the whole process can be effectively improved.
In each test process, the test terminal cluster contains different test terminals, so that the test times are required to be distributed. The test terminal cluster is selected, so that the condition that a single device fails or a test result is inaccurate due to the existence of a loophole can be discharged, and the accuracy of the test result is ensured.
S105, transmitting the adjusted software compatibility test data to the test terminal cluster, and processing the adjusted software compatibility test data through the test terminal cluster to obtain a final software compatibility test result.
In order to ensure the overall efficiency, the total number of tests executed before the software compatibility test data is adjusted is counted, and the number of times of execution can be determined by subtracting the counted total number of tests from the required number of tests, so that the subsequent tests are performed. And the accuracy of the test can be ensured to a certain extent by multiple tests, and inaccuracy caused by single or fewer measurements is avoided.
S106, receiving a final software compatibility test result transmitted by the test terminal cluster through the software compatibility test module, generating a test report based on the final software compatibility test result, and feeding back the test report to the user side to complete the software compatibility test.
The test report may include data during each test to allow a worker to analyze the abnormal data for software compatibility repairs.
According to the cloud platform-based software compatibility testing method, the testing terminal clusters are arranged and are divided into the judging terminals and the executing terminals, so that the influence caused by the testing terminals can be eliminated, more accurate software testing results are ensured, the whole testing process is automatically executed, pictures of a testing interface can be intercepted in the testing process, and when abnormality occurs, an analysis basis can be provided for staff, and the testing efficiency is effectively improved.
In this embodiment, a plurality of software compatible test units are built on a cloud platform, and connection between the software compatible test units and a test terminal cluster is established, including:
creating a plurality of virtual servers on the cloud platform, wherein each virtual server is used as a software compatibility testing unit.
According to the existing test terminals, the test terminal clusters with the same number as the virtual servers are divided, and the types and the numbers of the test terminals in any two test terminal clusters are the same.
And establishing connection between the software compatible test unit and the test terminal cluster in a one-to-one corresponding connection relation.
In this embodiment, in each software compatibility testing process, when the test terminal clusters with the same number as the virtual servers are divided, a fixed number of test terminals are randomly selected from the existing test terminals, and the number of the selected test terminals is smaller than the total number of the test terminals.
The test terminals are randomly selected, the test terminal cluster is constructed for testing, so that problems of the test terminals can be effectively avoided, certain tolerance capacity is achieved, when a certain test terminal is damaged midway or is invaded by viruses, the test process can be guaranteed to be continued, and the risk resistance capacity of the whole test system is enhanced.
In this embodiment, receiving, by a software compatibility test unit, software to be tested and a test case corresponding to the software to be tested transmitted by a user terminal, generating software compatibility test data according to the software to be tested and the test case corresponding to the software to be tested, and transmitting the software compatibility test data to a test terminal cluster, where the method includes:
and receiving the software to be tested and the test cases corresponding to the software to be tested transmitted by the user terminal through the software compatible test unit.
Generating test times of each software compatible module, generating software compatible test data according to the software to be tested, the test cases corresponding to the software to be tested and the test times, and transmitting the software compatible test data to the test terminal cluster.
Optionally, the same test times can be set for different software to be tested, and different test times can also be set. For example, in general, the larger the software, the more likely compatibility problems exist, and different numbers of trial tests may be assigned using the software size.
In this embodiment, processing software compatibility test data by the test terminal cluster, obtaining a software compatibility test result in a fixed period, and transmitting the software compatibility test result to a corresponding software compatibility test unit, including:
any one terminal in the test terminal cluster is used as a judging terminal, and other terminals are used as executing terminals.
Analyzing the software compatibility test data through the execution terminal and the judging terminal to obtain the software to be tested, the test cases corresponding to the software to be tested and the test times.
And controlling the execution terminal to run the software to be tested through the judging terminal, and executing the test case corresponding to the software to be tested to obtain a corresponding test result.
And receiving test results output by the execution terminals in the same test terminal cluster through the judging terminal, determining software compatibility test results corresponding to the test terminal cluster by adopting a majority of consistent judging methods, and accumulating the software compatibility test results through the judging terminal until the number of the software compatibility test results determined by the judging terminal reaches the test times.
For example, the test result with the largest occurrence number can be selected as the software compatibility test result corresponding to the test terminal cluster.
Transmitting the accumulated software compatibility test results to a software compatibility test unit, when the software compatibility test unit acquires the first accumulated software compatibility test result, determining the test time length of currently executing software compatibility as a fixed period, and synchronously acquiring the accumulated software compatibility test results of other test terminal clusters in the fixed period to determine the corresponding actual test times of each software compatibility test unit.
In this embodiment, the test terminal cluster with the fastest efficiency is used as a reference, so that the actual test times of other test terminal clusters in the same time period can be determined, the test efficiency of each test terminal cluster can be determined, different test times can be divided based on the test efficiency, and each test terminal cluster can basically complete the test at the same time in the subsequent test process, so that the occurrence of the condition that the execution time of the test terminal clusters has a larger difference in the test process is avoided, and the test efficiency is improved.
In this embodiment, according to a software compatibility test result, determining a test efficiency corresponding to each software compatibility test unit, and adjusting software compatibility test data according to the test efficiency to obtain adjusted software compatibility test data, including:
according to the software compatibility test result, determining that the test efficiency corresponding to the first software test module receiving the accumulated software compatibility test result is 1, and determining the test efficiency corresponding to each software compatibility test unit.
Subtracting the actual test times corresponding to each software compatible test unit from the total test times to obtain the residual test times, and distributing the residual test times to different software compatible test units according to the ratio of the test efficiency to obtain the test times corresponding to each software compatible test unit.
And reconstructing software compatibility test data by adopting the number of times to be tested, the software to be tested and the test cases corresponding to the software to be tested, and obtaining the adjusted software compatibility test data.
For example, the number of test tests is 50, the first cluster executed 50 times is the test terminal cluster a, and the execution time is 2 minutes. And the test terminal cluster B completes the test for 40 times in 2 minutes, so that the test efficiency of the test terminal cluster A is 1, and the test efficiency of the test terminal cluster B is 0.8. Assuming that the total test number should be 270 times, 90 times have been executed, and 180 times remain, 180 is allocated to the test terminal cluster a and the test terminal cluster B according to the ratio of 1:0.8, so as to determine that the test terminal cluster a has 100 times of test number, and the test terminal cluster B has 80 times of test number, and both can be completed within 4 minutes in the subsequent execution process. It should be noted that, if the number of the test terminal clusters is distributed in proportion, the number of the test terminal clusters is added to the number of times to be tested corresponding to the test terminal cluster with the highest efficiency, so that the number of times to be tested corresponding to each test terminal cluster is an integer.
In this embodiment, after determining the test efficiency corresponding to each software compatible test unit, the method further includes: if the testing efficiency corresponding to the software compatible testing unit is lower than the set threshold value, the software compatible testing unit and the corresponding testing terminal cluster do not participate in the subsequent testing.
In this embodiment, the transmitting the adjusted software compatibility test data to the test terminal cluster, and processing the adjusted software compatibility test data through the test terminal cluster, to obtain a final software compatibility test result, includes:
and transmitting the adjusted software compatibility test data to the test terminal cluster.
Any one terminal in the test terminal cluster is used as a judging terminal, and other terminals are used as executing terminals.
Analyzing the software compatibility test data through the execution terminal and the judging terminal to obtain the software to be tested, the test cases corresponding to the software to be tested and the times to be tested.
The method comprises the steps of controlling an execution terminal to run software to be tested through a judging terminal, executing a test case corresponding to the software to be tested, obtaining a corresponding test result, intercepting a plurality of test images according to a preset time interval in the test process, and intercepting a first test image at the moment of starting the test.
And receiving test results output by the execution terminals in the same test terminal cluster through the judging terminal, determining real test results corresponding to the test terminal cluster by adopting a majority consistency judging method, and forming a final software compatibility test result of the test process by the test results output by the execution terminal corresponding to any real test result and the intercepted test image.
In the testing process, pictures of the testing interface can be intercepted, and when abnormality occurs, analysis basis can be provided for staff, so that the testing efficiency is effectively improved.
Based on the number of times to be tested, a plurality of final software compatibility test results are obtained, and the execution process of the test terminal cluster is completed.
In this embodiment, further comprising: and distributing the confidence coefficient for each test terminal, updating the confidence coefficient of the test terminal in each test process, and not participating in the construction of the test terminal cluster after the confidence coefficient of the test terminal is reduced to a set threshold value.
Optionally, updating the confidence level of the test terminal may be:
wherein θ t Representing the confidence level, θ, of the test terminal t+1 The updated confidence level is represented by Q, the number of execution terminals in the test terminal cluster is represented by Q, the number of execution terminals corresponding to the real test result determined by the judging terminal is represented by lambda, the update coefficient is represented by gamma', the real test result determined by the judging terminal is represented by gamma, and the test result corresponding to the execution terminal is represented by gamma.
Example 2
As shown in fig. 2, the present invention provides a software compatibility testing system based on a cloud platform, which includes a building module 201, a first transmission module 202, a remote testing module 203, an adjusting module 204, a testing result obtaining module 205, and a testing report output module 206.
The building module 201 is configured to build a plurality of software-compatible test units on the cloud platform, and establish connection between the software-compatible test units and test terminal clusters, where each software-compatible test unit corresponds to one test terminal cluster, and each test terminal cluster includes a plurality of test terminals with different models.
The first transmission module 202 is configured to receive, through a software compatibility test unit, software to be tested and a test case corresponding to the software to be tested transmitted by a user, generate software compatibility test data according to the software to be tested and the test case corresponding to the software to be tested, and transmit the software compatibility test data to a test terminal cluster.
The remote test module 203 is configured to process the software compatibility test data through the test terminal cluster, obtain a software compatibility test result in a fixed period, and transmit the software compatibility test result to a corresponding software compatibility test unit.
The adjustment module 204 is configured to determine a test efficiency corresponding to each software compatibility test unit according to a software compatibility test result, and adjust software compatibility test data according to the test efficiency to obtain adjusted software compatibility test data.
The test result obtaining module 205 is configured to transmit the adjusted software compatibility test data to the test terminal cluster, and process the adjusted software compatibility test data through the test terminal cluster to obtain a final software compatibility test result.
The test report output module 206 is configured to receive a final software compatibility test result transmitted by the test terminal cluster through the software compatibility test module, generate a test report based on the final software compatibility test result, and feed back the test report to the user side to complete the software compatibility test.
The software compatibility testing system based on the cloud platform provided in this embodiment may execute the method technical scheme as described in embodiment 1, and its principle and beneficial effects are similar, and are not described here again.
Example 3
The embodiment of the invention provides a cloud platform-based software compatibility testing device, which comprises a memory and a processor, wherein the memory and the processor are connected through a bus.
The memory stores computer-executable instructions.
The processor executes the computer-executable instructions stored in the memory, so that the processor executes the cloud platform-based software compatibility testing method as described in embodiment 1.
By way of specific example, the Memory may include, but is not limited to, random access Memory (random access Memory, RAM), read Only Memory (ROM), flash Memory (Flash Memory), first-in-first-out Memory (First Input First Output, FIFO) and/or first-in-last-out Memory (First In Last Out, FILO), and the like; in particular, the processor may include one or more processing cores, such as a 4-core processor, an 8-core processor, or the like. The processor may be implemented in at least one hardware form of DSP (Digital Signal Processing ), FPGA (Field-Programmable Gate Array, field programmable gate array), PLA (Programmable Logic Array ), and may also include a main processor and a coprocessor, where the main processor is a processor for processing data in an awake state, and is also called CPU (Central Processing Unit ); a coprocessor is a low-power processor for processing data in a standby state.
In some embodiments, the processor may be integrated with a GPU (Graphics Processing Unit, image processor) for taking charge of rendering and rendering of content required to be displayed by the display screen, for example, the processor may not be limited to a microprocessor employing a model number of STM32F105 family, a reduced instruction set computer (reduced instruction set computer, RISC) microprocessor, an X86 or other architecture processor, or a processor integrating an embedded neural network processor (neural-network processing units, NPU); the transceiver may be, but is not limited to, a wireless fidelity (WIFI) wireless transceiver, a bluetooth wireless transceiver, a general packet radio service technology (General Packet Radio Service, GPRS) wireless transceiver, a ZigBee protocol (low power local area network protocol based on the ieee802.15.4 standard), a 3G transceiver, a 4G transceiver, and/or a 5G transceiver, etc. In addition, the device may include, but is not limited to, a power module, a display screen, and other necessary components.
Example 4
The embodiment of the invention provides a computer readable storage medium, wherein computer execution instructions are stored in the computer readable storage medium, and when the computer execution instructions are executed by a processor, the computer readable storage medium is used for realizing the software compatibility testing method based on the cloud platform in the embodiment 1.
Example 5
Embodiments of the present invention may also provide a computer program product comprising a computer program which, when executed by a processor, implements the cloud platform based software compatibility testing method as described in embodiment 1.
Other embodiments of the invention will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This invention is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the invention and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the invention being indicated by the following claims.
It is to be understood that the invention is not limited to the precise arrangements and instrumentalities shown in the drawings, which have been described above, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the invention is limited only by the appended claims.

Claims (10)

1. The software compatibility testing method based on the cloud platform is characterized by comprising the following steps of:
constructing a plurality of software compatible test units on a cloud platform, and establishing connection between the software compatible test units and test terminal clusters, wherein each software compatible test unit corresponds to one test terminal cluster, and each test terminal cluster comprises a plurality of test terminals with different types;
the method comprises the steps of receiving software to be tested and test cases corresponding to the software to be tested, which are transmitted by a user side, through a software compatibility test unit, generating software compatibility test data according to the software to be tested and the test cases corresponding to the software to be tested, and transmitting the software compatibility test data to a test terminal cluster;
processing the software compatibility test data through the test terminal cluster, obtaining a software compatibility test result in a fixed period, and transmitting the software compatibility test result to a corresponding software compatibility test unit;
determining the corresponding test efficiency of each software compatibility test unit according to the software compatibility test result, and adjusting the software compatibility test data according to the test efficiency to obtain adjusted software compatibility test data;
transmitting the adjusted software compatibility test data to a test terminal cluster, and processing the adjusted software compatibility test data through the test terminal cluster to obtain a final software compatibility test result;
and receiving a final software compatibility test result transmitted by the test terminal cluster through the software compatibility test module, generating a test report based on the final software compatibility test result, and feeding back the test report to the user side to complete the software compatibility test.
2. The cloud platform-based software compatibility testing method of claim 1, wherein constructing a plurality of software compatibility testing units on the cloud platform and establishing a connection between the software compatibility testing units and the test terminal cluster comprises:
creating a plurality of virtual servers on a cloud platform, wherein each virtual server is used as a software compatibility testing unit;
according to the existing test terminals, the test terminal clusters with the same number as the virtual servers are divided, and the types and the numbers of the test terminals in any two test terminal clusters are the same;
and establishing connection between the software compatible test unit and the test terminal cluster in a one-to-one corresponding connection relation.
3. The cloud platform-based software compatibility testing method according to claim 2, wherein, in each software compatibility testing process, when the test terminal clusters with the same number as the virtual servers are divided, a fixed number of test terminals are randomly selected from the existing test terminals, and the selected number is smaller than the total number of the test terminals.
4. The cloud platform-based software compatibility testing method according to claim 2 or 3, wherein receiving, by the software compatibility testing unit, the software to be tested and the test case corresponding to the software to be tested transmitted by the user terminal, generating software compatibility testing data according to the software to be tested and the test case corresponding to the software to be tested, and transmitting the software compatibility testing data to the test terminal cluster, includes:
receiving software to be tested and a test case corresponding to the software to be tested transmitted by a user terminal through a software compatible test unit;
generating test times of each software compatible module, generating software compatible test data according to the software to be tested, the test cases corresponding to the software to be tested and the test times, and transmitting the software compatible test data to the test terminal cluster.
5. The cloud platform-based software compatibility testing method of claim 4, wherein the software compatibility testing data is processed by the test terminal cluster to obtain a software compatibility testing result in a fixed period, and the software compatibility testing result is transmitted to a corresponding software compatibility testing unit, and the method comprises the steps of:
any one terminal in the test terminal cluster is used as a judging terminal, and other terminals are used as executing terminals;
analyzing the software compatibility test data through the execution terminal and the judging terminal to obtain software to be tested, test cases corresponding to the software to be tested and test times;
controlling an execution terminal to run the software to be tested through the judging terminal, and executing a test case corresponding to the software to be tested to obtain a corresponding test result;
receiving test results output by an execution terminal in the same test terminal cluster through a judging terminal, determining software compatibility test results corresponding to the test terminal cluster by adopting a majority of consistent judging methods, and accumulating the software compatibility test results through the judging terminal until the number of the software compatibility test results determined by the judging terminal reaches the test times;
transmitting the accumulated software compatibility test results to a software compatibility test unit, when the software compatibility test unit acquires the first accumulated software compatibility test result, determining the test time length of currently executing software compatibility as a fixed period, and synchronously acquiring the accumulated software compatibility test results of other test terminal clusters in the fixed period to determine the corresponding actual test times of each software compatibility test unit.
6. The cloud platform-based software compatibility testing method of claim 5, wherein determining the testing efficiency corresponding to each software compatibility testing unit according to the software compatibility testing result, and adjusting the software compatibility testing data according to the testing efficiency to obtain adjusted software compatibility testing data, comprises:
according to the software compatibility test result, determining that the test efficiency corresponding to the first software test module receiving the accumulated software compatibility test result is 1, and determining the test efficiency corresponding to each software compatibility test unit;
subtracting the actual test times corresponding to each software compatible test unit from the total test times to obtain residual test times, and distributing the residual test times to different software compatible test units according to the ratio of the test efficiency to obtain the test times corresponding to each software compatible test unit;
and reconstructing software compatibility test data by adopting the number of times to be tested, the software to be tested and the test cases corresponding to the software to be tested, and obtaining the adjusted software compatibility test data.
7. The cloud platform based software compatibility testing method of claim 6, further comprising, after determining the testing efficiency corresponding to each software compatibility testing unit: if the testing efficiency corresponding to the software compatible testing unit is lower than the set threshold value, the software compatible testing unit and the corresponding testing terminal cluster do not participate in the subsequent testing.
8. The cloud platform-based software compatibility testing method of claim 6, wherein transmitting the adjusted software compatibility testing data to the test terminal cluster, and processing the adjusted software compatibility testing data through the test terminal cluster, obtaining a final software compatibility testing result, comprises:
transmitting the adjusted software compatibility test data to a test terminal cluster;
any one terminal in the test terminal cluster is used as a judging terminal, and other terminals are used as executing terminals;
analyzing the software compatibility test data through the execution terminal and the judging terminal to obtain software to be tested, test cases corresponding to the software to be tested and times to be tested;
the method comprises the steps that an execution terminal is controlled by a judging terminal to run software to be tested, a test case corresponding to the software to be tested is executed, a corresponding test result is obtained, a plurality of test images are intercepted according to a preset time interval in the test process, and a first test image is intercepted at the moment of starting the test;
receiving test results output by the execution terminals in the same test terminal cluster through the judging terminal, determining real test results corresponding to the test terminal cluster by adopting a majority consistency judging method, and forming a final software compatibility test result of the test process by the test results output by the execution terminal corresponding to any real test result and the intercepted test image;
based on the number of times to be tested, a plurality of final software compatibility test results are obtained, and the execution process of the test terminal cluster is completed.
9. The cloud platform based software compatibility testing method of claim 8, further comprising: and distributing the confidence coefficient for each test terminal, updating the confidence coefficient of the test terminal in each test process, and not participating in the construction of the test terminal cluster after the confidence coefficient of the test terminal is reduced to a set threshold value.
10. The software compatibility testing system based on the cloud platform is characterized by comprising a building module, a first transmission module, a remote testing module, an adjusting module, a testing result obtaining module and a testing report output module;
the construction module is used for constructing a plurality of software compatible test units on the cloud platform and establishing connection between the software compatible test units and test terminal clusters, each software compatible test unit corresponds to one test terminal cluster, and each test terminal cluster comprises a plurality of test terminals with different types;
the first transmission module is used for receiving the software to be tested and the test cases corresponding to the software to be tested transmitted by the user side through the software compatibility test unit, generating software compatibility test data according to the software to be tested and the test cases corresponding to the software to be tested, and transmitting the software compatibility test data to the test terminal cluster;
the remote test module is used for processing the software compatibility test data through the test terminal cluster, obtaining a software compatibility test result in a fixed period and transmitting the software compatibility test result to a corresponding software compatibility test unit;
the adjusting module is used for determining the testing efficiency corresponding to each software compatibility testing unit according to the software compatibility testing result, and adjusting the software compatibility testing data according to the testing efficiency to obtain adjusted software compatibility testing data;
the test result acquisition module is used for transmitting the adjusted software compatibility test data to the test terminal cluster, and processing the adjusted software compatibility test data through the test terminal cluster to acquire a final software compatibility test result;
the test report output module is used for receiving a final software compatibility test result transmitted by the test terminal cluster through the software compatibility test module, generating a test report based on the final software compatibility test result, and feeding the test report back to the user side to complete the software compatibility test.
CN202310696224.XA 2023-06-12 2023-06-12 Cloud platform-based software compatibility testing method and system Active CN116974908B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310696224.XA CN116974908B (en) 2023-06-12 2023-06-12 Cloud platform-based software compatibility testing method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310696224.XA CN116974908B (en) 2023-06-12 2023-06-12 Cloud platform-based software compatibility testing method and system

Publications (2)

Publication Number Publication Date
CN116974908A true CN116974908A (en) 2023-10-31
CN116974908B CN116974908B (en) 2024-06-14

Family

ID=88482257

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310696224.XA Active CN116974908B (en) 2023-06-12 2023-06-12 Cloud platform-based software compatibility testing method and system

Country Status (1)

Country Link
CN (1) CN116974908B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107341103A (en) * 2017-06-16 2017-11-10 广州云测信息技术有限公司 The method of testing and system of a kind of software compatibility
CN108334451A (en) * 2018-01-30 2018-07-27 无线生活(杭州)信息科技有限公司 page compatibility test method and device
CN109902008A (en) * 2019-02-22 2019-06-18 广州视源电子科技股份有限公司 Acquisition methods and acquisition device, the compatibility test method of routine test results
CN113836036A (en) * 2021-10-15 2021-12-24 中国电力科学研究院有限公司 Automatic testing method, system, equipment and storage medium for browser compatibility
WO2022016847A1 (en) * 2020-07-21 2022-01-27 国云科技股份有限公司 Automatic test method and device applied to cloud platform

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107341103A (en) * 2017-06-16 2017-11-10 广州云测信息技术有限公司 The method of testing and system of a kind of software compatibility
CN108334451A (en) * 2018-01-30 2018-07-27 无线生活(杭州)信息科技有限公司 page compatibility test method and device
CN109902008A (en) * 2019-02-22 2019-06-18 广州视源电子科技股份有限公司 Acquisition methods and acquisition device, the compatibility test method of routine test results
WO2022016847A1 (en) * 2020-07-21 2022-01-27 国云科技股份有限公司 Automatic test method and device applied to cloud platform
CN113836036A (en) * 2021-10-15 2021-12-24 中国电力科学研究院有限公司 Automatic testing method, system, equipment and storage medium for browser compatibility

Also Published As

Publication number Publication date
CN116974908B (en) 2024-06-14

Similar Documents

Publication Publication Date Title
CN111124850A (en) MQTT server performance testing method, system, computer equipment and storage medium
EP3139287A1 (en) User behavior recognition method, user equipment, and behavior recognition server
EP4234060A1 (en) Service processing method and apparatus, and storage medium
CN109446041B (en) Server pressure early warning method and system and terminal equipment
CN110401720A (en) Information processing method, device, system, application server and medium
US20190005168A1 (en) Performance testing method and apparatus for industrial system deployed on cloud
CN108563579A (en) White-box testing method, apparatus, system and storage medium
CN105988909A (en) Real-time monitoring system as well as method and mobile terminal
EP4261705A1 (en) Data processing method and apparatus in artificial intelligence system
CN107341103A (en) The method of testing and system of a kind of software compatibility
CN117009208A (en) Dependency information processing method, device, equipment and storage medium
CN108460612B (en) Advertisement delivery test method, device and equipment
CN116974908B (en) Cloud platform-based software compatibility testing method and system
CN107390394A (en) A kind of liquid crystal module test system based on SOPC
CN109710447A (en) For the method, apparatus of data access, medium and calculate equipment
WO2017057956A1 (en) System for power transmission line permitted heat capacity calculation and electric power-system analysis
CN105824682B (en) A kind of monitoring method of virtual machine, device and system
CN111369270B (en) Method, device and system for distributing rewarding resources
CN116305806A (en) Verification method, device, processing equipment and medium of simulation model
CN108399031B (en) Method and device for determining interface layout mode
CN112346870B (en) Model processing method and system
CN110971478A (en) Pressure measurement method and device for cloud platform service performance and computing equipment
CN114020635A (en) Data testing method, device, equipment and medium based on scene message queue
CN111163486B (en) D2D communication simulation and performance test system and method
CN110781878A (en) Target area determination method and device, storage medium and electronic device

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