CN111309602A - Software testing method, device and system - Google Patents
Software testing method, device and system Download PDFInfo
- Publication number
- CN111309602A CN111309602A CN202010079867.6A CN202010079867A CN111309602A CN 111309602 A CN111309602 A CN 111309602A CN 202010079867 A CN202010079867 A CN 202010079867A CN 111309602 A CN111309602 A CN 111309602A
- Authority
- CN
- China
- Prior art keywords
- tested
- software
- operating system
- test
- installation
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 54
- 238000013522 software testing Methods 0.000 title claims abstract description 43
- 238000012360 testing method Methods 0.000 claims abstract description 203
- 238000009434 installation Methods 0.000 claims abstract description 105
- 238000013515 script Methods 0.000 claims abstract description 93
- 238000004891 communication Methods 0.000 claims description 19
- 238000004590 computer program Methods 0.000 claims description 10
- 238000010586 diagram Methods 0.000 description 9
- 230000008569 process Effects 0.000 description 4
- 241001388118 Anisotremus taeniatus Species 0.000 description 3
- 230000009471 action Effects 0.000 description 3
- 238000011990 functional testing Methods 0.000 description 3
- 238000004458 analytical method Methods 0.000 description 1
- 238000003491 array Methods 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3672—Test management
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3664—Environments for testing or debugging software
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/61—Installation
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1095—Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/55—Push-based network services
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Software Systems (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Debugging And Monitoring (AREA)
Abstract
The application relates to a software testing method, a device and a system, wherein the method comprises the following steps: determining at least one to-be-tested operating system corresponding to-be-tested software; pushing the installation script of the software to be tested to a test server corresponding to the operating system to be tested, and running the installation script in the operating system to be tested; acquiring installation information obtained by running the installation script in the operating system to be tested; and determining a compatibility test result of the software to be tested according to the installation information. According to the technical scheme, the software to be tested is automatically installed to the corresponding operating system for software compatibility test, the operation that testers manually install the software in each operating system is not needed, the software is prevented from being reinstalled due to the fact that the software is manually installed in a wrong or failed mode, manual operation is reduced, test time is shortened, and test efficiency is improved.
Description
Technical Field
The present application relates to the field of software testing, and in particular, to a software testing method, apparatus, and system.
Background
Currently, many different operating system types exist in the market, the most common being Windows, Unix, Macintosh, Linux, Android, IOS, and the like. Which operating system is used by the end-user of the software depends on the configuration of the user system. Thus, compatibility problems may occur, and the same software may run properly under some operating systems but may fail to run under other operating systems.
Some software is developed only for a certain series of operating system platforms, and cross-platform requirements do not exist. However, there are multiple versions of the same operating system, for example, a Windows system also has a different family of version numbers, such as Windows 2000/XP/Vista, etc., and there may be many different component attributes between them. Some software may need to be recompiled on different operating system platforms to be operated, and some software may need to be redeveloped or changed greatly to be operated on different platforms. Therefore, before software is released, compatibility testing of software under various operating systems is required.
In the prior art, when the compatibility of software is tested in different operating systems, the software needs to be manually installed in a plurality of operating systems respectively and then tested, the operation of the testing process is complex, the efficiency is low, and the time consumption is long.
Disclosure of Invention
In order to solve the technical problem or at least partially solve the technical problem, embodiments of the present application provide a software testing method, apparatus and system.
In a first aspect, an embodiment of the present application provides a software testing method, including:
determining at least one to-be-tested operating system corresponding to-be-tested software;
pushing the installation script of the software to be tested to a test server corresponding to the operating system to be tested, and running the installation script in the operating system to be tested;
acquiring installation information obtained by running the installation script in the operating system to be tested;
and determining a compatibility test result of the software to be tested according to the installation information.
Optionally, the determining at least one to-be-tested operating system corresponding to the to-be-tested software includes:
acquiring test environment information corresponding to the software to be tested;
and determining the operating system to be tested according to the testing environment information.
Optionally, the determining the operating system to be tested according to the testing environment information includes:
determining that an operating system on a test server corresponding to the test environment information is the operating system to be tested, wherein the operating system is loaded and run by the test server through a stored virtual image file;
or the like, or, alternatively,
and loading the virtual image file stored on the test server according to the test environment information, and running the to-be-tested operating system corresponding to the virtual image file on the test server.
Optionally, the method further includes:
pushing the test script of the software to be tested to the test server, and running the software to be tested in the operating system to be tested and executing the script to be tested after the software to be tested is successfully installed;
and obtaining a test result obtained by executing the test script.
In a second aspect, an embodiment of the present application provides a software testing method, including:
acquiring an installation script of software to be tested, which is sent by a central server;
running the installation script in an operating system to be tested;
and sending an installation result obtained by running the installation script in the operating system to be tested to the central server, and determining a compatibility test result of the software to be tested by the central server according to the installation information.
Optionally, the method further includes:
acquiring a control instruction sent by the central server;
loading a stored virtual mirror image file according to the control instruction;
and running the operating system to be tested corresponding to the virtual image file.
Optionally, the method further includes:
loading the stored virtual mirror image file;
and operating the operating system corresponding to the virtual image file.
Optionally, the method further includes:
acquiring a test script of the software to be tested, which is sent by the central server;
after the software to be tested is successfully installed, running the software to be tested and executing the script to be tested to obtain a test result;
and sending the test result to the central server.
In a third aspect, an embodiment of the present application provides a software testing apparatus, including:
the first determining module is used for determining at least one to-be-tested operating system corresponding to the to-be-tested software;
the pushing module is used for pushing the installation script of the software to be tested to a test server corresponding to the operating system to be tested, and running the installation script in the operating system to be tested;
the acquisition module is used for acquiring the installation information obtained by running the installation script in the operating system to be tested;
and the second determining module is used for determining the compatibility test result of the software to be tested according to the installation information.
In a fourth aspect, an embodiment of the present application provides a software testing apparatus, including:
the acquisition module is used for acquiring an installation script and a test script of the software to be tested, which are sent by the central server;
the running module is used for running the installation script in the operating system to be tested;
and the sending module is used for sending an installation result obtained by running the installation script in the operating system to be tested to the central server, and the central server determines a compatibility test result of the software to be tested according to the installation information.
In a fifth aspect, an embodiment of the present application provides a software testing system, including: the system comprises a central server and a test server;
the central server is used for acquiring an installation script of software to be tested, determining at least one operating system to be tested corresponding to the software to be tested, and pushing the installation script to a test server corresponding to the operating system to be tested;
the test server is used for running the installation script in the operating system to be tested and sending an installation result obtained by running the installation script in the operating system to be tested to the central server;
the central server is further configured to determine a compatibility test result of the software to be tested according to the installation information.
In a sixth aspect, an embodiment of the present application provides an electronic device, including: the system comprises a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory complete mutual communication through the communication bus;
the memory is used for storing a computer program;
the processor is configured to implement the above method steps when executing the computer program.
In a seventh aspect, an embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored, and the computer program, when executed by a processor, implements the above method steps.
Compared with the prior art, the technical scheme provided by the embodiment of the application has the following advantages:
the software to be tested is automatically installed in the corresponding operating system for software compatibility test, the operation that testers manually install the software in each operating system is not needed, the software is prevented from being reinstalled due to the fact that the software is manually installed in a wrong or failed mode, manual operation is reduced, test time is shortened, and test efficiency is 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.
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without inventive exercise.
Fig. 1 is a block diagram of a software testing system according to an embodiment of the present application;
fig. 2 is a flowchart of a software testing method according to an embodiment of the present application;
FIG. 3 is a flowchart of a software testing method according to another embodiment of the present application;
FIG. 4 is a schematic diagram of a test environment selection interface provided by an embodiment of the present application;
FIG. 5 is a flowchart of a software testing method according to another embodiment of the present application;
FIG. 6 is a flowchart of a software testing method according to another embodiment of the present application;
FIG. 7 is a flowchart of a software testing method according to another embodiment of the present application;
FIG. 8 is a block diagram of a software testing apparatus according to an embodiment of the present disclosure;
FIG. 9 is a block diagram of a software testing apparatus according to another embodiment of the present application;
fig. 10 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
In the embodiment of the application, the compatibility test of the software is to test whether the software can be correctly installed and operated in the operating system.
The embodiment of the application constructs a software testing system, and the software compatibility test is carried out through the system. First, a software testing system provided in an embodiment of the present invention is described below. The software testing system comprises: a central server and a test server. The central server and the test server can communicate in a wired mode, and can also communicate wirelessly in Wi-Fi, 4G, 5G and other modes.
Fig. 1 is a block diagram of a software testing system according to an embodiment of the present application. As shown in fig. 1, generally, the software testing system may be provided with a central server 10, a plurality of testing servers 20a, 20b, 20c … …, each of which may run an operating system.
The central server is used for acquiring an installation script of the software to be tested, determining at least one operating system to be tested corresponding to the software to be tested, and pushing the installation script to a test server corresponding to the operating system to be tested. And the test server is used for running the installation script in the operating system to be tested and sending an installation result obtained by running the installation script in the operating system to be tested to the central server.
The central server is also used for determining the compatibility test result of the software to be tested according to the installation information.
In this embodiment, the same software may have multiple versions for different operating systems, and the software to be tested of each version needs to be tested in the corresponding operating system by using the corresponding test script. Of course, it is also possible that one version of software to be tested is applied to multiple operating systems at the same time, for example, a certain software to be tested can be applied to an operating system with a version number of Windows 10/XP/Vista in a Windows system. Therefore, before testing, the to-be-tested operating system corresponding to the installation script of each to-be-tested software needs to be set, so that the central server 10 can respectively push the installation script of each to-be-tested software to the testing server corresponding to the to-be-tested operating system.
For example, the system to be tested corresponding to the software to be tested a1 is Windows10, and the test server corresponding to Windows10 is 20 a. The system to be tested corresponding to the software to be tested a2 is MacOS Catalina, and the testing server corresponding to the MacOS Catalina is 20 b. Thus, the central server 10 pushes the installation script of the software to be tested a1 to the test server 20a and the installation script of the software to be tested a2 to the test server 20 b.
According to the software testing system, the software to be tested can be automatically installed to the corresponding operating system for software compatibility testing only by inputting the installation script of the software to be tested into the system and selecting the operating system to be tested, the operation that a tester manually installs the software in each operating system is not needed, the software is prevented from being reinstalled due to the fact that the software is manually installed in a wrong or failed mode, manual operation is reduced, testing time is shortened, and testing efficiency is improved.
In an alternative embodiment, the test server has the operating system pre-installed therein. And the test server is used for loading the stored virtual image file and operating an operating system corresponding to the virtual image file. And the central server is used for acquiring the testing environment information corresponding to the software to be tested and determining the operating system on the testing server corresponding to the testing environment information as the operating system to be tested. The central server stores the corresponding relation of the operating systems installed on the test servers, and issues the installation scripts and the test scripts of the software to be tested to the corresponding test servers according to the test environment information required by the software to be tested.
In another alternative embodiment, the central server controls the test server to install the operating system required for the test. And the central server is used for acquiring the test environment information corresponding to the software to be tested, generating a control instruction according to the test environment information and sending the control instruction to the test server. And the test server is used for loading the stored virtual image file according to the control instruction and operating the to-be-tested operating system corresponding to the virtual image file. The test server may store a plurality of virtual image files corresponding to the operating systems, and may load the virtual image files required for the test according to the instruction sent by the central server and run the operating systems to be tested, so as to perform subsequent installation test on the software to be tested.
In an optional embodiment, the central server is further configured to push a test script of the software to be tested to a test server corresponding to the operating system to be tested. And the test server is also used for running the software to be tested in the operating system to be tested and executing the script to be tested to obtain a test result after the software to be tested is successfully installed. And sending the test result to the central server.
In this embodiment, in addition to the compatibility test, a test script corresponding to the software to be tested may be pushed to the test server to perform an automated functional test on the software. Therefore, the testing personnel are not required to run the testing script in each operating system for testing, the manual operation is further reduced, the testing time is reduced, and the testing efficiency is improved.
The following describes a software testing method applied to a central server according to an embodiment of the present invention.
Fig. 2 is a flowchart of a software testing method according to an embodiment of the present application. As shown in fig. 2, the method comprises the steps of:
step S11, determining at least one to-be-tested operating system corresponding to the to-be-tested software.
And step S12, pushing the installation script of the software to be tested to a test server corresponding to the operating system to be tested, and running the installation script in the operating system to be tested.
And step S13, acquiring installation information obtained by running the installation script in the operating system to be tested.
And step S14, determining the compatibility test result of the software to be tested according to the installation information.
The installation information may include information such as an installation result and/or an installation progress of the software to be tested. When the software to be tested is installed in the operating system to be tested, the test server returns the successful or failed installation result to the central server. Or, further, the installation progress can be transmitted to the central server in real time, so that a tester can query the installation condition of the software to be tested on an interface provided by the central server to determine the compatibility test result of the software.
If the installation fails, the log of the failure of running the installation script can be packaged into the installation result and transmitted to the central server. In this way, the central server can check the reason for the installation failure from the log.
In the embodiment, the software to be tested can be automatically installed to the corresponding operating system for software compatibility test, the operation that a tester manually installs the software in each operating system is not needed, the software is prevented from being reinstalled due to the fact that the software is manually installed in a wrong or failed mode, manual operation is reduced, test time is shortened, and test efficiency is improved.
Fig. 3 is a flowchart of a software testing method according to another embodiment of the present application. As shown in fig. 3, step S11 includes:
and step S21, acquiring test environment information corresponding to the software to be tested.
And step S22, determining the operating system to be tested according to the testing environment information.
Optionally, step S22 has the following two implementation manners:
(1) and determining that the operating system on the test server corresponding to the test environment information is the operating system to be tested, wherein the operating system is loaded and operated by the test server through the stored virtual image file.
Wherein, the test server is pre-installed with an operating system. The central server stores the corresponding relation of the operating systems installed on the test servers, and issues the installation scripts and the test scripts of the software to be tested to the corresponding test servers according to the test environment information required by the software to be tested.
(2) And loading the virtual image file stored on the test server according to the test environment information, and running an operating system to be tested corresponding to the virtual image file on the test server.
The central server controls the test server to install the operating system required by the test. The test server may store a plurality of virtual image files corresponding to the operating systems, and may load the virtual image files required for the test according to the instruction sent by the central server and run the operating systems to be tested, so as to subsequently perform installation test on the software to be tested.
Optionally, step S21 includes: test environment information is determined based on the selected operating system option.
Fig. 4 is a schematic diagram of a test environment selection interface provided in an embodiment of the present application. As shown in fig. 4, on the central server, a test environment selection interface 30 is provided, on which options corresponding to different operating systems, such as Windows10, Windows 2000, Windows XP, MacOS Catalina, Android 11, IOS 13.3, etc., are included. And the user selects the corresponding option to obtain the test environment information. For example, for a software that needs to be tested on the Windows operating system, the tester may select the operating system options of Windows10, Windows 2000, and Windows XP.
If there is no operating system to be tested, which is required by the tester, on the current test environment selection interface, as shown in fig. 4, the tester may also click the option of "add operating system", upload the virtual image file of the required operating system to the central server, and the central server sends the virtual image file to the specified test server, and loads the virtual image file on the test server and allows the corresponding operating system.
In the embodiment, the tester can select the operating system required by the software to be tested on the interface provided by the central server according to the test requirement, the central server automatically installs the software to be tested to the corresponding operating system according to the option selected by the user for testing, the operation that the tester manually installs the software in each operating system is not needed, the software is prevented from being reinstalled due to the fact that the software is manually installed in a wrong or failed mode, manual operation is reduced, the test time is shortened, the software compatibility test operation is flexible and convenient, and the test efficiency is improved.
Fig. 5 is a flowchart of a software testing method according to another embodiment of the present application. As shown in fig. 5, the method further includes:
and step S31, pushing the test script of the software to be tested to the test server, running the software to be tested in the operating system to be tested and executing the script to be tested after the software to be tested is successfully installed.
Step S32, a test result obtained by executing the test script is obtained.
In this embodiment, in addition to the compatibility test, a test script corresponding to the software to be tested may be pushed to the test server to perform an automated functional test on the software. Therefore, the testing personnel are not required to run the testing script in each operating system for testing, the manual operation is further reduced, the testing time is reduced, and the testing efficiency is improved.
Optionally, the central server may simultaneously send the installation script of the software to be tested and the corresponding test server sent by the test script, and directly run the test script after the software to be tested is successfully installed in the operating system to be tested, so as to perform the automated test.
In an optional embodiment, after obtaining the test result, the central server may automatically perform analysis on the test result, and notify the test personnel of the results of the compatibility test and the automated function test of the software to be tested in each operating system through mails, messages and the like.
The following describes a software testing method applied to a testing server according to an embodiment of the present invention.
Fig. 6 is a flowchart of a software testing method according to another embodiment of the present application. As shown in fig. 6, the method further comprises the steps of:
and step S41, acquiring the installation script of the software to be tested sent by the central server.
Step S42, running an installation script in the operating system to be tested.
And step S43, sending an installation result obtained by running the installation script in the operating system to be tested to the central server, and determining the compatibility test result of the software to be tested by the central server according to the installation information.
In an alternative embodiment, the test server has the operating system pre-installed therein. The method further comprises the following steps:
step A1, loading the stored virtual image file.
And step A2, operating the operating system corresponding to the virtual image file.
Therefore, the central server stores the corresponding relation of the operating systems installed on the test servers, and issues the installation scripts and the test scripts of the software to be tested to the corresponding test servers according to the test environment information required by the software to be tested.
In another alternative embodiment, the central server controls the test server to install the operating system required for the test. The method further comprises the following steps:
and step B1, acquiring the control instruction sent by the central server.
And step B2, loading the stored virtual image file according to the control instruction.
And step B3, operating the operating system to be tested corresponding to the virtual image file.
The test server may store a plurality of virtual image files corresponding to the operating systems, and may load the virtual image files required for the test according to the instruction sent by the central server and run the operating systems to be tested, so as to perform subsequent installation test on the software to be tested.
Optionally, in addition to the compatibility test, the software may be subjected to an automated functionality test in an operating system of the test server. Fig. 7 is a flowchart of a software testing method according to another embodiment of the present application. As shown in fig. 7, the method further includes:
and step S51, obtaining the test script of the software to be tested sent by the central server.
And step S52, after the software to be tested is successfully installed, running the software to be tested and executing the script to be tested to obtain a test result.
Step S53, sending the test result to the central server.
In this embodiment, a test script corresponding to software to be tested is pushed to a test server to perform an automated functional test on the software. Therefore, the testing personnel are not required to run the testing script in each operating system for testing, the manual operation is further reduced, the testing time is reduced, and the testing efficiency is improved.
The following are embodiments of the apparatus of the present application that may be used to perform embodiments of the method of the present application.
Fig. 8 is a block diagram of a software testing apparatus provided in an embodiment of the present application, which may be implemented as part or all of an electronic device through software, hardware, or a combination of the two. As shown in fig. 8, the software testing apparatus applied to the central server of the software testing system includes:
the first determining module 61 is configured to determine at least one to-be-tested operating system corresponding to the to-be-tested software.
And the pushing module 62 is configured to push the installation script of the software to be tested to the test server corresponding to the operating system to be tested, and run the installation script in the operating system to be tested.
The obtaining module 63 is configured to obtain installation information obtained by running the installation script in the operating system to be tested.
And a second determining module 64, configured to determine a compatibility test result of the software to be tested according to the installation information.
Fig. 9 is a block diagram of a software testing apparatus according to another embodiment of the present application, which may be implemented as part or all of an electronic device through software, hardware, or a combination of the two. As shown in fig. 9, the software testing apparatus, which is applied to the testing server of the software testing system, includes:
the obtaining module 71 is configured to obtain an installation script and a test script of the software to be tested, which are sent by the central server.
And the running module 72 is used for running the installation script in the operating system to be tested.
And the sending module 73 is configured to send an installation result obtained by running the installation script in the operating system to be tested to the central server, and the central server determines a compatibility test result of the software to be tested according to the installation information.
An embodiment of the present application further provides an electronic device, as shown in fig. 10, the electronic device may include: the system comprises a processor 1501, a communication interface 1502, a memory 1503 and a communication bus 1504, wherein the processor 1501, the communication interface 1502 and the memory 1503 complete communication with each other through the communication bus 1504.
A memory 1503 for storing a computer program.
The processor 1501, when executing the computer program stored in the memory 1503, implements the steps of the method embodiments described below.
The communication bus mentioned in the electronic device may be a peripheral component interconnect (pci) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.
The communication interface is used for communication between the electronic equipment and other equipment.
The Memory may include a Random Access Memory (RAM) or a Non-Volatile Memory (NVM), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but also Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components.
The present application also provides a computer-readable storage medium having stored thereon a computer program which, when being executed by a processor, carries out the steps of the method embodiments described below.
It should be noted that, for the above-mentioned apparatus, electronic device and computer-readable storage medium embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and for the relevant points, reference may be made to the partial description of the method embodiments.
It is further noted that, herein, relational terms such as "first" and "second," and the like, may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The foregoing are merely exemplary embodiments of the present invention, which enable those skilled in the art to understand or practice the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
Claims (13)
1. A software testing method, comprising:
determining at least one to-be-tested operating system corresponding to-be-tested software;
pushing the installation script of the software to be tested to a test server corresponding to the operating system to be tested, and running the installation script in the operating system to be tested;
acquiring installation information obtained by running the installation script in the operating system to be tested;
and determining a compatibility test result of the software to be tested according to the installation information.
2. The method of claim 1, wherein determining at least one operating system to be tested corresponding to the software to be tested comprises:
acquiring test environment information corresponding to the software to be tested;
and determining the operating system to be tested according to the testing environment information.
3. The method of claim 2, wherein determining the operating system to be tested according to the testing environment information comprises:
determining that an operating system on a test server corresponding to the test environment information is the operating system to be tested, wherein the operating system is loaded and run by the test server through a stored virtual image file;
or the like, or, alternatively,
and loading the virtual image file stored on the test server according to the test environment information, and running the to-be-tested operating system corresponding to the virtual image file on the test server.
4. The method of claim 1, further comprising:
pushing the test script of the software to be tested to the test server, and running the software to be tested in the operating system to be tested and executing the script to be tested after the software to be tested is successfully installed;
and obtaining a test result obtained by executing the test script.
5. A software testing method, comprising:
acquiring an installation script of software to be tested, which is sent by a central server;
running the installation script in an operating system to be tested;
and sending an installation result obtained by running the installation script in the operating system to be tested to the central server, and determining a compatibility test result of the software to be tested by the central server according to the installation information.
6. The method of claim 5, further comprising:
acquiring a control instruction sent by the central server;
loading a stored virtual mirror image file according to the control instruction;
and running the operating system to be tested corresponding to the virtual image file.
7. The method of claim 5, further comprising:
loading the stored virtual mirror image file;
and operating the operating system corresponding to the virtual image file.
8. The method of claim 5, further comprising:
acquiring a test script of the software to be tested, which is sent by the central server;
after the software to be tested is successfully installed, running the software to be tested and executing the script to be tested to obtain a test result;
and sending the test result to the central server.
9. A software testing apparatus, comprising:
the first determining module is used for determining at least one to-be-tested operating system corresponding to the to-be-tested software;
the pushing module is used for pushing the installation script of the software to be tested to a test server corresponding to the operating system to be tested, and running the installation script in the operating system to be tested;
the acquisition module is used for acquiring the installation information obtained by running the installation script in the operating system to be tested;
and the second determining module is used for determining the compatibility test result of the software to be tested according to the installation information.
10. A software testing apparatus, comprising:
the acquisition module is used for acquiring an installation script and a test script of the software to be tested, which are sent by the central server;
the running module is used for running the installation script in the operating system to be tested;
and the sending module is used for sending an installation result obtained by running the installation script in the operating system to be tested to the central server, and the central server determines a compatibility test result of the software to be tested according to the installation information.
11. A software testing system, comprising: the system comprises a central server and a test server;
the central server is used for acquiring an installation script of software to be tested, determining at least one operating system to be tested corresponding to the software to be tested, and pushing the installation script to a test server corresponding to the operating system to be tested;
the test server is used for running the installation script in the operating system to be tested and sending an installation result obtained by running the installation script in the operating system to be tested to the central server;
the central server is further configured to determine a compatibility test result of the software to be tested according to the installation information.
12. An electronic device, comprising: the system comprises a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory complete mutual communication through the communication bus;
the memory is used for storing a computer program;
the processor, when executing the computer program, implementing the method steps of any of claims 1-8.
13. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the method steps of any one of claims 1 to 8.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010079867.6A CN111309602A (en) | 2020-02-04 | 2020-02-04 | Software testing method, device and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010079867.6A CN111309602A (en) | 2020-02-04 | 2020-02-04 | Software testing method, device and system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN111309602A true CN111309602A (en) | 2020-06-19 |
Family
ID=71154796
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010079867.6A Pending CN111309602A (en) | 2020-02-04 | 2020-02-04 | Software testing method, device and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111309602A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112416764A (en) * | 2020-11-18 | 2021-02-26 | 中信银行股份有限公司 | Distributed integrated test method, equipment, system and storage medium based on gPC |
CN113238943A (en) * | 2021-05-14 | 2021-08-10 | 北京百度网讯科技有限公司 | Method and device for continuous integration test |
CN113377413A (en) * | 2021-04-29 | 2021-09-10 | 先进操作系统创新中心(天津)有限公司 | Software batch adaptation method based on kylin desktop operating system |
CN113671419A (en) * | 2021-08-17 | 2021-11-19 | 杭州佳量医疗科技有限公司 | Line sequence testing method, device and system |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102622298A (en) * | 2012-03-02 | 2012-08-01 | 奇智软件(北京)有限公司 | Software testing system and method |
CN104461858A (en) * | 2013-09-23 | 2015-03-25 | 财团法人资讯工业策进会 | Software Compatibility Pre-testing Method and System |
CN106528415A (en) * | 2016-10-27 | 2017-03-22 | 广东浪潮大数据研究有限公司 | Software compatibility test method, business platform and system |
US20180006870A1 (en) * | 2015-01-14 | 2018-01-04 | Datto, Inc. | Remotely configurable routers with failover features, and methods and apparatus for reliable web-based administration of same |
CN107844419A (en) * | 2017-10-25 | 2018-03-27 | 上海斐讯数据通信技术有限公司 | A kind of multiple operating system automated testing method and system |
US20190188116A1 (en) * | 2017-12-20 | 2019-06-20 | 10546658 Canada Inc. | Automated software testing method and system |
CN110008123A (en) * | 2019-03-28 | 2019-07-12 | 武汉达梦数据库有限公司 | A kind of method of automatic deployment test software and corresponding device |
-
2020
- 2020-02-04 CN CN202010079867.6A patent/CN111309602A/en active Pending
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102622298A (en) * | 2012-03-02 | 2012-08-01 | 奇智软件(北京)有限公司 | Software testing system and method |
CN104461858A (en) * | 2013-09-23 | 2015-03-25 | 财团法人资讯工业策进会 | Software Compatibility Pre-testing Method and System |
US20150089479A1 (en) * | 2013-09-23 | 2015-03-26 | Institute For Information Industry | Method for pre-testing software compatibility and system thereof |
US20180006870A1 (en) * | 2015-01-14 | 2018-01-04 | Datto, Inc. | Remotely configurable routers with failover features, and methods and apparatus for reliable web-based administration of same |
CN106528415A (en) * | 2016-10-27 | 2017-03-22 | 广东浪潮大数据研究有限公司 | Software compatibility test method, business platform and system |
CN107844419A (en) * | 2017-10-25 | 2018-03-27 | 上海斐讯数据通信技术有限公司 | A kind of multiple operating system automated testing method and system |
US20190188116A1 (en) * | 2017-12-20 | 2019-06-20 | 10546658 Canada Inc. | Automated software testing method and system |
CN110008123A (en) * | 2019-03-28 | 2019-07-12 | 武汉达梦数据库有限公司 | A kind of method of automatic deployment test software and corresponding device |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112416764A (en) * | 2020-11-18 | 2021-02-26 | 中信银行股份有限公司 | Distributed integrated test method, equipment, system and storage medium based on gPC |
CN113377413A (en) * | 2021-04-29 | 2021-09-10 | 先进操作系统创新中心(天津)有限公司 | Software batch adaptation method based on kylin desktop operating system |
CN113238943A (en) * | 2021-05-14 | 2021-08-10 | 北京百度网讯科技有限公司 | Method and device for continuous integration test |
CN113671419A (en) * | 2021-08-17 | 2021-11-19 | 杭州佳量医疗科技有限公司 | Line sequence testing method, device and system |
CN113671419B (en) * | 2021-08-17 | 2024-05-24 | 杭州佳量医疗科技有限公司 | Line sequence testing method, device and system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111309602A (en) | Software testing method, device and system | |
US9747192B2 (en) | Automated operating system installation on multiple drives | |
CN109766269A (en) | Continuous integrating automated testing method, device, equipment and medium | |
CN113505073B (en) | Performance test method, device, equipment and medium of database | |
CN110297767B (en) | Automatic execution method, device, equipment and storage medium for test cases | |
CN110908702A (en) | Version switching method, version switching device, computer equipment and storage medium | |
CN110990289B (en) | Method and device for automatically submitting bug, electronic equipment and storage medium | |
CN112558982B (en) | Code detection method and device and computer equipment | |
US20210406158A1 (en) | Systems and methods for automated device testing | |
CN111008147B (en) | Application program testing method, terminal and computer readable storage medium | |
CN116049011A (en) | Deployment method and device of test environment, electronic equipment and storage medium | |
CN111209197B (en) | Application continuous integration test method, system, equipment and storage medium | |
CN113342660B (en) | File testing method, device, system, electronic equipment and readable storage medium | |
CN110971478A (en) | Pressure measurement method and device for cloud platform service performance and computing equipment | |
CN111597101B (en) | SDK access state detection method, computer equipment and computer readable storage medium | |
CN109446105A (en) | Web application test method, device, readable medium and electronic equipment | |
CN115454856A (en) | Multi-application security detection method, device, medium and electronic equipment | |
CN115685959A (en) | Diagnostic write configuration test method, device, equipment and storage medium | |
CN114356346A (en) | Application program deployment method, device, storage medium and electronic equipment | |
CN114090357A (en) | Hard disk performance test method and device, electronic equipment and storage medium | |
CN108845932B (en) | Unit testing method and device of network library, storage medium and terminal | |
CN113010422A (en) | Mirror image file testing method and device, electronic equipment and readable storage medium | |
CN112346994A (en) | Test information correlation method and device, computer equipment and storage medium | |
CN116546551B (en) | Wireless network equipment detection method, device and system | |
CN114461470B (en) | Memory power consumption testing method, system, equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20200619 |
|
RJ01 | Rejection of invention patent application after publication |