CN108009084B - Testing method, device and system for hybrid mobile application - Google Patents
Testing method, device and system for hybrid mobile application Download PDFInfo
- Publication number
- CN108009084B CN108009084B CN201711225191.1A CN201711225191A CN108009084B CN 108009084 B CN108009084 B CN 108009084B CN 201711225191 A CN201711225191 A CN 201711225191A CN 108009084 B CN108009084 B CN 108009084B
- Authority
- CN
- China
- Prior art keywords
- source code
- page
- application
- updating
- tested
- 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
Links
- 238000012360 testing method Methods 0.000 title claims abstract description 192
- 238000000034 method Methods 0.000 claims description 16
- 230000010354 integration Effects 0.000 claims description 13
- 238000010998 test method Methods 0.000 claims description 8
- 230000008569 process Effects 0.000 description 6
- 238000010586 diagram Methods 0.000 description 4
- 238000004891 communication Methods 0.000 description 3
- 238000011161 development Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000009434 installation Methods 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000010397 one-hybrid screening Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
Abstract
The application provides a testing method, a testing device and a testing system for hybrid mobile application, wherein an application code updating instruction can be obtained by sending an instruction to be tested to second electronic equipment, and then the source code obtaining instruction is sent to the second electronic equipment, so that a modified latest application source code can be obtained from the second electronic equipment in time, a testing tool corresponding to the modified latest application source code is directly called from the first electronic equipment and tested, and a testing result obtained after the source code of the application to be tested is modified is quickly obtained; therefore, the latest application source code of the application to be tested is obtained from the second electronic device in real time, and then the preset testing tool is called to test the latest application source code, so that the testing time can be effectively shortened, and the testing efficiency is improved.
Description
Technical Field
The invention relates to the field of mobile application testing, in particular to a testing method, a testing device and a testing system for hybrid mobile application.
Background
With the popularization of smart mobile devices, mobile applications applied to smart mobile devices are receiving much attention. Currently, mobile applications are mainly divided into three types: native mobile applications (Native App), HTML5 mobile applications (HTML5Web App), and Hybrid mobile applications (Hybrid App). The native mobile application is a local operating system (such as iOS, Android, and WP) based on the smart mobile device, and a third-party application program, also called a local app, which is written and operated by a native program is used, so that the operation performance is optimal. The HTML5 mobile application is a cross-platform mobile application constructed to run on multiple smart mobile devices using standard Web technology, but the running performance is limited. The hybrid mobile application is to embed an HTML5 application program into a Native mobile application (Native App) to combine the advantages of good user interaction experience of the Native mobile application and the advantages of cross-platform development of the HTML5 mobile application, so that the hybrid mobile application is widely popularized and applied.
In order to ensure good running performance of the hybrid mobile application installed on the mobile device, the hybrid mobile application needs to be tested multiple times in advance. However, the existing testing method mainly writes related source codes of the hybrid mobile application on the PC, and then packages the source codes with a testing tool and sends the packaged source codes to the mobile terminal for installation, so as to complete testing of the hybrid mobile application on the mobile terminal. However, developers often need to modify codes of the same hybrid mobile application for many times and test the same hybrid mobile application for many times, so that the test time is long and the test efficiency is slow by adopting the existing test method.
Disclosure of Invention
In view of this, the present invention provides a testing method, device and system for hybrid mobile application, which shortens testing time and further improves testing efficiency.
In order to achieve the purpose, the invention provides the following technical scheme:
a test method of a hybrid mobile application is applied to a first electronic device and comprises the following steps:
when a to-be-tested instruction is received, sending the to-be-tested instruction to second electronic equipment, wherein the to-be-tested instruction corresponds to one to-be-tested application in a to-be-tested application list;
receiving an application code update instruction from the second electronic device and transmitting a source code acquisition instruction to the second electronic device;
receiving the latest application source code from the second electronic device, calling a test tool corresponding to the latest application source code, testing the latest application source code, and obtaining a test result, wherein the test tool is preset in the first electronic device.
Preferably, the latest application source code includes:
updating a source code by a page;
or the page update source code and the function update source code.
Preferably, when the latest application source code includes the page update source code, the calling a test tool corresponding to the latest application source code, and testing the latest application source code to obtain a test result, where the testing method includes:
calling an application engine corresponding to the page updating source code;
and running the page updating source code by using the application engine to obtain an updating page as the test result.
Preferably, when the latest application source code includes the page update source code and the function update source code, the invoking a test tool corresponding to the latest application source code, and testing the latest application source code to obtain a test result includes:
calling an application engine corresponding to the page updating source code and calling a plug-in corresponding to the function updating source code;
running the page updating source code by using the application engine to obtain a first updating page;
running the function updating source code by using the plug-in to obtain a second updating page;
and performing page integration on the first updating page and the second updating page to obtain a third updating page as the test result.
A testing device for hybrid mobile application, applied to a first electronic device, comprises:
the first sending module is used for sending a to-be-tested instruction to the second electronic equipment when the to-be-tested instruction is received, wherein the to-be-tested instruction corresponds to one to-be-tested application in the to-be-tested application list;
a receiving module, configured to receive an application code update instruction from the second electronic device;
the second sending module is used for sending a source code acquisition instruction to the second electronic equipment;
and the test module is used for receiving the latest application source code from the second electronic equipment, calling a test tool corresponding to the latest application source code, testing the latest application source code and obtaining a test result, wherein the test tool is preset in the first electronic equipment.
Preferably, the latest application source code includes:
updating a source code by a page;
or the page update source code and the function update source code.
Preferably, the test module comprises:
the first calling unit is used for calling an application engine corresponding to the page updating source code when the latest application source code comprises the page updating source code;
and the first running unit is used for running the page updating source code by using the application engine to obtain an updating page as the test result.
Preferably, the test module comprises:
the second calling unit is used for calling an application engine corresponding to the page updating source code and calling a plug-in corresponding to the function updating source code when the latest application source code comprises the page updating source code and the function updating source code;
the second running unit is used for running the page updating source code by utilizing the application engine to obtain a first updating page;
the third running unit is used for running the function updating source code by using the plug-in to obtain a second updating page;
and the page integration unit is used for performing page integration on the first updated page and the second updated page to obtain a third updated page as the test result.
A test system for hybrid mobile applications, comprising:
a first electronic device and a second electronic device;
the first electronic device is used for sending a to-be-tested instruction to the second electronic device when the to-be-tested instruction is received, wherein the to-be-tested instruction corresponds to one to-be-tested application in a to-be-tested application list; receiving an application code update instruction from the second electronic device and transmitting a source code acquisition instruction to the second electronic device; receiving a latest application source code from the second electronic equipment, calling a testing tool corresponding to the latest application source code, testing the latest application source code to obtain a testing result, and presetting the testing tool in the first electronic equipment;
the second electronic device is configured to receive the instruction to be tested from the first electronic device, send an application code update instruction corresponding to the instruction to be tested to the first electronic device, and send the latest application source code to the first electronic device when receiving the source code acquisition instruction from the first electronic device.
According to the technical scheme, compared with the prior art, the invention provides the test method, the device and the system for the hybrid mobile application, the application code updating instruction can be obtained by sending the instruction to be tested to the second electronic equipment, and then the source code obtaining instruction is sent to the second electronic equipment, so that the modified latest application source code can be obtained from the second electronic equipment in time, the test tool corresponding to the updated latest application source code is directly called from the first electronic equipment and tested, and the test result of the modified source code of the application to be tested can be quickly obtained; therefore, the latest application source code of the application to be tested is obtained from the second electronic device in real time, and then the preset testing tool is called to test the latest application source code, so that the testing time can be effectively shortened, and the testing efficiency is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a flowchart of a method for testing a hybrid mobile application according to an embodiment of the present invention;
fig. 2 is a flowchart of another method for testing a hybrid mobile application according to an embodiment of the present invention;
fig. 3 is a flowchart of another method for testing a hybrid mobile application according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a testing apparatus for hybrid mobile applications according to an embodiment of the present invention;
FIG. 5 is a schematic structural diagram of another testing apparatus for hybrid mobile applications according to an embodiment of the present invention;
FIG. 6 is a schematic structural diagram of another testing apparatus for hybrid mobile applications according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of a test system for hybrid mobile applications according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The embodiment of the invention discloses a test method of hybrid mobile application, which is applied to first electronic equipment, please refer to fig. 1, and the method specifically comprises the following steps:
s101: when a to-be-tested instruction is received, sending the to-be-tested instruction to second electronic equipment, wherein the to-be-tested instruction corresponds to one to-be-tested application in a to-be-tested application list;
specifically, the list of applications to be tested is mainly used for storing relevant information of a plurality of hybrid mobile applications to be tested, where the relevant information of each hybrid mobile application includes an initial source code and application configuration information of the hybrid mobile application, and the application configuration information may include information such as an application program name, a version, and an icon.
The list of applications to be tested may be set on a real machine test APP for testing the hybrid mobile application, which is pre-installed in the first electronic device and pre-establishes a communication connection with the IDE on the second electronic device. The IDE on the second electronic device is used for storing relevant information of a plurality of hybrid mobile applications to be tested and has a function of modifying source codes of the hybrid mobile applications.
It should be noted that the list of applications to be tested of the real-machine testing APP in the first electronic device may be obtained from the IDE on the second electronic device through network communication, so that when the current application to be tested is selected from the list of applications to be tested of the real-machine testing APP in the first electronic device, it can be ensured that the IDE on the second electronic device also stores the related information of the application to be tested.
The instruction to be tested can be an instruction which is automatically generated when a developer selects one hybrid mobile application from a list of applications to be tested of the real machine testing APP in the first electronic device and is used as the current application to be tested.
The first electronic device according to the embodiment of the present invention may be a mobile terminal device, such as a mobile phone, a tablet computer, and the like. The first electronic device may be a desktop computer, a notebook, etc.
S102: receiving an application code update instruction from the second electronic device and transmitting a source code acquisition instruction to the second electronic device;
specifically, the application code update instruction may be an instruction automatically generated when the second electronic device determines that the source code of the application to be tested corresponding to the instruction to be tested is changed after receiving the instruction to be tested, so that the first electronic device can timely know that the source code of the application to be tested, which is being tested at this time, is changed and needs to be retested.
The source code obtaining instruction may be an instruction automatically generated when the first electronic device determines that the source code of the application to be tested that is being tested at this time is changed after receiving the application code updating instruction, and is used to obtain the latest source code of the application to be tested that is being tested at this time from the second electronic device.
S103: receiving a latest application source code from the second electronic equipment, calling a testing tool corresponding to the latest application source code, testing the latest application source code to obtain a testing result, and presetting the testing tool in the first electronic equipment;
specifically, the testing tool is pre-stored in the first electronic device internal real machine testing APP and is mainly used for testing the latest application source code acquired from the second electronic device to obtain a testing result after the source code is updated, and the problems that in the prior art, after the source code of the hybrid mobile application is modified each time, the testing time is long and the testing efficiency is low due to the fact that the latest source code and the testing tool need to be sent at one time are solved.
Secondly, the test tool preset on the real machine test APP in the first electronic device can be acquired from the second electronic device through network communication; or may be directly obtained from other electronic devices mounted with the test tool, and is not limited herein.
The test method of the hybrid mobile application disclosed by the embodiment of the invention is applied to first electronic equipment, can obtain an application code updating instruction by sending a to-be-tested instruction to second electronic equipment, and further sends a source code obtaining instruction to the second electronic equipment so as to obtain a modified latest application source code from the second electronic equipment in time, and directly calls a test tool corresponding to the modified latest application source code from the first electronic equipment to test the modified latest application source code so as to quickly obtain a test result of the modified source code of the to-be-tested application; therefore, the latest application source code of the application to be tested is obtained from the second electronic device in real time, and then the preset testing tool is called to test the latest application source code, so that the testing time can be effectively shortened, and the testing efficiency is improved.
On the basis of the embodiment shown in fig. 1, another testing method for hybrid mobile application is disclosed in the embodiment of the present invention, and is applied to a first electronic device, please refer to fig. 2, where the method specifically includes the following steps:
s201: and when receiving a to-be-tested instruction, sending the to-be-tested instruction to the second electronic equipment, wherein the to-be-tested instruction corresponds to one to-be-tested application in the to-be-tested application list.
S202: receiving an application code update instruction from the second electronic device and transmitting a source code acquisition instruction to the second electronic device.
S203: receiving a page update source code from the second electronic device, and calling an application engine corresponding to the page update source code;
specifically, the latest application source code received from the second electronic device includes the page update source code, or both the page update source code and the function update source code. When the latest application source code comprises the page updating source code, the application engine corresponding to the latest application source code is only required to be called from the real machine test APP in the first electronic equipment and used as a test tool of the application engine to complete the test.
S204: running the page updating source code by using the application engine to obtain an updating page as the test result;
specifically, the application engine is used for running the page to update the source code, so that the page can be updated, and the test result after the source code is modified is displayed to a developer. For example, the result after the source code of the application to be tested, which is initially stored on the real machine testing APP in the first electronic device, is run is a "tianmao shopping page"; and then acquiring the changed latest source code from the IDE of the second electronic device, and changing the Tianmao shopping page into the Tianmao Shuangelen shopping page by operating the latest source code, so that a developer judges whether the source code of the application to be tested needs to be continuously modified according to the displayed test result, and the hybrid mobile application with better operation performance is obtained.
The embodiment of the invention discloses a test method of hybrid mobile application, which is applied to first electronic equipment, and is characterized in that after modified page updating source codes are obtained from second electronic equipment in time, an application engine corresponding to the page updating source codes is called from the first electronic equipment to be used as a test tool to test the page updating source codes so as to quickly obtain the updated page after the source codes of the current application to be tested are modified; therefore, the page updating source code of the application to be tested is obtained only from the second electronic device in real time, and then the preset application engine is called to test the page updating source code, so that the page updating can be quickly realized, the time required by testing is shortened, and the testing efficiency is improved.
On the basis of the embodiment shown in fig. 1, another testing method for hybrid mobile application is disclosed in the embodiment of the present invention, and is applied to a first electronic device, please refer to fig. 3, where the method specifically includes the following steps:
s301: and when receiving a to-be-tested instruction, sending the to-be-tested instruction to the second electronic equipment, wherein the to-be-tested instruction corresponds to one to-be-tested application in the to-be-tested application list.
S302: receiving an application code update instruction from the second electronic device and transmitting a source code acquisition instruction to the second electronic device.
S303: receiving a page updating source code and a function updating source code from the second electronic equipment, calling an application engine corresponding to the page updating source code, and calling a plug-in corresponding to the function updating source code;
specifically, when the latest application source code includes a page update source code and a function update source code, an application engine corresponding to the page update source code and a plug-in corresponding to the function update source code need to be respectively called from a real machine test APP in the first electronic device, and the application engine and the plug-in are used as test tools required by the test to jointly complete the test.
S304: running the page updating source code by using the application engine to obtain a first updating page;
specifically, the page update can be realized by running the page update source code by the application engine.
S305: running the function updating source code by using the plug-in to obtain a second updating page;
specifically, the source code is updated by using the plug-in running function, so that the application to be tested has one or more native functions of the local system of the first electronic device, such as a positioning function, an item reminder and the like, and the newly added function after the source code is modified is displayed through page updating.
S306: performing page integration on the first updating page and the second updating page to obtain a third updating page as the test result;
specifically, the page integration may be that the second update page is overlaid on the first update page and then displayed together; or the first updating page is superposed on the second updating page and then is displayed together; the first update page and the second update page can be displayed separately.
And the third updated page after page integration is used as a test result of the application to be tested which is displayed to a developer after the source code is modified, so that the developer can accurately judge whether the source code of the application to be tested needs to be modified continuously, and the hybrid mobile application with better running performance can be obtained.
The test method of the hybrid mobile application disclosed by the embodiment of the invention is applied to first electronic equipment, and after modified page updating source codes and function updating source codes are obtained from second electronic equipment in time, an application engine corresponding to the page updating source codes is called from the first electronic equipment, plug-ins corresponding to the function updating source codes are called, and the plug-ins are used as a test tool for testing together, so that the modified page of the source codes of the current application to be tested can be quickly obtained; therefore, the page updating source code and the function updating source code of the application to be tested are obtained in real time only from the second electronic device, and then the preset application engine and the preset plug-in are called to respectively test the page updating source code and the function updating source code, so that the page content updating and the page function updating can be quickly realized, the time required by the test is shortened, and the test efficiency is improved.
The embodiment of the invention discloses a testing device for hybrid mobile application, which is applied to a first electronic device, please refer to fig. 4, and comprises:
the first sending module 401 is configured to send a to-be-tested instruction to the second electronic device when the to-be-tested instruction is received, where the to-be-tested instruction corresponds to one to-be-tested application in the to-be-tested application list;
a receiving module 402, configured to receive an application code update instruction from the second electronic device;
a second sending module 403, configured to send a source code obtaining instruction to the second electronic device;
a testing module 404, configured to receive a latest application source code from the second electronic device, call a testing tool corresponding to the latest application source code, and test the latest application source code to obtain a testing result, where the testing tool is preset in the first electronic device.
The testing device for hybrid mobile application disclosed by the embodiment of the invention is applied to a first electronic device, and sends a to-be-tested instruction to a second electronic device through a first sending module 401, a receiving module 40 can obtain an application code updating instruction, and then a second sending module 403 sends a source code obtaining instruction to the second electronic device, so that a testing module 404 can timely obtain a modified latest application source code from the second electronic device, and directly call a testing tool corresponding to the updated latest application source code from the first electronic device to test the updated latest application source code, so as to quickly obtain a testing result after the source code of the to-be-tested application is modified; therefore, the latest application source code of the application to be tested is obtained from the second electronic device in real time, and then the preset testing tool is called to test the latest application source code, so that the testing time can be effectively shortened, and the testing efficiency is improved.
Please refer to a method flowchart corresponding to fig. 1 for the working process of each module provided in the embodiment of the present invention, and detailed description of the working process is omitted.
Referring to fig. 5, the testing module 404 in the embodiment corresponding to fig. 4 specifically includes:
a first invoking unit 4041, configured to, when the latest application source code includes a page update source code, invoke an application engine corresponding to the page update source code;
a first running unit 4042, configured to run the page update source code by using the application engine, and obtain an update page as the test result.
The testing device for hybrid mobile application disclosed by the embodiment of the invention is applied to first electronic equipment, after modified page updating source codes are obtained from second electronic equipment in time, a first calling unit 4041 calls an application engine corresponding to the page updating source codes from the first electronic equipment as a testing tool, and then a first running unit 4042 tests the page updating source codes by using the called application engine so as to quickly obtain the updated pages of the source codes of the current to-be-tested applications after the source codes are modified; therefore, the page updating source code of the application to be tested is obtained only from the second electronic device in real time, and then the preset application engine is called to test the page updating source code, so that the page updating can be quickly realized, the time required by testing is shortened, and the testing efficiency is improved.
Please refer to a method flowchart corresponding to fig. 2 for the working process of each module provided in the embodiment of the present invention, and detailed description of the working process is omitted.
Referring to fig. 6, the testing module 404 in the embodiment corresponding to fig. 4 specifically includes:
a second invoking unit 4043, configured to, when the latest application source code includes a page update source code and a function update source code, invoke an application engine corresponding to the page update source code, and invoke a plug-in corresponding to the function update source code;
a second running unit 4044, configured to run the page update source code by using the application engine, to obtain a first update page;
a third running unit 4045, configured to run the function update source code using the plug-in, and obtain a second update page;
a page integration unit 4046, configured to perform page integration on the first updated page and the second updated page to obtain a third updated page as the test result.
The testing device for hybrid mobile application disclosed by the embodiment of the invention is applied to first electronic equipment, after modified page update source codes and function update source codes are obtained from second electronic equipment in time, a second calling unit 4043 respectively calls an application engine corresponding to the page update source codes from the first electronic equipment, calls plug-ins corresponding to the function update source codes as testing tools, and then a second running unit 4044 and a third running unit 4045 respectively use the called application engine and plug-ins to run the corresponding update source codes, so that a first updated page and a second updated page are obtained, and a page integrating unit 4046 can quickly obtain a testing result through page integration; therefore, the page updating source code and the function updating source code of the application to be tested are obtained in real time only from the second electronic device, and then the preset application engine and the preset plug-in are called to respectively test the page updating source code and the function updating source code, so that the page content updating and the page function updating can be quickly realized, the time required by the test is shortened, and the test efficiency is improved.
Please refer to a method flowchart corresponding to fig. 3 for the working process of each module provided in the embodiment of the present invention, and detailed description of the working process is omitted.
The embodiment of the invention discloses a test system for hybrid mobile application, please refer to fig. 7, which includes:
a first electronic device 501 and a second electronic device 502;
the first electronic device 501 is configured to send a to-be-tested instruction to the second electronic device 502 when receiving the to-be-tested instruction, where the to-be-tested instruction corresponds to one to-be-tested application in a to-be-tested application list; receiving an application code update instruction from the second electronic device 502 and transmitting a source code acquisition instruction to the second electronic device 502; receiving a latest application source code from the second electronic device 502, calling a test tool corresponding to the latest application source code, and testing the latest application source code to obtain a test result, wherein the test tool is preset in the first electronic device 501;
the second electronic device 502 is configured to receive the instruction to be tested from the first electronic device 501, send an application code update instruction corresponding to the instruction to be tested to the first electronic device 501, and send the latest application source code to the first electronic device 501 when the source code obtaining instruction is received from the first electronic device 501.
It should be noted that a network path is established between the first electronic device 501 and the second electronic device 502.
In the testing system for hybrid mobile application disclosed in the embodiment of the present invention, the first electronic device 501 sends the instruction to be tested to the second electronic device 502 to obtain the update instruction of the application code, and then sends the instruction to obtain the source code to the second electronic device 502, so as to obtain the modified latest application source code from the second electronic device 502 in time, and then directly call the corresponding testing tool therein to test the latest application source code, thereby quickly obtaining the testing result after the source code of the current application to be tested is modified; as can be seen, the first electronic device 501 only obtains the latest application source code of the application to be tested from the second electronic device 502 in real time, and then calls a testing tool preset in the first electronic device to test the latest application source code, so that the time required for performing a complete test between the first electronic device 501 and the second electronic device 502 can be effectively reduced, and the testing efficiency can be further improved.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
Claims (5)
1. A test method of a hybrid mobile application is applied to a first electronic device, and comprises the following steps:
when a to-be-tested instruction is received, sending the to-be-tested instruction to second electronic equipment, wherein the to-be-tested instruction corresponds to one to-be-tested application in a to-be-tested application list;
receiving an application code update instruction from the second electronic device and transmitting a source code acquisition instruction to the second electronic device;
receiving a latest application source code from the second electronic equipment, calling a testing tool corresponding to the latest application source code, testing the latest application source code to obtain a testing result, and presetting the testing tool in the first electronic equipment;
the latest application source code comprises:
updating a source code by a page;
or the page update source code and the function update source code;
when the latest application source code includes the page update source code and the function update source code, the calling a test tool corresponding to the latest application source code, and testing the latest application source code to obtain a test result, including:
calling an application engine corresponding to the page updating source code and calling a plug-in corresponding to the function updating source code;
running the page updating source code by using the application engine to obtain a first updating page;
running the function updating source code by using the plug-in to obtain a second updating page;
and performing page integration on the first updating page and the second updating page to obtain a third updating page as the test result.
2. The method according to claim 1, wherein when the latest application source code includes the page update source code, the invoking a test tool corresponding to the latest application source code, and testing the latest application source code to obtain a test result includes:
calling an application engine corresponding to the page updating source code;
and running the page updating source code by using the application engine to obtain an updating page as the test result.
3. A testing device for hybrid mobile applications, applied to a first electronic device, comprises:
the first sending module is used for sending a to-be-tested instruction to the second electronic equipment when the to-be-tested instruction is received, wherein the to-be-tested instruction corresponds to one to-be-tested application in the to-be-tested application list;
a receiving module, configured to receive an application code update instruction from the second electronic device;
the second sending module is used for sending a source code acquisition instruction to the second electronic equipment;
the test module is used for receiving the latest application source code from the second electronic equipment, calling a test tool corresponding to the latest application source code, testing the latest application source code and obtaining a test result, wherein the test tool is preset in the first electronic equipment;
the latest application source code comprises:
updating a source code by a page;
or the page update source code and the function update source code;
when the latest application source code includes the page update source code and the function update source code, the testing module includes:
the second calling unit is used for calling an application engine corresponding to the page updating source code and calling a plug-in corresponding to the function updating source code when the latest application source code comprises the page updating source code and the function updating source code;
the second running unit is used for running the page updating source code by utilizing the application engine to obtain a first updating page;
the third running unit is used for running the function updating source code by using the plug-in to obtain a second updating page;
and the page integration unit is used for performing page integration on the first updated page and the second updated page to obtain a third updated page as the test result.
4. The testing apparatus according to claim 3, wherein when the latest application source code includes the page update source code, the testing module comprises:
the first calling unit is used for calling an application engine corresponding to the page updating source code when the latest application source code comprises the page updating source code;
and the first running unit is used for running the page updating source code by using the application engine to obtain an updating page as the test result.
5. A test system for hybrid mobile applications, comprising:
a first electronic device and a second electronic device;
the first electronic device is used for sending a to-be-tested instruction to the second electronic device when the to-be-tested instruction is received, wherein the to-be-tested instruction corresponds to one to-be-tested application in a to-be-tested application list; receiving an application code update instruction from the second electronic device and transmitting a source code acquisition instruction to the second electronic device; receiving a latest application source code from the second electronic equipment, calling a testing tool corresponding to the latest application source code, testing the latest application source code to obtain a testing result, and presetting the testing tool in the first electronic equipment;
the second electronic device is configured to receive the instruction to be tested from the first electronic device, send an application code update instruction corresponding to the instruction to be tested to the first electronic device, and send the latest application source code to the first electronic device when receiving the source code acquisition instruction from the first electronic device;
the latest application source code comprises:
updating a source code by a page;
or the page update source code and the function update source code;
when the latest application source code includes the page update source code and the function update source code, the first electronic device calls a test tool corresponding to the latest application source code, tests the latest application source code, and obtains a test result, including:
calling an application engine corresponding to the page updating source code and calling a plug-in corresponding to the function updating source code;
running the page updating source code by using the application engine to obtain a first updating page;
running the function updating source code by using the plug-in to obtain a second updating page;
and performing page integration on the first updating page and the second updating page to obtain a third updating page as the test result.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711225191.1A CN108009084B (en) | 2017-11-29 | 2017-11-29 | Testing method, device and system for hybrid mobile application |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711225191.1A CN108009084B (en) | 2017-11-29 | 2017-11-29 | Testing method, device and system for hybrid mobile application |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108009084A CN108009084A (en) | 2018-05-08 |
CN108009084B true CN108009084B (en) | 2021-07-30 |
Family
ID=62054700
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711225191.1A Active CN108009084B (en) | 2017-11-29 | 2017-11-29 | Testing method, device and system for hybrid mobile application |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108009084B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113342633B (en) * | 2020-02-18 | 2023-09-22 | 北京京东振世信息技术有限公司 | Performance test method and device |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102799515A (en) * | 2011-05-24 | 2012-11-28 | 腾讯科技(深圳)有限公司 | Application program testing method and device |
WO2014184896A1 (en) * | 2013-05-15 | 2014-11-20 | 三菱電機株式会社 | Program analyzer, program analysis method, and program analysis program |
CN106250317A (en) * | 2016-08-10 | 2016-12-21 | 英业达科技有限公司 | Electronic equipment and the method for testing of application thereof and system |
CN106598869A (en) * | 2016-12-26 | 2017-04-26 | 北京京东金融科技控股有限公司 | Method and device for realizing automatic software testing and electronic equipment |
CN106776266A (en) * | 2015-11-25 | 2017-05-31 | 腾讯科技(深圳)有限公司 | The collocation method and terminal device of testing tool |
CN107239391A (en) * | 2016-03-29 | 2017-10-10 | 腾讯科技(深圳)有限公司 | A kind of method of testing of application program, device and terminal |
CN107357554A (en) * | 2016-05-10 | 2017-11-17 | 北京慧点科技有限公司 | Method and apparatus based on the exploitation of mixed mode Mobile solution |
-
2017
- 2017-11-29 CN CN201711225191.1A patent/CN108009084B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102799515A (en) * | 2011-05-24 | 2012-11-28 | 腾讯科技(深圳)有限公司 | Application program testing method and device |
WO2014184896A1 (en) * | 2013-05-15 | 2014-11-20 | 三菱電機株式会社 | Program analyzer, program analysis method, and program analysis program |
CN106776266A (en) * | 2015-11-25 | 2017-05-31 | 腾讯科技(深圳)有限公司 | The collocation method and terminal device of testing tool |
CN107239391A (en) * | 2016-03-29 | 2017-10-10 | 腾讯科技(深圳)有限公司 | A kind of method of testing of application program, device and terminal |
CN107357554A (en) * | 2016-05-10 | 2017-11-17 | 北京慧点科技有限公司 | Method and apparatus based on the exploitation of mixed mode Mobile solution |
CN106250317A (en) * | 2016-08-10 | 2016-12-21 | 英业达科技有限公司 | Electronic equipment and the method for testing of application thereof and system |
CN106598869A (en) * | 2016-12-26 | 2017-04-26 | 北京京东金融科技控股有限公司 | Method and device for realizing automatic software testing and electronic equipment |
Also Published As
Publication number | Publication date |
---|---|
CN108009084A (en) | 2018-05-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108345531B (en) | Test method, device and system | |
EP3540594A1 (en) | Packaging method, device, and terminal employing plugin format, and storage medium | |
CN107688529B (en) | Component debugging method and device | |
CN107741844B (en) | Method and device for generating application installation package | |
CN105718313A (en) | Application operation method and device | |
CN101706725B (en) | Method and system for loading and debugging relocatable program | |
US10176327B2 (en) | Method and device for preventing application in an operating system from being uninstalled | |
CN108647032B (en) | Application loading method and device, computer device and computer readable storage medium | |
CN111026439B (en) | Application program compatibility method, device, equipment and computer storage medium | |
CN107818023B (en) | Thread-based message processing method, intelligent device and storage medium | |
CN111723002A (en) | Code debugging method and device, electronic equipment and storage medium | |
CN103002492B (en) | Communication test method and device for mobile terminal (MT) | |
CN105426192A (en) | Information modification method and terminal | |
CN111666199B (en) | Debugging method executed on intelligent terminal and software debugger | |
CN103488508B (en) | Browser working method, browser and terminal equipment | |
CN111061448A (en) | Log information display method and device, electronic equipment and storage medium | |
CN108052401B (en) | System attribute monitoring method, terminal device and computer readable storage medium | |
CN108009084B (en) | Testing method, device and system for hybrid mobile application | |
CN106557411B (en) | Method and system for testing Hybrid application in Android system | |
CN105447384B (en) | A kind of anti-method monitored, system and mobile terminal | |
CN111158777B (en) | Component calling method, device and computer readable storage medium | |
EP3188071A1 (en) | Application accessing control method and device | |
CN111273982A (en) | Method, device, electronic equipment and medium for confirming default font of operating system | |
CN107704279B (en) | Data loading method and device | |
CN105451233A (en) | Anti-monitoring method and system and mobile terminal |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |