CN113326186A - Software testing method and device, electronic equipment and storage medium - Google Patents

Software testing method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN113326186A
CN113326186A CN202110548143.6A CN202110548143A CN113326186A CN 113326186 A CN113326186 A CN 113326186A CN 202110548143 A CN202110548143 A CN 202110548143A CN 113326186 A CN113326186 A CN 113326186A
Authority
CN
China
Prior art keywords
test
updated
server
testing
service content
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110548143.6A
Other languages
Chinese (zh)
Inventor
戴婉君
方晓霖
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Netease Hangzhou Network Co Ltd
Original Assignee
Netease Hangzhou Network 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 Netease Hangzhou Network Co Ltd filed Critical Netease Hangzhou Network Co Ltd
Priority to CN202110548143.6A priority Critical patent/CN113326186A/en
Publication of CN113326186A publication Critical patent/CN113326186A/en
Pending legal-status Critical Current

Links

Images

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

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)
  • Stored Programmes (AREA)

Abstract

The disclosure relates to a software testing method and device, electronic equipment and a storage medium. Wherein, the method comprises the following steps: acquiring service contents to be updated of target software, wherein different service contents of the target software are respectively deployed on a plurality of application servers; selecting at least one test server from a plurality of application servers based on service content to be updated; deploying the service content to be updated to at least one test server, and updating the original service content on the at least one test server by adopting the service content to be updated; and testing the service content to be updated by utilizing the at least one testing server and the rest application servers except the at least one testing server in the plurality of application servers. The method and the device solve the technical problems that in the prior art, mutual calling relations of part of software servers are complex, consumption of server resources is high in the software testing process, and server resources are wasted.

Description

Software testing method and device, electronic equipment and storage medium
Technical Field
The present disclosure relates to the field of software testing, and in particular, to a software testing method and apparatus, an electronic device, and a storage medium.
Background
When the software function is updated, whether the updated function is normal or not needs to be verified in a production environment, meanwhile, no perception is generated for online users, only part of test accounts are allowed to be tested, so that problems are guaranteed to be controlled in part of test accounts, and after the problems are confirmed to be correct, removal limitation is issued again, so that all users can use the new function.
However, because the mutual calling relationship of some software servers is complex, according to the existing scheme, only one server can be deployed on line to achieve a complete external network test environment, but the consumption of server resources is extremely large, dozens of hundreds of servers need to be re-deployed with one environment for testing, but the updated content is not updated by all servers.
In view of the above problems, no effective solution has been proposed.
Disclosure of Invention
The embodiment of the disclosure provides a software testing method and device, electronic equipment and a storage medium, and aims to at least solve the technical problems that in the prior art, mutual calling relations among part of software servers are complex, consumption of server resources is extremely high in a software testing process, and server resources are wasted.
According to an aspect of an embodiment of the present disclosure, there is provided a software testing method including: acquiring service contents to be updated of target software, wherein different service contents of the target software are respectively deployed on a plurality of application servers; selecting at least one test server from the plurality of application servers based on the service content to be updated; deploying the service content to be updated to the at least one test server, and updating original service content on the at least one test server by adopting the service content to be updated; and testing the service content to be updated by using the at least one testing server and other application servers except the at least one testing server in the plurality of application servers.
Optionally, selecting at least one test server from the plurality of application servers based on the service content to be updated includes: determining at least one test server related to the service content to be updated; and selecting the at least one test server from the plurality of application servers.
Optionally, the testing the content of the service to be updated by using the at least one testing server and the remaining application servers of the plurality of application servers except the at least one testing server includes: detecting whether a test request is received; if the service content to be updated is the same as the service content to be updated, the test server is used for respectively testing the service content to be updated and obtaining a test result.
Optionally, after the at least one test server and the other application servers are used to respectively test the service content to be updated, and a test result is obtained, the method further includes: marking the test result to obtain marking information, wherein the marking information is used for distinguishing different broadcasting modes of a test user and a normal user; determining a target broadcasting mode corresponding to the mark information; and broadcasting the test result to the test user by adopting the target broadcasting mode.
Optionally, the method further includes that the data source modes of the test users are different, and the test environment and the test data are different between different test users.
Optionally, the method further includes that the service content to be updated includes: one or more service contents, wherein the plurality of service contents are mutually associated or not associated.
Optionally, the method further includes that the service content to be updated includes at least one of: nameplate, banner, public screen.
According to another aspect of the embodiments of the present disclosure, there is also provided a software testing apparatus, including: the system comprises an acquisition module, a storage module and a processing module, wherein the acquisition module is used for acquiring service contents to be updated of target software, and different service contents of the target software are respectively deployed on a plurality of application servers; a selecting module, configured to select at least one test server from the multiple application servers based on the service content to be updated; the updating module is used for deploying the service content to be updated to the at least one testing server and updating the original service content on the at least one testing server by adopting the service content to be updated; and the testing module is used for testing the service content to be updated by using the at least one testing server and other application servers except the at least one testing server in the plurality of application servers.
According to another aspect of the embodiments of the present disclosure, a non-volatile storage medium is further provided, where the non-volatile storage medium includes a stored program, and when the program runs, the device where the non-volatile storage medium is located is controlled to execute any one of the software testing methods.
According to another aspect of the embodiments of the present disclosure, there is also provided an electronic device, including: the software testing system comprises a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute any one of the software testing methods.
In the embodiment of the disclosure, different service contents of target software are respectively deployed on a plurality of application servers by acquiring the service contents to be updated of the target software; selecting at least one test server from a plurality of application servers based on service content to be updated; deploying the service content to be updated to at least one test server, and updating the original service content on the at least one test server by adopting the service content to be updated; the method and the device have the advantages that the service content to be updated is tested by using the at least one testing server and the rest of the application servers except the at least one testing server, so that the purposes of simplifying the mutual calling relationship of the software servers and improving the software testing efficiency are achieved, the technical effect of saving server resources is achieved, and the technical problems that in the prior art, the mutual calling relationship of some software servers is complex, the consumption of server resources in the software testing process is high, and the server resources are wasted are solved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the disclosure and are incorporated in and constitute a part of this disclosure, illustrate embodiments of the disclosure and together with the description serve to explain the disclosure and not to limit the disclosure. In the drawings:
FIG. 1 is a flow chart of a method of testing software according to an embodiment of the present disclosure;
FIG. 2 is a schematic diagram of a generic server that does not require updates according to an embodiment of the present disclosure;
FIG. 3 is a schematic diagram of a test server requiring updating according to an embodiment of the present disclosure;
FIG. 4 is a schematic diagram of a test server with a software update involving multiple unassociated updates according to an embodiment of the present disclosure;
FIG. 5 is a schematic diagram of a test server requiring updating according to an embodiment of the present disclosure;
FIG. 6 is a schematic diagram of another test server requiring updating according to an embodiment of the present disclosure;
FIG. 7 is a schematic diagram of yet another test server requiring updating according to an embodiment of the present disclosure;
fig. 8 is a schematic diagram of a software testing method apparatus according to an embodiment of the present disclosure.
Detailed Description
In order to make the technical solutions of the present disclosure better understood by those skilled in the art, the technical solutions of the embodiments of the present disclosure will be clearly and completely described below with reference to the drawings in the embodiments of the present disclosure, and it is obvious that the described embodiments are only some embodiments of the present disclosure, not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments disclosed herein without making any creative effort, shall fall within the protection scope of the present disclosure.
It should be noted that the terms "first," "second," and the like in the description and claims of the present disclosure and in the above-described drawings are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the disclosure described herein are capable of operation in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
The technical scheme of the method embodiment can be executed in a mobile terminal, a computer terminal or a similar arithmetic device. Taking the example of the Mobile terminal running on the Mobile terminal, the Mobile terminal may be a terminal device such as a smart phone (e.g., an Android phone, an iOS phone, etc.), a tablet computer, a palm computer, a Mobile Internet device (MID for short), a PAD, and the like. The mobile terminal may include one or more processors (which may include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), a Digital Signal Processing (DSP) chip, a Microprocessor (MCU), a programmable logic device (FPGA), a neural Network Processor (NPU), a Tensor Processor (TPU), an Artificial Intelligence (AI) type processor, etc.) and a memory for storing data. Optionally, the mobile terminal may further include a transmission device, an input/output device, and a display device for a communication function. It will be understood by those skilled in the art that the foregoing structural description is only illustrative and not restrictive of the structure of the mobile terminal. For example, the mobile terminal may also include more or fewer components than described above, or have a different configuration than described above.
The memory may be used to store computer programs, for example, software programs and modules of application software, such as computer programs corresponding to the software testing method in the embodiments of the present disclosure, and the processor executes various functional applications and data processing by running the computer programs stored in the memory, so as to implement the software testing method. The memory may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory may further include memory located remotely from the processor, and these remote memories may be connected to the mobile terminal through a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission device is used to receive or transmit data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider of the mobile terminal. In one example, the transmission device includes a Network adapter (NIC) that can be connected to other Network devices through a base station to communicate with the internet. In one example, the transmission device may be a Radio Frequency (RF) module, which is used for communicating with the internet in a wireless manner. The technical scheme of the embodiment of the method can be applied to various communication systems, such as: a Global System for Mobile communications (GSM) System, a Code Division Multiple Access (CDMA) System, a Wideband Code Division Multiple Access (WCDMA) System, a General Packet Radio Service (GPRS), a Long Term Evolution (Long Term Evolution, LTE) System, a Frequency Division Duplex (FDD) System, a Time Division Duplex (TDD), a Universal Mobile Telecommunications System (UMTS), a Worldwide Interoperability for Microwave Access (WiMAX) communication System, or a 5G System. Optionally, Device-to-Device (D2D for short) communication may be performed between multiple mobile terminals. Alternatively, the 5G system or the 5G network is also referred to as a New Radio (NR) system or an NR network.
The display device may be, for example, a touch screen type Liquid Crystal Display (LCD) and a touch display (also referred to as a "touch screen" or "touch display screen"). The liquid crystal display may enable a user to interact with a user interface of the mobile terminal. In some embodiments, the mobile terminal has a Graphical User Interface (GUI) with which a user can interact by touching finger contacts and/or gestures on a touch-sensitive surface, where the human-machine interaction function optionally includes the following interactions: executable instructions for creating web pages, drawing, word processing, making electronic documents, games, video conferencing, instant messaging, emailing, call interfacing, playing digital video, playing digital music, and/or web browsing, etc., for performing the above-described human-computer interaction functions, are configured/stored in one or more processor-executable computer program products or readable non-volatile storage media.
In accordance with an embodiment of the present disclosure, there is provided a method embodiment of software testing, it being noted that the steps illustrated in the flowchart of the drawings may be performed in a computer system such as a set of computer-executable instructions and that, although a logical order is illustrated in the flowchart, in some cases the steps illustrated or described may be performed in an order different than here.
Fig. 1 is a flow chart of a software testing method according to an embodiment of the present disclosure, as shown in fig. 1, the method includes the following steps:
step S102, acquiring service contents to be updated of target software, wherein different service contents of the target software are respectively deployed on a plurality of application servers;
step S104, selecting at least one test server from the plurality of application servers based on the service content to be updated;
step S106, deploying the service content to be updated to the at least one test server, and updating the original service content on the at least one test server by adopting the service content to be updated;
step S108, testing the service content to be updated by using the at least one testing server and the other application servers except the at least one testing server in the plurality of application servers.
In the embodiment of the disclosure, different service contents of target software are respectively deployed on a plurality of application servers by acquiring the service contents to be updated of the target software; selecting at least one test server from a plurality of application servers based on service content to be updated; deploying the service content to be updated to at least one test server, and updating the original service content on the at least one test server by adopting the service content to be updated; the method and the device utilize at least one test server and other application servers except the at least one test server to test the content of the service to be updated, and achieve the purpose of solving the external network test environment, thereby achieving the technical effects of saving server resources and improving test efficiency, and further solving the technical problems that in the prior art, the mutual calling relationship of some software servers is complex, the consumption of server resources in the software test process is extremely high, and the server resources are wasted.
Optionally, the target software may be a certain application software on a mobile phone or a computer, a certain system software on a mobile phone or a computer, or a part of a program in a specific application software.
Optionally, as shown in fig. 2, the application server may be a normal server used by a normal user and not required to be updated; as shown in fig. 3, the test server may be a test server used by a test user and needing updating; the test server may be a plurality of servers, where a server is not meant as a physical server but is meant as a deployed microservice; the software updating part is deployed to the corresponding test server, the request of a test user is completed by the test server and the application server which does not need to be updated, and the server resources required by the test are saved; the test database provides data, and can be debugged at will by testers without affecting normal users.
In an optional embodiment, the selecting at least one test server from the plurality of application servers based on the service content to be updated includes:
step S202, determining at least one test server related to the service content to be updated;
step S204, selecting the at least one test server from the plurality of application servers.
In this disclosure, when the server is involved in software update, the content of the service to be updated may be determined first, and then at least one test server may be selected from the plurality of servers, and the software update portion may be deployed to the corresponding test server.
In an optional embodiment, the testing the service content to be updated by using the at least one testing server and the remaining application servers of the plurality of application servers except the at least one testing server includes:
step S306, detecting whether a test request is received;
step S308, if the detection result is yes, the at least one test server and the other application servers are used to respectively test the service content to be updated, so as to obtain a test result.
In the embodiment of the disclosure, the request of the test user is completed by the test server and the application server which does not need to be updated, so that the server resource required by the test is saved; the test user provides data by the test database, the test database can be randomly debugged by the tester, and the normal user provides data by the application database; and if the test user receives the test data, the service content to be updated is updated successfully.
In an optional embodiment, after the at least one test server and the other application servers are used to respectively test the service content to be updated, and obtain a test result, the method further includes:
step S402, marking the test result to obtain marking information, wherein the marking information is used for distinguishing different broadcasting modes of the test user and the normal user;
step S404, determining a target broadcasting mode corresponding to the mark information;
step S406, broadcasting the test result to the test user by adopting the target broadcasting mode.
In the embodiment of the present disclosure, the test user and the common user both have id; marking the test user, namely adding the id of the user into a white list (test _ uid: 111,2222), wherein each user in the server needs to upload the id of the user when connecting any service or interacting, and then the server can know whether the user is the test user or not when receiving the user id.
In the embodiment of the disclosure, in the display of the server, broadcasts of all users are triggered, if a test user triggers a broadcast of test data, if no limitation is made, the broadcast of the test data reaches the side of a formal user, and an accident that the test data leaks occurs, so that it is necessary to process that the broadcast triggered by the test user cannot reach the formal user.
In an alternative embodiment, the normal users and the test users have different data sources, and the test environment and the test data are different between different test users.
In an optional embodiment, the service content to be updated includes: one or more service contents, wherein the plurality of service contents are mutually associated or not associated.
In an optional embodiment, the service content to be updated includes at least one of: nameplate, banner, public screen.
In an optional embodiment, when the software update only relates to one application server, the software update part is deployed to the corresponding test server, and the request of the test user is completed by the test server and the application server which does not need to be updated, so that the server resource required by the test is saved; for example: software deployed on a nameplate server, a banner server and a public screen server needs to be updated, the content of the current update only relates to the nameplate server, the content of the nameplate server is deployed on a test server and is updated, and the test server, the unchanged banner server and the public screen server jointly complete the request of a test user.
In an alternative embodiment, as shown in fig. 4, when the software update involves multiple non-associated updates, the software update parts are respectively deployed to the corresponding test server 1 and test server 2 …, and the request of the test user is completed by the test server and other application servers together, so that the server resources required by the test are saved, meanwhile, the test efficiency can be improved, multiple non-associated updates can be tested simultaneously, and the association conditions of multiple updates can be compared and tested; for example: software deployed on three servers, namely a nameplate server, a banner server and a public screen server, needs to be tested for 2 updates at the same time, the updated contents relate to nameplate and banner services respectively, the contents of the nameplate server are deployed on the testing server 1 and are updated, the contents of the banner server are deployed on the testing server 2 and are updated, the testing server 1 and the unchanged banner and public screen servers complete the request of the testing user 1 together, the testing server 2 and the unchanged nameplate and public screen servers complete the request of the testing user 2 together, and the testing servers 1 and 2 and the unchanged public screen servers complete the request of the testing user 3 together.
In the embodiment of the disclosure, because the test user is given with the mark id in advance, the test user provides data by the test database, the test database can be debugged by the tester at will, and the normal user provides data by the application database; and setting the test user as a white list user, marking the test result after obtaining the test result to obtain marking information, namely marking the broadcast triggered by the test user as a white list broadcast, only playing the white list user, and normally broadcasting the broadcast triggered by a normal user.
In an alternative embodiment, the micro-service architecture shown in fig. 5 is adopted, that is, each service in the micro-service architecture has a special processing content, and the method for distinguishing whether the update is related or not is to confirm whether a newly added requirement is related to a plurality of micro-services or not according to the protocol sid provided by the program in the actual test process, if only 1 service is related, then 1 service is referred, and if a plurality of services are related, then the update is performed; a plurality of sets of test environments can be deployed, as shown in fig. 5, 6, and 7, a test user 1 can test modifications to a microservice 1, the test environment of the test user is only changed by the microservice 1, a test user 2 can test changes of the microservice 2, and a test user 3 can test functional tests that the microservice 2 and the microservice 3 need to function together.
According to an embodiment of the present disclosure, an embodiment of an apparatus for implementing the software testing method is further provided, fig. 8 is a schematic structural diagram of an apparatus for implementing a software testing method according to an embodiment of the present disclosure, and as shown in fig. 8, the apparatus for implementing a software testing method includes: an acquisition module 50, a selection module 52, an update module 54, and a test module 56, wherein:
an obtaining module 50, configured to obtain service content to be updated of target software, where different service contents of the target software are respectively deployed on multiple application servers; a selecting module 52, configured to select at least one test server from the multiple application servers based on the service content to be updated; an updating module 54, configured to deploy the service content to be updated to the at least one test server, and update original service content on the at least one test server by using the service content to be updated; a testing module 56, configured to test the content of the service to be updated by using the at least one testing server and other application servers except the at least one testing server in the plurality of application servers.
It should be noted that the above modules may be implemented by software or hardware, for example, for the latter, the following may be implemented: the modules can be located in the same processor; alternatively, the modules may be located in different processors in any combination.
It should be noted that the obtaining module 50, the selecting module 52, the updating module 54 and the testing module 56 correspond to steps S102 to S108 in the method embodiment, and the modules are the same as the examples and application scenarios realized by the corresponding steps, but are not limited to the disclosure of the method embodiment. It should be noted that the modules described above may be implemented in a computer terminal as part of an apparatus.
It should be noted that, for alternative or preferred embodiments of the present embodiment, reference may be made to the related description in the method embodiment, and details are not described herein again.
The software testing apparatus may further include a processor and a memory, where the acquiring module 50, the selecting module 52, the updating module 54, the testing module 56, and the like are stored in the memory as program units, and the processor executes the program units stored in the memory to implement corresponding functions.
The processor comprises a kernel, and the kernel calls a corresponding program unit from the memory, wherein one or more than one kernel can be arranged. The memory may include volatile memory in a computer readable medium, Random Access Memory (RAM) and/or nonvolatile memory such as Read Only Memory (ROM) or flash memory (flash RAM), and the memory includes at least one memory chip.
According to the embodiment of the disclosure, a nonvolatile storage medium embodiment is also provided. Optionally, in this embodiment, the nonvolatile storage medium includes a stored program, and the device where the nonvolatile storage medium is located is controlled to execute any one of the software testing methods when the program runs.
Optionally, in this embodiment, the nonvolatile storage medium may be located in any one of a group of computer terminals in a computer network, or in any one of a group of mobile terminals, and the nonvolatile storage medium includes a stored program.
Optionally, the apparatus in which the non-volatile storage medium is controlled to perform the following functions when the program is executed: acquiring service contents to be updated of target software, wherein different service contents of the target software are respectively deployed on a plurality of application servers; selecting at least one test server from the plurality of application servers based on the service content to be updated; deploying the service content to be updated to the at least one test server, and updating original service content on the at least one test server by adopting the service content to be updated; and testing the service content to be updated by using the at least one testing server and other application servers except the at least one testing server in the plurality of application servers.
According to an embodiment of the present disclosure, there is also provided an embodiment of a processor. Optionally, in this embodiment, the processor is configured to execute a program, where the program executes any one of the software testing methods.
According to an embodiment of the present disclosure, an embodiment of an electronic device is provided, which includes a memory and a processor, where the memory stores a computer program, and the processor is configured to run the computer program to execute any one of the software testing methods described above.
The present disclosure also provides a computer program product adapted to perform a program for initializing the following method steps when executed on a data processing device: acquiring service contents to be updated of target software, wherein different service contents of the target software are respectively deployed on a plurality of application servers; selecting at least one test server from the plurality of application servers based on the service content to be updated; deploying the service content to be updated to the at least one test server, and updating original service content on the at least one test server by adopting the service content to be updated; and testing the service content to be updated by using the at least one testing server and other application servers except the at least one testing server in the plurality of application servers.
The above-mentioned serial numbers of the embodiments of the present disclosure are merely for description and do not represent the merits of the embodiments.
In the above embodiments of the present disclosure, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present disclosure, it should be understood that the disclosed technology can be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units may be a logical division, and in actual implementation, there may be another division, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, units or modules, and may be in an electrical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present disclosure may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable non-volatile storage medium. Based on such understanding, the technical solution of the present disclosure may be embodied in the form of a software product, which is stored in a non-volatile storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to perform all or part of the steps of the method according to the embodiments of the present disclosure. And the aforementioned nonvolatile storage medium includes: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
The foregoing is merely a preferred embodiment of the present disclosure, and it should be noted that modifications and embellishments could be made by those skilled in the art without departing from the principle of the present disclosure, and these should also be considered as the protection scope of the present disclosure.

Claims (10)

1. A software testing method, comprising:
acquiring service content to be updated of target software, wherein different service contents of the target software are respectively deployed on a plurality of application servers;
selecting at least one test server from the plurality of application servers based on the service content to be updated;
deploying the service content to be updated to the at least one test server, and updating original service content on the at least one test server by adopting the service content to be updated;
and testing the service content to be updated by utilizing the at least one testing server and other application servers except the at least one testing server in the plurality of application servers.
2. The method of claim 1, wherein selecting at least one test server from the plurality of application servers based on the service content to be updated comprises:
determining at least one test server related to the service content to be updated;
and selecting the at least one test server from the plurality of application servers.
3. The method of claim 1, wherein the testing the service content to be updated by using the at least one testing server and the rest of the plurality of application servers except the at least one testing server comprises:
detecting whether a test request is received;
if the test result is yes, the at least one test server and the other application servers are utilized to respectively test the service content to be updated, and a test result is obtained.
4. The method according to claim 3, wherein after the at least one test server and the remaining application servers are used to respectively test the service content to be updated, and obtain a test result, the method further comprises:
marking the test result to obtain marking information, wherein the marking information is used for distinguishing different broadcasting modes of a test user and a normal user;
determining a target broadcasting mode corresponding to the marking information;
and broadcasting the test result to a test user in the target broadcasting mode.
5. The method of claim 4, wherein the normal users and the test users have different data sources, and the test environment and the test data are different between different test users.
6. The method of claim 1, wherein the service content to be updated comprises: one or more service contents, wherein the plurality of service contents are mutually associated or not associated.
7. The method of claim 1, wherein the service content to be updated comprises at least one of: nameplate, banner, public screen.
8. A software testing apparatus, comprising:
the system comprises an acquisition module, a storage module and a processing module, wherein the acquisition module is used for acquiring service contents to be updated of target software, and different service contents of the target software are respectively deployed on a plurality of application servers;
the selecting module is used for selecting at least one testing server from the plurality of application servers based on the service content to be updated;
the updating module is used for deploying the service content to be updated to the at least one testing server and updating the original service content on the at least one testing server by adopting the service content to be updated;
and the testing module is used for testing the service content to be updated by utilizing the at least one testing server and other application servers except the at least one testing server in the plurality of application servers.
9. A non-volatile storage medium, comprising a stored program, wherein when the program runs, the non-volatile storage medium is controlled in a device to execute the software testing method according to any one of claims 1 to 7.
10. An electronic device comprising a memory and a processor, wherein the memory has stored therein a computer program, and the processor is configured to execute the computer program to perform the software testing method of any one of claims 1 to 7.
CN202110548143.6A 2021-05-19 2021-05-19 Software testing method and device, electronic equipment and storage medium Pending CN113326186A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110548143.6A CN113326186A (en) 2021-05-19 2021-05-19 Software testing method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110548143.6A CN113326186A (en) 2021-05-19 2021-05-19 Software testing method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN113326186A true CN113326186A (en) 2021-08-31

Family

ID=77416054

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110548143.6A Pending CN113326186A (en) 2021-05-19 2021-05-19 Software testing method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113326186A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113485944A (en) * 2021-09-06 2021-10-08 汇通达网络股份有限公司 Software testing method and system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103631715A (en) * 2013-11-28 2014-03-12 北京奇虎科技有限公司 Method, device and system for testing application
CN111752770A (en) * 2019-03-29 2020-10-09 上海哔哩哔哩科技有限公司 Service request processing method, system, computer device and storage medium
CN111782519A (en) * 2020-06-29 2020-10-16 中国工商银行股份有限公司 Test method and device and electronic equipment
CN111858297A (en) * 2020-01-21 2020-10-30 北京嘀嘀无限科技发展有限公司 Method and device for constructing online simulation test environment and computer-readable storage medium
CN112685287A (en) * 2020-11-30 2021-04-20 青岛海尔科技有限公司 Product data testing method and device, storage medium and electronic device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103631715A (en) * 2013-11-28 2014-03-12 北京奇虎科技有限公司 Method, device and system for testing application
CN111752770A (en) * 2019-03-29 2020-10-09 上海哔哩哔哩科技有限公司 Service request processing method, system, computer device and storage medium
CN111858297A (en) * 2020-01-21 2020-10-30 北京嘀嘀无限科技发展有限公司 Method and device for constructing online simulation test environment and computer-readable storage medium
CN111782519A (en) * 2020-06-29 2020-10-16 中国工商银行股份有限公司 Test method and device and electronic equipment
CN112685287A (en) * 2020-11-30 2021-04-20 青岛海尔科技有限公司 Product data testing method and device, storage medium and electronic device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113485944A (en) * 2021-09-06 2021-10-08 汇通达网络股份有限公司 Software testing method and system

Similar Documents

Publication Publication Date Title
EP2713252A2 (en) Operation interface management method, apparatus and mobile terminal
CN104935744A (en) Verification code display method, verification code display device and mobile terminal
CN111352597B (en) Multi-screen display control method and device, electronic equipment and readable storage medium
CN105677335A (en) Method and device for increasing first starting speed of mobile terminal
WO2019184658A1 (en) Profile switching method and apparatus, and mobile terminal
CN110222288B (en) Page display method, device and storage medium
CN105045639A (en) Mobile terminal downloading method and device and mobile terminal
CN115103336A (en) Card information activation method and device and storage medium
CN112653670A (en) Service logic vulnerability detection method, device, storage medium and terminal
CN105022687A (en) Implementation method and device of sliding operation in automated testing scheme
CN108733370B (en) Stylized display method, device, terminal and storage medium of native APP
CN105426192A (en) Information modification method and terminal
CN105515887A (en) Application test method, server and system
CN111475754A (en) Page loading method, device, terminal and storage medium
CN113326186A (en) Software testing method and device, electronic equipment and storage medium
CN108241515B (en) Application shortcut establishing method and terminal
CN112363932B (en) Test method and device for business object to be tested and electronic device
CN105204891A (en) Download method and download device during shutdown of mobile terminal and mobile terminal
CN104182331A (en) Browser performance test method, browser performance test system and terminal
CN108009084B (en) Testing method, device and system for hybrid mobile application
CN113286349B (en) Personal hot spot connection method, device, terminal and storage medium
CN110609781A (en) Interface test method, device and storage medium
CN113326302A (en) Data query method and device and storage medium
CN114258007A (en) SIM card management method, device and computer storage medium
CN106559411A (en) Information processing method and 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
RJ01 Rejection of invention patent application after publication

Application publication date: 20210831

RJ01 Rejection of invention patent application after publication