CN108376073A - A kind of test software packet generation method and terminal - Google Patents
A kind of test software packet generation method and terminal Download PDFInfo
- Publication number
- CN108376073A CN108376073A CN201611036563.1A CN201611036563A CN108376073A CN 108376073 A CN108376073 A CN 108376073A CN 201611036563 A CN201611036563 A CN 201611036563A CN 108376073 A CN108376073 A CN 108376073A
- Authority
- CN
- China
- Prior art keywords
- parameter
- script
- application program
- program section
- environmental parameter
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/40—Transformation of program code
- G06F8/41—Compilation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3672—Test management
- G06F11/3684—Test management for test design, e.g. generating new test cases
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Software Systems (AREA)
- Stored Programmes (AREA)
Abstract
The embodiment of the invention discloses a kind of test software packet generation method and terminal, wherein method includes:It is inserted into script in jenkins platforms;Corresponding application program section is inserted into jenkins platforms;Jenkins platforms receive environmental parameter input by user;Environmental parameter is passed in script by jenkins platforms;Jenkins platforms find the corresponding parameter of environmental parameter of application program Duan Zhongyu inputs using script;Environmental parameter is replaced corresponding parameter in application program section by jenkins platforms using script;Jenkins platforms, which to the application program section after modification parameter be packaged, generates software package.The embodiment of the present invention may be implemented developer and independently select, input various environmental parameters and be compiled packing to the modified application program section for crossing parameter, according to the difference for the parameter type changed, can compile and be packaged multiple software packages.
Description
Technical field
The present invention relates to field of computer technology more particularly to a kind of test software packet generation methods and terminal.
Background technology
With the continuous improvement of software development complexity, how preferably to cooperate between team exploitation member soft to ensure
The raising of the efficiency of part test slowly becomes unavoidable problem in development process.
Currently, in the generation method of test software packet, developer cannot independently select to input various environmental parameters, when
Background test environment have it is multiple in the case of, if developer want generate multiple test software packets, need repeatedly
Modification test code, and the packet that can just obtain meeting condition is all packaged in each modification.This mode needs to develop
Personnel carry out a large amount of manual operation, and the generating process of test software packet is also more complicated, reduces the working efficiency of developer.
Invention content
In view of this, a kind of test software packet generation method of offer of the embodiment of the present invention and terminal, may be implemented exploit person
Member independently selects, inputs various environmental parameters and be compiled packing, and root to the modified application program section for crossing parameter
According to the difference for the parameter type changed, it can compile and be packaged multiple test software packets.
A kind of test software packet generation method, this method include:
It is inserted into script in the jenkins platforms, the script is shell scripts;
It is inserted into corresponding application program section in the jenkins platforms, the application program section includes parameter;
The jenkins platforms receive environmental parameter input by user;
The environmental parameter is passed in the script by the jenkins platforms;
The environmental parameter that the jenkins platforms find the application program Duan Zhongyu inputs using script is corresponding
Parameter;
The jenkins platforms, which to the application program section after modification parameter be packaged, generates software package.
Specifically, environmental parameter value is passed to the step in the script by the jenkins platforms, specifically include:
Script is obtained to execute instruction;
It is executed instruction according to described, the environmental parameter is passed in the script.
Specifically, the jenkins platforms find the environmental parameter that the application program Duan Zhongyu is inputted using script
The step of corresponding parameter, specifically includes:
The jenkins platforms determine code context corresponding with the environmental parameter of input, the code using script
Environment is the customized test environment of developer;
The corresponding parameter of environmental parameter of the application program Duan Zhongyu inputs is found according to the code context.
Join accordingly specifically, the jenkins platforms are replaced environmental parameter in the application program section using script
Several steps, specifically includes:
The jenkins platforms determine the location information of corresponding parameter in the application program section using script;
According to the positional information, environmental parameter is replaced in the application program section using the script and is joined accordingly
Number.
Specifically, the jenkins platforms carry out the program segment after modification parameter to be packaged the step of generating software package, tool
Body includes:
In advance in the jenkins platform configurations compilation tool;
After corresponding parameter is modified in the jenkins platforms are to the application program section, the compiling is utilized
Tool, which to the application program section after modification parameter be packaged, generates software package.
A kind of terminal, the terminal include:
First is inserted into unit, and for being inserted into script, the script is shell scripts;
Second is inserted into unit, and for being inserted into corresponding application program section, the application program section includes parameter;
Receiving unit, for receiving environmental parameter input by user;
Incoming unit, for the environmental parameter to be passed in the script;
Searching unit, the corresponding ginseng of environmental parameter for finding the application program Duan Zhongyu inputs using script
Number;
Generation unit generates software package for the application program section after modification parameter be packaged.
Specifically, the incoming unit, specifically includes:
Acquiring unit is executed instruction for obtaining script;
The environmental parameter is passed in the script by incoming subelement for being executed instruction according to.
Specifically, the searching unit, specifically includes:
First determination unit, for determining code context corresponding with the environmental parameter of input, the generation using script
Code environment is the customized test environment of developer;
Subelement is searched, the environmental parameter for finding the application program Duan Zhongyu inputs according to the code context
Corresponding parameter.
Specifically, the replacement unit, specifically includes:
Second determination unit, the location information for determining corresponding parameter in the application program section using script;
Subelement is replaced, for according to the positional information, environmental parameter is replaced using the script and described applies journey
Corresponding parameter in sequence section.
Specifically, the generation unit, specifically includes:
Dispensing unit, for configuring compilation tool in the terminal in advance;
Subelement is generated, for working as after corresponding parameter is modified in application program section described in the terminal-pair, utilization
The compilation tool, which to the application program section after modification parameter be packaged, generates software package.
Therefore the embodiment of the present invention to jenkins platforms by being inserted into script and application program section, Yi Jixiang
Jenkins platform input environment parameters, by the way that the environmental parameter inputted is passed into script and is replaced corresponding in script
Parameter, this process realize that in continuous integrating test job, developer independently selects, inputs various environmental parameters;By right
Application program section after modification parameter is packaged and generates software package realization and compiled to the modified application program section for crossing parameter
Packing is translated, according to the difference for the parameter type changed, can compile and be packaged multiple software packages.
Description of the drawings
Technical solution in order to illustrate the embodiments of the present invention more clearly, below will be to needed in embodiment description
Attached drawing is briefly described, it should be apparent that, drawings in the following description are some embodiments of the invention, general for this field
For logical technical staff, without creative efforts, other drawings may also be obtained based on these drawings.
Fig. 1 is a kind of schematic flow diagram of test software packet generation method provided in an embodiment of the present invention.
Fig. 2 is a kind of another schematic flow diagram of test software packet generation method provided in an embodiment of the present invention.
Fig. 3 is a kind of another schematic flow diagram of test software packet generation method provided in an embodiment of the present invention.
Fig. 4 is a kind of another schematic flow diagram of test software packet generation method provided in an embodiment of the present invention.
Fig. 5 is a kind of another schematic flow diagram of test software packet generation method provided in an embodiment of the present invention.
Fig. 6 is a kind of schematic block diagram of terminal provided in an embodiment of the present invention.
Fig. 7 is a kind of another schematic block diagram of terminal provided in an embodiment of the present invention.
Fig. 8 is a kind of another schematic block diagram of terminal provided in an embodiment of the present invention.
Fig. 9 is a kind of another schematic block diagram of terminal provided in an embodiment of the present invention.
Figure 10 is a kind of another schematic block diagram of terminal provided in an embodiment of the present invention.
Figure 11 is a kind of structure composition schematic diagram of another embodiment of terminal provided in an embodiment of the present invention.
Specific implementation mode
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation describes, it is clear that described embodiments are some of the embodiments of the present invention, instead of all the embodiments.Based on this hair
Embodiment in bright, every other implementation obtained by those of ordinary skill in the art without making creative efforts
Example, shall fall within the protection scope of the present invention.
It should be appreciated that ought use in this specification and in the appended claims, term " comprising " and "comprising" instruction
Described feature, entirety, step, operation, the presence of element and/or component, but one or more of the other feature, whole is not precluded
Body, step, operation, element, component and/or its presence or addition gathered.
It is also understood that the term used in this description of the invention is merely for the sake of the mesh for describing specific embodiment
And be not intended to limit the present invention.As description of the invention and it is used in the attached claims, unless on
Other situations are hereafter clearly indicated, otherwise " one " of singulative, "one" and "the" are intended to include plural form.
Terminal described in the embodiment of the present invention may include smart mobile phone (such as Android phone, ios mobile phones,
Windows Phone mobile phones etc.), tablet computer, palm PC, laptop, mobile internet device (MID, Mobile
Internet Devices) or Wearable etc., above-mentioned terminal is only citing, and non exhaustive, including but not limited to above-mentioned end
End.
The embodiment of the present invention puts up jenkins platforms in terminal in advance.
As shown in Figure 1, a kind of flow diagram of the test software packet generation method provided for the embodiment of the present invention one.It should
Method includes step S101~S106.
S101, is inserted into script in the jenkins platforms, and the script is shell scripts.
S102, is inserted into corresponding application program section in the jenkins platforms, and the application program section includes ginseng
Number.
In the present embodiment, user can select different according to the needs of oneself in the source code management of jenkins platforms
Source code management tool download corresponding application program section, the application program section is application code, source code management tool
Such as svn, git etc., the embodiment of the present invention selects svn, specifically, selecting " Subversion in source code management tool
Modules ", in " Repository URL " the column typing corresponding warehouses svn address.
S103, the jenkins platforms receive environmental parameter input by user.
In embodiments of the present invention, it in the Parameter Configuration process of jenkins platforms, clicks " addition parameter " option and goes out
Existing drop-down menu selects various parameters Configuration Type, such as choice types, bool types or string classes according to drop-down menu
Type etc., according to selected parameter configuration type carry out environmental parameter configuration link, wherein environmental parameter be configured with 3
Attribute, including name, default value and description, the title of name representation parameter, the initial value of default value representation parameter describe generation
The explanation of table parameter.
The environmental parameter is passed in the script by S104, the jenkins platforms.
In embodiments of the present invention, after configuring environmental parameter, and described before the packing of test software packet
Environmental parameter is selected on jenkins platforms, and selected environmental parameter is transferred directly in shell scripts;Specifically, logical
It crosses configuration and executes shell scripts, the environmental parameter configured is passed in shell scripts, for example, executing shell in configuration
Key in the execution sentence that call format is " echo $ parameter names " in one column of script, you can corresponding parameter is passed to shell feet
This.
S105, the jenkins platforms find the environmental parameter phase that the application program Duan Zhongyu is inputted using script
Corresponding parameter.
Environmental parameter is replaced corresponding parameter in the application program section by S106, the jenkins platforms using script.
In embodiments of the present invention, the jenkins platforms realize that the parameter in application program section is replaced by shell scripts
It changes, in the generation method that can solve traditional test software packet, developer cannot independently select to input various environmental parameters
The problem of.
S107, the jenkins platforms, which to the application program section after modification parameter be packaged, generates software package.
As seen from the above, the embodiment of the present invention builds jenkins platforms in advance, by being inserted into script to jenkins platforms
With application program section, and to jenkins platform input environment parameters, by being passed to the environmental parameter inputted into script
And corresponding parameter in script is replaced, this process is realized in continuous integrating test job, and developer independently selects, inputs respectively
Kind environmental parameter;It is realized to modified parameter excessively by the way that software package is packaged and generated to the application program section after modification parameter
Application program section is compiled packing, according to the difference for the parameter type changed, can compile and be packaged multiple software packages.
Further, as shown in Fig. 2, in step S104, environmental parameter value is passed to the script by the jenkins platforms
In, specifically include step S201~S202.
S201 obtains script and executes instruction.
In embodiments of the present invention, in the Parameter Configuration process of jenkins platforms, option is selected in " structure " column
" increasing construction step ", and " Execute shell " is selected in the further menu of pop-up, to execute shell scripts, and it is real
Now script is sent to jenkins platforms to execute instruction.
S202 is executed instruction according to described, and the environmental parameter is passed in the script.
In embodiments of the present invention, using the execution sentence of configured execution shell scripts, the environment that will be configured
Parameter is passed in shell scripts.
Further, as shown in figure 3, in step S105, the jenkins platforms are found described using journey using script
The corresponding parameter of environmental parameter of sequence Duan Zhongyu inputs, specifically includes step S301~S302.
S301, the jenkins platforms determine code context corresponding with the environmental parameter of input using script, described
Code context is the customized test environment of developer.
In embodiments of the present invention, in shell scripts, according to the value of the environmental parameter of input, judge current jenkins
Test environment selected in platform, using the test environment as current code context.
S302 finds the corresponding ginseng of environmental parameter of the application program Duan Zhongyu inputs according to the code context
Number.
In embodiments of the present invention, it in current code environment, according to the type of the environmental parameter of input, finds opposite
The parameter of same type in the application program section answered, and prepare for the replacement step of parameter.
Further, as shown in figure 4, in step S106, environmental parameter is replaced institute by the jenkins platforms using script
Corresponding parameter in application program section is stated, step S401~S402 is specifically included:
S401, the jenkins platforms determine the location information of corresponding parameter in the application program section using script.
S402 is according to the positional information replaced environmental parameter in the application program section accordingly using the script
Parameter.
Further, as shown in figure 5, in step S107, the jenkins platforms carry out the program segment after modification parameter
It is packaged and generates software package, specifically include step S501~S502:
S501, in advance in the jenkins platform configurations compilation tool.
S502, after corresponding parameter is modified in the jenkins platforms are to the application program section, using described
Compilation tool, which to the application program section after modification parameter be packaged, generates software package.
As shown in fig. 6, a kind of corresponding above-mentioned test software packet generation method, the present invention also propose a kind of terminal, the terminal
100 include:First, which is inserted into unit 10, second, is inserted into unit 20, receiving unit 30, incoming unit 40, searching unit 50, replaces list
Member 60, generation unit 70.
Wherein first is inserted into unit 10, and for being inserted into script, the script is shell scripts.
Second is inserted into unit 20, and for being inserted into corresponding application program section, the application program section includes parameter.At this
In embodiment, user can select different source code management works according to the needs of oneself in the source code management of jenkins platforms
Tool downloads corresponding application program section, and the application program section is application code, source code management tool such as svn, git etc.,
The embodiment of the present invention selects svn, specifically, " Subversion Modules " is selected in source code management tool,
" Repository URL " the column typing corresponding warehouses svn address.
Receiving unit 30, for receiving environmental parameter input by user.In embodiments of the present invention, in jenkins platforms
Parameter Configuration process in, click " addition parameter " option and simultaneously drop-down menu occur, select various parameters to match according to drop-down menu
Type, such as choice types, bool types or string types are set, ring is carried out according to selected parameter configuration type
The configuration link of border parameter, wherein environmental parameter are configured with 3 attributes, including name, default value and description, name represents
The title of parameter, the initial value of default value representation parameter describe the explanation of representation parameter.
Incoming unit 40, for the environmental parameter to be passed in the script.In embodiments of the present invention, it is configuring
After environmental parameter, and environmental parameter is selected on the jenkins platforms before the packing of test software packet, and will be selected
Environmental parameter be transferred directly in shell scripts;Specifically, executing shell scripts, the environment that will be configured by configuring
Parameter is passed in shell scripts, for example, it is " echo $ parameter names " to execute one column of shell scripts to key in call format in configuration
Execution sentence, you can corresponding parameter is passed to shell scripts.
Searching unit 50, the environmental parameter for finding the application program Duan Zhongyu inputs using script are corresponding
Parameter.
Replacement unit 60, for utilizing script that environmental parameter is replaced corresponding parameter in the application program section.At this
In inventive embodiments, the jenkins platforms realize that the parameter in application program section is replaced by shell scripts, can solve
In the generation method of traditional test software packet, the problem of developer independently cannot select to input various environmental parameters.
Generation unit 70 generates software package for the application program section after modification parameter be packaged.
As seen from the above, the embodiment of the present invention builds jenkins platforms in advance, by being inserted into script to jenkins platforms
With application program section, and to jenkins platform input environment parameters, by being passed to the environmental parameter inputted into script
And corresponding parameter in script is replaced, this process is realized in continuous integrating test job, and developer independently selects, inputs respectively
Kind environmental parameter;It is realized to modified parameter excessively by the way that software package is packaged and generated to the application program section after modification parameter
Application program section is compiled packing, according to the difference for the parameter type changed, can compile and be packaged multiple software packages.
As shown in fig. 7, the incoming unit 40, specifically includes:
Acquiring unit 401 is executed instruction for obtaining script.In embodiments of the present invention, in the parameter of jenkins platforms
In configuration process, option " increasing construction step " is selected in " structure " column, and selected in the further menu of pop-up
" Execute shell " to execute shell scripts, and realizes that sending script to jenkins platforms executes instruction.
The environmental parameter is passed in the script by incoming subelement 402 for being executed instruction according to.At this
In inventive embodiments, using the execution sentence of configured execution shell scripts, the environmental parameter configured is passed to
In shell scripts.
As shown in figure 8, the searching unit 50, specifically includes:
First determination unit 501, it is described for determining code context corresponding with the environmental parameter of input using script
Code context is the customized test environment of developer.In embodiments of the present invention, in shell scripts, according to the ring of input
The value of border parameter judges the test environment selected in current jenkins platforms, using the test environment as current code ringing
Border.
Subelement 502 is searched, the environment for finding the application program Duan Zhongyu inputs according to the code context
The corresponding parameter of parameter.In embodiments of the present invention, in current code environment, according to the type of the environmental parameter of input,
The parameter of same type in corresponding application program section is found, and is prepared for the replacement step of parameter.
As shown in figure 9, the replacement unit 60, specifically includes:
Second determination unit 601, the location information for determining corresponding parameter in the application program section using script.
Subelement 601 is replaced, for according to the positional information, environmental parameter being replaced the application using the script
Corresponding parameter in program segment.
As shown in Figure 10, the generation unit 70, specifically includes:
Dispensing unit 701, for configuring compilation tool in the terminal in advance.
Subelement 702 is generated, it is sharp for working as after corresponding parameter is modified in application program section described in the terminal-pair
The application program section after modification parameter be packaged with the compilation tool and generates software package.
Figure 11 is the structure composition schematic diagram of another embodiment of the terminal of the present invention.As shown in figure 11, may include:It is defeated
Enter device 99, output device 88, R-T unit 77, memory 66 and processor 55, wherein:
The input unit 99, the input data for receiving outside access control device.In the specific implementation, the present invention is real
Apply the input unit 99 described in example may include keyboard, mouse, photoelectricity input unit, acoustic input dephonoprojectoscope, touch input unit,
Scanner etc..
The output device 88 is used for the output data of external output access control device.In the specific implementation, the present invention is real
It applies the output device 88 described in example and may include display, loud speaker, printer etc..
The R-T unit 77, for receiving number by communication link to other equipment transmission data or from other equipment
According to.In the specific implementation, the R-T unit 77 of the embodiment of the present invention may include the transceiving devices such as radio-frequency antenna.
The memory 66, for storing the program data with various functions.Memory 66 is deposited in the embodiment of the present invention
The data of storage include the program data that can be called and run.In the specific implementation, the memory 66 of the embodiment of the present invention can be
System memory, for example, volatile (such as RAM), the combination of non-volatile (such as ROM, flash memory etc.), or both.Tool
Body realize in, the memory 104 of the embodiment of the present invention can also be the external memory except system, for example, disk, CD,
Tape etc..
The processor 55 for calling the program data stored in the memory 66, and executes following operation:
Script is inserted into the jenkins platforms, the script is shell scripts;It is inserted in the jenkins platforms
Enter corresponding application program section, the application program section includes parameter;The jenkins platforms receive environment input by user
Parameter;The environmental parameter is passed in the script by the jenkins platforms;The jenkins platforms are searched using script
The corresponding parameter of environmental parameter inputted to the application program Duan Zhongyu;The jenkins platforms utilize script by environment
Parameter replaces corresponding parameter in the application program section;The jenkins platforms to modification parameter after application program section into
Row, which is packaged, generates software package.
Further, the processor 55 also executes following operation:
Script is obtained to execute instruction;It is executed instruction according to described, the environmental parameter is passed in the script.
Further, the processor 55 also executes following operation:
The jenkins platforms determine code context corresponding with the environmental parameter of input, the code using script
Environment is the customized test environment of developer;The ring of the application program Duan Zhongyu inputs is found according to the code context
The corresponding parameter of border parameter.
Further, the processor 55 also executes following operation:
The jenkins platforms determine the location information of corresponding parameter in the application program section using script;According to
Environmental parameter is replaced corresponding parameter in the application program section by the location information using the script.
Further, the processor 55 also executes following operation:
In advance in the jenkins platform configurations compilation tool;When the jenkins platforms are in the application program section
After corresponding parameter is modified, the application program section after modification parameter is carried out using the compilation tool to be packaged generation software
Packet.
Unit in all embodiments of the invention can pass through universal integrated circuit, such as CPU (Central
Processing Unit, central processing unit), or pass through ASIC (Application Specific Integrated
Circuit, application-specific integrated circuit) it realizes.
The steps in the embodiment of the present invention can be sequentially adjusted, merged and deleted according to actual needs.
Unit in terminal of the embodiment of the present invention can be combined, divided and deleted according to actual needs.
One of ordinary skill in the art will appreciate that realizing all or part of flow in above-described embodiment method, being can be with
Relevant hardware is instructed to complete by computer program, the program can be stored in a computer read/write memory medium
In, the program is when being executed, it may include such as the flow of the embodiment of above-mentioned each method.Wherein, the storage medium can be magnetic
Dish, CD, read-only memory (Read-Only Memory, ROM) or random access memory (Random Access
Memory, RAM) etc..
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any
Those familiar with the art in the technical scope disclosed by the present invention, can readily occur in various equivalent modifications or replace
It changes, these modifications or substitutions should be covered by the protection scope of the present invention.Therefore, protection scope of the present invention should be with right
It is required that protection domain subject to.
Claims (10)
1. a kind of test software packet generation method, which is characterized in that the method includes:
Script is inserted into jenkins platforms, the script is shell scripts;
Corresponding application program section is inserted into the jenkins platforms, the application program section includes parameter;
The jenkins platforms receive environmental parameter input by user;
The environmental parameter is passed in the script by the jenkins platforms;
The jenkins platforms find the corresponding ginseng of environmental parameter of the application program Duan Zhongyu inputs using script
Number;
Environmental parameter is replaced corresponding parameter in the application program section by the jenkins platforms using script;
The jenkins platforms, which to the application program section after modification parameter be packaged, generates software package.
2. the method as described in claim 1, which is characterized in that
Environmental parameter value is passed to the step in the script by the jenkins platforms, is specifically included:
Script is obtained to execute instruction;
It is executed instruction according to described, the environmental parameter is passed in the script.
3. the method as described in claim 1, which is characterized in that
The jenkins platforms find the corresponding parameter of environmental parameter of the application program Duan Zhongyu inputs using script
The step of, it specifically includes:
The jenkins platforms determine code context corresponding with the environmental parameter of input, the code context using script
For the customized test environment of developer;
The corresponding parameter of environmental parameter of the application program Duan Zhongyu inputs is found according to the code context.
4. the method as described in claim 1, which is characterized in that
The step of environmental parameter is replaced corresponding parameter in the application program section by the jenkins platforms using script, tool
Body includes:
The jenkins platforms determine the location information of corresponding parameter in the application program section using script;
According to the positional information, environmental parameter is replaced into corresponding parameter in the application program section using the script.
5. the method as described in claim 1-4, which is characterized in that
The jenkins platforms carry out being packaged the step of generating software package to the program segment after modification parameter, specifically include:
In advance in the jenkins platform configurations compilation tool;
After corresponding parameter is modified in the jenkins platforms are to the application program section, the compilation tool is utilized
Application program section after modification parameter be packaged and generates software package.
6. a kind of terminal, which is characterized in that the terminal includes:
First is inserted into unit, and for being inserted into script, the script is shell scripts;
Second is inserted into unit, and for being inserted into corresponding application program section, the application program section includes parameter;
Receiving unit, for receiving environmental parameter input by user;
Incoming unit, for the environmental parameter to be passed in the script;
Searching unit, the corresponding parameter of environmental parameter for finding the application program Duan Zhongyu inputs using script;
Replacement unit, for utilizing script that environmental parameter is replaced corresponding parameter in the application program section;
Generation unit generates software package for the application program section after modification parameter be packaged.
7. terminal as claimed in claim 6, which is characterized in that the incoming unit specifically includes:
Acquiring unit is executed instruction for obtaining script;
The environmental parameter is passed in the script by incoming subelement for being executed instruction according to.
8. terminal as claimed in claim 6, which is characterized in that the searching unit specifically includes:
First determination unit, for determining code context corresponding with the environmental parameter of input, the code ringing using script
Border is the customized test environment of developer;
Subelement is searched, the environmental parameter for finding the application program Duan Zhongyu inputs according to the code context is opposite
The parameter answered.
9. terminal as claimed in claim 6, which is characterized in that the replacement unit specifically includes:
Second determination unit, the location information for determining corresponding parameter in the application program section using script;
It replaces subelement and environmental parameter is replaced into the application program Duan Zhongxiang using the script according to the positional information
The parameter answered.
10. the terminal as described in one of claim 6-9, which is characterized in that the generation unit specifically includes:
Dispensing unit, for configuring compilation tool in the terminal in advance;
Subelement is generated, for working as after corresponding parameter is modified in application program section described in the terminal-pair, using described
Compilation tool, which to the application program section after modification parameter be packaged, generates software package.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611036563.1A CN108376073B (en) | 2016-11-15 | 2016-11-15 | Test software package generation method and terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611036563.1A CN108376073B (en) | 2016-11-15 | 2016-11-15 | Test software package generation method and terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108376073A true CN108376073A (en) | 2018-08-07 |
CN108376073B CN108376073B (en) | 2021-10-12 |
Family
ID=63016288
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201611036563.1A Active CN108376073B (en) | 2016-11-15 | 2016-11-15 | Test software package generation method and terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108376073B (en) |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109814901A (en) * | 2018-12-29 | 2019-05-28 | 中兴智能交通股份有限公司 | A kind of O&M method that automatically dispose application may be implemented |
CN109976762A (en) * | 2019-03-19 | 2019-07-05 | 深圳忆联信息系统有限公司 | A kind of method and its system improving solid state hard disk firmware testing efficiency |
CN110888639A (en) * | 2018-09-10 | 2020-03-17 | 北京京东尚科信息技术有限公司 | Business code compiling and packaging method and device |
CN111813396A (en) * | 2020-07-14 | 2020-10-23 | 北京自如信息科技有限公司 | Script editing method and device, computer equipment and readable storage medium |
CN111813382A (en) * | 2020-06-23 | 2020-10-23 | 四川虹美智能科技有限公司 | Intangible asset management system and method |
CN112083953A (en) * | 2020-08-26 | 2020-12-15 | 武汉普利商用机器有限公司 | Android application program construction method and device |
CN112241268A (en) * | 2020-09-22 | 2021-01-19 | 合肥寰芯微电子科技有限公司 | Keil engineering compiling method, system and equipment |
CN112631618A (en) * | 2020-12-16 | 2021-04-09 | 平安普惠企业管理有限公司 | Application program packaging method, application program testing method, terminal and storage medium |
CN113468067A (en) * | 2021-07-21 | 2021-10-01 | 建信金融科技有限责任公司 | Application program debugging method and device, electronic equipment and computer readable medium |
WO2024036745A1 (en) * | 2022-08-17 | 2024-02-22 | Ng Yat Fai | Android system development method and apparatus, related device and computer-readable storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102164045A (en) * | 2010-02-20 | 2011-08-24 | 微软公司 | Parameterized computer monitoring system |
CN103678961A (en) * | 2013-11-07 | 2014-03-26 | 北京深思数盾科技有限公司 | Code dynamic generating method |
CN104572237A (en) * | 2015-01-19 | 2015-04-29 | 上海动联信息技术股份有限公司 | Automatic quick generation system and method for UKey installation package |
CN105893050A (en) * | 2016-04-05 | 2016-08-24 | 延锋伟世通电子科技(南京)有限公司 | Method for carrying out overall lifecycle management on software project based on project lifecycle management (PLMS), subversion (SVN) and Jenkins |
-
2016
- 2016-11-15 CN CN201611036563.1A patent/CN108376073B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102164045A (en) * | 2010-02-20 | 2011-08-24 | 微软公司 | Parameterized computer monitoring system |
CN103678961A (en) * | 2013-11-07 | 2014-03-26 | 北京深思数盾科技有限公司 | Code dynamic generating method |
CN104572237A (en) * | 2015-01-19 | 2015-04-29 | 上海动联信息技术股份有限公司 | Automatic quick generation system and method for UKey installation package |
CN105893050A (en) * | 2016-04-05 | 2016-08-24 | 延锋伟世通电子科技(南京)有限公司 | Method for carrying out overall lifecycle management on software project based on project lifecycle management (PLMS), subversion (SVN) and Jenkins |
Non-Patent Citations (1)
Title |
---|
鲁晓丹等: "集成Jenkins和TestNG实现自助式自动化测试平台", 《IBM DEVELOPER:HTTPS://DEVELOPER.IBM.COM/ZH/ARTICLES/OS-AUTOTESTING-JENKINS-TESTING/》 * |
Cited By (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110888639A (en) * | 2018-09-10 | 2020-03-17 | 北京京东尚科信息技术有限公司 | Business code compiling and packaging method and device |
CN109814901A (en) * | 2018-12-29 | 2019-05-28 | 中兴智能交通股份有限公司 | A kind of O&M method that automatically dispose application may be implemented |
CN109976762A (en) * | 2019-03-19 | 2019-07-05 | 深圳忆联信息系统有限公司 | A kind of method and its system improving solid state hard disk firmware testing efficiency |
CN109976762B (en) * | 2019-03-19 | 2022-06-07 | 深圳忆联信息系统有限公司 | Method and system for improving solid state disk firmware test efficiency |
CN111813382A (en) * | 2020-06-23 | 2020-10-23 | 四川虹美智能科技有限公司 | Intangible asset management system and method |
CN111813396B (en) * | 2020-07-14 | 2021-04-20 | 北京自如信息科技有限公司 | Script editing method and device, computer equipment and readable storage medium |
CN111813396A (en) * | 2020-07-14 | 2020-10-23 | 北京自如信息科技有限公司 | Script editing method and device, computer equipment and readable storage medium |
CN112083953A (en) * | 2020-08-26 | 2020-12-15 | 武汉普利商用机器有限公司 | Android application program construction method and device |
CN112241268A (en) * | 2020-09-22 | 2021-01-19 | 合肥寰芯微电子科技有限公司 | Keil engineering compiling method, system and equipment |
CN112631618A (en) * | 2020-12-16 | 2021-04-09 | 平安普惠企业管理有限公司 | Application program packaging method, application program testing method, terminal and storage medium |
CN113468067A (en) * | 2021-07-21 | 2021-10-01 | 建信金融科技有限责任公司 | Application program debugging method and device, electronic equipment and computer readable medium |
CN113468067B (en) * | 2021-07-21 | 2022-12-13 | 中国建设银行股份有限公司 | Application program debugging method and device, electronic equipment and computer readable medium |
WO2024036745A1 (en) * | 2022-08-17 | 2024-02-22 | Ng Yat Fai | Android system development method and apparatus, related device and computer-readable storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN108376073B (en) | 2021-10-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108376073A (en) | A kind of test software packet generation method and terminal | |
US20210034336A1 (en) | Executing a process-based software application in a first computing environment and a second computing environment | |
US20050251788A1 (en) | Methods and systems for generating a configurable user interface | |
US11667033B2 (en) | Systems and methods for robotic process automation | |
JP5171790B2 (en) | Information processing apparatus, communication system, and program | |
US20130007776A1 (en) | Determining an extension to use to process an input object to a call in a program | |
US9021427B2 (en) | Conversion methods of applications of mobile devices and mobile devices and systems using the same | |
EP2587371A1 (en) | Improved configuration of a user interface for a mobile communications terminal | |
US9875109B2 (en) | Method and apparatus for generating user adaptive application in mobile terminal | |
US11327724B2 (en) | System and method that support application software development | |
WO2022095412A1 (en) | Microservice development method and apparatus, storage medium, and electronic device | |
CN106796521B (en) | API version control independent of product release | |
US10606569B2 (en) | Declarative configuration elements | |
CN107918543A (en) | Method, apparatus, computer equipment and the storage medium of installation kit generation | |
KR100789467B1 (en) | Downloading software applications | |
WO2016176159A1 (en) | Cross-platform command extensibility | |
KR101488815B1 (en) | Device for generating a script for menu test, menu test automatic system having the same, and method thereof | |
CN114253441B (en) | Method and device for enabling target function, storage medium and electronic device | |
Francese et al. | Management, sharing and reuse of service-based mobile applications | |
CN111001157B (en) | Method and device for generating reference information, storage medium and electronic device | |
CN113900725A (en) | Interface configuration method and device, computer equipment and storage medium | |
TWI667613B (en) | Front-end integration development management system and method thereof | |
CN116185425B (en) | Event flow arrangement method, device, equipment and medium based on node combination | |
JP4138591B2 (en) | Terminal device | |
Lee et al. | Domain-specific language approach to modelling UI architecture of mobile telephony systems |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |