CN109815115A - Method and device, the computer equipment, storage medium of debugging bridge joint mouth - Google Patents
Method and device, the computer equipment, storage medium of debugging bridge joint mouth Download PDFInfo
- Publication number
- CN109815115A CN109815115A CN201811534520.5A CN201811534520A CN109815115A CN 109815115 A CN109815115 A CN 109815115A CN 201811534520 A CN201811534520 A CN 201811534520A CN 109815115 A CN109815115 A CN 109815115A
- Authority
- CN
- China
- Prior art keywords
- html5
- test
- bridge joint
- program
- debugging
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Abstract
The embodiment of the invention provides method and device, the computer equipments, storage medium of a kind of debugging bridge joint mouth.On the one hand, this method comprises: calling interface is arranged in performing environment Javascript program, wherein the calling interface is supplied to primary Native routine call, passes through bridge joint port communications between the Javascript program and the Native program;Test template data are obtained by calling interface described in the Native routine call;Html5 test page file is generated according to the test template data;The html5 test page file is loaded, to debug the bridge joint mouth.Through the invention, debugging efficiency too low technical problem when carrying out bridge debugging between program in the prior art is solved.
Description
[technical field]
The present invention relates to computer field more particularly to a kind of method and device of debugging bridge joint mouth, computer equipment, deposit
Storage media.
[background technique]
In the prior art, Application-script includes performing environment Javascript procedure script and primary Native program
Script, wherein Native procedure script for realizing application program basic function, Javascript procedure script for realizing
The interaction characteristic of application program or the interactive function of application program.It is empty by being created in the script file of application program
Quasi- bridge joint mouth, may be implemented the communication between Javascript program and Native program.Therefore it is surveyed to application program
When examination, the performance by debugging bridge joint mouth is needed.
In the prior art, it when carrying out the bridge interface debugging between Javascript program and Native program, needs point
It is other individually operated to Javascript program and the progress of Native program, so that debugging efficiency is very low, leverages bridge
The debugging efficiency of interface.
For the above problem present in the relevant technologies, at present it is not yet found that the solution of effect.
[summary of the invention]
In view of this, the embodiment of the invention provides method and device, the computer equipments, storage of a kind of debugging bridge joint mouth
Medium, debugging efficiency too low technical problem when solving to carry out bridge debugging between program in the prior art.
On the one hand, the embodiment of the invention provides a kind of methods of debugging bridge joint mouth, comprising:
Calling interface is set in performing environment Javascript program, wherein the calling interface is supplied to primary
Native routine call passes through bridge joint port communications between the Javascript program and the Native program;
Test template data are obtained by calling interface described in the Native routine call;
Html5 test page file is generated according to the test template data;
The html5 test page file is loaded, to debug the bridge joint mouth.
Optionally, loading the html5 test page file includes:
The test page file is loaded onto the page and shows control;
Show that control shows the html5 test page on a user interface using the page.
Optionally, calling interface is arranged in Javascript program includes:
Public static keyword is used in the CommonJsCallNative.java class of Javascript program
The calling interface is set, wherein the CommonJsCallNative.java class carries the test template data.
Optionally, generating html5 test page file according to the test template data includes:
Obtain the method name and parameter of the bridge joint mouth;
The method name and the parameter are filled in the test template data, generate html5 test page file.
Optionally, the html5 test page file is loaded, to debug the bridge joint mouth, comprising:
Obtain the log-on message for being used for game server, wherein the log-on message includes at least one of: single-point is stepped on
Record information, token and session id;
The html5 test page file is loaded, to show html5 test page, is logged on to using the log-on message
The html5 test page;
Under the login state of the html5 test page, default debugging movement is triggered by the Native program, and lead to
It is raw after the html5 test page shows the Javascript program response default debugging movement to cross the bridge joint mouth
At debugging result.
Optionally, before debugging the bridge joint mouth, which comprises
Define the function collection of the bridge joint mouth, wherein the function collection includes.
On the other hand, the embodiment of the invention provides a kind of device of debugging bridge joint mouth, described device includes:
Setup module, for calling interface to be arranged in performing environment Javascript program, wherein the calling interface
It is supplied to primary Native routine call, it is logical by bridge joint mouth between the Javascript program and the Native program
Letter;
Module is obtained, for obtaining test template data by calling interface described in the Native routine call;
Generation module, for generating html5 test page file according to the test template data;
Debugging module, for loading the html5 test page file, to debug the bridge joint mouth.
Optionally, the debugging module includes:
Loading unit shows control for the test page file to be loaded onto the page;
Display unit, for showing that control shows the html5 test page on a user interface using the page.
Optionally, the setup module includes:
Setting unit, for using public in the CommonJsCallNative.java class of Javascript program
The calling interface is arranged in static keyword, wherein the CommonJsCallNative.java class carries the test mould
Plate data.
Optionally, the generation module includes:
Acquiring unit, for obtaining the method name and parameter of the bridge joint mouth;
Generation unit generates html5 and surveys for filling the method name and the parameter in the test template data
Try page file.
Optionally, the debugging module includes:
Acquiring unit, for obtain be used for game server log-on message, wherein the log-on message include with down toward
It is one of few: single-sign-on information, token and session id;
Unit is logged in, to show html5 test page, to step on using described for loading the html5 test page file
Information registration is recorded to the html5 test page;
Debugging unit, for being triggered by the Native program default under the login state of the html5 test page
Debugging movement, and show that the Javascript program response is described pre- in the html5 test page by the bridge joint mouth
If the debugging result generated after debugging movement.
Optionally, described device includes:
Definition module, for before debugging the bridge joint mouth, defining the function of the bridge joint mouth in the debugging module
Collection, wherein the function collection includes class, and the class includes parameter and device.
According to still another embodiment of the invention, a kind of storage medium is additionally provided, meter is stored in the storage medium
Calculation machine program, wherein the computer program is arranged to execute the step in any of the above-described embodiment of the method when operation.
According to still another embodiment of the invention, a kind of electronic device, including memory and processor are additionally provided, it is described
Computer program is stored in memory, the processor is arranged to run the computer program to execute any of the above-described
Step in embodiment of the method.
Through the invention, the test template data of bridge joint mouth are obtained by Native program, and then load html5 test sheets
Face file obtains to simulate the html5 test interface of real running environment, does not have to Native program and Javascript program
It is ready to can be carried out bridge debugging simultaneously, it is too low to solve debugging efficiency when carrying out bridge debugging between program in the prior art
Technical problem improves debugging efficiency.
[Detailed description of the invention]
In order to illustrate the technical solution of the embodiments of the present invention more clearly, below will be to needed in the embodiment attached
Figure is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for this field
For those of ordinary skill, without any creative labor, it can also be obtained according to these attached drawings other attached
Figure.
Fig. 1 is a kind of hardware block diagram of the mobile terminal of debugging bridge joint mouth of the embodiment of the present invention;
Fig. 2 is the flow chart of the method for debugging bridge joint mouth according to an embodiment of the present invention;
Fig. 3 is the flow chart that the embodiment of the present invention generates html5 test page file according to test template data;
Fig. 4 is the flow chart that the embodiment of the present invention debugs bridge joint mouth on the html5 test page;
Fig. 5 is the structural block diagram of the device of debugging bridge joint mouth according to an embodiment of the present invention.
[specific embodiment]
Hereinafter, the present invention will be described in detail with reference to the accompanying drawings and in combination with Examples.It should be noted that not conflicting
In the case of, the features in the embodiments and the embodiments of the present application can be combined with each other.
It should be noted that description and claims of this specification and term " first " in above-mentioned attached drawing, "
Two " etc. be to be used to distinguish similar objects, without being used to describe a particular order or precedence order.
Embodiment 1
Embodiment of the method provided by the embodiment of the present application one can be in mobile terminal, terminal or similar fortune
It calculates and is executed in device.For running on mobile terminals, Fig. 1 is a kind of mobile end of debugging bridge joint mouth of the embodiment of the present invention
The hardware block diagram at end.As shown in Figure 1, mobile terminal 10 may include one or more (only showing one in Fig. 1) processing
Device 102 (processing unit that processor 102 can include but is not limited to Micro-processor MCV or programmable logic device FPGA etc.) and
Memory 104 for storing data, optionally, above-mentioned mobile terminal can also include the transmission device for communication function
106 and input-output equipment 108.It will appreciated by the skilled person that structure shown in FIG. 1 is only to illustrate, simultaneously
The structure of above-mentioned mobile terminal is not caused to limit.For example, mobile terminal 10 may also include it is more than shown in Fig. 1 or less
Component, or with the configuration different from shown in Fig. 1.
Memory 104 can be used for storing computer program, for example, the software program and module of application software, such as this hair
The corresponding computer program of method of debugging bridge joint mouth in bright embodiment, processor 102 are stored in memory 104 by operation
Interior computer program realizes above-mentioned method thereby executing various function application and data processing.Memory 104 can
Including high speed random access memory, may also include nonvolatile memory, as one or more magnetic storage device, flash memory or
Other non-volatile solid state memories of person.In some instances, memory 104 can further comprise remote relative to processor 102
The memory of journey setting, these remote memories can pass through network connection to mobile terminal 10.The example of above-mentioned network includes
But be not limited to internet, intranet, local area network, mobile radio communication and combinations thereof.
Transmitting device 106 is used to that data to be received or sent via a network.Above-mentioned network specific example may include
The wireless network that the communication providers of mobile terminal 10 provide.In an example, transmitting device 106 includes a Network adaptation
Device (Network Interface Controller, referred to as NIC), can be connected by base station with other network equipments to
It can be communicated with internet.In an example, transmitting device 106 can for radio frequency (Radio Frequency, referred to as
RF) module is used to wirelessly be communicated with internet.
A kind of method of debugging bridge joint mouth is provided in the present embodiment, and Fig. 2 is debugging bridge according to an embodiment of the present invention
The flow chart of the method for interface, as shown in Fig. 2, the process includes the following steps:
Calling interface is arranged in performing environment Javascript program in step S202, wherein the calling interface provides
To primary Native routine call, pass through bridge joint port communications between the Javascript program and the Native program;
Javascript program and Native program are the programs run in application program, realize application program not respectively
Congenerous is communicated by bridge joint mouth between the two, and then realizes interaction.
Step S204 obtains test template data by calling interface described in the Native routine call;
Step S206 generates html5 test page file according to the test template data;
Html5 test page file in the present embodiment can show html5 test page in user interface.
Step S208 loads the html5 test page file, to debug the bridge joint mouth.
Scheme through this embodiment is obtained the test template data of bridge joint mouth by Native program, and then loaded
Html5 test page file obtains to simulate the html5 test interface of real running environment, do not have to Native program and
Javascript program is ready to can be carried out bridge debugging simultaneously, when solving progress bridge debugging between program in the prior art
The too low technical problem of debugging efficiency, improves debugging efficiency.
Bridge joint mouth in the present embodiment between native program and Javascript (js) program for communicating, certainly,
It can be applied to other kinds of program.The application environment of the present embodiment can be, but not limited to be the browsing carried in Android
In device web view component, by being extended to component, increase the local function of js-native (js is interacted with native).
Web simulated environment is constructed in native app, the environment and real running environment for ensuring to simulate in this way are consistent, and reach nothing
Seam linking.All js-native api, (Application Programming Interface, application programming are connect
Mouthful) by the Program Generating html5 page, the html5 page is containing all js programs for calling native.
Calling interface described in Native routine call obtains test template data and can be in application software locally acquisition survey
Template data is tried, or obtains test template data from server.
In embodiments of the present invention, before debugging the bridge joint mouth, further includes: the function collection of the bridge joint mouth is defined,
Wherein, the function collection includes class, and the class includes parameter and method.
The function collection of definition bridge joint mouth is to define how js and native communicates, i.e., how js calls on native
Application programming interfaces api, for example which class called, which method, need which parameter etc. (class can regard an object as,
It include parameter and method in class, parameter is what this object possesses, and method is what this object can do).If all
Method all concentrates in a class, then can only need method and parameter, and return value can be obtained by asynchronism callback, the bridge joint
The function collection of mouth is the subsequent test item for needing to debug.Table 1 is a definition example of the embodiment of the present invention:
Table 1
In the present embodiment, calling interface is arranged in Javascript program includes: in Javascript program
The calling interface is set using public static keyword in CommonJsCallNative.java class, wherein described
CommonJsCallNative.java class carries the test template data, can specifically pass through data corresponding with keyword
Domain carries the test template data.This partial code is the function that native program is completed, and is supplied to js routine call, than
Such as, the function of local communication sheet cannot be directly viewable in js, it is necessary to by calling the code of native to go to open local communication
This, js is achieved the goal by calling the interface of native.
We write on the realization of native api in CommonJsCallNative.java class by taking android as an example;
CommonJsCallNative.java includes the code for generating html5 test template.Js is by calling native api can
To obtain the code for generating html5 test template.It can be realized by following code:
@JavascriptInterface public static void setNavTitle(final WebView
View, final String titleJson).
As shown in figure 3, Fig. 3 is the stream that the embodiment of the present invention generates html5 test page file according to test template data
Cheng Tu, generating html5 test page file according to the test template data includes:
S302 obtains the method name and parameter of the bridge joint mouth;
S304 fills the method name and the parameter in the test template data, generates html5 test page text
Part.
The code of test template is generated when precompile, the code of test template is exactly that a H5 pages of the inside contains
Js method, the implementation method of the corresponding native of each js method, so being to call and be called between native and js
Relationship.Js reads the generation of html5 test template by the interface of calling native in CommonJsCallNative.java
Code can generate html5 (h5) test template by the code in CommonJsCallNative.java in scanning js program;
The test template is for constructing web simulated environment, it is ensured that simulated environment and real running environment are consistent.
It include public static keyword in CommonJsCallNative.java, wherein public static is closed
Key word is for generating html5 (h5) test template;All js programs include: the js callback of the method name of native, fixation
Function (call back function).
All js routine call formats are: App.call ([methodName], successCallback,
FailCallback, jsonParam), App is that Javascript uniformly encapsulates the native for calling android and ios herein
The difference of method, so that android and ios is nondistinctive in js calling.Wherein, methodName is exactly the side of native
Religious name, successCallback, failCallback are fixed js callback functions.JsonParam can pass through note
Original test parameter value such as@jsparam={ " title ": " titl e " } is added in solution, and the text on button is
methodName。
In one example, when generating html5 test page, html can be generated using setNavTitle function and surveyed
It tries the page and passes through test template if there is multiple test functions then accordingly increase js method and corresponding button (button)
The method name and parameter for filling native, can automatically generate last test page file.
Fig. 4 is the flow chart that the embodiment of the present invention debugs bridge joint mouth on the html5 test page, as shown in figure 4, plus
The html5 test page file is carried, to debug the bridge joint mouth, comprising:
S402 obtains the log-on message for being used for game server, wherein the log-on message includes at least one of:
Single-sign-on information, token and session id;
S404 loads the html5 test page file, to show html5 test page, is stepped on using the log-on message
Record the html5 test page;
It is dynamic to trigger default debugging by the Native program under the login state of the html5 test page by S406
Make, and shows that the Javascript program responds the default debugging in the html5 test page by the bridge joint mouth
The debugging result generated after movement.
In the present embodiment, loading the html5 test page file includes: that the test page file is loaded onto page
Face shows control;Show that control shows the html5 test page on a user interface using the page.
By being packaged and being colonized in application software app by test page, the parameter of some js transmitting needs to log in state ratio
It, can be direct such as sso (single-sign-on, Single Sign On) information, token (token) or session Id (session id)
It is obtained from the local of App, so that the test of js can be repaired with the working condition in the practical h5 page of real simulation by js program
When changing ui (user interface) of App, for example, hiding title bar, shows title bar, title bar text or color, font are set
Deng, the environment that can be seen effect by the page of App, and test and generate can be switched by the server of app into
Row switching, is fully achieved seamless switching.Scheme through this embodiment, App developer and H5 developer are according to js-
Document defined in native interface can respective stand-alone development, and App staff development complete native api can lead to
Cross the html carry out unit testing, guarantee docking after efficiency, once H5 page development complete can direct joint debugging, while
The problem of H5 positioning test can be helped to find in the process.
Through the above description of the embodiments, those skilled in the art can be understood that according to above-mentioned implementation
The method of example can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but it is very much
In the case of the former be more preferably embodiment.Based on this understanding, technical solution of the present invention is substantially in other words to existing
The part that technology contributes can be embodied in the form of software products, which is stored in a storage
In medium (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal device (can be mobile phone, calculate
Machine, server or network equipment etc.) execute method described in each embodiment of the present invention.
Embodiment 2
A kind of device of debugging bridge joint mouth is additionally provided in the present embodiment, and the device is for realizing above-described embodiment and excellent
Embodiment is selected, the descriptions that have already been made will not be repeated.As used below, predetermined function may be implemented in term " module "
Software and/or hardware combination.Although device described in following embodiment is preferably realized with software, hardware,
Or the realization of the combination of software and hardware is also that may and be contemplated.
Fig. 5 is the structural block diagram of the device of debugging bridge joint mouth according to an embodiment of the present invention, as shown in figure 5, the device packet
It includes:
Setup module 50, for calling interface to be arranged in performing environment Javascript program, wherein the calling connects
Mouth is supplied to primary Native routine call, logical by bridge joint mouth between the Javascript program and the Native program
Letter;
Module 52 is obtained, for obtaining test template data by calling interface described in the Native routine call;
Generation module 54, for generating html5 test page file according to the test template data;
Debugging module 56, for loading the html5 test page file, to debug the bridge joint mouth.
Optionally, the debugging module includes: loading unit, is shown for the test page file to be loaded onto the page
Control;Display unit, for showing that control shows the html5 test page on a user interface using the page.
Optionally, the setup module includes: setting unit, in Javascript program
The calling interface is set using public static keyword in CommonJsCallNative.java class, wherein described
CommonJsCallNative.java class carries the test template data.
Optionally, the generation module includes: acquiring unit, for obtaining the method name and parameter of the bridge joint mouth;It is raw
Html5 test page text is generated for filling the method name and the parameter in the test template data at unit
Part.
Optionally, the debugging module includes: acquiring unit, for obtaining the log-on message for being used for game server,
In, the log-on message includes at least one of: single-sign-on information, token and session id;Unit is logged in, for loading
The html5 test page file logs on to the html5 using the log-on message and tests to show html5 test page
The page;Debugging unit, for triggering default adjust by the Native program under the login state of the html5 test page
Examination movement, and show that the Javascript program responds described preset in the html5 test page by the bridge joint mouth
The debugging result generated after debugging movement.
Optionally, described device includes: definition module, is used in the debugging module before debugging the bridge joint mouth,
Define the function collection of the bridge joint mouth, wherein the function collection includes class, and the class includes parameter and device.
Device through this embodiment is obtained the test template data of bridge joint mouth by Native program, and then loaded
Html5 test page file obtains to simulate the html5 test interface of real running environment, do not have to Native program and
Javascript program is ready to can be carried out bridge debugging simultaneously, when solving progress bridge debugging between program in the prior art
The too low technical problem of debugging efficiency, improves debugging efficiency.
It should be noted that above-mentioned modules can be realized by software or hardware, for the latter, Ke Yitong
Following manner realization is crossed, but not limited to this: above-mentioned module is respectively positioned in same processor;Alternatively, above-mentioned modules are with any
Combined form is located in different processors.
Embodiment 3
In several embodiments provided by the present invention, it should be understood that disclosed system, device and method can be with
It realizes by another way.For example, the apparatus embodiments described above are merely exemplary, for example, the unit
It divides, only a kind of logical function partition, there may be another division manner in actual implementation, for example, multiple units or group
Part can be combined or can be integrated into another system, or some features can be ignored or not executed.Another point, it is shown
Or the mutual coupling, direct-coupling or communication connection discussed can be through some interfaces, device or unit it is indirect
Coupling or communication connection can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple
In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme
's.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit
It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list
Member both can take the form of hardware realization, can also realize in the form of hardware adds SFU software functional unit.
The above-mentioned integrated unit being realized in the form of SFU software functional unit can store and computer-readable deposit at one
In storage media.Above-mentioned SFU software functional unit is stored in a storage medium, including some instructions are used so that a computer
It is each that device (can be personal computer, server or network equipment etc.) or processor (Processor) execute the present invention
The part steps of embodiment the method.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory (Read-
Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic or disk etc. it is various
It can store the medium of program code.
The embodiments of the present invention also provide a kind of storage medium, computer program is stored in the storage medium, wherein
The computer program is arranged to execute the step in any of the above-described embodiment of the method when operation.
Optionally, in the present embodiment, above-mentioned storage medium can be set to store by executing based on following steps
Calculation machine program:
Calling interface is arranged in performing environment Javascript program, wherein the calling interface is supplied to primary in S1
Native routine call passes through bridge joint port communications between the Javascript program and the Native program;
S2 obtains test template data by calling interface described in the Native routine call;
S3 generates html5 test page file according to the test template data;
S4 loads the html5 test page file, to debug the bridge joint mouth.
Optionally, in the present embodiment, above-mentioned storage medium can include but is not limited to: USB flash disk, read-only memory (Read-
Only Memory, referred to as ROM), it is random access memory (Random Access Memory, referred to as RAM), mobile hard
The various media that can store computer program such as disk, magnetic or disk.
The embodiments of the present invention also provide a kind of electronic device, including memory and processor, stored in the memory
There is computer program, which is arranged to run computer program to execute the step in any of the above-described embodiment of the method
Suddenly.
Optionally, above-mentioned electronic device can also include transmission device and input-output equipment, wherein the transmission device
It is connected with above-mentioned processor, which connects with above-mentioned processor.
Optionally, in the present embodiment, above-mentioned processor can be set to execute following steps by computer program:
Calling interface is arranged in performing environment Javascript program, wherein the calling interface is supplied to primary in S1
Native routine call passes through bridge joint port communications between the Javascript program and the Native program;
S2 obtains test template data by calling interface described in the Native routine call;
S3 generates html5 test page file according to the test template data;
S4 loads the html5 test page file, to debug the bridge joint mouth.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all in essence of the invention
Within mind and principle, any modification, equivalent substitution, improvement and etc. done be should be included within the scope of the present invention.
Claims (10)
1. a kind of method of debugging bridge joint mouth characterized by comprising
Calling interface is set in performing environment Javascript program, wherein the calling interface is supplied to primary Native
Routine call passes through bridge joint port communications between the Javascript program and the Native program;
Test template data are obtained by calling interface described in the Native routine call;
Html5 test page file is generated according to the test template data;
The html5 test page file is loaded, to debug the bridge joint mouth.
2. the method according to claim 1, wherein loading the html5 test page file and including:
The test page file is loaded onto the page and shows control;
Show that control shows the html5 test page on a user interface using the page.
3. the method according to claim 1, wherein setting calling interface includes: in Javascript program
It is arranged in the CommonJsCallNative.java class of Javascript program using public static keyword
The calling interface, wherein the CommonJsCallNative.java class carries the test template data.
4. the method according to claim 1, wherein generating html5 test sheets according to the test template data
Face file includes:
Obtain the method name and parameter of the bridge joint mouth;
The method name and the parameter are filled in the test template data, generate html5 test page file.
5. the method according to claim 1, wherein the html5 test page file is loaded, described in debugging
Bridge mouth, comprising:
Obtain the log-on message for being used for game server, wherein the log-on message includes at least one of: single-sign-on letter
Breath, token and session id;
The html5 test page file is loaded, to show html5 test page, is logged on to using the log-on message described
Html5 test page;
Under the login state of the html5 test page, default debugging movement is triggered by the Native program, and pass through institute
State what bridge joint mouth generated after the html5 test page shows that the Javascript program responds the default debugging movement
Debugging result.
6. the method according to claim 1, wherein before debugging the bridge joint mouth, which comprises
Define the function collection of the bridge joint mouth, wherein the function collection includes class, and the class includes parameter and method.
7. a kind of device of debugging bridge joint mouth, which is characterized in that described device includes:
Setup module, for calling interface to be arranged in performing environment Javascript program, wherein the calling interface provides
To primary Native routine call, pass through bridge joint port communications between the Javascript program and the Native program;
Module is obtained, for obtaining test template data by calling interface described in the Native routine call;
Generation module, for generating html5 test page file according to the test template data;
Debugging module, for loading the html5 test page file, to debug the bridge joint mouth.
8. device according to claim 7, which is characterized in that the debugging module includes:
Loading unit shows control for the test page file to be loaded onto the page;
Display unit, for showing that control shows the html5 test page on a user interface using the page.
9. a kind of computer equipment, including memory and processor, the memory are stored with computer program, feature exists
In the step of processor realizes any one of claims 1 to 6 the method when executing the computer program.
10. a kind of computer storage medium, is stored thereon with computer program, which is characterized in that the computer program is located
The step of reason device realizes method described in any one of claims 1 to 6 when executing.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811534520.5A CN109815115A (en) | 2018-12-14 | 2018-12-14 | Method and device, the computer equipment, storage medium of debugging bridge joint mouth |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811534520.5A CN109815115A (en) | 2018-12-14 | 2018-12-14 | Method and device, the computer equipment, storage medium of debugging bridge joint mouth |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109815115A true CN109815115A (en) | 2019-05-28 |
Family
ID=66602021
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811534520.5A Pending CN109815115A (en) | 2018-12-14 | 2018-12-14 | Method and device, the computer equipment, storage medium of debugging bridge joint mouth |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109815115A (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110493184A (en) * | 2019-07-09 | 2019-11-22 | 深圳壹账通智能科技有限公司 | The processing method of login page, device, electronic device in the client |
CN111638909A (en) * | 2020-05-20 | 2020-09-08 | 中国软件与技术服务股份有限公司 | Method and electronic device for cross-browser and cross-platform calling of scanning equipment |
CN111770072A (en) * | 2020-06-23 | 2020-10-13 | 北京思特奇信息技术股份有限公司 | Method and device for accessing function page through single sign-on |
CN113037814A (en) * | 2021-02-25 | 2021-06-25 | 平安壹钱包电子商务有限公司 | Web container injection implementation method and device, computer equipment and storage medium |
CN113392030A (en) * | 2021-07-30 | 2021-09-14 | 北京达佳互联信息技术有限公司 | Method and device for testing Js bridge and related equipment |
CN113448746A (en) * | 2020-12-30 | 2021-09-28 | 北京新氧科技有限公司 | Configuration processing method, configuration platform and related equipment |
CN113626321A (en) * | 2021-07-29 | 2021-11-09 | 北京达佳互联信息技术有限公司 | Bridging test method, device, system and storage medium |
-
2018
- 2018-12-14 CN CN201811534520.5A patent/CN109815115A/en active Pending
Cited By (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110493184A (en) * | 2019-07-09 | 2019-11-22 | 深圳壹账通智能科技有限公司 | The processing method of login page, device, electronic device in the client |
CN111638909A (en) * | 2020-05-20 | 2020-09-08 | 中国软件与技术服务股份有限公司 | Method and electronic device for cross-browser and cross-platform calling of scanning equipment |
CN111770072A (en) * | 2020-06-23 | 2020-10-13 | 北京思特奇信息技术股份有限公司 | Method and device for accessing function page through single sign-on |
CN111770072B (en) * | 2020-06-23 | 2022-04-19 | 北京思特奇信息技术股份有限公司 | Method and device for accessing function page through single sign-on |
CN113448746A (en) * | 2020-12-30 | 2021-09-28 | 北京新氧科技有限公司 | Configuration processing method, configuration platform and related equipment |
CN113448746B (en) * | 2020-12-30 | 2023-09-15 | 北京新氧科技有限公司 | Configuration processing method, configuration platform and related equipment |
CN113037814A (en) * | 2021-02-25 | 2021-06-25 | 平安壹钱包电子商务有限公司 | Web container injection implementation method and device, computer equipment and storage medium |
CN113037814B (en) * | 2021-02-25 | 2022-11-25 | 平安壹钱包电子商务有限公司 | Web container injection implementation method and device, computer equipment and storage medium |
CN113626321A (en) * | 2021-07-29 | 2021-11-09 | 北京达佳互联信息技术有限公司 | Bridging test method, device, system and storage medium |
CN113626321B (en) * | 2021-07-29 | 2024-03-19 | 北京达佳互联信息技术有限公司 | Bridging test method, device, system and storage medium |
CN113392030A (en) * | 2021-07-30 | 2021-09-14 | 北京达佳互联信息技术有限公司 | Method and device for testing Js bridge and related equipment |
CN113392030B (en) * | 2021-07-30 | 2023-10-24 | 北京达佳互联信息技术有限公司 | Method and device for testing Js bridge and related equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109815115A (en) | Method and device, the computer equipment, storage medium of debugging bridge joint mouth | |
CN106484622B (en) | Test method, apparatus and system | |
CN107133180B (en) | Dynamic page testing method, testing device and storage medium | |
CN105117233B (en) | API Calls method and device | |
CN105354014B (en) | Application interface renders methods of exhibiting and device | |
CN104978263B (en) | A kind of mobile terminal applied program testing method and system | |
CN104821954B (en) | A kind of cross-platform remote procedure calling (PRC) method | |
CN107291497A (en) | Multi-firmware upgrading method and system and readable storage medium | |
CN107133174A (en) | Test case code automatically generating device and method | |
CN107122301A (en) | Interface detection method and device | |
CN105955888A (en) | Page debugging and previewing method and system | |
CN106897216A (en) | The method and apparatus of test software | |
CN108446225A (en) | Creating device, method and the computer readable storage medium of analog interface | |
CN109783388A (en) | UI automated testing method, device and electronic equipment | |
CN107239271A (en) | Develop document structure tree method and device | |
CN109495870A (en) | The method and apparatus of bluetooth test | |
CN108228288A (en) | A kind of component system and its call method and device | |
CN107370804B (en) | Software application processing method and device | |
CN112988608B (en) | Data testing method and device, computer equipment and storage medium | |
CN108228444A (en) | A kind of test method and device | |
CN108563579A (en) | White-box testing method, apparatus, system and storage medium | |
CN108614767A (en) | A kind of remote debugging method and device | |
CN109712000A (en) | Repeat insure method for limiting, device, equipment and readable storage medium storing program for executing | |
CN107015801A (en) | A kind of web page display method and application terminal | |
CN107896173A (en) | Automated testing method, test equipment, automatization test system and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |