CN111625451A - Initialization method, device, equipment and medium for automatic test environment - Google Patents

Initialization method, device, equipment and medium for automatic test environment Download PDF

Info

Publication number
CN111625451A
CN111625451A CN202010427131.3A CN202010427131A CN111625451A CN 111625451 A CN111625451 A CN 111625451A CN 202010427131 A CN202010427131 A CN 202010427131A CN 111625451 A CN111625451 A CN 111625451A
Authority
CN
China
Prior art keywords
audio
environment
target software
initialization
playing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202010427131.3A
Other languages
Chinese (zh)
Other versions
CN111625451B (en
Inventor
孙俊岭
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN202010427131.3A priority Critical patent/CN111625451B/en
Publication of CN111625451A publication Critical patent/CN111625451A/en
Application granted granted Critical
Publication of CN111625451B publication Critical patent/CN111625451B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/3664Environments for testing or debugging software
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3684Test management for test design, e.g. generating new test cases
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

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

Abstract

The application discloses an initialization method, device, equipment and medium of an automatic test environment, and relates to a software test technology. The specific implementation scheme is as follows: in the process of automatically testing the target software, if the current test case is detected to be executed to a adapting page of the target software, playing pre-synthesized audio returned to the initialization environment; and if the target software returns to the initialization environment, executing the next test case. The embodiment of the application realizes the initialization of the test environment rapidly in a voice control mode, can realize the initialization automatically, improves the execution efficiency of the test case, and realizes the expansion of the sample magnitude with low cost.

Description

Initialization method, device, equipment and medium for automatic test environment
Technical Field
The present application relates to the field of computer technologies, and in particular, to a software testing technology, and in particular, to a method, an apparatus, a device, and a medium for initializing an automated testing environment.
Background
Today in the technical development of the internet and intelligent terminals, people have higher and higher dependence on the intelligent terminals, and the intelligent terminals and various application software installed on the terminals really bring great convenience to the lives of people.
Before the application software is marketed, strict tests are required. In the testing process, the final result of the evaluated automation case is to jump to a support page, but when the next round of automation test case is executed, the software initialization environment needs to be recovered. In the prior art, the initialization environment of the software is usually returned by calling a return key on a terminal interface, however, since the final stub pages of the software are various, there are many situations in which the operation step length for returning to the initialization environment through the return key is too long, and then the software needs to be confirmed one by one according to the test cases. Therefore, in the face of the automated test of thousands of magnitude samples, the realization cost of the prior art is high, and the test efficiency is low.
Disclosure of Invention
The embodiment of the application provides an initialization method, device, equipment and medium of an automatic test environment, so that the test efficiency is improved, and the test cost is reduced.
In a first aspect, an embodiment of the present application provides an initialization method for an automated testing environment, including:
in the process of automatically testing the target software, if the current test case is detected to be executed to a adapting page of the target software, playing pre-synthesized audio returned to the initialization environment;
and if the target software returns to the initialization environment, executing the next test case.
In a second aspect, an embodiment of the present application further provides an initialization apparatus for an automated testing environment, including:
the audio playing module is used for playing pre-synthesized audio returned to the initialization environment if the current test case is detected to be executed to the adapting page of the target software in the process of automatically testing the target software;
and the test case execution module is used for executing the next test case if the target software returns to the initialization environment.
In a third aspect, an embodiment of the present application further provides an electronic device, including:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform a method of initializing an automated test environment as described in any embodiment of the present application.
In a fourth aspect, embodiments of the present application further provide a non-transitory computer-readable storage medium storing computer instructions for causing a computer to perform the method for initializing an automated testing environment according to any of the embodiments of the present application.
According to the technical scheme of the embodiment of the application, the initialization of the test environment is quickly realized in a voice control mode, the test environment can be automatically realized, the execution efficiency of the test case is improved, and the sample magnitude is expanded at low cost.
It should be understood that the statements in this section do not necessarily identify key or critical features of the embodiments of the present application, nor do they limit the scope of the present application. Other features of the present application will become readily apparent from the following description, and other effects of the above alternatives will be described hereinafter in conjunction with specific embodiments.
Drawings
The drawings are included to provide a better understanding of the present solution and are not intended to limit the present application. Wherein:
FIG. 1 is a flowchart illustrating a method for initializing an automated test environment according to a first embodiment of the present application;
FIG. 2 is a flowchart illustrating a method for initializing an automated test environment according to a second embodiment of the present application;
FIG. 3 is a schematic diagram of an initialization apparatus for an automated test environment according to a third embodiment of the present application;
FIG. 4 is a block diagram of an electronic device for implementing the initialization method of the automated test environment of the embodiments of the present application.
Detailed Description
The following description of the exemplary embodiments of the present application, taken in conjunction with the accompanying drawings, includes various details of the embodiments of the application for the understanding of the same, which are to be considered exemplary only. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the present application. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
Fig. 1 is a schematic flowchart of an initialization method for an automated test environment according to a first embodiment of the present application, and this embodiment is applicable to a situation where a control test case automatically returns to the initialization environment after reaching a receiving page, for example, returns to a software home page, in an automated test process of application software. The method may be performed by an initialization apparatus of an automated test environment, which is implemented in software and/or hardware, and is preferably configured in an electronic device, such as a server or a computer device. As shown in fig. 1, the method specifically includes the following steps:
s101, in the process of automatically testing the target software, if the current test case is detected to be executed to a adapting page of the target software, playing pre-synthesized audio returned to an initialization environment.
The target software may be any application software installed on the terminal, such as map software. In the testing process, a large number of test cases are used, and the final result of executing the test cases is to jump to a receiving page, but before executing the next test case, the software needs to be restored to the initialization environment, for example, the first page of the application software is returned, and then the next test case can be tested.
The stub page is a demand page that is finally presented to the user, and at least one intermediate page may be included before the stub page is reached. Therefore, if the test case is returned to the home page one step by clicking the return button according to the prior art, the operation is complicated, and the step length for returning to the home page is different in different test cases, each test case needs to be confirmed, and the test efficiency is greatly reduced.
In the embodiment of the application, if the current test case is detected to be executed to the adapting page of the target software, the pre-synthesized audio returned to the initialization environment is played, and the target software is returned to the initialization environment in a voice interaction mode, so that the operation is simple, the efficiency is high, and the effect of expanding the sample magnitude at low cost is realized. Where the audio back to the initialization environment, which may be wav formatted audio, for example, may be pre-synthesized using any of the speech synthesis techniques in the prior art. If the adapting page is reached, the adapting page may be determined to be reached by matching each element in the current page with an element that may be included in the adapting page, for example, by keyword matching, in a matching manner.
In addition, since the voice interaction function in the software needs to be woken up first and then to execute specific operations, before playing the pre-synthesized audio that returns to the initialization environment, the method further includes playing the pre-synthesized voice wake-up audio, waking up the voice interaction function first, and then playing the audio that returns to the initialization environment, so as to implement that the software returns to the initialization environment, for example, to the software home page, by means of voice interaction, thereby ensuring that the initialization process is completed smoothly.
And S102, if the target software returns to the initialization environment, executing the next test case.
When the target software returns to the initialization environment, for example, has returned to the home page, the next test case may be tested.
In one embodiment, the stub pages in different applications are different, and some stub pages do not support voice interaction. Therefore, before playing the pre-synthesized voice wake-up audio, the method further comprises detecting whether the stub page supports voice interaction; if yes, playing voice wake-up audio; if not, the current process of the target software can be killed, and the next test case is executed after the target software is restarted.
By distinguishing different adapting pages, the initialization of the test environment is quickly realized directly in a mode of killing the process and restarting the page which does not support voice interaction, so that the method is suitable for more test samples, and the high-efficiency completion of the whole test process is ensured.
In another embodiment, before playing the pre-composed audio back to the initialization environment, the method further comprises detecting whether a pop-up occurs on the stub page; if a popup occurs, the audio that returns to the initialization environment is played after the popup is closed.
Specifically, different pages are triggered based on different operations of the user, and pop-up windows on some pages are sometimes triggered, and the priority of the pop-up windows is usually higher than that of the voice interaction functions of the pages. Therefore, the condition that the popup window appears needs to be judged in advance, if the popup window appears, the popup window needs to be closed first, and then the software returns to the initialization environment in an audio playing mode, so that the test is ensured to be carried out smoothly.
According to the technical scheme of the embodiment of the application, the initialization of the test environment is quickly realized in a voice control mode, the test environment can be automatically realized, the execution efficiency of the test case is improved, and the sample magnitude is expanded with low cost. In addition, different adapting pages can be processed timely, so that the technical scheme of the embodiment of the application can be suitable for more test cases, the sample magnitude is further enlarged, and the test efficiency is improved.
Fig. 2 is a flowchart illustrating an initialization method of an automated testing environment according to a second embodiment of the present application, which is further optimized by taking map software as an example based on the above embodiments. As shown in fig. 2, the method specifically includes the following steps:
s201, in the process of automatically testing the target software, if the current test case is detected to be executed to the adapting page of the target software, the intention of the search word in the current test case is identified.
S202, judging whether the adapting page is under navigation or not according to the intention identification result. If in navigation, S203 is executed and then S205 is executed, otherwise, S204 is executed.
In this embodiment, the target software may be map software, and the support pages in the map software may be classified as being in navigation or not in navigation. Therefore, when it is detected that the current test case is executed to the stub page, it is required to first identify whether the current stub page is in navigation.
Specifically, the determining whether the adapting page is in navigation according to the intention recognition result includes: matching the intention recognition result with a pre-established intention keyword library; and if the intention identification result comprises any keyword in the intention keyword library, determining that the adapting page is in navigation. The method includes the steps of collecting keywords possibly included in intentions of search terms corresponding to samples in navigation of a connected page in advance, constructing an intention keyword library, and judging whether the connected page is in the navigation or not in a keyword matching mode after the intentions are identified.
S203, playing the audio returning to the initialization environment after playing the pre-synthesized exit navigation audio.
If the current adapting page is in navigation, the map software can not directly return to the home page, and the map software needs to firstly quit navigation by playing the quit navigation audio, and then plays the audio returning to the initialization environment, so that the map software returns to the home page.
And S204, playing the audio returning to the initialization environment.
S205, screenshot is conducted on the current interface of the target software, and whether preset keywords are included in the screenshot is detected. And executing S206 if the screenshot comprises the preset keyword, otherwise executing S207.
S206, determining that the target software returns to the initialization environment, and executing the next test case.
And S207, killing the current process of the target software, and executing the next test case after the target software is restarted.
Specifically, after the audio returned to the initialization environment is played, it cannot be determined whether the software has returned to the home page, and in order to ensure smooth execution of the next test case, it is necessary to first determine whether the target software has returned to the initialization environment. In this embodiment, a screenshot is first performed on a current interface of the target software in a screenshot matching manner, and whether a preset keyword is included in the screenshot is detected by using any character recognition technology in the prior art, where the preset keyword may be a keyword that may exist in a home page. If the screenshot includes the preset keyword, the screenshot indicates that the screenshot has already been returned to the home page, otherwise, the screenshot indicates that the screenshot has not yet been returned to the home page, the current process of the target software is killed, and after the target software is restarted, the next test case is executed to ensure that the next test case is smoothly executed.
It should be further noted that the rollback to the first page is only an example of initialization of the test environment, and the specific content of initialization of the test environment is not limited in any way in the embodiments of the present application.
According to the technical scheme of the embodiment of the application, the initialization of the test environment is quickly realized in a voice control mode, the test environment can be automatically realized, the execution efficiency of the test case is improved, and the sample magnitude is expanded with low cost. For map software, the embodiment of the application further divides two situations of the adapting page in navigation and not in navigation, and respectively processes the two situations to ensure the smooth operation of the test. In addition, whether initialization is achieved or not is further verified in a screenshot matching mode, and the next test case is executed after verification is passed, so that smooth proceeding of testing is further guaranteed, and testing efficiency is improved.
Fig. 3 is a schematic structural diagram of an initialization apparatus for an automated test environment according to a third embodiment of the present application, which is applicable to a situation where a control test case automatically returns to the initialization environment after reaching a receiving page in an automated test process of application software. The device can realize the initialization method of the automatic test environment in any embodiment of the application. As shown in fig. 3, the apparatus 300 specifically includes:
the audio playing module 301 is configured to, in the process of performing an automated test on target software, play a pre-synthesized audio that returns to an initialization environment if it is detected that a current test case is executed on a receiving page of the target software;
and the test case execution module 302 is configured to execute a next test case if the target software returns to the initialization environment.
Optionally, the audio playing module is further configured to:
the presynthesized voice wake-up audio is played before playing the presynthesized audio back to the initialization environment.
Optionally, the target software includes map software;
the device further comprises:
the intention identification module is used for identifying the intention of the search word in the current test case before the audio playing module plays the pre-synthesized audio returned to the initialization environment, and judging whether the adapting page is under navigation or not according to the intention identification result;
correspondingly, the audio playing module is specifically configured to:
if the navigation is in progress, playing the audio which returns to the initialization environment after playing the pre-synthesized exit navigation audio;
if not in navigation, audio is played back to the initialization environment.
Optionally, the intention identifying module is specifically configured to:
matching the intention recognition result with a pre-established intention keyword library;
and if the intention identification result comprises any keyword in the intention keyword library, determining that the adapting page is in navigation.
Optionally, the test case execution module is specifically configured to:
screenshot is conducted on the current interface of the target software, and whether preset keywords are included in the screenshot is detected;
if the screenshot comprises preset keywords, determining that the target software returns to an initialization environment, and executing the next test case;
and if the screenshot does not include the preset keywords, killing the current process of the target software, and executing the next test case after restarting the target software.
Optionally, the apparatus further comprises:
the detection module is used for detecting whether the adapting page supports voice interaction before the audio playing module plays the pre-synthesized voice awakening audio; if yes, the audio playing module plays voice wake-up audio; if not, the current process of the target software is killed, and the next test case is executed by the test case execution module after the target software is restarted.
Optionally, the apparatus further comprises:
the popup processing module is used for detecting whether popup appears on the supporting page before the audio playing module plays the pre-synthesized audio which returns to the initialization environment; and if the popup appears, after the popup is closed, the audio playing module plays the audio which returns to the initial environment.
The initialization apparatus 300 for an automated testing environment according to the embodiment of the present application can execute the initialization method for an automated testing environment according to any embodiment of the present application, and has functional modules and beneficial effects corresponding to the execution method. Reference may be made to the description of any method embodiment of the present application for details not explicitly described in this embodiment.
According to an embodiment of the present application, an electronic device and a readable storage medium are also provided.
Fig. 4 is a block diagram of an electronic device according to an initialization method of an automated test environment according to an embodiment of the present application. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be examples only, and are not meant to limit implementations of the present application that are described and/or claimed herein.
As shown in fig. 4, the electronic apparatus includes: one or more processors 401, memory 402, and interfaces for connecting the various components, including high-speed interfaces and low-speed interfaces. The various components are interconnected using different buses and may be mounted on a common motherboard or in other manners as desired. The processor may process instructions for execution within the electronic device, including instructions stored in or on the memory to display graphical information of a GUI on an external input/output apparatus (such as a display device coupled to the interface). In other embodiments, multiple processors and/or multiple buses may be used, along with multiple memories and multiple memories, as desired. Also, multiple electronic devices may be connected, with each device providing portions of the necessary operations (e.g., as a server array, a group of blade servers, or a multi-processor system). In fig. 4, one processor 401 is taken as an example.
Memory 402 is a non-transitory computer readable storage medium as provided herein. Wherein the memory stores instructions executable by at least one processor to cause the at least one processor to perform the method for initializing an automated test environment provided herein. The non-transitory computer readable storage medium of the present application stores computer instructions for causing a computer to perform the initialization method of an automated test environment provided by the present application.
The memory 402, which is a non-transitory computer readable storage medium, may be used to store non-transitory software programs, non-transitory computer executable programs, and modules, such as program instructions/modules (e.g., the audio playing module 301 and the test case execution module 302 shown in fig. 3) corresponding to the initialization method of the automated test environment in the embodiment of the present application. The processor 401 executes various functional applications of the server and data processing by running non-transitory software programs, instructions, and modules stored in the memory 402, that is, implements the initialization method of the automated test environment in the above-described method embodiment.
The memory 402 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to use of the electronic device implementing the initialization method of the automated test environment of the embodiment of the present application, and the like. Further, the memory 402 may include high speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid state storage device. In some embodiments, memory 402 may optionally include memory located remotely from processor 401, which may be connected via a network to an electronic device implementing the initialization method of the automated test environment of embodiments of the present application. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The electronic device implementing the initialization method for the automated testing environment according to the embodiment of the present application may further include: an input device 403 and an output device 404. The processor 401, the memory 402, the input device 403 and the output device 404 may be connected by a bus or other means, and fig. 4 illustrates an example of a connection by a bus.
The input device 403 may receive input numeric or character information and generate key signal inputs related to user settings and function control of the electronic device implementing the initialization method of the automated test environment of the embodiment of the present application, such as an input device of a touch screen, a keypad, a mouse, a track pad, a touch pad, a pointing stick, one or more mouse buttons, a track ball, a joystick, or the like. The output devices 404 may include a display device, auxiliary lighting devices (e.g., LEDs), and haptic feedback devices (e.g., vibrating motors), among others. The display device may include, but is not limited to, a Liquid Crystal Display (LCD), a Light Emitting Diode (LED) display, and a plasma display. In some implementations, the display device can be a touch screen.
Various implementations of the systems and techniques described here can be realized in digital electronic circuitry, integrated circuitry, application specific ASICs (application specific integrated circuits), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be special or general purpose, receiving data and instructions from, and transmitting data and instructions to, a storage system, at least one input device, and at least one output device.
These computer programs (also known as programs, software applications, or code) include machine instructions for a programmable processor, and may be implemented using high-level procedural and/or object-oriented programming languages, and/or assembly/machine languages. As used herein, the terms "machine-readable medium" and "computer-readable medium" refer to any computer program product, apparatus, and/or device (e.g., magnetic discs, optical disks, memory, Programmable Logic Devices (PLDs)) used to provide machine instructions and/or data to a programmable processor, including a machine-readable medium that receives machine instructions as a machine-readable signal. The term "machine-readable signal" refers to any signal used to provide machine instructions and/or data to a programmable processor.
To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which a user can provide input to the computer. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic, speech, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a back-end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back-end, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), Wide Area Networks (WANs), the internet, and blockchain networks.
The computer system may include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other.
According to the technical scheme of the embodiment of the application, the initialization of the test environment is quickly realized in a voice control mode, the test environment can be automatically realized, the execution efficiency of the test case is improved, and the sample magnitude is expanded at low cost. In addition, different adapting pages can be processed timely, so that the technical scheme of the embodiment of the application can be suitable for more test cases, the sample magnitude is further enlarged, and the test efficiency is improved. For map software, the embodiment of the application further divides two situations of the adapting page in navigation and not in navigation, and respectively processes the two situations to ensure the smooth operation of the test. And whether initialization is realized or not is further verified in a screenshot matching mode, and the next test case is executed after the verification is passed, so that the test is further ensured to be smoothly carried out, and the test efficiency is improved.
It should be understood that various forms of the flows shown above may be used, with steps reordered, added, or deleted. For example, the steps described in the present application may be executed in parallel, sequentially, or in different orders, and the present invention is not limited thereto as long as the desired results of the technical solutions disclosed in the present application can be achieved.
The above-described embodiments should not be construed as limiting the scope of the present application. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may be made in accordance with design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims (16)

1. An initialization method for an automated test environment, comprising:
in the process of automatically testing the target software, if the current test case is detected to be executed to a adapting page of the target software, playing pre-synthesized audio returned to the initialization environment;
and if the target software returns to the initialization environment, executing the next test case.
2. The method of claim 1, wherein prior to said playing pre-synthesized audio back to the initialization environment, the method further comprises:
and playing the pre-synthesized voice wake-up audio.
3. The method of claim 1, wherein the target software comprises map software;
prior to the playing of the pre-synthesized audio back to the initialization environment, the method further comprises:
identifying the intention of the search word in the current test case, and judging whether the adapting page is in navigation or not according to the intention identification result;
if the navigation is in progress, after the pre-synthesized exit navigation audio is played, the operation of playing the audio returned to the initialization environment is executed;
if not, the operation of playing back the audio of the initialization environment is executed.
4. The method of claim 3, wherein the determining whether the tabbed page is under navigation according to the intent recognition result comprises:
matching the intention recognition result with a pre-established intention keyword library;
and if the intention identification result comprises any keyword in the intention keyword library, determining that the adapting page is in navigation.
5. The method of claim 1, wherein executing the next test case if the target software returns to an initialization environment comprises:
screenshot is conducted on the current interface of the target software, and whether preset keywords are included in the screenshot is detected;
if the screenshot comprises preset keywords, determining that the target software returns to an initialization environment, and executing the next test case;
and if the screenshot does not include the preset keywords, killing the current process of the target software, and executing the next test case after restarting the target software.
6. The method of claim 2, wherein prior to the playing the pre-synthesized voice wake-up audio, the method further comprises:
detecting whether the adapting page supports voice interaction;
if yes, executing the operation of playing the voice wake-up audio;
if not, the current process of the target software is killed, and the next test case is executed after the target software is restarted.
7. The method of claim 1, wherein prior to said playing pre-synthesized audio back to the initialization environment, the method further comprises:
detecting whether a popup window appears on the supporting page or not;
and if the popup appears, after closing the popup, executing the operation of playing the audio returning to the initialization environment.
8. An apparatus for initializing an automated test environment, comprising:
the audio playing module is used for playing pre-synthesized audio returned to the initialization environment if the current test case is detected to be executed to the adapting page of the target software in the process of automatically testing the target software;
and the test case execution module is used for executing the next test case if the target software returns to the initialization environment.
9. The apparatus of claim 8, wherein the audio playback module is further configured to:
the presynthesized voice wake-up audio is played before playing the presynthesized audio back to the initialization environment.
10. The apparatus of claim 8, wherein the target software comprises map software;
the device further comprises:
the intention identification module is used for identifying the intention of the search word in the current test case before the audio playing module plays the pre-synthesized audio returned to the initialization environment, and judging whether the adapting page is under navigation or not according to the intention identification result;
correspondingly, the audio playing module is specifically configured to:
if the navigation is in progress, playing the audio which returns to the initialization environment after playing the pre-synthesized exit navigation audio;
if not in navigation, audio is played back to the initialization environment.
11. The apparatus of claim 10, wherein the intent recognition module is specifically configured to:
matching the intention recognition result with a pre-established intention keyword library;
and if the intention identification result comprises any keyword in the intention keyword library, determining that the adapting page is in navigation.
12. The apparatus of claim 8, wherein the test case execution module is specifically configured to:
screenshot is conducted on the current interface of the target software, and whether preset keywords are included in the screenshot is detected;
if the screenshot comprises preset keywords, determining that the target software returns to an initialization environment, and executing the next test case;
and if the screenshot does not include the preset keywords, killing the current process of the target software, and executing the next test case after restarting the target software.
13. The apparatus of claim 9, further comprising:
the detection module is used for detecting whether the adapting page supports voice interaction before the audio playing module plays the pre-synthesized voice awakening audio; if yes, the audio playing module plays voice wake-up audio; if not, the current process of the target software is killed, and the next test case is executed by the test case execution module after the target software is restarted.
14. The apparatus of claim 8, further comprising:
the popup processing module is used for detecting whether popup appears on the supporting page before the audio playing module plays the pre-synthesized audio which returns to the initialization environment; and if the popup appears, after the popup is closed, the audio playing module plays the audio which returns to the initial environment.
15. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of initializing an automated test environment of any one of claims 1-8.
16. A non-transitory computer readable storage medium having stored thereon computer instructions for causing a computer to perform the method for initializing an automated test environment according to any one of claims 1 to 8.
CN202010427131.3A 2020-05-19 2020-05-19 Initialization method, device, equipment and medium for automatic test environment Active CN111625451B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010427131.3A CN111625451B (en) 2020-05-19 2020-05-19 Initialization method, device, equipment and medium for automatic test environment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010427131.3A CN111625451B (en) 2020-05-19 2020-05-19 Initialization method, device, equipment and medium for automatic test environment

Publications (2)

Publication Number Publication Date
CN111625451A true CN111625451A (en) 2020-09-04
CN111625451B CN111625451B (en) 2023-03-21

Family

ID=72259872

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010427131.3A Active CN111625451B (en) 2020-05-19 2020-05-19 Initialization method, device, equipment and medium for automatic test environment

Country Status (1)

Country Link
CN (1) CN111625451B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112416776A (en) * 2020-11-24 2021-02-26 天津五八到家货运服务有限公司 Selection method and device of operating environment, test equipment and storage medium

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CA2221373A1 (en) * 1996-11-19 1998-05-19 Amsc Subsidiary Corporation Full service dispatcher for satellite trunked radio service system
CN1851655A (en) * 2005-11-07 2006-10-25 华为技术有限公司 Method for realizing product automatic test by test environment composed of test set
JP2010182287A (en) * 2008-07-17 2010-08-19 Steven C Kays Intelligent adaptive design
CN103020529A (en) * 2012-10-31 2013-04-03 中国航天科工集团第二研究院七○六所 Software vulnerability analytical method based on scene model
CN103544049A (en) * 2012-07-10 2014-01-29 百度在线网络技术(北京)有限公司 Testing environment automatic processing method, and method and device for realizing testing automation
CN105260299A (en) * 2015-09-17 2016-01-20 安一恒通(北京)科技有限公司 Method, device, and system for software test
CN108228468A (en) * 2018-02-12 2018-06-29 腾讯科技(深圳)有限公司 A kind of test method, device, test equipment and storage medium
CN108572913A (en) * 2018-02-26 2018-09-25 挖财网络技术有限公司 Method, apparatus and the application of App homepages are positioned in Android client UI automation processes
CN109918306A (en) * 2019-03-08 2019-06-21 深圳市腾讯网络信息技术有限公司 Audio processing equipment, system, method, apparatus and storage medium
US20190303272A1 (en) * 2018-03-30 2019-10-03 Atlassian Pty Ltd Systems and methods for initializing test environments
CN110825622A (en) * 2019-10-16 2020-02-21 中国建设银行股份有限公司 Software testing method, device, equipment and computer readable medium

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CA2221373A1 (en) * 1996-11-19 1998-05-19 Amsc Subsidiary Corporation Full service dispatcher for satellite trunked radio service system
CN1851655A (en) * 2005-11-07 2006-10-25 华为技术有限公司 Method for realizing product automatic test by test environment composed of test set
JP2010182287A (en) * 2008-07-17 2010-08-19 Steven C Kays Intelligent adaptive design
CN103544049A (en) * 2012-07-10 2014-01-29 百度在线网络技术(北京)有限公司 Testing environment automatic processing method, and method and device for realizing testing automation
CN103020529A (en) * 2012-10-31 2013-04-03 中国航天科工集团第二研究院七○六所 Software vulnerability analytical method based on scene model
CN105260299A (en) * 2015-09-17 2016-01-20 安一恒通(北京)科技有限公司 Method, device, and system for software test
CN108228468A (en) * 2018-02-12 2018-06-29 腾讯科技(深圳)有限公司 A kind of test method, device, test equipment and storage medium
CN108572913A (en) * 2018-02-26 2018-09-25 挖财网络技术有限公司 Method, apparatus and the application of App homepages are positioned in Android client UI automation processes
US20190303272A1 (en) * 2018-03-30 2019-10-03 Atlassian Pty Ltd Systems and methods for initializing test environments
CN109918306A (en) * 2019-03-08 2019-06-21 深圳市腾讯网络信息技术有限公司 Audio processing equipment, system, method, apparatus and storage medium
CN110825622A (en) * 2019-10-16 2020-02-21 中国建设银行股份有限公司 Software testing method, device, equipment and computer readable medium

Non-Patent Citations (6)

* Cited by examiner, † Cited by third party
Title
51TESTING软件测试网: "案例分享,Appium+Python实现APP启动页跳转到首页", 《HTTPS://WWW.163.COM/DY/ARTICLE/EKPM5SFP0511G03U.HTML》 *
古伦: "地图测试初探", 《HTTP://WWW.51TESTING.COM/HTML/14/N-823814.HTML 》 *
小白菜-逗逗: "@软件测试环境搭建的详细流程", 《HTTP://WWW.51TESTING.COM/HTML/14/N-823814.HTML》 *
张伟龙等: "中国建设银行移动金融App自动化测试实践", 《中国金融电脑》 *
王大哥自动化测试: "自动化测试由浅入深", 《HTTPS://WWW.CNBLOGS.COM/KING44/P/11672002.HTML》 *
白羽: "测试工具用例:TestNG实现场景恢复", 《HTTPS://TOOLS.ZHIZUOBIAO.COM/TOOLS-18053100075/》 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112416776A (en) * 2020-11-24 2021-02-26 天津五八到家货运服务有限公司 Selection method and device of operating environment, test equipment and storage medium

Also Published As

Publication number Publication date
CN111625451B (en) 2023-03-21

Similar Documents

Publication Publication Date Title
US11501774B2 (en) Automatically executing operations sequences
CN107924483B (en) Generation and application of generic hypothesis ranking model
CN110674314A (en) Sentence recognition method and device
JP2021131528A (en) User intention recognition method, device, electronic apparatus, computer readable storage media and computer program
CN111488740A (en) Causal relationship judging method and device, electronic equipment and storage medium
CN112652302B (en) Voice control method, device, terminal and storage medium
CN104267922A (en) Information processing method and electronic equipment
CN112133307A (en) Man-machine interaction method and device, electronic equipment and storage medium
CN112506854A (en) Method, device, equipment and medium for storing page template file and generating page
CN111899731A (en) Method, device and equipment for testing stability of voice function and computer storage medium
CN111625451B (en) Initialization method, device, equipment and medium for automatic test environment
CN113495843B (en) Method and apparatus for testing play-up performance of video player
US10013259B2 (en) User initiated data rollback using operating system partitions
CN112652304B (en) Voice interaction method and device of intelligent equipment and electronic equipment
US20140250251A1 (en) Automatically and transparently preserving testing state across sessions
CN111124627B (en) Method and device for determining call initiator of application program, terminal and storage medium
CN114860995B (en) Video script generation method and device, electronic equipment and medium
CN106197394A (en) Air navigation aid and device
CN113179183B (en) Service switch state control device and method
CN115759100A (en) Data processing method, device, equipment and medium
CN114490986A (en) Computer-implemented data mining method, computer-implemented data mining device, electronic device, and storage medium
CN112652311A (en) Chinese and English mixed speech recognition method and device, electronic equipment and storage medium
CN110659089A (en) Boarder application recommendation method, equipment and storage medium
CN113673211A (en) Content tag setting method and device, electronic equipment and storage medium
CN115904899A (en) Operation record generation method, operation record acquisition method, operation record generation device, operation record acquisition device and operation record acquisition 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
GR01 Patent grant
GR01 Patent grant