CN107423218A - Application testing method, device and terminal - Google Patents

Application testing method, device and terminal Download PDF

Info

Publication number
CN107423218A
CN107423218A CN201710595345.XA CN201710595345A CN107423218A CN 107423218 A CN107423218 A CN 107423218A CN 201710595345 A CN201710595345 A CN 201710595345A CN 107423218 A CN107423218 A CN 107423218A
Authority
CN
China
Prior art keywords
application
terminal
virtual
terminals
server
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
CN201710595345.XA
Other languages
Chinese (zh)
Other versions
CN107423218B (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 Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software 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 Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201710595345.XA priority Critical patent/CN107423218B/en
Publication of CN107423218A publication Critical patent/CN107423218A/en
Application granted granted Critical
Publication of CN107423218B publication Critical patent/CN107423218B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3684Test management for test design, e.g. generating new test cases
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45537Provision of facilities of other operating environments, e.g. WINE
    • 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)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Computer And Data Communications (AREA)
  • Test And Diagnosis Of Digital Computers (AREA)

Abstract

The disclosure is directed to a kind of application testing method, device and terminal, wherein, this method includes:The application in the virtual server of terminal is obtained, using the application after being handled for virtual server;Each virtual terminal application being sent respectively in terminal, so that each virtual terminal is installed and tests application;Wherein, virtual terminal is located in terminal, and the terminal configuration attribute of different virtual terminals is different.Go out different terminal types in the terminal device Imitating of an entity, it is no longer necessary to be adapted to out polytype entity terminal, the function of going test to apply, testing cost can be reduced;Also, the function and the page of application are tested and then the application after test are sent into remote server in the virtual terminal in terminal, the code entered without constantly sending application to remote server, development efficiency can be improved.

Description

Application testing method and device and terminal
Technical Field
The present disclosure relates to the field of terminal technologies, and in particular, to an application test method, an application test device, and a terminal.
Background
With the development and popularization of terminal technology, the mobile internet is gradually becoming an important component of the internet. In the mobile internet, a fifth major modification (HTML5, abbreviated as H5) page of the mobile-side application hypertext markup language is provided, and the H5 page can be applied to each application program. Because an application program adopting the H5 page needs to be applied to a mobile terminal, different mobile terminals have different terminal configuration attributes such as screens of pixels, pixel ratios and the like; thus, after the H5 page is developed, it is necessary to test the effect of the application after it is installed in different types of mobile terminals.
In the related technology, the application code can be pushed to the appointed directory of the remote test server in real time through a file receiving interface on the remote test server; and then the mobile terminal accesses the remote test server through the test link, acquires the application in the remote test server, tests the function of the application and displays the page effect of the application.
However, in the related art, the same application needs to be tested on different types of mobile terminals, and then for the same application, multiple types of entity mobile terminals need to be adapted, and after multiple entity mobile terminals are needed to acquire the application, the function of the application is tested to determine whether the application is normal. Thus, a large test cost is required.
Disclosure of Invention
In order to solve the problem that a plurality of entity mobile terminals need to acquire an application and then test whether the function of the application is normal or not and more test cost needs to be consumed in the related technology, the disclosure provides an application test method, an application test device and a terminal.
According to a first aspect of the embodiments of the present disclosure, there is provided an application testing method, including:
acquiring an application in a virtual server of a terminal, wherein the application is processed by the virtual server;
the application is respectively sent to each virtual terminal in the terminals, so that each virtual terminal is installed and tests the application; the virtual terminal is located in the terminal, and different terminal configuration attributes of the virtual terminal are different.
Further, after the application is respectively sent to each virtual terminal in the terminals, so that each virtual terminal installs and tests the application, the method further includes:
obtaining a test result in each virtual terminal, wherein the test result is generated after the virtual terminal tests the application;
when one test result represents that the application is to be changed, updating the application, and determining the updated application as the application to be released; and when all the test result representations do not change the application, determining the application as the application to be issued.
Further, when one test result represents that the application is to be changed, the application is updated, and the updated application is determined to be the application to be released; when all the test result representations do not change the application, after determining that the application is an application to be released, the method further includes:
pushing the application to be published to a remote server so that other terminals can acquire the application to be published from the remote server;
or,
generating an Over the Air Technology (OTA for short) increment upgrade package according to the application to be released; and sending the OTA increment upgrading packet to the remote server so that other terminals can acquire the OTA increment upgrading packet from the remote server.
Further, before the acquiring the application in the virtual server of the terminal, the method further includes:
and constructing at least one virtual terminal, wherein the virtual terminal has the terminal configuration attribute.
Further, before the acquiring the application in the virtual server of the terminal, the method further includes:
compiling the application code, and pushing the compiled application code to the virtual server.
Further, before the acquiring the application in the virtual server of the terminal, the method further includes:
detecting whether application code of the application is updated;
and if the update is determined, acquiring the updated application code, and pushing the updated application code to the virtual server.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: the method comprises the steps that by obtaining an application in a virtual server of a terminal, the application is processed by the virtual server; respectively sending the application to each virtual terminal in the terminals so as to enable each virtual terminal to install and test the application; the virtual terminals are located in the terminals, and the terminal configuration attributes of different virtual terminals are different. The method can simulate a virtual server and a plurality of virtual terminals in one terminal device, and the terminal configuration attributes of each virtual terminal are different; the application in the virtual server may be sent to a plurality of virtual terminals, and the plurality of virtual terminals may test the application in their respective configuration environments. Different terminal types are simulated on the terminal equipment of one entity, and the application testing function is tested without adapting to various entity terminals, so that the testing cost can be reduced; and after the application function and the page are tested in the virtual terminal on the terminal, the tested application is sent to the remote server, so that the application code does not need to be sent to the remote server continuously, and the development efficiency can be improved.
According to a second aspect of the embodiments of the present disclosure, there is provided an application testing apparatus including:
the terminal comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is configured to acquire an application in a virtual server of the terminal, and the application is an application processed by the virtual server;
a sending module configured to send the applications to each of the virtual terminals, so that each of the virtual terminals installs and tests the applications; the virtual terminal is located in the terminal, and different terminal configuration attributes of the virtual terminal are different.
Further, the apparatus further comprises:
a determining module, configured to obtain a test result in each virtual terminal after the sending module sends the application to each virtual terminal in the terminals, so that each virtual terminal installs and tests the application, where the test result is generated after the virtual terminal tests the application; when one test result represents that the application is to be changed, updating the application, and determining the updated application as the application to be released; and when all the test result representations do not change the application, determining the application as the application to be issued.
Further, the apparatus further comprises:
the pushing module is configured to update the application and determine that the updated application is an application to be released if the determining module determines that one test result represents that the application is to be changed, and push the application to be released to a remote server after determining that the application is the application to be released if all the test result represents that the application is not to be changed, so that other terminals acquire the application to be released from the remote server; or generating an OTA increment upgrade package according to the application to be issued, and sending the OTA increment upgrade package to the remote server so that other terminals can acquire the OTA increment upgrade package from the remote server.
Further, the apparatus further comprises:
a construction module configured to construct at least one virtual terminal before the acquisition module acquires an application in a virtual server of the terminal, wherein the virtual terminal has the terminal configuration attribute.
Further, the apparatus further comprises:
the compiling module is configured to compile the application code before the obtaining module obtains the application in the virtual server of the terminal, and push the application code after the compiling process to the virtual server.
Further, the apparatus further comprises:
an updating module configured to detect whether an application code of an application is updated before the obtaining module obtains the application in a virtual server of a terminal; and if the update is determined, acquiring the updated application code, and pushing the updated application code to the virtual server.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: the method comprises the steps that by obtaining an application in a virtual server of a terminal, the application is processed by the virtual server; respectively sending the application to each virtual terminal in the terminals so as to enable each virtual terminal to install and test the application; the virtual terminals are located in the terminals, and the terminal configuration attributes of different virtual terminals are different. The method can simulate a virtual server and a plurality of virtual terminals in one terminal device, and the terminal configuration attributes of each virtual terminal are different; the application in the virtual server may be sent to a plurality of virtual terminals, and the plurality of virtual terminals may test the application in their respective configuration environments. Different terminal types are simulated on the terminal equipment of one entity, and the application testing function is tested without adapting to various entity terminals, so that the testing cost can be reduced; and after the application function and the page are tested in the virtual terminal on the terminal, the tested application is sent to the remote server, so that the application code does not need to be sent to the remote server continuously, and the development efficiency can be improved.
According to a third aspect of the embodiments of the present disclosure, there is provided a terminal, including:
a processor, and a memory for storing processor-executable instructions;
wherein the processor is configured to: acquiring an application in a virtual server of a terminal, wherein the application is processed by the virtual server; the application is respectively sent to each virtual terminal in the terminals, so that each virtual terminal is installed and tests the application; the virtual terminal is located in the terminal, and different terminal configuration attributes of the virtual terminal are different.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: the method comprises the steps that by obtaining an application in a virtual server of a terminal, the application is processed by the virtual server; respectively sending the application to each virtual terminal in the terminals so as to enable each virtual terminal to install and test the application; the virtual terminals are located in the terminals, and the terminal configuration attributes of different virtual terminals are different. The method can simulate a virtual server and a plurality of virtual terminals in one terminal device, and the terminal configuration attributes of each virtual terminal are different; the application in the virtual server may be sent to a plurality of virtual terminals, and the plurality of virtual terminals may test the application in their respective configuration environments. Different terminal types are simulated on the terminal equipment of one entity, and the application testing function is tested without adapting to various entity terminals, so that the testing cost can be reduced; and after the application function and the page are tested in the virtual terminal on the terminal, the tested application is sent to the remote server, so that the application code does not need to be sent to the remote server continuously, and the development efficiency can be improved.
According to a fourth aspect of embodiments of the present disclosure, there is provided a computer program which, when executed by a processor, is operable to perform the method of the first aspect above.
According to a fifth aspect of embodiments of the present disclosure, there is provided a program product, such as a computer-readable storage medium, including the program of the fourth aspect.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
FIG. 1 is a flow diagram illustrating a first embodiment of a method for application testing, according to an illustrative embodiment;
FIG. 2 is a flow diagram illustrating a second embodiment of an application testing method in accordance with an illustrative embodiment;
FIG. 3 is a block diagram of a third embodiment of an application testing apparatus according to an exemplary embodiment;
FIG. 4 is a block diagram illustrating a fourth embodiment of an application testing apparatus in accordance with an illustrative embodiment;
FIG. 5 is a block diagram illustrating entities of a terminal in accordance with an exemplary embodiment;
fig. 6 is a block diagram illustrating a terminal device 800 according to an example embodiment.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the invention, as detailed in the appended claims.
Fig. 1 is a flowchart illustrating a first embodiment of an application testing method according to an exemplary embodiment, where the application testing method is used in a terminal, which may be a personal terminal, a public terminal, or the like, as illustrated in fig. 1, and the method includes the following steps.
In step S11, an application in the virtual server of the terminal is acquired, and the application is an application processed by the virtual server.
In this step, a virtual server is set on a terminal; at least one virtual terminal is arranged on one terminal, and the terminal configuration attributes of each virtual terminal are different, wherein the terminal configuration attributes comprise screen width and height, resolution, screen pixel ratio, a web view (WebView) kernel version and the like.
The virtual terminal may specify a uniform resource Locator (url) of the WebView to access the virtual server, an application in the virtual server, and the like. The virtual server has the same function as the entity server equipment; the virtual terminal has the same function as the entity terminal device, for example, the virtual terminal may adopt a Chrome developer tool to debug the page of the application.
After a virtual server of a terminal debugs, compiles, and the like an application, the application in the virtual server is acquired. Wherein the page in the application is a H5 page.
For example, a plurality of applications to be tested, such as application a, application B, and application C; one application a in the virtual server may be acquired.
In step S12, sending the application to each of the virtual terminals, so that each of the virtual terminals installs and tests the application; the virtual terminal is located in the terminal, and different terminal configuration attributes of the virtual terminal are different.
In this step, the terminal sends the obtained applications to each virtual terminal in the terminal. Then, each virtual terminal respectively installs the application; when the application is installed in the virtual terminal, for system-level applications, the virtual terminal can directly inject an application code into a system level of the virtual terminal, and for third-party applications, the virtual terminal can be directly installed by using an installation Package (Android Package, referred to as apk) provided by the application. Each virtual terminal then tests the application separately. Because the terminal configuration attributes of each virtual terminal in the terminals are different, each virtual terminal respectively installs and tests the same application in respective configuration environments.
For example, 3 virtual terminals are configured in the terminal, which are respectively a virtual terminal 1, a virtual terminal 2, and a virtual terminal 3; the terminal configuration attributes of the 3 virtual terminals are different, for example, the resolution of the virtual terminal 1 is a1 and the screen pixel ratio b1, the resolution of the virtual terminal 2 is a2 and the screen pixel ratio b2, and the resolution of the virtual terminal 3 is a3 and the screen pixel ratio b 3; the terminal respectively sends the same application in the virtual server to the 3 virtual terminals; then, the virtual terminal 1, the virtual terminal 2, and the virtual terminal 3 install the application and test each function of the application, respectively.
In the embodiment, by acquiring the application in the virtual server of the terminal, the application is the application processed by the virtual server; respectively sending the application to each virtual terminal in the terminals so as to enable each virtual terminal to install and test the application; the virtual terminals are located in the terminals, and the terminal configuration attributes of different virtual terminals are different. The method can simulate a virtual server and a plurality of virtual terminals in one terminal device, and the terminal configuration attributes of each virtual terminal are different; the application in the virtual server may be sent to a plurality of virtual terminals, and the plurality of virtual terminals may test the application in their respective configuration environments. Different terminal types are simulated on the terminal equipment of one entity, and the application testing function is tested without adapting to various entity terminals, so that the testing cost can be reduced; and after the application function and the page are tested in the virtual terminal on the terminal, the tested application is sent to the remote server, so that the application code does not need to be sent to the remote server continuously, and the development efficiency can be improved.
Fig. 2 is a flowchart illustrating a second embodiment of an application testing method according to an exemplary embodiment, where as shown in fig. 2, the application testing method is used in a terminal, and the method includes the following steps.
In step S21, at least one virtual terminal is constructed, wherein the virtual terminal has the terminal configuration attribute.
In this step, according to the requirement of the test application, a plurality of virtual terminals are constructed in the terminal, and different virtual terminals have different terminal configuration attributes. Specifically, a virtual terminal can be constructed in the terminal according to the actual requirement and the terminal configuration attribute of the existing entity terminal, and the terminal configuration attribute of the virtual terminal is the same as the terminal configuration attribute of the existing entity terminal; the terminal configuration attributes such as screen width, height, resolution, screen pixel ratio, WebView kernel version and the like in the existing multiple entity terminals can be combined randomly to obtain the adjusted terminal configuration attributes, and the terminal configuration attributes for constructing the virtual terminal are the same as the adjusted terminal configuration attributes.
The terminal configuration attributes comprise screen width and height, resolution, screen pixel ratio, WebView kernel version and the like.
For example, a virtual terminal 1 is constructed, and the screen width and height, the resolution, the screen pixel ratio and the like of the virtual terminal 1 are the same as those of the existing entity terminal 1; or, combining the screen width and height of the existing entity terminal 1, the resolution of the existing entity terminal 2, and the screen pixel ratio of the existing entity terminal 3 to obtain an adjusted terminal configuration attribute, and constructing the virtual terminal 1 according to the adjusted terminal configuration attribute.
In step S22, an application in the virtual server of the terminal is acquired, and the application is an application processed by the virtual server.
In this step, the step may refer to step S11 in fig. 1, and is not described again.
In step S23, sending the application to each of the virtual terminals, so that each of the virtual terminals installs and tests the application; the virtual terminal is located in the terminal, and different terminal configuration attributes of the virtual terminal are different.
In this step, the step may refer to step S12 in fig. 1, and is not described again.
In step S24, obtaining a test result in each of the virtual terminals, where the test result is generated after the virtual terminal tests the application; when one test result represents that the application is to be changed, updating the application, and determining the updated application as the application to be released; and when all the test result representations do not change the application, determining the application as the application to be issued.
In this step, after each of the terminals installs and tests the application, each of the virtual terminals may generate a test result. The terminal obtains a test result generated by each virtual terminal and determines whether each test result represents that the current application needs to be changed; as long as the terminal determines that one test result represents that the current application needs to be changed, the terminal needs to update the application, and then the terminal takes the updated application as the application to be released; if the terminal determines that all the test results represent that the application does not need to be changed, the terminal can determine that the application is the application to be released.
In step S25, the application to be published is pushed to a remote server, so that other terminals obtain the application to be published from the remote server. Or generating an OTA increment upgrade package according to the application to be issued; and sending the OTA increment upgrading packet to the remote server so that other terminals can acquire the OTA increment upgrading packet from the remote server.
In this step, after the terminal completes the testing and debugging of the application on the virtual terminal, the application is pushed into other entity terminals through the synchronization policy. The synchronization strategy comprises a refresh synchronization mode and an OTA synchronization mode.
For the refresh synchronization mode. And the terminal adopts a packaging deployment tool to push the application to be published to a remote server. Then, other entity terminals can access the resources on the remote server to acquire the application, and then the other entity terminals refresh the page of the application and modify the page of the application.
For OTA synchronization mode. If the page of the application is only tested, the page of the application is stored on the terminal in a static resource mode, the terminal can generate an OTA increment upgrading packet according to the page of the application to be issued, and then the terminal sends the OTA increment upgrading packet to a remote server or a designated platform. Then, the other entity terminal can go to a remote server or a designated platform to obtain the OTA increment upgrade package, and the other entity terminal updates the page of the application by installing the OTA increment upgrade package.
In the embodiment, by acquiring the application in the virtual server of the terminal, the application is the application processed by the virtual server; respectively sending the application to each virtual terminal in the terminals so as to enable each virtual terminal to install and test the application; the virtual terminals are located in the terminals, and the terminal configuration attributes of different virtual terminals are different. The method can simulate a virtual server and a plurality of virtual terminals in one terminal device, and the terminal configuration attributes of each virtual terminal are different; the application in the virtual server may be sent to a plurality of virtual terminals, and the plurality of virtual terminals may test the application in their respective configuration environments. Different terminal types are simulated on the terminal equipment of one entity, and the application testing function is tested without adapting to various entity terminals, so that the testing cost can be reduced; and after the application function and the page are tested in the virtual terminal on the terminal, the tested application is sent to the remote server, so that the application code does not need to be sent to the remote server continuously, and the development efficiency can be improved. And providing the refresh synchronization mode and the OTA synchronization mode, and providing the application to be issued for other entity terminals.
On the basis of the second embodiment, before step S22, the method provided by the second embodiment may further include at least one of the following steps:
in step S26, the application code is compiled, and the compiled application code is pushed to the virtual server.
In this step, the terminal may package the application code of the application by using a package deployment tool, and then compile the packaged application code; and then the terminal starts a virtual server of the terminal, and the terminal pushes the application code of the front end to a designated port of the virtual server. And the terminal sends the application code to a virtual server of the terminal.
In step S27, detecting whether the application code of the application is updated; and if the update is determined, acquiring the updated application code, and pushing the updated application code to the virtual server.
In this step, the terminal may detect whether the application code of the application is updated. Specifically, the terminal's packaging deployment tool contains a hot update mechanism; once the application code of the front end is updated, the packaging deployment tool of the terminal may acquire the updated application code and push the updated application code to a designated port of the virtual server of the terminal.
Fig. 3 is a block diagram illustrating a third embodiment of an application testing apparatus according to an exemplary embodiment. Referring to fig. 3, the apparatus includes:
an obtaining module 31, configured to obtain an application in a virtual server of a terminal, where the application is an application processed by the virtual server;
a sending module 32 configured to send the applications to each of the virtual terminals, so that each of the virtual terminals installs and tests the applications; the virtual terminal is located in the terminal, and different terminal configuration attributes of the virtual terminal are different.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
In the embodiment, by acquiring the application in the virtual server of the terminal, the application is the application processed by the virtual server; respectively sending the application to each virtual terminal in the terminals so as to enable each virtual terminal to install and test the application; the virtual terminals are located in the terminals, and the terminal configuration attributes of different virtual terminals are different. The method can simulate a virtual server and a plurality of virtual terminals in one terminal device, and the terminal configuration attributes of each virtual terminal are different; the application in the virtual server may be sent to a plurality of virtual terminals, and the plurality of virtual terminals may test the application in their respective configuration environments. Different terminal types are simulated on the terminal equipment of one entity, and the application testing function is tested without adapting to various entity terminals, so that the testing cost can be reduced; and after the application function and the page are tested in the virtual terminal on the terminal, the tested application is sent to the remote server, so that the application code does not need to be sent to the remote server continuously, and the development efficiency can be improved.
On the basis of the third embodiment, fig. 4 is a block diagram illustrating a fourth embodiment of the application testing apparatus according to an exemplary embodiment. Referring to fig. 4, the apparatus further includes:
a building module 41 configured to build at least one virtual terminal before the obtaining module 31 obtains the application in the virtual server of the terminal, wherein the virtual terminal has the terminal configuration attribute.
The apparatus provided in this embodiment further includes:
a determining module 42, configured to obtain a test result in each of the virtual terminals after the sending module 32 sends the application to each of the virtual terminals, so that each of the virtual terminals installs and tests the application, where the test result is generated after the virtual terminals test the application; when one test result represents that the application is to be changed, updating the application, and determining the updated application as the application to be released; and when all the test result representations do not change the application, determining the application as the application to be issued.
A pushing module 43, configured to update the application and determine that the updated application is an application to be released if the determining module 42 determines that one of the test result representations is to change the application, and push the application to be released to a remote server after determining that the application is the application to be released if all of the test result representations are not to change the application, so that other terminals obtain the application to be released from the remote server; or generating an OTA increment upgrade package according to the application to be issued, and sending the OTA increment upgrade package to the remote server so that other terminals can acquire the OTA increment upgrade package from the remote server.
The apparatus provided in this embodiment further includes at least one of the following modules:
a compiling module configured to compile the application code before the obtaining module 31 obtains the application in the virtual server of the terminal, and push the compiled application code to the virtual server.
An updating module configured to detect whether an application code of an application is updated before the acquiring module 31 acquires the application in a virtual server of a terminal; and if the update is determined, acquiring the updated application code, and pushing the updated application code to the virtual server.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
In the embodiment, by acquiring the application in the virtual server of the terminal, the application is the application processed by the virtual server; respectively sending the application to each virtual terminal in the terminals so as to enable each virtual terminal to install and test the application; the virtual terminals are located in the terminals, and the terminal configuration attributes of different virtual terminals are different. The method can simulate a virtual server and a plurality of virtual terminals in one terminal device, and the terminal configuration attributes of each virtual terminal are different; the application in the virtual server may be sent to a plurality of virtual terminals, and the plurality of virtual terminals may test the application in their respective configuration environments. Different terminal types are simulated on the terminal equipment of one entity, and the application testing function is tested without adapting to various entity terminals, so that the testing cost can be reduced; and after the application function and the page are tested in the virtual terminal on the terminal, the tested application is sent to the remote server, so that the application code does not need to be sent to the remote server continuously, and the development efficiency can be improved. And providing the refresh synchronization mode and the OTA synchronization mode, and providing the application to be issued for other entity terminals.
Fig. 5 is a block diagram illustrating entities of a terminal according to an example embodiment. Referring to fig. 5, the terminal may be embodied as: a processor 51, and a memory 52 configured to store processor-executable instructions;
wherein the processor 51 is configured to: acquiring an application in a virtual server of a terminal, wherein the application is processed by the virtual server; the application is respectively sent to each virtual terminal in the terminals, so that each virtual terminal is installed and tests the application; the virtual terminal is located in the terminal, and different terminal configuration attributes of the virtual terminal are different.
In the above embodiments, it should be understood that the Processor may be a Central Processing Unit (CPU), other general purpose processors, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), etc. The general-purpose processor may be a microprocessor, or the processor may be any conventional processor, and the aforementioned memory may be a read-only memory (ROM), a Random Access Memory (RAM), a flash memory, a hard disk, or a solid state disk. SIM cards, also known as subscriber identity cards, smart cards, must be installed in a digital mobile phone for use. That is, the information of the digital mobile phone client, the encrypted key and the contents of the user's phone book are stored on the computer chip. The steps of a method disclosed in connection with the embodiments of the present invention may be directly implemented by a hardware processor, or may be implemented by a combination of hardware and software modules in the processor.
With regard to the terminal in the above-described embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment related to the method and apparatus, and will not be elaborated herein.
In the embodiment, by acquiring the application in the virtual server of the terminal, the application is the application processed by the virtual server; respectively sending the application to each virtual terminal in the terminals so as to enable each virtual terminal to install and test the application; the virtual terminals are located in the terminals, and the terminal configuration attributes of different virtual terminals are different. The method can simulate a virtual server and a plurality of virtual terminals in one terminal device, and the terminal configuration attributes of each virtual terminal are different; the application in the virtual server may be sent to a plurality of virtual terminals, and the plurality of virtual terminals may test the application in their respective configuration environments. Different terminal types are simulated on the terminal equipment of one entity, and the application testing function is tested without adapting to various entity terminals, so that the testing cost can be reduced; and after the application function and the page are tested in the virtual terminal on the terminal, the tested application is sent to the remote server, so that the application code does not need to be sent to the remote server continuously, and the development efficiency can be improved.
Fig. 6 is a block diagram illustrating a terminal device 800 according to an example embodiment. For example, the terminal device 800 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, and the like.
Referring to fig. 6, terminal device 800 may include one or more of the following components: processing component 802, memory 804, power component 806, multimedia component 808, audio component 810, input/output (I/O) interface 812, sensor component 814, and communication component 816.
The processing component 802 generally controls overall operation of the terminal device 800, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing components 802 may include one or more processors 820 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 802 can include one or more modules that facilitate interaction between the processing component 802 and other components. For example, the processing component 802 can include a multimedia module to facilitate interaction between the multimedia component 808 and the processing component 802.
The memory 804 is configured to store various types of data to support operations at the terminal device 800. Examples of such data include instructions for any application or method operating on terminal device 800, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 804 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
Power components 806 provide power to the various components of terminal device 800. Power components 806 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for terminal device 800.
The multimedia component 808 comprises a screen providing an output interface between the terminal device 800 and a user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 808 includes a front facing camera and/or a rear facing camera. When the terminal device 800 is in an operation mode, such as a shooting mode or a video mode, the front camera and/or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 810 is configured to output and/or input audio signals. For example, the audio component 810 includes a Microphone (MIC) configured to receive an external audio signal when the terminal device 800 is in an operation mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 804 or transmitted via the communication component 816. In some embodiments, audio component 810 also includes a speaker for outputting audio signals.
The I/O interface 812 provides an interface between the processing component 802 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
Sensor component 814 includes one or more sensors for providing various aspects of state assessment for terminal device 800. For example, sensor assembly 814 may detect an open/closed status of terminal device 800, the relative positioning of components, such as a display and keypad of terminal device 800, sensor assembly 814 may also detect a change in the position of terminal device 800 or a component of terminal device 800, the presence or absence of user contact with terminal device 800, orientation or acceleration/deceleration of terminal device 800, and a change in the temperature of terminal device 800. Sensor assembly 814 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
Communication component 816 is configured to facilitate communications between terminal device 800 and other devices in a wired or wireless manner. The terminal device 800 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 816 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the terminal device 800 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer-readable storage medium comprising instructions, such as the memory 804 comprising instructions, executable by the processor 820 of the terminal device 800 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
A non-transitory computer readable storage medium in which instructions, when executed by a processor of a terminal, enable the terminal to perform a method of application testing, the method comprising:
acquiring an application in a virtual server of a terminal, wherein the application is processed by the virtual server;
the application is respectively sent to each virtual terminal in the terminals, so that each virtual terminal is installed and tests the application; the virtual terminal is located in the terminal, and different terminal configuration attributes of the virtual terminal are different.
Other embodiments of the invention will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the invention and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the invention being indicated by the following claims.
It will be understood that the invention is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the invention is limited only by the appended claims.

Claims (14)

1. An application testing method, comprising:
acquiring an application in a virtual server of a terminal, wherein the application is processed by the virtual server;
the application is respectively sent to each virtual terminal in the terminals, so that each virtual terminal is installed and tests the application; the virtual terminal is located in the terminal, and different terminal configuration attributes of the virtual terminal are different.
2. The method according to claim 1, wherein after the application is sent to each of the terminals respectively, so that each virtual terminal installs and tests the application, the method further comprises:
obtaining a test result in each virtual terminal, wherein the test result is generated after the virtual terminal tests the application;
when one test result represents that the application is to be changed, updating the application, and determining the updated application as the application to be released; and when all the test result representations do not change the application, determining the application as the application to be issued.
3. The method according to claim 2, characterized in that when one of the test results characterizes that the application is to be modified, the application is updated and the updated application is determined to be the application to be released; when all the test result representations do not change the application, after determining that the application is an application to be released, the method further includes:
pushing the application to be published to a remote server so that other terminals can acquire the application to be published from the remote server;
or,
generating an OTA (over the air) increment upgrade package according to the application to be issued; and sending the OTA increment upgrading packet to the remote server so that other terminals can acquire the OTA increment upgrading packet from the remote server.
4. The method according to claim 1 or 2, wherein before the obtaining the application in the virtual server of the terminal, further comprising:
and constructing at least one virtual terminal, wherein the virtual terminal has the terminal configuration attribute.
5. The method according to claim 1 or 2, wherein before the obtaining the application in the virtual server of the terminal, further comprising:
compiling the application code, and pushing the compiled application code to the virtual server.
6. The method according to claim 1 or 2, wherein before the obtaining the application in the virtual server of the terminal, further comprising:
detecting whether application code of the application is updated;
and if the update is determined, acquiring the updated application code, and pushing the updated application code to the virtual server.
7. An application testing apparatus, comprising:
the terminal comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is configured to acquire an application in a virtual server of the terminal, and the application is an application processed by the virtual server;
a sending module configured to send the applications to each of the virtual terminals, so that each of the virtual terminals installs and tests the applications; the virtual terminal is located in the terminal, and different terminal configuration attributes of the virtual terminal are different.
8. The apparatus of claim 7, further comprising:
a determining module, configured to obtain a test result in each virtual terminal after the sending module sends the application to each virtual terminal in the terminals, so that each virtual terminal installs and tests the application, where the test result is generated after the virtual terminal tests the application; when one test result represents that the application is to be changed, updating the application, and determining the updated application as the application to be released; and when all the test result representations do not change the application, determining the application as the application to be issued.
9. The apparatus of claim 8, further comprising:
the pushing module is configured to update the application and determine that the updated application is an application to be released if the determining module determines that one test result represents that the application is to be changed, and push the application to be released to a remote server after determining that the application is the application to be released if all the test result represents that the application is not to be changed, so that other terminals acquire the application to be released from the remote server; or generating an OTA increment upgrade package according to the application to be issued, and sending the OTA increment upgrade package to the remote server so that other terminals can acquire the OTA increment upgrade package from the remote server.
10. The apparatus of claim 7 or 8, further comprising:
a construction module configured to construct at least one virtual terminal before the acquisition module acquires an application in a virtual server of the terminal, wherein the virtual terminal has the terminal configuration attribute.
11. The apparatus of claim 7 or 8, further comprising:
the compiling module is configured to compile the application code before the obtaining module obtains the application in the virtual server of the terminal, and push the application code after the compiling process to the virtual server.
12. The apparatus of claim 7 or 8, further comprising:
an updating module configured to detect whether an application code of an application is updated before the obtaining module obtains the application in a virtual server of a terminal; and if the update is determined, acquiring the updated application code, and pushing the updated application code to the virtual server.
13. A terminal, comprising:
a processor, and a memory for storing processor-executable instructions;
wherein the processor is configured to: acquiring an application in a virtual server of a terminal, wherein the application is processed by the virtual server; the application is respectively sent to each virtual terminal in the terminals, so that each virtual terminal is installed and tests the application; the virtual terminal is located in the terminal, and different terminal configuration attributes of the virtual terminal are different.
14. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 6.
CN201710595345.XA 2017-07-20 2017-07-20 Application testing method, device and terminal Active CN107423218B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710595345.XA CN107423218B (en) 2017-07-20 2017-07-20 Application testing method, device and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710595345.XA CN107423218B (en) 2017-07-20 2017-07-20 Application testing method, device and terminal

Publications (2)

Publication Number Publication Date
CN107423218A true CN107423218A (en) 2017-12-01
CN107423218B CN107423218B (en) 2023-05-30

Family

ID=60430625

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710595345.XA Active CN107423218B (en) 2017-07-20 2017-07-20 Application testing method, device and terminal

Country Status (1)

Country Link
CN (1) CN107423218B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108279922A (en) * 2018-01-03 2018-07-13 深圳市泰比特科技有限公司 Differential file generation method, upgrade method and system based on the differential file
CN109634858A (en) * 2018-12-07 2019-04-16 北京小米移动软件有限公司 File test method, device and computer readable storage medium
CN110309068A (en) * 2019-06-18 2019-10-08 平安普惠企业管理有限公司 Test method and relevant device
CN111061526A (en) * 2019-10-12 2020-04-24 平安普惠企业管理有限公司 Automatic testing method and device, computer equipment and storage medium
CN111106975A (en) * 2018-10-26 2020-05-05 中移物联网有限公司 Test method, test equipment and computer readable storage medium

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20100013620A (en) * 2008-07-31 2010-02-10 에스케이 텔레콤주식회사 Terminal function test system and terminal function test method
CN102681942A (en) * 2012-04-21 2012-09-19 北京迈凯互动网络科技有限公司 Testing method and system of mobile application
CN102880532A (en) * 2011-07-13 2013-01-16 财团法人资讯工业策进会 Cloud technology-based test system and method
CN103294514A (en) * 2013-06-26 2013-09-11 深圳Tcl新技术有限公司 System software release integrated method, compiling server and system
CN103686147A (en) * 2013-12-03 2014-03-26 浙江宇视科技有限公司 Method and device for testing cloning of video monitoring simulation terminals
CN104978263A (en) * 2014-04-09 2015-10-14 腾讯科技(深圳)有限公司 Mobile terminal application program test method and mobile terminal application program test system
GB2532076A (en) * 2014-11-10 2016-05-11 Inst Information Ind Backup method, pre-testing method for environment updating and system thereof
CN106126420A (en) * 2016-06-21 2016-11-16 北京小米移动软件有限公司 Application program adjustment method and device
WO2016195648A1 (en) * 2015-05-31 2016-12-08 Hewlett Packard Enterprise Development Lp Testing applications using virtual reality
CN106547688A (en) * 2016-10-19 2017-03-29 厦门市美亚柏科信息股份有限公司 Product automation method of testing and its system based on Windows

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20100013620A (en) * 2008-07-31 2010-02-10 에스케이 텔레콤주식회사 Terminal function test system and terminal function test method
CN102880532A (en) * 2011-07-13 2013-01-16 财团法人资讯工业策进会 Cloud technology-based test system and method
CN102681942A (en) * 2012-04-21 2012-09-19 北京迈凯互动网络科技有限公司 Testing method and system of mobile application
CN103294514A (en) * 2013-06-26 2013-09-11 深圳Tcl新技术有限公司 System software release integrated method, compiling server and system
CN103686147A (en) * 2013-12-03 2014-03-26 浙江宇视科技有限公司 Method and device for testing cloning of video monitoring simulation terminals
CN104978263A (en) * 2014-04-09 2015-10-14 腾讯科技(深圳)有限公司 Mobile terminal application program test method and mobile terminal application program test system
GB2532076A (en) * 2014-11-10 2016-05-11 Inst Information Ind Backup method, pre-testing method for environment updating and system thereof
WO2016195648A1 (en) * 2015-05-31 2016-12-08 Hewlett Packard Enterprise Development Lp Testing applications using virtual reality
CN106126420A (en) * 2016-06-21 2016-11-16 北京小米移动软件有限公司 Application program adjustment method and device
CN106547688A (en) * 2016-10-19 2017-03-29 厦门市美亚柏科信息股份有限公司 Product automation method of testing and its system based on Windows

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
亢娟: "移动终端测试与质量评估体系的研究", 《电视技术》 *
王刚: "基于J2ME的移动电子商务的研究", 《万方》 *

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108279922A (en) * 2018-01-03 2018-07-13 深圳市泰比特科技有限公司 Differential file generation method, upgrade method and system based on the differential file
CN111106975A (en) * 2018-10-26 2020-05-05 中移物联网有限公司 Test method, test equipment and computer readable storage medium
CN111106975B (en) * 2018-10-26 2022-08-12 中移物联网有限公司 Test method, test equipment and computer readable storage medium
CN109634858A (en) * 2018-12-07 2019-04-16 北京小米移动软件有限公司 File test method, device and computer readable storage medium
CN110309068A (en) * 2019-06-18 2019-10-08 平安普惠企业管理有限公司 Test method and relevant device
CN111061526A (en) * 2019-10-12 2020-04-24 平安普惠企业管理有限公司 Automatic testing method and device, computer equipment and storage medium
CN111061526B (en) * 2019-10-12 2023-12-01 天航长鹰(江苏)科技有限公司 Automatic test method, device, computer equipment and storage medium

Also Published As

Publication number Publication date
CN107423218B (en) 2023-05-30

Similar Documents

Publication Publication Date Title
CN109032606B (en) Native application compiling method and device and terminal
CN107423218B (en) Application testing method, device and terminal
EP2998899A1 (en) Method and apparatus for running application program
CN111221559B (en) Application updating method, device, storage medium, terminal and server
US9870239B2 (en) Method and device for running application program
CN104951336A (en) Application program installation method and device
CN105808305B (en) Static resource loading method and device
CN104052796A (en) Plug-in processing method, device, system and terminal
CN104536891A (en) Method and device for testing system
CN111222014B (en) Request processing method, request processing device, electronic equipment and storage medium
CN104881304B (en) Resource downloading method and device
CN106598677A (en) Installation package downloading method and device
CN106775903B (en) Security policy file updating method and device
CN109117144B (en) Page processing method, device, terminal and storage medium
CN111198706A (en) Method for updating system function, apparatus for updating system function and storage medium
CN110781080A (en) Program debugging method and device and storage medium
CN107911482B (en) Target application opening method and device
CN115185717A (en) Interface calling method and device, electronic equipment and storage medium
CN110795354A (en) Information processing method, device and storage medium
CN111338961B (en) Application debugging method and device, electronic equipment and storage medium
CN106293683B (en) Project compiling method and device
CN107861666B (en) Desktop application installation method and device
CN113407879B (en) Data reporting method, device and readable medium
CN112214252B (en) Information expansion method and device and electronic equipment
CN107193622B (en) Code compiling processing method and device and terminal

Legal Events

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