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

Application testing method, device and terminal Download PDF

Info

Publication number
CN107423218B
CN107423218B CN201710595345.XA CN201710595345A CN107423218B CN 107423218 B CN107423218 B CN 107423218B CN 201710595345 A CN201710595345 A CN 201710595345A CN 107423218 B CN107423218 B CN 107423218B
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.)
Active
Application number
CN201710595345.XA
Other languages
Chinese (zh)
Other versions
CN107423218A (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

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • 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 relates to an application testing method, an application testing device and a terminal, wherein the method comprises the following steps: acquiring an application in a virtual server of a terminal, wherein the application is an application processed by the virtual server; the application is respectively sent to each virtual terminal in the terminals, so that each virtual terminal installs and tests the application; the virtual terminals are located in the terminals, and terminal configuration attributes of different virtual terminals are different. Different terminal types are simulated under the terminal equipment of one entity, so that multiple types of entity terminals are not required to be adapted to test the application function, and the test cost can be reduced; and after testing the functions and pages of the application in the virtual terminal on the terminal, the tested application is sent to the remote server, so that the code of the application is not required to be continuously sent to the remote server, and the development efficiency can be improved.

Description

Application testing method, device and terminal
Technical Field
The disclosure relates to the technical field of terminals, and in particular relates to an application testing method, an application testing device and a terminal.
Background
With the development and popularization of terminal technology, the mobile internet is becoming an important component of the internet. In the mobile internet, a fifth significant modification (HTML 5, abbreviated as H5) page of the mobile terminal, to which the hypertext markup language is applied, is provided, and the H5 page can be applied to each application program. Because the application program using the H5 page needs to be applied to the mobile terminal, different mobile terminals have different screen of pixels, pixel ratio and other terminal configuration attributes; thus, after developing the H5 page, it is necessary to test the effect after the application is installed to a different type of mobile terminal.
In the related art, an application code can be pushed to a specified directory of a remote test server in real time through a receiving file 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, so that multiple types of entity mobile terminals need to be adapted for the same application, and after the multiple entity mobile terminals are required to acquire the application, whether the function of the application is normal is tested. Thus, it is necessary to consume a lot of test cost.
Disclosure of Invention
In order to solve the problem that a plurality of entity mobile terminals are required to acquire applications in the related art and then test whether the functions of the applications are normal or not, and more test cost is required to be consumed, the disclosure provides an application test method, an application test device and an application test terminal.
According to a first aspect of 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 an application processed by the virtual server;
The application is respectively sent to each virtual terminal in the terminals, so that each virtual terminal installs and tests the application; the virtual terminals are located in the terminals, and terminal configuration attributes of different virtual terminals are different.
Further, after the application is sent to each virtual terminal in 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 representation is to change the application, the application is updated, and the updated application is determined to be the application to be released; and when all the test result characterizations do not change the application, determining the application as the application to be distributed.
Further, when one of the test result characterizations is to change the application, the application is updated, and the updated application is determined to be the application to be released; when all the test result characterizations do not change the application, determining that the application is the application to be published further comprises:
Pushing the application to be distributed to a remote server so that other terminals acquire the application to be distributed from the remote server;
or alternatively, the process may be performed,
generating an over-the-air technology (Over the Air Technology, OTA for short) incremental upgrade package according to the application to be distributed; and sending the OTA incremental upgrade package to the remote server so that other terminals acquire the OTA incremental upgrade package from the remote server.
Further, before the acquiring the application in the virtual server of the terminal, the method further includes:
at least one virtual terminal is constructed, 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:
and 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 updated application code 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 comprise the following beneficial effects: the method comprises the steps that an application in a virtual server of a terminal is obtained, wherein the application is an application processed by the virtual server; the application is respectively sent to each virtual terminal in the terminals, so that each virtual terminal installs and tests the application; the virtual terminals are located in the terminals, and terminal configuration attributes of different virtual terminals are different. A virtual server and a plurality of virtual terminals can be simulated in one terminal device, and the terminal configuration attribute of each virtual terminal is different; the application in the virtual server may be sent to a plurality of virtual terminals, which test the application in their respective configuration environments, respectively. Different terminal types are simulated under the terminal equipment of one entity, so that multiple types of entity terminals are not required to be adapted to test the application function, and the test cost can be reduced; and after testing the functions and pages of the application in the virtual terminal on the terminal, the tested application is sent to the remote server, so that the code of the application is not required to be continuously sent to the remote server, and the development efficiency can be improved.
According to a second aspect of embodiments of the present disclosure, there is provided an application testing apparatus, comprising:
the acquisition module is configured to acquire an application in a virtual server of the terminal, wherein the application is an application processed by the virtual server;
a transmitting module configured to transmit the applications to respective virtual terminals among the terminals, respectively, so that each of the virtual terminals installs and tests the applications; the virtual terminals are located in the terminals, and terminal configuration attributes of different virtual terminals are different.
Further, the apparatus further comprises:
the determining module is configured to obtain a test result in each virtual terminal after the sending module sends the application to each virtual terminal in the terminals respectively so that each virtual terminal installs and tests the application, wherein the test result is generated after the virtual terminal tests the application; when one test result representation is to change the application, the application is updated, and the updated application is determined to be the application to be released; and when all the test result characterizations do not change the application, determining the application as the application to be distributed.
Further, the apparatus further comprises:
the pushing module is configured to update the application and determine that the updated application is to be released if one of the test result characterizations is determined to be changed by the determining module, and push the application to be released to a remote server after determining that the application is to be released if all the test result characterizations are determined not to be changed by the determining module, so that other terminals acquire the application to be released from the remote server; or generating an OTA incremental upgrade package according to the application to be distributed, and sending the OTA incremental upgrade package to the remote server so that other terminals can acquire the OTA incremental upgrade package from the remote server.
Further, the apparatus further comprises:
and the construction module is configured to construct at least one virtual terminal before the acquisition module acquires the application in the 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 application codes before the acquiring module acquires the application in the virtual server of the terminal, and push the compiled application codes 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 acquiring module acquires the application in a virtual server of a terminal; and if the updated application code 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 comprise the following beneficial effects: the method comprises the steps that an application in a virtual server of a terminal is obtained, wherein the application is an application processed by the virtual server; the application is respectively sent to each virtual terminal in the terminals, so that each virtual terminal installs and tests the application; the virtual terminals are located in the terminals, and terminal configuration attributes of different virtual terminals are different. A virtual server and a plurality of virtual terminals can be simulated in one terminal device, and the terminal configuration attribute of each virtual terminal is different; the application in the virtual server may be sent to a plurality of virtual terminals, which test the application in their respective configuration environments, respectively. Different terminal types are simulated under the terminal equipment of one entity, so that multiple types of entity terminals are not required to be adapted to test the application function, and the test cost can be reduced; and after testing the functions and pages of the application in the virtual terminal on the terminal, the tested application is sent to the remote server, so that the code of the application is not required to be continuously sent to the remote server, and the development efficiency can be improved.
According to a third aspect of embodiments of the present disclosure, there is provided 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 an application processed by the virtual server; the application is respectively sent to each virtual terminal in the terminals, so that each virtual terminal installs and tests the application; the virtual terminals are located in the terminals, and terminal configuration attributes of different virtual terminals are different.
The technical scheme provided by the embodiment of the disclosure can comprise the following beneficial effects: the method comprises the steps that an application in a virtual server of a terminal is obtained, wherein the application is an application processed by the virtual server; the application is respectively sent to each virtual terminal in the terminals, so that each virtual terminal installs and tests the application; the virtual terminals are located in the terminals, and terminal configuration attributes of different virtual terminals are different. A virtual server and a plurality of virtual terminals can be simulated in one terminal device, and the terminal configuration attribute of each virtual terminal is different; the application in the virtual server may be sent to a plurality of virtual terminals, which test the application in their respective configuration environments, respectively. Different terminal types are simulated under the terminal equipment of one entity, so that multiple types of entity terminals are not required to be adapted to test the application function, and the test cost can be reduced; and after testing the functions and pages of the application in the virtual terminal on the terminal, the tested application is sent to the remote server, so that the code of the application is not required to be continuously sent to the remote server, and the development efficiency can be improved.
According to a fourth aspect of embodiments of the present disclosure, there is provided a computer program for performing the method of the first aspect above when being executed by a processor.
According to a fifth aspect of embodiments of the present disclosure, there is provided a program product, such as a computer readable storage medium, comprising 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 chart illustrating an embodiment one of an application test method according to an exemplary embodiment;
FIG. 2 is a flow chart illustrating a second embodiment of an application test method according to an exemplary embodiment;
FIG. 3 is a block diagram of a third embodiment of an application testing apparatus, shown in accordance with an exemplary embodiment;
FIG. 4 is a block diagram of a fourth embodiment of an application testing apparatus, shown in accordance with an exemplary embodiment;
FIG. 5 is a block diagram illustrating the entities of a terminal according to an exemplary embodiment;
Fig. 6 is a block diagram illustrating a terminal device 800 according to an exemplary embodiment.
Detailed Description
Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The implementations described in the following exemplary examples do not represent all implementations consistent with the invention. Rather, they are merely examples of apparatus and methods consistent with aspects of the invention as detailed in the accompanying claims.
Fig. 1 is a flowchart of an embodiment one of an application testing method according to an exemplary embodiment, and as shown in fig. 1, the application testing method is used in a terminal, which may be a personal terminal, a public terminal, or the like, and the method includes the following steps.
In step S11, an application in a virtual server of a terminal is acquired, the application being an application after processing by the virtual server.
In this step, a virtual server is set on a terminal; and at least one virtual terminal is arranged on one terminal, and the terminal configuration attribute of each virtual terminal is different, wherein the terminal configuration attribute comprises screen width and height, resolution, screen pixel ratio, web view (WebView) kernel version and the like.
The virtual terminal may specify a uniform resource locator (Uniform Resource Locator, url) for WebView to access the virtual server, and applications in the virtual server, etc. The virtual server has the same function as the entity server device; the virtual terminal has the same function as the physical terminal device, for example, the virtual terminal may use a Chrome developer tool to debug the page of the application.
After a virtual server of a terminal performs debugging, compiling, and the like on an application, the application in the virtual server is acquired. Wherein the page in the application is an H5 page.
For example, a plurality of applications to be tested, such as application a, application B, application C, may be included in the virtual server of the terminal; an application a in the virtual server may be obtained.
In step S12, the application is sent to each virtual terminal in the terminals, so that each virtual terminal installs and tests the application; the virtual terminals are located in the terminals, and terminal configuration attributes of different virtual terminals are different.
In this step, the terminal transmits the acquired application to each virtual terminal in the terminals, respectively. Then, each virtual terminal installs the application respectively; when the virtual terminal installs the application, for the system-level application, the virtual terminal can directly inject the code of the application into the system level of the virtual terminal, and for the third-party application, the virtual terminal can directly install by using an installation Package (apk) provided by the application. Each virtual terminal then tests the application separately. Because the terminal configuration attribute of each virtual terminal in the terminals is different, each virtual terminal respectively installs and tests the same application in respective configuration environments.
For example, 3 virtual terminals, namely virtual terminal 1, virtual terminal 2 and virtual terminal 3, are configured in the terminal; the terminal configuration attribute of each of the 3 virtual terminals is different, for example, the resolution of the virtual terminal 1 is a1, the screen pixel ratio b1, the resolution of the virtual terminal 2 is a2, the screen pixel ratio b2, the resolution of the virtual terminal 3 is a3, the screen pixel ratio b3; the terminal sends the same application in the virtual server to the 3 virtual terminals respectively; then, the virtual terminal 1, the virtual terminal 2, and the virtual terminal 3 install the application and test the functions of the application, respectively.
In the embodiment, by acquiring an application in a virtual server of a terminal, the application is an application processed by the virtual server; the application is respectively sent to each virtual terminal in the terminals, so that each virtual terminal installs and tests the application; the virtual terminals are located in the terminals, and terminal configuration attributes of different virtual terminals are different. A virtual server and a plurality of virtual terminals can be simulated in one terminal device, and the terminal configuration attribute of each virtual terminal is different; the application in the virtual server may be sent to a plurality of virtual terminals, which test the application in their respective configuration environments, respectively. Different terminal types are simulated under the terminal equipment of one entity, so that multiple types of entity terminals are not required to be adapted to test the application function, and the test cost can be reduced; and after testing the functions and pages of the application in the virtual terminal on the terminal, the tested application is sent to the remote server, so that the code of the application is not required to be continuously sent to the remote server, and the development efficiency can be improved.
Fig. 2 is a flowchart of an embodiment two of an application test method according to an exemplary embodiment, and as shown in fig. 2, the application test 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, a plurality of virtual terminals are constructed in the terminal according to the requirements of the test application, and different virtual terminals have different terminal configuration attributes. Specifically, according to actual requirements, a virtual terminal is constructed in the terminal according to the terminal configuration attribute of the existing entity terminal, wherein 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, resolution, screen pixel ratio, webView kernel version and the like in the existing various entity terminals can be arbitrarily combined to obtain the adjusted terminal configuration attributes, and the terminal configuration attributes of the virtual terminal are constructed to be the same as the adjusted terminal configuration attributes.
The terminal configuration attributes include, among others, screen width height, resolution, screen pixel ratio, webView kernel version, etc.
For example, the virtual terminal 1 is constructed, and the screen width height, resolution, screen pixel ratio, and the like of the virtual terminal 1 are the same as those of the existing physical terminal 1; or, 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 are combined to obtain the adjusted terminal configuration attribute, and the virtual terminal 1 is constructed according to the adjusted terminal configuration attribute.
In step S22, an application in a virtual server of a terminal is acquired, the application being an application after processing by the virtual server.
In this step, the step may refer to step S11 in fig. 1, and will not be described in detail.
In step S23, the application is transmitted to each of the virtual terminals, so that each of the virtual terminals installs and tests the application; the virtual terminals are located in the terminals, and terminal configuration attributes of different virtual terminals are different.
In this step, the step may refer to step S12 in fig. 1, and will not be described in detail.
In step S24, a test result in each virtual terminal is obtained, where the test result is generated after the virtual terminal tests the application; when one test result representation is to change the application, the application is updated, and the updated application is determined to be the application to be released; and when all the test result characterizations do not change the application, determining the application as the application to be distributed.
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 acquires test results generated by each virtual terminal and determines whether each test result represents that the current application needs to be changed; the terminal only needs to confirm that one test result characterization needs to change the current application, 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 indicate that the application does not need to be changed, the terminal can determine that the application is the application to be issued.
In step S25, the application to be distributed is pushed to a remote server, so that other terminals acquire the application to be distributed from the remote server. Or generating an OTA increment upgrade package according to the application to be distributed; and sending the OTA incremental upgrade package to the remote server so that other terminals acquire the OTA incremental upgrade package from the remote server.
In this step, after the terminal completes testing and debugging of the application on the virtual terminal, the application is pushed into other entity terminals through the synchronization policy. The synchronization policy includes a refresh synchronization mode and an OTA synchronization mode.
For refresh synchronization mode. And the terminal pushes the application to be released to a remote server by adopting a packaging deployment tool. Then, other entity terminals can access the resources on the remote server, further acquire the application, and then the other entity terminals refresh the page of the application, and modify the page of the application.
For the OTA synchronization approach. If only the page of the application is tested, the page of the application is stored on the terminal in a static resource mode, the terminal can generate an OTA increment upgrade package according to the page of the application to be issued, and then the terminal sends the OTA increment upgrade package to a remote server or a designated platform. And then, other entity terminals can go to a remote server or a designated platform to acquire the OTA increment upgrade package, and the other entity terminals update the page of the application by installing the OTA increment upgrade package.
In the embodiment, by acquiring an application in a virtual server of a terminal, the application is an application processed by the virtual server; the application is respectively sent to each virtual terminal in the terminals, so that each virtual terminal installs and tests the application; the virtual terminals are located in the terminals, and terminal configuration attributes of different virtual terminals are different. A virtual server and a plurality of virtual terminals can be simulated in one terminal device, and the terminal configuration attribute of each virtual terminal is different; the application in the virtual server may be sent to a plurality of virtual terminals, which test the application in their respective configuration environments, respectively. Different terminal types are simulated under the terminal equipment of one entity, so that multiple types of entity terminals are not required to be adapted to test the application function, and the test cost can be reduced; and after testing the functions and pages of the application in the virtual terminal on the terminal, the tested application is sent to the remote server, so that the code of the application is not required to be continuously sent to the remote server, and the development efficiency can be improved. And providing the application to be published for other entity terminals for the refresh synchronization mode and the OTA synchronization mode.
On the basis of the second embodiment, the method provided in the second embodiment may further include at least one of the following steps before step S22:
in step S26, compiling the application code, and pushing the compiled application code to the virtual server.
In the step, the terminal can adopt a packing deployment tool to pack the application codes of the application, and then compile the packed application codes; 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 the virtual server of the terminal.
In step S27, it is detected whether the application code of the application is updated; and if the updated application code 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 package deployment tool of the terminal comprises a hot update mechanism; once the application code of the front end is updated, the package deployment tool of the terminal may obtain the updated application code and push the updated application code to the 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 acquiring module 31 configured to acquire an application in a virtual server of a terminal, the application being an application after processing by the virtual server;
a transmitting module 32 configured to transmit the applications to respective virtual terminals among the terminals, respectively, so that each of the virtual terminals installs and tests the applications; the virtual terminals are located in the terminals, and terminal configuration attributes of different virtual terminals are different.
The specific manner in which the various modules perform the operations in the apparatus of the above embodiments have been described in detail in connection with the embodiments of the method, and will not be described in detail herein.
In the embodiment, by acquiring an application in a virtual server of a terminal, the application is an application processed by the virtual server; the application is respectively sent to each virtual terminal in the terminals, so that each virtual terminal installs and tests the application; the virtual terminals are located in the terminals, and terminal configuration attributes of different virtual terminals are different. A virtual server and a plurality of virtual terminals can be simulated in one terminal device, and the terminal configuration attribute of each virtual terminal is different; the application in the virtual server may be sent to a plurality of virtual terminals, which test the application in their respective configuration environments, respectively. Different terminal types are simulated under the terminal equipment of one entity, so that multiple types of entity terminals are not required to be adapted to test the application function, and the test cost can be reduced; and after testing the functions and pages of the application in the virtual terminal on the terminal, the tested application is sent to the remote server, so that the code of the application is not required to be continuously sent to the remote server, and the development efficiency can be improved.
On the basis of the third embodiment described above, fig. 4 is a block diagram of a fourth embodiment of an application test apparatus according to an exemplary embodiment. Referring to fig. 4, the apparatus further includes:
a construction module 41 configured to construct at least one virtual terminal, wherein the virtual terminal has the terminal configuration attribute, before the acquisition module 31 acquires the application in the virtual server of the terminal.
The device 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, respectively, so that each virtual terminal installs and tests the application, the test result being generated after the virtual terminal tests the application; when one test result representation is to change the application, the application is updated, and the updated application is determined to be the application to be released; and when all the test result characterizations do not change the application, determining the application as the application to be distributed.
A pushing module 43, configured to update the application and determine that the updated application is an application to be published if it is determined that one of the test result characterizations is to be changed by the determining module 42, and push the application to be published to a remote server after determining that the application is an application to be published if it is determined that all of the test result characterizations are not to be changed by the application, so that other terminals acquire the application to be published from the remote server; or generating an OTA incremental upgrade package according to the application to be distributed, and sending the OTA incremental upgrade package to the remote server so that other terminals can acquire the OTA incremental upgrade package from the remote server.
The device provided in this embodiment further includes at least one of the following modules:
and the compiling module is configured to compile the application code before the acquiring module 31 acquires 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 updated application code is determined, acquiring the updated application code, and pushing the updated application code to the virtual server.
The specific manner in which the various modules perform the operations in the apparatus of the above embodiments have been described in detail in connection with the embodiments of the method, and will not be described in detail herein.
In the embodiment, by acquiring an application in a virtual server of a terminal, the application is an application processed by the virtual server; the application is respectively sent to each virtual terminal in the terminals, so that each virtual terminal installs and tests the application; the virtual terminals are located in the terminals, and terminal configuration attributes of different virtual terminals are different. A virtual server and a plurality of virtual terminals can be simulated in one terminal device, and the terminal configuration attribute of each virtual terminal is different; the application in the virtual server may be sent to a plurality of virtual terminals, which test the application in their respective configuration environments, respectively. Different terminal types are simulated under the terminal equipment of one entity, so that multiple types of entity terminals are not required to be adapted to test the application function, and the test cost can be reduced; and after testing the functions and pages of the application in the virtual terminal on the terminal, the tested application is sent to the remote server, so that the code of the application is not required to be continuously sent to the remote server, and the development efficiency can be improved. And providing the application to be published for other entity terminals for the refresh synchronization mode and the OTA synchronization mode.
Fig. 5 is a block diagram illustrating an entity of a terminal according to an exemplary 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 an application processed by the virtual server; the application is respectively sent to each virtual terminal in the terminals, so that each virtual terminal installs and tests the application; the virtual terminals are located in the terminals, and terminal configuration attributes of different virtual terminals are different.
In the above embodiment, it should be understood that the processor may be a central processing unit (english: central Processing Unit, abbreviated as CPU), or may be other general purpose processors, digital signal processors (english: digital Signal Processor, abbreviated as DSP), application specific integrated circuits (english: application Specific Integrated Circuit, abbreviated as ASIC), or the like. A general-purpose processor may be a microprocessor or the processor may be any conventional processor, etc., and the aforementioned memory may be a read-only memory (ROM), a random access memory (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, have to be used with digital mobile phones. Namely, the information of the digital mobile phone client, the encrypted key, the telephone directory of the user and the like are stored on the computer chip. The steps of a method disclosed in connection with the embodiments of the present invention may be embodied directly in a hardware processor for execution, or in a combination of hardware and software modules in the processor for execution.
The specific manner in which the respective modules perform the operations in the terminal in the above embodiments has been described in detail in the embodiments related to the method and apparatus, and will not be described in detail herein.
In the embodiment, by acquiring an application in a virtual server of a terminal, the application is an application processed by the virtual server; the application is respectively sent to each virtual terminal in the terminals, so that each virtual terminal installs and tests the application; the virtual terminals are located in the terminals, and terminal configuration attributes of different virtual terminals are different. A virtual server and a plurality of virtual terminals can be simulated in one terminal device, and the terminal configuration attribute of each virtual terminal is different; the application in the virtual server may be sent to a plurality of virtual terminals, which test the application in their respective configuration environments, respectively. Different terminal types are simulated under the terminal equipment of one entity, so that multiple types of entity terminals are not required to be adapted to test the application function, and the test cost can be reduced; and after testing the functions and pages of the application in the virtual terminal on the terminal, the tested application is sent to the remote server, so that the code of the application is not required to be continuously sent to the remote server, and the development efficiency can be improved.
Fig. 6 is a block diagram illustrating a terminal device 800 according to an exemplary 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, an exercise device, a personal digital assistant, or the like.
Referring to fig. 6, a terminal device 800 may include one or more of the following components: a processing component 802, a memory 804, a power component 806, a multimedia component 808, an audio component 810, an input/output (I/O) interface 812, a sensor component 814, and a 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 component 802 may include one or more processors 820 to execute instructions to perform all or part of the steps of the methods described above. Further, the processing component 802 can include one or more modules that facilitate interactions 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, video, and the like. The memory 804 may be implemented by any type or combination of volatile or nonvolatile 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 disk.
The power supply component 806 provides power to the various components of the terminal device 800. The 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 the terminal device 800.
The multimedia component 808 includes a screen between the terminal device 800 and the user that provides an output interface. 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 input signals from a user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensor may sense not only the boundary of a touch or slide action, but also the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 808 includes a front camera and/or a rear camera. The front camera and/or the rear camera may receive external multimedia data when the terminal device 800 is in an operation mode, such as a photographing mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have focal length and optical zoom capabilities.
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 external audio signals when the terminal device 800 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may be further stored in the memory 804 or transmitted via the communication component 816. In some embodiments, audio component 810 further 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 a keyboard, click wheel, buttons, etc. These buttons may include, but are not limited to: homepage button, volume button, start button, and lock button.
The sensor assembly 814 includes one or more sensors for providing status assessment of various aspects of the terminal device 800. For example, the sensor assembly 814 may detect an on/off state of the terminal device 800, a relative positioning of the components, such as a display and keypad of the terminal device 800, the sensor assembly 814 may also detect a change in position of the terminal device 800 or a component of the terminal device 800, the presence or absence of a user's contact with the terminal device 800, an orientation or acceleration/deceleration of the terminal device 800, and a change in temperature of the terminal device 800. The sensor assembly 814 may include a proximity sensor configured to detect the presence of nearby objects 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 gyroscopic sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 816 is configured to facilitate communication between the terminal device 800 and other devices, either wired or wireless. 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 one exemplary embodiment, the communication component 816 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In one 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 can 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, microcontrollers, microprocessors, or other electronic elements for executing the methods described above.
In an exemplary embodiment, a non-transitory computer readable storage medium is also provided, such as memory 804 including instructions executable by processor 820 of terminal device 800 to perform the above-described method. For example, the non-transitory computer readable storage medium may be ROM, random Access Memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, etc.
A non-transitory computer readable storage medium, which when executed by a processor of a terminal, causes the terminal to perform an application testing method, the method comprising:
acquiring an application in a virtual server of a terminal, wherein the application is an application processed by the virtual server;
the application is respectively sent to each virtual terminal in the terminals, so that each virtual terminal installs and tests the application; the virtual terminals are located in the terminals, and terminal configuration attributes of different virtual terminals 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 is to be understood that the invention is not limited to the precise arrangements and instrumentalities shown in the drawings, which have been described above, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the invention is limited only by the appended claims.

Claims (8)

1. An application testing method, comprising:
acquiring an application in a virtual server of a terminal, wherein the application is an application processed by the virtual server;
the application is respectively sent to each virtual terminal in the terminals, so that each virtual terminal installs and tests the application; the virtual terminals are located in the terminals, and terminal configuration attributes of different virtual terminals are different; when the virtual terminal installs the application, for a system-level application, the virtual terminal injects the code of the application into the system level of the virtual terminal, and for a third-party application, the virtual terminal installs by using an installation package provided by the application;
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 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 representation is to change the application, the application is updated, and the updated application is determined to be the application to be released; when all the test result characterizations do not change the application, determining the application as an application to be distributed;
The virtual terminal is used for respectively installing and testing the application;
before the acquiring the application in the virtual server of the terminal, the method further comprises:
detecting whether application code of the application is updated;
if the updated application code is determined, acquiring the updated application code, and pushing the updated application code to the virtual server;
after determining that the application is the application to be published, the method further comprises:
pushing the application to be distributed to a remote server so that other terminals acquire the application to be distributed from the remote server;
or alternatively, the process may be performed,
generating an over-the-air technology OTA incremental upgrade package according to the application to be distributed; and sending the OTA incremental upgrade package to the remote server so that other terminals acquire the OTA incremental upgrade package from the remote server.
2. The method according to claim 1, further comprising, prior to said acquiring the application in the virtual server of the terminal:
at least one virtual terminal is constructed, wherein the virtual terminal has the terminal configuration attribute.
3. The method according to claim 1, further comprising, prior to said acquiring the application in the virtual server of the terminal:
And compiling the application code, and pushing the compiled application code to the virtual server.
4. An application testing apparatus, comprising:
the acquisition module is configured to acquire an application in a virtual server of the terminal, wherein the application is an application processed by the virtual server;
a transmitting module configured to transmit the applications to respective virtual terminals among the terminals, respectively, so that each of the virtual terminals installs and tests the applications; the virtual terminals are located in the terminals, and terminal configuration attributes of different virtual terminals are different; when the virtual terminal installs the application, for a system-level application, the virtual terminal injects the code of the application into the system level of the virtual terminal, and for a third-party application, the virtual terminal installs by using an installation package provided by the application;
the determining module is configured to obtain a test result in each virtual terminal after the sending module sends the application to each virtual terminal in the terminals respectively so that each virtual terminal installs and tests the application, wherein the test result is generated after the virtual terminal tests the application; when one test result representation is to change the application, the application is updated, and the updated application is determined to be the application to be released; when all the test result characterizations do not change the application, determining the application as an application to be distributed; the virtual terminal is used for respectively installing and testing the application;
An updating module configured to detect whether an application code of an application is updated before the acquiring module acquires the application in a virtual server of a terminal; if the updated application code is determined, acquiring the updated application code, and pushing the updated application code to the virtual server;
the pushing module is configured to update the application and determine that the updated application is to be released if one of the test result characterizations is determined to be changed by the determining module, and push the application to be released to a remote server after determining that the application is to be released if all the test result characterizations are determined not to be changed by the determining module, so that other terminals acquire the application to be released from the remote server; or generating an OTA incremental upgrade package according to the application to be distributed, and sending the OTA incremental upgrade package to the remote server so that other terminals can acquire the OTA incremental upgrade package from the remote server.
5. The apparatus of claim 4, wherein the apparatus further comprises:
and the construction module is configured to construct at least one virtual terminal before the acquisition module acquires the application in the virtual server of the terminal, wherein the virtual terminal has the terminal configuration attribute.
6. The apparatus of claim 4, wherein the apparatus further comprises:
the compiling module is configured to compile application codes before the acquiring module acquires the application in the virtual server of the terminal, and push the compiled application codes to the virtual server.
7. 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 an application processed by the virtual server; the application is respectively sent to each virtual terminal in the terminals, so that each virtual terminal installs and tests the application; the virtual terminals are located in the terminals, and terminal configuration attributes of different virtual terminals are different; the virtual terminal is used for respectively installing and testing the application;
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 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 representation is to change the application, the application is updated, and the updated application is determined to be the application to be released; when all the test result characterizations do not change the application, determining the application as an application to be distributed;
the virtual terminal is used for respectively installing and testing the application;
before the acquiring the application in the virtual server of the terminal, the method further comprises:
detecting whether application code of the application is updated;
if the updated application code is determined, acquiring the updated application code, and pushing the updated application code to the virtual server;
after determining that the application is the application to be published, the method further comprises:
pushing the application to be distributed to a remote server so that other terminals acquire the application to be distributed from the remote server;
or alternatively, the process may be performed,
generating an over-the-air technology OTA incremental upgrade package according to the application to be distributed; and sending the OTA incremental upgrade package to the remote server so that other terminals acquire the OTA incremental upgrade package from the remote server.
8. A computer readable storage medium, on which a computer program is stored, characterized in that the program, when being executed by a processor, implements the steps of the method according to any of claims 1-3.
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 CN107423218A (en) 2017-12-01
CN107423218B true 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)

Families Citing this family (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
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
CN111061526B (en) * 2019-10-12 2023-12-01 天航长鹰(江苏)科技有限公司 Automatic test method, device, computer equipment and storage medium

Citations (6)

* 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
CN103686147A (en) * 2013-12-03 2014-03-26 浙江宇视科技有限公司 Method and device for testing cloning of video monitoring simulation terminals
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

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
CN104978263B (en) * 2014-04-09 2019-01-29 腾讯科技(深圳)有限公司 A kind of mobile terminal applied program testing method and system
GB2532076A (en) * 2014-11-10 2016-05-11 Inst Information Ind Backup method, pre-testing method for environment updating and system thereof

Patent Citations (6)

* 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
CN103686147A (en) * 2013-12-03 2014-03-26 浙江宇视科技有限公司 Method and device for testing cloning of video monitoring simulation terminals
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的移动电子商务的研究;王刚;《万方》;1-67 *
移动终端测试与质量评估体系的研究;亢娟;《电视技术》;1-6 *

Also Published As

Publication number Publication date
CN107423218A (en) 2017-12-01

Similar Documents

Publication Publication Date Title
CN107423218B (en) Application testing method, device and terminal
CN109032606B (en) Native application compiling method and device and terminal
CN107329743B (en) Application page display method and device and storage medium
EP2998899A1 (en) Method and apparatus for running application program
CN107203398B (en) Application distribution method and device
CN111221559B (en) Application updating method, device, storage medium, terminal and server
CN105808305B (en) Static resource loading method and device
CN111427622B (en) Execution method and device of script codes in application program
CN111274131A (en) Interface testing method and device, electronic equipment and storage medium
CN109117144B (en) Page processing method, device, terminal and storage medium
CN106775903B (en) Security policy file updating method and device
CN111222014B (en) Request processing method, request processing device, electronic equipment and storage medium
CN111198706A (en) Method for updating system function, apparatus for updating system function and storage medium
CN108280342B (en) Application synchronization method and device for application synchronization
CN110795354A (en) Information processing method, device and storage medium
CN106790683B (en) Network data display method and device based on mobile terminal
CN110968492B (en) Information processing method and device and storage medium
CN111079040B (en) Resource sniffing method, device, terminal, server and storage medium
CN107861666B (en) Desktop application installation method and device
CN106293683B (en) Project compiling method and device
CN113407879B (en) Data reporting method, device and readable medium
CN111338961B (en) Application debugging method and device, electronic equipment and storage medium
CN110989987B (en) Portal webpage generation method and device, client, server and storage medium
CN111131000B (en) Information transmission method, device, server and terminal
CN111597106A (en) Point burying management method and device

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