CN108664406A - Exploitation test method, terminal device and the medium of mobile application - Google Patents

Exploitation test method, terminal device and the medium of mobile application Download PDF

Info

Publication number
CN108664406A
CN108664406A CN201810495268.5A CN201810495268A CN108664406A CN 108664406 A CN108664406 A CN 108664406A CN 201810495268 A CN201810495268 A CN 201810495268A CN 108664406 A CN108664406 A CN 108664406A
Authority
CN
China
Prior art keywords
graphical control
node
design sketch
exploitation
preview area
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.)
Withdrawn
Application number
CN201810495268.5A
Other languages
Chinese (zh)
Inventor
罗浩欣
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
OneConnect Smart Technology Co Ltd
Original Assignee
OneConnect Smart Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by OneConnect Smart Technology Co Ltd filed Critical OneConnect Smart Technology Co Ltd
Priority to CN201810495268.5A priority Critical patent/CN108664406A/en
Publication of CN108664406A publication Critical patent/CN108664406A/en
Withdrawn legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3684Test management for test design, e.g. generating new test cases
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/34Graphical or visual programming

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Stored Programmes (AREA)

Abstract

The present invention is suitable for software testing technology field, provides a kind of exploitation test method, terminal device and the medium of mobile application, this method includes:Preset comprising in the system node list of multiple nodes, one or more nodes of user's selection are obtained;In interface preview area, graphical control corresponding with each node that user selects is shown;According to the graphical control parameter setting instruction and graphical control move received, each graphical control in the preview area of interface is adjusted, page development design sketch is obtained;If detecting the confirmation instruction of page development design sketch, obtain and each node and the exploitation code with the graphical control match parameters of each node;Exploitation code is imported into test terminal, so that the test updated application program of terminal operating exploitation code.The present invention realizes real-time, the intuitive displaying to development effectiveness, improves the testing efficiency of the mobile application based on React Native exploitations.

Description

Exploitation test method, terminal device and the medium of mobile application
Technical field
The invention belongs to exploitation test method, the terminals of software testing technology field more particularly to a kind of mobile application to set Standby and computer readable storage medium.
Background technology
React Native are the cross-platform mobile application Development Frameworks increased income, since it can support apple system (iPhone operating system, iOS) and two large platform of Android system, thus obtained in webpage front-end development field It is more and more widely used.Currently, front end developer is when using React Native come developer component, if it is desired to check and work as The real-time development effectiveness of front assembly then needs that code input mobile terminal will be tested, and after the completion of input, enables node and assure (node package manager, NPM) service is managed, thereby guarantees that mobile terminal can run the test code, to open again The dynamic application program for needing to show development effectiveness.Due to when testing the operation each time of code, the application journey on mobile terminal Sequence is required for returning to homepage, to load out development effectiveness.However, the page development effect if desired checked is not It is the homepage of application program, then front end developer, which needs to click manually could enter after multi-menu, required checks development effectiveness Test page, the development efficiency for consequently leading to the mobile application based on React Native exploitation is more low.
Invention content
In view of this, an embodiment of the present invention provides exploitation test method, terminal device and the calculating of a kind of mobile application Machine readable storage medium storing program for executing is more low with the development efficiency for solving the mobile application in the prior art based on React Native exploitations Under problem.
The first aspect of the embodiment of the present invention provides a kind of exploitation test method of mobile application, including:
Include the one or more sections in the system node list of multiple nodes, obtaining user's selection preset Point;
In interface preview area, graphical control corresponding with each node that user selects is shown;
According to the graphical control parameter setting instruction and graphical control move received, to the interface preview region Each graphical control in domain is adjusted, and obtains page development design sketch;
If detect the page development design sketch confirmation instruction, obtain with each node and with each institute State the exploitation code of the graphical control match parameters of node;
The exploitation code is imported into test terminal, so that the test terminal operating exploitation code is updated to apply journey Sequence.
The second aspect of the embodiment of the present invention provides a kind of terminal device, including memory and processor, described to deposit The computer program that can be run on the processor is stored in reservoir, the processor executes real when the computer program Now the step of exploitation test method of mobile application as described in relation to the first aspect.
The third aspect of the embodiment of the present invention provides a kind of computer readable storage medium, the computer-readable storage Media storage has computer program, and mobile application as described in relation to the first aspect is realized when the computer program is executed by processor Exploitation test method the step of.
In the embodiment of the present invention, the system node list of multiple nodes is included by displaying, and is provided in terminal interface The selection operation of node is carried out to developer so that as long as after user chooses the node needed for oneself in node listing, just It can be directly viewable the graphical control corresponding to the node in the preview area of interface, realize the intuitive exhibition to development effectiveness Show;Each graphical control is neatly adjusted since developer can send out graphical control move in image preview area Position or shape size, without will test code import mobile terminal, without start terminal NPM service, just can be real When understand oneself exploitation mobile application page display effect.Accordingly, with respect to the test method of traditional mobile application For, improve the testing efficiency of the mobile application based on React Native exploitations.Also, institute is matched by each node Exploitation code has been generated in advance, thus after it confirmed current page development design sketch, can directly generate finally required open Code is sent out, after importing test terminal, final required exploitation just can be shown on mobile terminals by primary manual operations The page repeatedly clicks to enter test page and carries out the debugging operations of page display effect, therefore also provides without repeating The development efficiency of mobile application.
Description of the drawings
It to describe the technical solutions in the embodiments of the present invention more clearly, below will be to embodiment or description of the prior art Needed in attached drawing be briefly described, it should be apparent that, the accompanying drawings in the following description be only the present invention some Embodiment for those of ordinary skill in the art without having to pay creative labor, can also be according to these Attached drawing obtains other attached drawings.
Fig. 1 is the implementation flow chart of the exploitation test method of mobile application provided in an embodiment of the present invention;
Fig. 2 is the specific implementation flow chart of the test development method S104 of mobile application provided in an embodiment of the present invention;
Fig. 3 is the implementation flow chart of the exploitation test method for the mobile application that another embodiment of the present invention provides;
Fig. 4 is the specific implementation flow chart of the test development method S103 of mobile application provided in an embodiment of the present invention;
Fig. 5 is the structure diagram of the exploitation test device of mobile application provided in an embodiment of the present invention;
Fig. 6 is the schematic diagram of terminal device provided in an embodiment of the present invention.
Specific implementation mode
In being described below, for illustration and not for limitation, it is proposed that such as tool of particular system structure, technology etc Body details, to understand thoroughly the embodiment of the present invention.However, it will be clear to one skilled in the art that there is no these specific The present invention can also be realized in the other embodiments of details.In other situations, it omits to well-known system, device, electricity The detailed description of road and method, in case unnecessary details interferes description of the invention.
In order to illustrate technical solutions according to the invention, illustrated below by specific embodiment.
The exploitation test method and device of mobile application provided in an embodiment of the present invention can be applied to all kinds of terminal devices In, including tablet, palm PC (Personal Digital Assistant, PDA), PC (personal Computer, PC) and server, etc..Wherein, the exploitation test environment for having mobile application is run in above-mentioned terminal device, And above-mentioned terminal device can be connected via wire or wirelessly mode to be communicated with test terminal, to realize exploitation code It imports or exports.
Fig. 1 shows the implementation process of the exploitation test method of mobile application provided in an embodiment of the present invention, and details are as follows:
S101:Preset comprising in the system node list of multiple nodes, one or more institutes of user's selection are obtained State node.
In the embodiment of the present invention, in the predeterminable area of terminal interface, such as left area, displaying has one be generated in advance and is System node listing.Record has the attribute information of multiple nodes in system node list, and the attribute information of each node is for describing The title of the corresponding graphical control of the node.The movement that graphical control corresponding to node is used to indicate to develop needed for user A figure in the test page of application.
For example, there are first node that attribute information is " TEXT " or second node that attribute information is " logo ", Then entitled " TEXT " of the graphical control corresponding to first node indicates that developer wants the test in mobile application A text box is added in the page;Entitled " logo " of graphical control corresponding to second node indicates that developer thinks A pattern is added in the display page of mobile application.
Each node in system node list is showed in terminal interface in the form of menu key.Pass through what is pre-actuated Worker thread is persistently monitored each node, to determine whether to detect that the selection that user sends out refers in any node It enables.If detecting, user instructs the selection that any node is sent out, and the node that the node is last level, then to the node It is selected;If detecting, user instructs the selection that any node is sent out, and the node is not the node of last level, then The each child node belonged under the node is shown, to detect a child node selected by user again.
In the embodiment of the present invention, each node or child node node type having the same with same root node, So that each node corresponding to the graphical control of same type can be showed in the close position in system node list.
S102:In interface preview area, graphical control corresponding with each node that user selects is shown.
In terminal interface, in addition to it is above-mentioned for the predeterminable area of display systems node listing other than, there is also for showing Develop another display area of the real-time display effect of the page, specially interface preview area.In the embodiment of the present invention, according to upper State the node or child node (being referred to as node) and preset node and graphical control of the last one selected level of user Correspondence, determine the corresponding graphical control of the node.The each graphical control determined is shown in interface preview area.
S103:According to the graphical control parameter setting instruction and graphical control move received, to the interface Each graphical control in preview area is adjusted, and obtains page development design sketch.
Under original state, each graphical control position shown in the preview area of interface is random site point.Only exist When receiving input by user and the associated graphical control parameter setting instruction of graphical control or graphical control move, In the preview area of interface, the display location of the graphical control is adjusted.
In the embodiment of the present invention, graphical control parameter setting instruction is according to detected in the control property frame of graphical control Input value trigger.Specifically, when a graphical control is clicked selection, the control property frame of the graphical control is popped up, with The input field of displaying and the associated every graphical control parameter of the graphical control.Graphical control parameter includes but not limited to figure control Length value, width value, height value, saturation degree, contrast, transparency, shade and line weight of part etc..Based on acquiring Every graphical control parameter, the display effect of the graphical control is adjusted.
Graphical control move triggers the click moving operation performed by graphical control according to user, alternatively, root The coordinate value that is inputted in above-mentioned control property frame according to user triggers.If detecting the graphical control triggered based on coordinate value Move, then determine a position corresponding to the coordinate points in the preview area of interface, and by the center of graphical control Point is moved to the position.If the graphical control move triggered based on click moving operation is detected, by graphical control Central point be moved to the position of touch point detected in real time.
After the completion of each graphical control in the preview area of interface has adjusted, by the preview area of interface by each figure The image output obtained combined by shape control is page development design sketch, then the page development design sketch will be used as user to need to open The bandwagon effect face of a test page on the mobile application of hair.
S104:If detect the page development design sketch confirmation instruction, obtain with each node and with The exploitation code of the graphical control match parameters of each node.
In the embodiment of the present invention, user is after checking page development design sketch, if confirming the page development design sketch and oneself The desired effects matching for the test page developed needed for oneself, then can send out page development effect and confirm instruction, at this point, recording each Graphical control parameter associated by graphical control.It is automatically generated based on the graphical control parameter matched with each graphical control One section of exploitation code.
Specifically, as an embodiment of the present invention, Fig. 2 shows the surveys of mobile application provided in an embodiment of the present invention The specific implementation flow of runin forwarding method S104, details are as follows:
S1041:If the confirmation instruction of the page development design sketch is detected, in the page development design sketch Each node, respectively call with the node and with preset java script object mark corresponding to its graphical control parameter Remember Json character strings.
When detecting that user instructs the confirmation that interface preview area is sent out, determine that page development design sketch is completed.This When, according to each graphical control shown in page development design sketch, identify node corresponding with graphical control.Due to every One node is prefixed the Json character strings under its corresponding original state by developer, therefore it is preset to directly read out this After Json character strings, according to every graphical control parameter of the graphical control, respectively to every attribute value in Json character strings Carry out editing and processing so that the Json character strings after the completion of editing can be opposite with current node and graphical control parameter It answers.
S1042:Each Json character strings are parsed, and convert based on React each Json character strings to The JavaScript code of Native.
In the embodiment of the present invention, by preset algorithm, the character string based on Json formats in the preview area of interface is turned It is changed to the JavaScript code based on React Native, ensure that, which will subsequently be based on JavaScript code, imports based on React After the test terminal of Native frames, scripted code can directly be run installation process, go out to lead to test terminal The case where now compiling fails, therefore improve the successfully tested rate of mobile application and provide testing efficiency.
Wherein, the above-mentioned mistake for converting each Json character strings to the JavaScript code based on React Native Journey specifically includes:To each Json character strings, according to the corresponding node of the Json character strings in the system node Hierarchical relationship in list determines the function body belonging to each object in the Json character strings;Wherein, the system node row Table is arranged in tree structure, and the function body is the preset JavaScript code function body;It will be every in the Json character strings The attribute value of an object stores to the function body belonging to the object, and the function name of the function body is changed to the object Object name, obtain the JavaScript code with the Json string matchings.
In the embodiment of the present invention, since each node in system node list is in tree structure arrangement, so that The data structure of each Json character strings is similarly tree structure, and tree structure data has higher parsing transformation efficiency, Therefore the development efficiency of mobile application is also improved indirectly.
S105:The exploitation code is imported into test terminal, so that the test terminal operating exploitation code is updated Application program.
In the embodiment of the present invention, wired connection is carried out by data line and one or more preset test terminal respectively, Alternatively, being wirelessly connected through wireless communication with test terminal.After log-on data transmission service, given birth to above-mentioned At exploitation code import test terminal.The touch-control thing obtained based on the ReactNative frames and detection tested in terminal Part, test terminal start its NPM services, are read out, are parsed with the exploitation code to importing, installed and operation is handled.It is opening After the completion of sending out code compilation operation, the updated application program of exploitation code is restarted, and receiving multi-layer input by user After menu chooses instruction, into the selected menu hierarchy of access customer, imitated with above-mentioned page development with being shown in the test page Fruit schemes the identical display page.
In the embodiment of the present invention, the system node list of multiple nodes is included by displaying, and is provided in terminal interface The selection operation of node is carried out to developer so that as long as after user chooses the node needed for oneself in node listing, just It can be directly viewable the graphical control corresponding to the node in the preview area of interface, realize the intuitive exhibition to development effectiveness Show;Each graphical control is neatly adjusted since developer can send out graphical control move in image preview area Position or shape size, without will test code import mobile terminal, without start terminal NPM service, just can be real When understand oneself exploitation mobile application page display effect.Accordingly, with respect to the test method of traditional mobile application For, improve the testing efficiency of the mobile application based on React Native exploitations.Also, institute is matched by each node Exploitation code has been generated in advance, thus after it confirmed current page development design sketch, can directly generate finally required open Code is sent out, after importing test terminal, final required exploitation just can be shown on mobile terminals by primary manual operations The page repeatedly clicks to enter test page and carries out the debugging operations of page display effect, therefore also provides without repeating The development efficiency of mobile application.
As another embodiment of the present invention, as shown in figure 3, after above-mentioned S103, before above-mentioned S104, also wrap It includes:
S106:In the page development design sketch, exported being combined comprising the graphical control of each graphical control For new graphical control, and generate the node corresponding to the new graphical control.
In the embodiment of the present invention, when at interface, preview area receives control generation instruction, obtain in the preview screen of interface Existing each graphical control, and above-mentioned each graphical control is combined as to the new graphical control of an Integral movable. For the ease of the graphical control distinguished newly-generated graphical control and be originally present in the preview area of interface, script is existed Each graphical control in the preview screen of interface as the first graphical control, the graphical control that current time is generated as Second graph control.
In the embodiment of the present invention, include wherein each first figure with the associated graphical control parameter of second graph control The graphical control parameter of control, also, by each first graphical control and its between location interval overall length angle value output be The length value of second graph control;By each first graphical control and its between location interval beam overall angle value output be second The width value of graphical control, so analogizes.
Since each node is corresponding with a graphical control, above-mentioned second figure is being generated based on control generation instruction After shape control, new node corresponding with the second graph control is generated together.
S107:The node of generation is preserved to User- defined Node list.
In the embodiment of the present invention, deposited for the ease of distinguishing to be generated to instruct generated node and originally give tacit consent to according to control Each node, instruct generated node to store into User- defined Node list by being generated according to control.In terminal interface, Each node included in User- defined Node list is shown in the form of button.
Preferably, it in the node in generating User- defined Node list, in preset duration, is moved according to the node received Dynamic instruction, can move the node and other each nodes in User- defined Node list, so that the node of the generation With other above-mentioned each node-homes under same level, the node of identification same type is searched convenient for user.
S108:If detecting the node choosing respectively in the User- defined Node list and the system node list Instruction fetch renders the graphical control combination and the graphical control, after obtaining update then in the interface preview area The page development design sketch.
After generating a new graphical control, cancel each graphical control in display interface preview area, in user After re-emitting node selection instruction, just interface preview area is rendered again.
In the embodiment of the present invention, if there are at least one nodes in User- defined Node list, persistently to User- defined Node List and system node list are monitored, to receive user respectively in User- defined Node list and system node list The node selection instruction sent out.It is executed in interface preview area at this point, returning, shows each node phase selected with user Corresponding graphical control;According to the graphical control parameter setting instruction and graphical control move received, to the boundary Each graphical control in the preview area of face is adjusted, and obtains page development design sketch.Since the currently available page is opened Hair design sketch contains newly-increased second graph control, different from the obtained page development design sketch of above-mentioned steps S103, therefore It can obtain that display content is more abundant, updated page development design sketch.
In the embodiment of the present invention, after each node that system node list reception to user selects, by pre- at interface The corresponding graphical control of each node of zone rendering of looking at, and each graphical control parameter is adjusted, it can obtain meeting user The page development design sketch of exploitation demand.By the way that each graphical control for having adjusted completion is integrated into new graphical control and is deposited Storage is to User- defined Node list so that user, can be from self-defined when wanting to render identical each graphical control next time In node listing, the node combined corresponding to the new graphical control of completion is promptly called, no longer needs to select one by one each Fundamental figure control and setting graphical control parameter, this improves the development efficiency of the page, reduce the numerous of exploitation test Trivial degree.
As an embodiment of the present invention, Fig. 4 shows the test development of mobile application provided in an embodiment of the present invention The specific implementation flow of method S103, details are as follows:
S1031:According to the graphical control parameter setting instruction input by user about graphical control, the graphical control is obtained Graphical control parameter base.
When it is non-null value to detect length value in graphical control parameter and width value, to the length value and width value It is read out, and adjacent to the unit character of the length value and width value after reading.Wherein, only when length value and width value Unit character it is identical when, just allow user send out graphical control parameter confirm instruction.
In the embodiment of the present invention, the unit character of preset multiple bases, including apple system (Iphone are loaded Operating System, IOS) system institute default setting unit character px, the unit character of Android system institute default setting dp.Base corresponding to unit character px and dp is identified as pixel unit.
In the embodiment of the present invention, will be above-mentioned after adjacent to length value unit character respectively with pre-stored unit character px with And dp is compared, to judge whether the unit character after this adjacent to length value is px or dp.If judging result result is yes, Determine that the base of this graphical control parameter is pixel unit.Similarly, if the unit character after above-mentioned adjacent to width value is Px or dp, it is determined that the base of this graphical control parameter is pixel unit.
S1032:If the base of the graphical control parameter is pixel unit, it is pre- to detect interface described in current time Look at second length value and the second width value in region.
If it is determined that the base of currently received graphical control parameter is pixel unit, then according to terminal interface In, each position point coordinates residing for the preview area of interface calculates the length value and width value of interface preview area.
S1033:Calculate separately the first ratio of first length value and second length value and described first wide Second ratio of angle value and second width value.
The quotient for calculating the length value of the length value and interface preview area in graphical control parameter, obtains the first ratio;Meter The quotient for calculating the width value of the width value and interface preview area in graphical control parameter, obtains the second ratio.Wherein, each ratio It is identified for the form of percentage.
S1034:According to first ratio and second ratio, to the figure control in the interface preview area Part carries out size adjusting, and according to the graphical control move received, and position adjustment is carried out to the graphical control.
In the embodiment of the present invention, according to the first ratio on length direction and the second ratio in width direction, to figure Graphical control associated by shape control parameter carries out size adjusting.After the completion of size adjusting, rendered in the preview area of interface The graphical control of fixed size, and according to the graphical control move received, the display location of mobile graphics control.
Since the resolution ratio at different terminals interface is different, pixel density is different, thus will appear same base unit and same The problem of different page display effects is presented in the graphical control of one size in different terminal interfaces.For example, being in resolution ratio 1080*1920, pixel density is on 3 terminal interface, for the graphical control that a width value is 108px, which answers It is 480*800 when occupying the 1/10 of terminal interface width, however in resolution ratio, on the terminal interface that pixel density is 1, shows The graphical control arrived will be 36px, only account for the 3/40 of terminal interface width.Therefore, in the embodiment of the present invention, by identifying The base of graphical control parameter precomputes graphical control and interface preview region when base is pixel unit The relatively long angle value and relatively wide angle value in domain ensure that the display effect of the graphical control rendered in interface preview area Fruit is identical as the display effect being finally shown in test terminal interface, avoids because of actual test page display effect and boundary Display effect in the preview screen of face is different and the case where cause test process to need to re-start, this improves pages The efficiency of face exploitation.
It should be understood that the size of the serial number of each step is not meant that the order of the execution order in above-described embodiment, each process Execution sequence should be determined by its function and internal logic, the implementation process without coping with the embodiment of the present invention constitutes any limit It is fixed.
Corresponding to the exploitation test method for the mobile application that the embodiment of the present invention is provided, Fig. 5 shows implementation of the present invention The structure diagram of the exploitation test device for the mobile application that example provides.For convenience of description, it illustrates only related to the present embodiment Part.
With reference to Fig. 5, which includes:
First acquisition unit 51, for, comprising in the system node list of multiple nodes, acquisition user to choose preset The one or more nodes.
Display unit 52, the corresponding figure of each node in interface preview area, showing with user selects Shape control.
Adjustment unit 53, the graphical control parameter setting instruction received for basis and graphical control move, Each graphical control in the interface preview area is adjusted, page development design sketch is obtained.
Second acquisition unit 54, if for detect the page development design sketch confirmation instruct, obtain with it is each The node and exploitation code with the graphical control match parameters of each node.
Import unit 55, for the exploitation code to be imported test terminal, so that the test terminal operating develops generation The updated application program of code.
Optionally, the exploitation test device of above-mentioned mobile application further includes:
Generation unit, in the page development design sketch, the graphical control of each graphical control will to be included Combination output is new graphical control, and generates the node corresponding to the new graphical control.
Storage unit, for preserving the node generated to User- defined Node list.
Updating unit, if for detecting institute respectively in the User- defined Node list and the system node list Node selection instruction is stated, then in the interface preview area, renders the graphical control combination and the graphical control, obtains To the updated page development design sketch.
Optionally, the graphical control parameter includes the first length value and the first width value of graphical control, the tune Whole unit 53 includes:
Subelement is obtained, for according to the graphical control parameter setting instruction input by user about graphical control, obtaining The base of the graphical control parameter of the graphical control.
Detection sub-unit detects current time if the base for the graphical control parameter is pixel unit The second length value and the second width value of the interface preview area.
Computation subunit, the first ratio for calculating separately first length value and second length value and institute State the second ratio of the first width value and second width value.
Subelement is adjusted, is used for according to first ratio and second ratio, in the interface preview area The graphical control carry out size adjusting, and according to the graphical control move received, position is carried out to the graphical control Adjustment.
Optionally, the second acquisition unit 54 includes:
Subelement is called, if for detecting that the confirmation of the page development design sketch instructs, the page is opened Send out design sketch in each node, respectively call with the node and with preset Java corresponding to its graphical control parameter Scripting object marks Json character strings.
Conversion subunit is converted into base for parsing each Json character strings, and by each Json character strings In the JavaScript code of React Native.
Optionally, the transforming subunit is specifically used for:
To each Json character strings, according to the corresponding node of the Json character strings in the system node list In hierarchical relationship, determine the function body belonging to each object in the Json character strings;Wherein, the system node list is in Tree structure is arranged, and the function body is the preset JavaScript code function body;
Each object's property value in the Json character strings is stored to the function body belonging to the object, and will be described The function name of function body is changed to the object name of the object, obtains the JavaScript code with the Json string matchings.
Fig. 6 is the schematic diagram for the terminal device that one embodiment of the invention provides.As shown in fig. 6, the terminal of the embodiment is set Standby 6 include:Processor 60 and memory 61 are stored with the calculating that can be run on the processor 60 in the memory 61 Machine program 62, for example, mobile application exploitation test program.The processor 60 is realized when executing the computer program 62 State the step in the exploitation test method embodiment of each mobile application, such as step 101 shown in FIG. 1 is to 105.Alternatively, institute The function that each module/unit in above-mentioned each device embodiment is realized when processor 60 executes the computer program 62 is stated, such as The function of unit 51 to 55 shown in Fig. 5.
Illustratively, the computer program 62 can be divided into one or more module/units, it is one or Multiple module/units are stored in the memory 61, and are executed by the processor 60, to complete the present invention.Described one A or multiple module/units can be the series of computation machine program instruction section that can complete specific function, which is used for Implementation procedure of the computer program 62 in the terminal device 6 is described.
The terminal device 6 can be that the calculating such as desktop PC, notebook, palm PC and cloud server are set It is standby.The terminal device may include, but be not limited only to, processor 60, memory 61.It will be understood by those skilled in the art that Fig. 6 The only example of terminal device 6 does not constitute the restriction to terminal device 6, may include than illustrating more or fewer portions Part either combines certain components or different components, such as the terminal device can also include input-output equipment, net Network access device, bus etc..
Alleged processor 60 can be central processing unit (Central Processing Unit, CPU), can also be Other general processors, digital signal processor (Digital Signal Processor, DSP), application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field- Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic, Discrete hardware components etc..General processor can be microprocessor or the processor can also be any conventional processor Deng.
The memory 61 can be the internal storage unit of the terminal device 6, such as the hard disk of terminal device 6 or interior It deposits.The memory 61 can also be to be equipped on the External memory equipment of the terminal device 6, such as the terminal device 6 Plug-in type hard disk, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card dodge Deposit card (Flash Card) etc..Further, the memory 61 can also both include the storage inside list of the terminal device 6 Member also includes External memory equipment.The memory 61 is for storing needed for the computer program and the terminal device Other programs and data.The memory 61 can be also used for temporarily storing the data that has exported or will export.
It is apparent to those skilled in the art that for convenience of description and succinctly, only with above-mentioned each work( Can unit, module division progress for example, in practical application, can be as needed and by above-mentioned function distribution by different Functional unit, module are completed, i.e., the internal structure of described device are divided into different functional units or module, more than completion The all or part of function of description.Each functional unit, module in embodiment can be integrated in a processing unit, also may be used It, can also be above-mentioned integrated during two or more units are integrated in one unit to be that each unit physically exists alone The form that hardware had both may be used in unit is realized, can also be realized in the form of SFU software functional unit.In addition, each function list Member, the specific name of module are also only to facilitate mutually distinguish, the protection domain being not intended to limit this application.Above system The specific work process of middle unit, module, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, is not described in detail or remembers in some embodiment The part of load may refer to the associated description of other embodiments.
Those of ordinary skill in the art may realize that lists described in conjunction with the examples disclosed in the embodiments of the present disclosure Member and algorithm steps can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually It is implemented in hardware or software, depends on the specific application and design constraint of technical solution.Professional technician Each specific application can be used different methods to achieve the described function, but this realization is it is not considered that exceed The scope of the present invention.
In embodiment provided by the present invention, it should be understood that disclosed device/terminal device and method, it can be with It realizes by another way.For example, device described above/terminal device embodiment is only schematical, for example, institute The division of module or unit is stated, only a kind of division of logic function, formula that in actual implementation, there may be another division manner, such as Multiple units or component can be combined or can be integrated into another system, or some features can be ignored or not executed.Separately A bit, shown or discussed mutual coupling or direct-coupling or communication connection can be by some interfaces, device Or INDIRECT COUPLING or the communication connection of unit, can be electrical, machinery or other forms.
The unit illustrated as separating component may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, you can be located at a place, or may be distributed over multiple In network element.Some or all of unit therein can be selected according to the actual needs to realize the mesh of this embodiment scheme 's.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, it can also It is that each unit physically exists alone, it can also be during two or more units be integrated in one unit.Above-mentioned integrated list The form that hardware had both may be used in member is realized, can also be realized in the form of SFU software functional unit.
If the integrated module/unit be realized in the form of SFU software functional unit and as independent product sale or In use, can be stored in a computer read/write memory medium.Based on this understanding, the present invention realizes above-mentioned implementation All or part of flow in example method, can also instruct relevant hardware to complete, the meter by computer program Calculation machine program can be stored in a computer readable storage medium, the computer program when being executed by processor, it can be achieved that on The step of stating each embodiment of the method..Wherein, the computer program includes computer program code, the computer program Code can be source code form, object identification code form, executable file or certain intermediate forms etc..Computer-readable Jie Matter may include:Can carry the computer program code any entity or device, recording medium, USB flash disk, mobile hard disk, Magnetic disc, CD, computer storage, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium etc..It should be noted that described The content that computer-readable medium includes can carry out increasing appropriate according to legislation in jurisdiction and the requirement of patent practice Subtract, such as in certain jurisdictions, according to legislation and patent practice, computer-readable medium does not include electric carrier signal and electricity Believe signal.
Embodiment described above is merely illustrative of the technical solution of the present invention, rather than its limitations;Although with reference to aforementioned reality Applying example, invention is explained in detail, it will be understood by those of ordinary skill in the art that:It still can be to aforementioned each Technical solution recorded in embodiment is modified or equivalent replacement of some of the technical features;And these are changed Or replace, the spirit and scope for various embodiments of the present invention technical solution that it does not separate the essence of the corresponding technical solution should all It is included within protection scope of the present invention.

Claims (10)

1. a kind of exploitation test method of mobile application, which is characterized in that including:
Include the one or more nodes in the system node list of multiple nodes, obtaining user's selection preset;
In interface preview area, graphical control corresponding with each node that user selects is shown;
According to the graphical control parameter setting instruction and graphical control move received, in the interface preview area Each graphical control be adjusted, obtain page development design sketch;
If detect the page development design sketch confirmation instruction, obtain with each node and with each section The exploitation code of the graphical control match parameters of point;
The exploitation code is imported into test terminal, so that the updated application program of the test terminal operating exploitation code.
2. exploitation test method as described in claim 1, which is characterized in that in the graphical control parameter that the basis receives Setting instruction and graphical control move, are adjusted each graphical control in the interface preview area, After obtaining page development design sketch, if in the confirmation instruction for detecting the page development design sketch, obtain and each Before the exploitation code of a node and graphical control match parameters, further include:
To be new figure comprising the combination output of the graphical control of each graphical control in the page development design sketch Control, and generate the node corresponding to the new graphical control;
The node of generation is preserved to User- defined Node list;
If detecting the node selection instruction respectively in the User- defined Node list and the system node list, In the interface preview area, the graphical control combination and the graphical control are rendered, the updated page is obtained Face development effectiveness figure.
3. exploitation test method as described in claim 1, which is characterized in that the graphical control parameter includes graphical control First length value and the first width value, graphical control parameter setting instruction and the graphical control movement that the basis receives Instruction, is adjusted each graphical control in the interface preview area, obtains page development design sketch, including:
According to the graphical control parameter setting instruction input by user about graphical control, the graphical control of the graphical control is obtained The base of parameter;
If the base of the graphical control parameter is pixel unit, the of interface preview area described in current time is detected Two length values and the second width value;
Calculate separately first length value and second length value the first ratio and first width value with it is described Second ratio of the second width value;
According to first ratio and second ratio, size is carried out to the graphical control in the interface preview area Adjustment, and according to the graphical control move received, position adjustment is carried out to the graphical control.
4. exploitation test method as described in claim 1, which is characterized in that if described detect the page development design sketch Confirmation instruction, then obtain with each node and the exploitation generation with the graphical control match parameters of each node Code, including:
If detecting the confirmation instruction of the page development design sketch, for each described in the page development design sketch Node, respectively call with the node and with preset java script object tag Json characters corresponding to its graphical control parameter String;
Each Json character strings are parsed, and convert each Json character strings to the Java based on React Native Scripted code.
5. exploitation test method as claimed in claim 4, which is characterized in that each Json character strings of parsing, and Convert each Json character strings to the JavaScript code based on React Native, including:
To each Json character strings, according to the corresponding node of the Json character strings in the system node list Hierarchical relationship determines the function body belonging to each object in the Json character strings;Wherein, the system node list is in tree-like Structural assignments, the function body are the preset JavaScript code function body;
Each object's property value in the Json character strings is stored to the function body belonging to the object, and by the function The function name of body is changed to the object name of the object, obtains the JavaScript code with the Json string matchings.
6. a kind of terminal device, including memory and processor, it is stored with and can transports on the processor in the memory Capable computer program, which is characterized in that the processor realizes following steps when executing the computer program:
Include the one or more nodes in the system node list of multiple nodes, obtaining user's selection preset;
In interface preview area, graphical control corresponding with each node that user selects is shown;
According to the graphical control parameter setting instruction and graphical control move received, in the interface preview area Each graphical control be adjusted, obtain page development design sketch;
If detect the page development design sketch confirmation instruction, obtain with each node and with each section The exploitation code of the graphical control match parameters of point;
The exploitation code is imported into test terminal, so that the updated application program of the test terminal operating exploitation code.
7. terminal device as claimed in claim 6, which is characterized in that when the processor executes the computer program, also Realize following steps:
To be new figure comprising the combination output of the graphical control of each graphical control in the page development design sketch Control, and generate the node corresponding to the new graphical control;
The node of generation is preserved to User- defined Node list;
If detecting the node selection instruction respectively in the User- defined Node list and the system node list, In the interface preview area, the graphical control combination and the graphical control are rendered, the updated page is obtained Face development effectiveness figure.
8. terminal device as claimed in claim 6, which is characterized in that the graphical control parameter includes the first of graphical control Length value and the first width value, graphical control parameter setting instruction and the graphical control movement that the basis receives refer to It enables, each graphical control in the interface preview area is adjusted, page development design sketch is obtained, including:
According to the graphical control parameter setting instruction input by user about graphical control, the graphical control of the graphical control is obtained The base of parameter;
If the base of the graphical control parameter is pixel unit, the of interface preview area described in current time is detected Two length values and the second width value;
Calculate separately first length value and second length value the first ratio and first width value with it is described Second ratio of the second width value;
According to first ratio and second ratio, size is carried out to the graphical control in the interface preview area Adjustment, and according to the graphical control move received, position adjustment is carried out to the graphical control.
9. terminal device as claimed in claim 6, which is characterized in that if described detect the page development design sketch really Recognize instruction, then acquisition and each node and the exploitation code with the graphical control match parameters of each node, Including:
If detecting the confirmation instruction of the page development design sketch, for each described in the page development design sketch Node, respectively call with the node and with preset java script object tag Json characters corresponding to its graphical control parameter String;
Each Json character strings are parsed, and convert each Json character strings to the Java based on React Native Scripted code.
10. a kind of computer readable storage medium, the computer-readable recording medium storage has computer program, feature to exist In when the computer program is executed by processor the step of any one of such as claim 1 to 5 of realization the method.
CN201810495268.5A 2018-05-22 2018-05-22 Exploitation test method, terminal device and the medium of mobile application Withdrawn CN108664406A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810495268.5A CN108664406A (en) 2018-05-22 2018-05-22 Exploitation test method, terminal device and the medium of mobile application

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810495268.5A CN108664406A (en) 2018-05-22 2018-05-22 Exploitation test method, terminal device and the medium of mobile application

Publications (1)

Publication Number Publication Date
CN108664406A true CN108664406A (en) 2018-10-16

Family

ID=63777343

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810495268.5A Withdrawn CN108664406A (en) 2018-05-22 2018-05-22 Exploitation test method, terminal device and the medium of mobile application

Country Status (1)

Country Link
CN (1) CN108664406A (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109656453A (en) * 2018-12-20 2019-04-19 树根互联技术有限公司 Rule editing method, apparatus and equipment
CN109828900A (en) * 2018-12-14 2019-05-31 深圳壹账通智能科技有限公司 Test script automatic generation method, device, electronic equipment and storage medium
CN109840202A (en) * 2018-12-15 2019-06-04 深圳壹账通智能科技有限公司 Application program control detection method, device, electronic equipment and storage medium
CN109947402A (en) * 2019-03-27 2019-06-28 深兰科技(上海)有限公司 A kind of item development system
CN110334027A (en) * 2019-07-04 2019-10-15 深圳市腾讯网域计算机网络有限公司 Game picture test method and device
CN110442330A (en) * 2019-07-05 2019-11-12 五八有限公司 List element conversion method, device, electronic equipment and storage medium
CN110750263A (en) * 2019-10-15 2020-02-04 广州维思车用部件有限公司 Vehicle instrument development data generation method and device
CN111695882A (en) * 2020-06-18 2020-09-22 行吟信息科技(武汉)有限公司 Dotting test method and platform
CN112527621A (en) * 2019-09-17 2021-03-19 中移动信息技术有限公司 Test path construction method, device, equipment and storage medium
CN113448832A (en) * 2020-06-18 2021-09-28 北京新氧科技有限公司 Control exposure detection method and application program operation monitoring system

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103777928A (en) * 2012-10-17 2014-05-07 神州数码融信软件有限公司 Graph front-end system for bank foreground operation interface

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103777928A (en) * 2012-10-17 2014-05-07 神州数码融信软件有限公司 Graph front-end system for bank foreground operation interface

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109828900A (en) * 2018-12-14 2019-05-31 深圳壹账通智能科技有限公司 Test script automatic generation method, device, electronic equipment and storage medium
CN109840202A (en) * 2018-12-15 2019-06-04 深圳壹账通智能科技有限公司 Application program control detection method, device, electronic equipment and storage medium
CN109656453A (en) * 2018-12-20 2019-04-19 树根互联技术有限公司 Rule editing method, apparatus and equipment
CN109947402B (en) * 2019-03-27 2022-11-11 深兰科技(上海)有限公司 Project development system
CN109947402A (en) * 2019-03-27 2019-06-28 深兰科技(上海)有限公司 A kind of item development system
CN110334027A (en) * 2019-07-04 2019-10-15 深圳市腾讯网域计算机网络有限公司 Game picture test method and device
CN110334027B (en) * 2019-07-04 2024-04-12 深圳市腾讯网域计算机网络有限公司 Game picture testing method and device
CN110442330A (en) * 2019-07-05 2019-11-12 五八有限公司 List element conversion method, device, electronic equipment and storage medium
CN112527621A (en) * 2019-09-17 2021-03-19 中移动信息技术有限公司 Test path construction method, device, equipment and storage medium
CN110750263A (en) * 2019-10-15 2020-02-04 广州维思车用部件有限公司 Vehicle instrument development data generation method and device
CN110750263B (en) * 2019-10-15 2024-01-23 广州维思车用部件有限公司 Method and device for generating vehicle instrument development data
CN113448832A (en) * 2020-06-18 2021-09-28 北京新氧科技有限公司 Control exposure detection method and application program operation monitoring system
CN111695882B (en) * 2020-06-18 2023-10-31 行吟信息科技(武汉)有限公司 Dotting test method and platform
CN113448832B (en) * 2020-06-18 2024-03-12 北京新氧科技有限公司 Control exposure detection method and application program operation monitoring system
CN111695882A (en) * 2020-06-18 2020-09-22 行吟信息科技(武汉)有限公司 Dotting test method and platform

Similar Documents

Publication Publication Date Title
CN108664406A (en) Exploitation test method, terminal device and the medium of mobile application
CN105955888B (en) Page debugging preview method and system
TW202113586A (en) Method and device for generating applet
CN109358851A (en) Creation method, device and the computer readable storage medium of chart components
CN108345456A (en) Page code generation method, device, computer equipment and storage medium
CN104731589A (en) Automatic generation method and device of user interface (UI)
CN104636139A (en) Visualized cross-platform mobile application development and generation system
CN108762764A (en) Code automatic generation method, device, computer equipment and storage medium
CN109240688A (en) Interface development method, electronic device and readable storage medium storing program for executing
CN105005532A (en) System for automatically testing stability of application program interface and method
CN106657192B (en) Method and equipment for presenting service calling information
CN112214210A (en) Logistics business rule engine and configuration method, device, equipment and storage medium thereof
CN110275826A (en) Automated testing method, device and computer readable storage medium
CN112926008B (en) Method, device, electronic equipment and storage medium for generating form page
CN109460546A (en) List generation method, device and electronic equipment
US20150220236A1 (en) Post-designing method and apparatus based on variant configuration in development of graphic user interface
CN111399941A (en) Batch configuration method, device and equipment for BMC (baseboard management controller) functions
CN108170425A (en) A kind of amending method of program code, modification device and terminal device
CN107957871A (en) A kind of front and back end synchronization canonical method of calibration based on JSR303
CN112306471A (en) Task scheduling method and device
CN112068911A (en) Method, device, system, equipment and medium for generating electronic form
CN104081347A (en) Graphical representation of an order of operations
CN107562428A (en) Rule-based adaptable software quick interface arrangement method and system
CA3138761A1 (en) Method, device, computer equipment and storage medium for verifying inter-system data admission
US8700374B1 (en) System and method of using an active link in a state programming environment to locate an element in a graphical programming environment

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
WW01 Invention patent application withdrawn after publication
WW01 Invention patent application withdrawn after publication

Application publication date: 20181016