CN107133169A - Using test bag generation method and generating means - Google Patents
Using test bag generation method and generating means Download PDFInfo
- Publication number
- CN107133169A CN107133169A CN201710282807.2A CN201710282807A CN107133169A CN 107133169 A CN107133169 A CN 107133169A CN 201710282807 A CN201710282807 A CN 201710282807A CN 107133169 A CN107133169 A CN 107133169A
- Authority
- CN
- China
- Prior art keywords
- application
- data
- test
- bag
- hook
- 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
- 238000012360 testing method Methods 0.000 title claims abstract description 427
- 238000000034 method Methods 0.000 title claims abstract description 87
- 230000008569 process Effects 0.000 abstract description 25
- 230000006870 function Effects 0.000 description 24
- 230000004048 modification Effects 0.000 description 9
- 238000012986 modification Methods 0.000 description 9
- 238000004891 communication Methods 0.000 description 7
- 230000005540 biological transmission Effects 0.000 description 5
- 238000001514 detection method Methods 0.000 description 5
- 241001634817 Cydia Species 0.000 description 4
- 239000000758 substrate Substances 0.000 description 4
- 238000011161 development Methods 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 3
- 238000012545 processing Methods 0.000 description 3
- 241001269238 Data Species 0.000 description 2
- 238000004458 analytical method Methods 0.000 description 2
- 230000008859 change Effects 0.000 description 2
- 230000036541 health Effects 0.000 description 2
- 230000009471 action Effects 0.000 description 1
- 230000000712 assembly Effects 0.000 description 1
- 238000000429 assembly Methods 0.000 description 1
- 230000008901 benefit Effects 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 238000000262 chemical ionisation mass spectrometry Methods 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 230000005611 electricity Effects 0.000 description 1
- 239000004744 fabric Substances 0.000 description 1
- 230000002349 favourable effect Effects 0.000 description 1
- 210000003127 knee Anatomy 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 235000015170 shellfish Nutrition 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Prevention of errors by analysis, debugging or testing of software
- G06F11/3668—Testing of software
- G06F11/3672—Test management
- G06F11/3684—Test management for test design, e.g. generating new test cases
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Prevention of errors by analysis, debugging or testing of software
- G06F11/3668—Testing of software
- G06F11/3672—Test management
- G06F11/3688—Test management for test execution, e.g. scheduling of test suites
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The present invention provides a kind of application test bag generation method, and it includes:Based on the data gateway in the corresponding application data bag of test data, the application data hook plug-in unit for obtaining test data is generated;Obtain the loading instruction area of application data bag;Using application data hook plug-in unit and the corresponding hook feature card of application data hook plug-in unit, the loading instruction area of application data bag is updated operation;Signature operation is carried out to the application data bag after renewal, test bag is applied to generate.The present invention also provides a kind of application test bag generating means, the application test bag generation method and application test bag generating means of the present invention passes through increase application data hook plug-in unit and hook feature card in application test bag, so that exterior terminal can get the test data of the application test bag in the iPhone do not escaped from prison, so as to improve the application testing efficiency using test bag, simplify and apply testing process.
Description
Technical field
The present invention relates to application data process field, more particularly to a kind of application test bag generation method and generation dress
Put.
Background technology
With the development of science and technology, the requirement more and more higher that people apply to various terminals, existing apple application and development people
Member carries out applying test in order to improve application and development efficiency, often using the iPhone escaped from prison, while carrying out applying survey
During examination, detection computer should be in the same network segment with testing mobile phone.
Existing application testing method needs to provide the iPhone escaped from prison, while needing to detection computer and test
Mobile phone carries out network settings, to cause detection computer and testing mobile phone to belong on the network address of the same network segment, therefore whole survey
Try process CIMS cumbersome.Simultaneously because being provided with the iPhone of latest edition system possibly can not carry out operation of escaping from prison, so
Some terminal applies are caused can not in time to be tested on the iPhone of latest edition system, therefore existing iPhone
The testing efficiency of application is relatively low.
The content of the invention
The embodiment of the present invention provide one kind need not to iPhone carry out escape from prison operation, using testing efficiency it is higher and answer
With testing process fairly simple application test bag generation method and generating means;Surveyed with the application for solving existing iPhone
Try the technical problem that testing efficiency is relatively low and testing process is relatively complicated of bag.
The embodiment of the present invention provides a kind of application test bag generation method, and the application test bag is used for corresponding application
Packet carries out data test operation;Wherein described application test bag generation method includes:
Based on the data gateway in the corresponding application data bag of test data, generate for obtaining the test number
According to application data hook plug-in unit;
Obtain the loading instruction area of the application data bag;
It is right using the application data hook plug-in unit and the corresponding hook feature card of the application data hook plug-in unit
The loading instruction area of the application data bag is updated operation;And
Signature operation is carried out to the application data bag after renewal, to generate the application test bag.
The embodiment of the present invention also provides a kind of application test bag generating means, and the application test bag is used for accordingly should
Data test operation is carried out with packet;Wherein described application test bag generation method includes:
Hook plug-in unit generation module, for based on the data gateway in the corresponding application data bag of test data,
Generate the application data hook plug-in unit for obtaining the test data;
Load instruction area acquisition module, the loading instruction area for obtaining the application data bag;
Instruction area update module is loaded, for being inserted using the application data hook plug-in unit and the application data hook
The corresponding hook feature card of part, operation is updated to the loading instruction area of the application data bag;And
Using test bag generation module, for carrying out signature operation to the application data bag after renewal, to generate described answer
Use test bag.
Compared to prior art, application test bag generation method of the invention and application test bag generating means are by answering
With increase application data hook plug-in unit and hook feature card in test bag so that exterior terminal can get what is do not escaped from prison
The test data of application test bag in iPhone, so as to improve the application testing efficiency using test bag, simplifying should
Use testing process;The testing efficiency for solving the application test bag of existing iPhone is relatively low and testing process is relatively complicated
Technical problem.
Brief description of the drawings
Fig. 1 is the flow chart of the first preferred embodiment of the application test bag generation method of the present invention;
Fig. 2 is the flow chart of the second preferred embodiment of the application test bag generation method of the present invention;
Fig. 3 is the flow chart of the third preferred embodiment of the application test bag generation method of the present invention;
Fig. 4 is the structural representation of the first preferred embodiment of the application test bag generating means of the present invention;
Fig. 5 is the structural representation of the second preferred embodiment of the application test bag generating means of the present invention;
Fig. 6 is the structural representation of the third preferred embodiment of the application test bag generating means of the present invention;
Fig. 7 is the application test bag generation method of the present invention and the application test bag generation stream of application test bag generating means
Cheng Tu;
Fig. 8 for the present invention application test bag generating means where electronic equipment working environment structural representation.
Embodiment
It refer to schema, wherein identical element numbers represent identical component, principle of the invention is to implement one
Illustrated in appropriate computing environment.The following description is that, based on the illustrated specific embodiment of the invention, it should not be by
It is considered as the limitation present invention other specific embodiments not detailed herein.
In the following description, specific embodiment of the invention will be referred to as the operation performed by one or multi-section computer
The step of and symbol illustrate, unless otherwise stating clearly.Therefore, it will appreciate that these steps and operation, be carried for several times wherein having
To be performed by computer, include by representing with the computer disposal list of the electronic signal of the data in a structuring pattern
Member is manipulated.At this manipulation transforms data or the position being maintained in the memory system of the computer, it can match somebody with somebody again
Put or change in a manner familiar to those skilled in the art in addition the running of the computer.The data knot that the data are maintained
Structure is the provider location of the internal memory, and it has the particular characteristics as defined in the data format.But, the principle of the invention is with above-mentioned
Word illustrates, it is not represented as a kind of limitation, those skilled in the art will appreciate that plurality of step as described below and
Operation also may be implemented among hardware.
The application test bag generation method and generating means of the present invention may be provided at the electricity of various progress terminal applies tests
In sub- equipment, the electronic equipment includes but is not limited to wearable device, helmet, medical treatment & health platform, personal computer, clothes
Being engaged in, (such as mobile phone, personal digital assistant (PDA), media are broadcast for device computer, hand-held or laptop devices, mobile device
Put device etc.), multicomputer system, consumer electronic devices, minicom, mainframe computer including above-mentioned any system
Or the DCE of equipment, etc..The electronic equipment is preferably the iPhone for being provided with Apple Macintosh operating system.This hair
Bright application test bag generation method adds application data hook plug-in unit and hook function in the application test bag of generation
Plug-in unit so that can be in the iPhone system do not escaped from prison, the test data to the application test bag in iPhone is read
Operation is taken, shown and changed, the application testing efficiency of application function test bag is improved, simplifies and apply testing process.
Fig. 1 is refer to, Fig. 1 is the flow chart of the first preferred embodiment of the application test bag generation method of the present invention.This
Above-mentioned electronic equipment can be used to be implemented for the application test bag generation method of preferred embodiment, and this applies test bag generation side
Method includes:
Step S101, based on the data gateway in the corresponding application data bag of test data, is generated for obtaining test
The application data hook plug-in unit of data;
Step S102, obtains the loading instruction area of application data bag;
Step S103, using application data hook plug-in unit and the corresponding hook feature card of application data hook plug-in unit,
The loading instruction area of application data bag is updated operation;
Step S104, carries out signature operation to the application data bag after renewal, test bag is applied to generate.
The following detailed description of the idiographic flow of each step of the application test bag generation method of this preferred embodiment.
In the preferred embodiment, application data bag is the application normally run on corresponding iPhone.This is preferably
The analysis for the detection data that the application test bag generating means of embodiment are wrapped by application data, generates the application data bag
Corresponding application test bag, so as to carry out data test operation to the application data bag by application test bag.
In step S101, it is based on needing test data corresponding number in application data bag using test bag generating means
According to gateway, application data hook plug-in unit, such as wnsHook.dylib plug-in units are generated.Wherein the application data hook plug-in unit can
Corresponding test data is obtained from the data gateway of application data bag.Then pass to step S102.
In step s 102, the loading instruction area of application data bag, such as application data are obtained using test bag generating means
The Load Commands represented in bag with binary file.Here loading instruction area refers to need during the operation of application data bag
The storage region of corresponding kinematic insert is called, the institute that the application data bag normally runs needs is contained in the loading instruction area
There is plug-in unit.Then pass to step S103.
In step s 103, because application data hook plug-in unit does not in itself hang up particular plug-in in application data bag
Function, application data hook plug-in unit is general by calling test dynamic base (such as Cydia Substrate dynamic bases) of escaping from prison
In other feature cards (such as libsubstrate.dylib plug-in units) realize that the data of the application data hook plug-in unit are obtained
Take function.The structure of application data hook plug-in unit can so be simplified.
Therefore the application data hook plug-in unit obtained using test bag generating means according to step S101, it is dynamic from test of escaping from prison
Hook feature card is obtained in state storehouse.
Then application test bag generating means are according to the step S101 application data hook plug-in units obtained and corresponding hook
Subfunction plug-in unit, operation is updated to the loading instruction area of the step S102 application data bags obtained.Specifically, application test
Application data hook plug-in unit and hook feature card are copied directly in loading instruction area by bag generating means, to be surveyed in application
During examination bag operation, application data hook plug-in unit and hook feature card carry out loading operation.Then pass to step 104.
In step S104, the application number after being updated over to the plug-in unit in loading instruction area using test bag generating means
Weight signature operation is carried out according to bag, so as to generate corresponding application test bag.The function of the application test bag wherein generated and application
The function of packet is almost identical, but applies test bag to be obtained by application data hook plug-in unit and hook feature card and survey
Try data so that tester can by run using the convenient application data bag of test bag be monitored data reading,
Displaying and modification operation.
So complete the generating process of the application test bag of the application test bag generation method of this preferred embodiment.
The application test bag generation method of this preferred embodiment is inserted by increasing application data hook in application test bag
Part and hook feature card so that exterior terminal can get the test of the application test bag in the iPhone do not escaped from prison
Data, so as to improve the application testing efficiency using test bag, simplify and apply testing process.
Fig. 2 is refer to, Fig. 2 is the flow chart of the second preferred embodiment of the application test bag generation method of the present invention, this
Above-mentioned electronic equipment can be used to be implemented for the application test bag generation method of preferred embodiment, and this applies test bag generation side
Method includes:
Step S201, based on the data gateway in the corresponding application data bag of test data, is generated for obtaining test
The application data hook plug-in unit of data;
Step S202, obtains the loading instruction area of application data bag;
Step S203, using application data hook plug-in unit and the corresponding hook feature card of application data hook plug-in unit,
The loading instruction area of application data bag is updated operation;
Step S204, carries out signature operation to the application data bag after renewal, test bag is applied to generate;
Step S205, in application test bag operation, corresponding data gateway obtains test number from application test bag
According to;
Step S206, operation is shown to test data in other-end.
The following detailed description of the idiographic flow of each step of the application test bag generation method of this preferred embodiment.
Idiographic flows and application of the step S201 of the application test bag generation method of this preferred embodiment to step S204
Step S101 to the step S104 of the first preferred embodiment of test bag generation method idiographic flow are same or similar, specifically please
Referring to the associated description in the first preferred embodiment of above-mentioned application test bag generation method.
In step S205, during the application test bag operation generated in step S204, this applies test bag generating means (i.e.
This applies the installing terminal of test bag) hook feature card can be called by application data hook plug-in unit, and then tested from application
Corresponding data gateway obtains test data in bag.
Then application test bag generating means can by the test data of acquisition by cable network or wireless network transmissions extremely
Other-end, such as other mobile terminals, other fixed terminals or other server ends.Then pass to step S206.
In step S206, other-end is shown operation to the step S205 test datas received and storage is grasped
Make, so that tester understands the test case using test bag in time.
So complete the test data displaying process of the application test bag of this preferred embodiment.
On the basis of first preferred embodiment, other ends can be used in the application test bag generation method of this preferred embodiment
End is shown and stored operation to test data, so as to further increase the application testing efficiency using test bag.
Fig. 3 is refer to, Fig. 3 is the flow chart of the third preferred embodiment of the application test bag generation method of the present invention, this
Above-mentioned electronic equipment can be used to be implemented for the application test bag generation method of preferred embodiment, and this applies test bag generation side
Method includes:
Step S301, based on the data gateway in the corresponding application data bag of test data, is generated for obtaining test
The application data hook plug-in unit of data;
Step S302, obtains the loading instruction area of application data bag;
Step S303, using application data hook plug-in unit and the corresponding hook feature card of application data hook plug-in unit,
The loading instruction area of application data bag is updated operation;
Step S304, carries out signature operation to the application data bag after renewal, test bag is applied to generate;
Step S305, in application test bag operation, corresponding data gateway obtains test number from application test bag
According to;
Step S306, modifies operation in other-end to test data;
Step S307, amended test data is back to using corresponding data gateway in test bag.
The following detailed description of the idiographic flow of each step of the application test bag generation method of this preferred embodiment.
Idiographic flows and application of the step S301 of the application test bag generation method of this preferred embodiment to step S304
Step S101 to the step S104 of the first preferred embodiment of test bag generation method idiographic flow are same or similar, specifically please
Referring to the associated description in the first preferred embodiment of above-mentioned application test bag generation method.
In step S305, during the application test bag operation generated in step S304, this applies test bag generating means (i.e.
This applies the installing terminal of test bag) hook feature card can be called by application data hook plug-in unit, and then tested from application
Corresponding data gateway obtains test data in bag.
Then application test bag generating means can by the test data of acquisition by cable network or wireless network transmissions extremely
Other-end, such as other mobile terminals, other fixed terminals or other server ends.Then pass to step S306.
In step S306, other-end is shown, stores and changed to the step S205 test datas received
Operation, so that tester understands the test case using test bag in time, and tester can be in real time to test data
Modify operation.
Subsequent other-end sends amended test data to using test bag generating means.Then pass to step
S307。
In step S307, amended test data is received using test bag generating means, and pass through application data
Hook plug-in unit returns to amended test data using corresponding data gateway in test bag.
So complete the test data modification process of the application test bag of this preferred embodiment.
On the basis of first preferred embodiment, other ends can be used in the application test bag generation method of this preferred embodiment
Operation of being modified to test data is held, so that the further testing process of simplified application test bag.
The present invention also provides a kind of application test bag generating means, refer to Fig. 4, and Fig. 4 is the application test bag of the present invention
The structural representation of the first preferred embodiment of generating means.The application test bag generating means of this preferred embodiment can be used should
Implemented with the first preferred embodiment of test bag generation method, application test bag therein is used for corresponding application data
Bag carries out data test operation.The application test bag generating means 40 of this preferred embodiment include hook plug-in unit generation module 41,
Load instruction area acquisition module 42, loading instruction area update module 43, inserted using test bag generation module 44 and hook function
Part acquisition module 45.
Hook plug-in unit generation module 41 is used for based on the data gateway in the corresponding application data bag of test data, generation
Application data hook plug-in unit for obtaining test data;Loading instruction area acquisition module 42 is used to obtain adding for application data bag
Carry instruction area;Loading instruction area update module 43 is used for using application data hook plug-in unit and application data hook plug-in unit correspondence
Hook feature card, the loading instruction area of application data bag is updated operation;It is used for using test bag generation module 44
Signature operation is carried out to the application data bag after renewal, test bag is applied to generate;Hook feature card acquisition module 45 is used for
According to application data hook plug-in unit, from escaping from prison, test dynamic base obtains hook feature card.
In the preferred embodiment, application data bag is the application normally run on corresponding iPhone.This is preferably
The analysis for the detection data that the application test bag generating means 40 of embodiment are wrapped by application data, generates the application data
Corresponding application test bag is wrapped, so as to carry out data test operation to the application data bag by application test bag.
The application test bag generating means 40 of this preferred embodiment are in use, hook plug-in unit generation module 41 is based on needing first
Test data corresponding data gateway in application data bag is wanted, application data hook plug-in unit, such as wnsHook.dylib is generated
Plug-in unit etc..Wherein the application data hook plug-in unit can obtain corresponding test data from the data gateway of application data bag.
Then loading instruction area acquisition module 42 is obtained in the loading instruction area of application data bag, such as application data bag with two
The Load Commands that binary file is represented.Here loading instruction area refers to that needs call correspondence during the operation of application data bag
Kinematic insert storage region, contain all plug-in units that the application data bag normally runs needs in the loading instruction area.
Due to the function that application data hook plug-in unit does not in itself hang up particular plug-in in application data bag, using number
It is general by calling other functions in test dynamic base (such as Cydia Substrate dynamic bases) of escaping from prison to insert according to hook plug-in unit
Part (such as libsubstrate.dylib plug-in units) realizes the data acquisition functions of the application data hook plug-in unit.So can be with
Simplify the structure of application data hook plug-in unit.
Therefore the application data hook plug-in unit that hook feature card acquisition module 45 is obtained according to hook plug-in unit generation module,
Hook feature card is obtained from test dynamic base of escaping from prison.
Then the application data hook plug-in unit that loading instruction area update module 43 is obtained according to hook plug-in unit generation module 41
And corresponding hook feature card, the loading instruction area of the application data bag obtained to loading instruction area acquisition module 42 is carried out
Update operation.Specifically, loading instruction area update module 43 directly copies application data hook plug-in unit and hook feature card
Shellfish is into loading instruction area, so that in application test bag operation, application data hook plug-in unit and hook feature card are added
Carry operation.
Application data bag after being finally updated over using the plug-in unit in 44 pairs of loading instruction areas of test bag generation module enters
Row weight signature operation, so as to generate corresponding application test bag.The function of the application test bag wherein generated and application data bag
Function it is almost identical, but apply test bag to pass through application data hook plug-in unit and hook feature card and obtain test number
According to so that tester can be monitored reading, the displaying of data by running using the convenient application data bag of test bag
And modification operation.
So complete the generating process of the application test bag of the application test bag generating means 40 of this preferred embodiment.
The application test bag generating means of this preferred embodiment are inserted by increasing application data hook in application test bag
Part and hook feature card so that exterior terminal can get the test of the application test bag in the iPhone do not escaped from prison
Data, so as to improve the application testing efficiency using test bag, simplify and apply testing process.
Fig. 5 is refer to, Fig. 5 is the structural representation of the second preferred embodiment of the application test bag generating means of the present invention
Figure.The second preferred embodiment of application test bag generation method can be used to enter for the application test bag generating means of this preferred embodiment
Row is implemented, and application test bag therein is used to carry out data test operation to corresponding application data bag.This preferred embodiment
Include hook plug-in unit generation module 51, loading instruction area acquisition module 52, loading instruction area more using test bag generating means 50
New module 53, using test bag generation module 54, hook feature card acquisition module 55 and test data acquisition module 56.
On the basis of first preferred embodiment, the application test bag generating means 50 of this preferred embodiment also include test
Data acquisition module 56.Test data acquisition module 56 is used in application test bag operation, corresponding from application test bag
Data gateway obtains test data;Wherein test data is shown operation in other-end.
The application test bag generating means 50 of this preferred embodiment are in use, hook plug-in unit generation module 51 is based on needing first
Test data corresponding data gateway in application data bag is wanted, application data hook plug-in unit is generated.
Then loading instruction area acquisition module 52 obtains the loading instruction area of application data bag, and hook feature card obtains mould
The application data hook plug-in unit that block 55 is obtained according to hook plug-in unit generation module, hook function is obtained from test dynamic base of escaping from prison
Plug-in unit.
Then the application data hook plug-in unit that loading instruction area update module 53 is obtained according to hook plug-in unit generation module 51
And corresponding hook feature card, the loading instruction area of the application data bag obtained to loading instruction area acquisition module is carried out more
New operation.
Application data bag after then the plug-in unit in 54 pairs of loading instruction areas of application test bag generation module is updated over enters
Row weight signature operation, so as to generate corresponding application test bag.
During the application test bag operation of generation, test data acquisition module 56 can call hook by application data hook plug-in unit
Subfunction plug-in unit, and then corresponding data gateway obtains test data from application test bag.
Subsequent test data acquisition module 56 can by the test data of acquisition by cable network or wireless network transmissions extremely
Other-end, such as other mobile terminals, other fixed terminals or other server ends.
Last other-end is shown operation to the test data received and storage is operated, so as to tester and
When understand application test bag test case.
So complete the test data displaying process of the application test bag of this preferred embodiment.
On the basis of first preferred embodiment, other ends can be used in the application test bag generating means of this preferred embodiment
End is shown and stored operation to test data, so as to further increase the application testing efficiency using test bag.
Fig. 6 is refer to, Fig. 6 is the structural representation of the third preferred embodiment of the application test bag generating means of the present invention
Figure.The third preferred embodiment of application test bag generation method can be used to enter for the application test bag generating means of this preferred embodiment
Row is implemented, and application test bag therein is used to carry out data test operation to corresponding application data bag.This preferred embodiment
Include hook plug-in unit generation module 61, loading instruction area acquisition module 62, loading instruction area more using test bag generating means 60
New module 63, using test bag generation module 64, hook feature card acquisition module 65, test data acquisition module 66 and survey
Try data and return to module 67.
On the basis of first preferred embodiment, the application test bag generating means 60 of this preferred embodiment also include test
Data acquisition module 66 and test data return to module 67.Test data acquisition module 66 is used in application test bag operation
When, corresponding data gateway obtains test data from application test bag;Wherein test data is shown in other-end
Operation;Test data, which returns to module 67, to be used to amended test data being back to using corresponding data discrepancy in test bag
Mouthful.
The application test bag generating means 60 of this preferred embodiment are in use, hook plug-in unit generation module 61 is based on needing first
Test data corresponding data gateway in application data bag is wanted, application data hook plug-in unit is generated.
Then loading instruction area acquisition module 62 obtains the loading instruction area of application data bag, and hook feature card obtains mould
The application data hook plug-in unit that block 65 is obtained according to hook plug-in unit generation module, hook function is obtained from test dynamic base of escaping from prison
Plug-in unit.
Then the application data hook plug-in unit that loading instruction area update module 63 is obtained according to hook plug-in unit generation module 61
And corresponding hook feature card, the loading instruction area of the application data bag obtained to loading instruction area acquisition module is carried out more
New operation.
Application data bag after then the plug-in unit in 64 pairs of loading instruction areas of application test bag generation module is updated over enters
Row weight signature operation, so as to generate corresponding application test bag.
During the application test bag operation of generation, test data acquisition module 66 can call hook by application data hook plug-in unit
Subfunction plug-in unit, and then corresponding data gateway obtains test data from application test bag.
Subsequent test data acquisition module 66 can by the test data of acquisition by cable network or wireless network transmissions extremely
Other-end, such as other mobile terminals, other fixed terminals or other server ends.
Other-end is shown, stores and changed operation to the test data received, so that tester is timely
Understand the test case of application test bag, and the operation that can be modified in real time to test data.
Subsequent other-end, which sends amended test data to test data, returns to module 67.
Last test data return to module 67 and receive amended test data, and will by application data hook plug-in unit
Amended test data is returned to using corresponding data gateway in test bag.
So complete the test data modification process of the application test bag of this preferred embodiment.
On the basis of first preferred embodiment, other ends can be used in the application test bag generating means of this preferred embodiment
Operation of being modified to test data is held, so that the further testing process of simplified application test bag.
The application test bag generation method and application test bag for illustrating the present invention below by a specific embodiment generate dress
The concrete operating principle put.Fig. 7 is refer to, Fig. 7 generates dress for the application test bag generation method and application test bag of the present invention
The application test bag product process figure put.The application test bag generation method and generating means of this specific embodiment may be provided at respectively
Plant and be provided with the iPhone of Apple Macintosh operating system, the iPhone can be by increasing application data hook in application test bag
Plug-in unit and hook feature card, realize using other-end to application test bag test data be read out, show and
Modification operation.
Here test dynamic base of escaping from prison is Cydia Substrate dynamic bases, the major function of the test dynamic base of escaping from prison
It is some feature card for hanging up application test bag, so that the transceiving data to the feature card is checked and is changed.
IPhone can equipment /Library/MobileSubstrate/DynamicLibraries catalogues under store
Include dylib type files, plist type files in the loading instruction area of corresponding test data bag, the loading instruction area
And bundle type files, wherein dylib type files are the feature card for loading and being stored in instruction area;Plist types
File can be used to identify the sphere of action of corresponding feature card, and bundle type files are to need to adjust for identification function plug-in unit
Resource file.
The generation for applying test bag and the reading of test data, displaying, the flow changed include:
Step S701, test data is based in application data bag using test bag generating means (being arranged in iPhone)
In corresponding data gateway, generation application data hook plug-in unit wnsHook.dylib.The application data hook plug-in unit can be completed
Corresponding test data is obtained from the data gateway of corresponding application test bag.
Step S702, the loading instruction area for the application data bag that binary file is represented is obtained using test bag generating means
Load Commands。
Step S703, being obtained using test bag generating means from Cydia Substrate dynamic bases can be by application data
The hook feature card that particular plug-in is hung up in bag, such as libsubstrate.dylib plug-in units.
Step S704, compilation tool install_name_tool is used by application data hook using test bag generating means
The loading that subboard wnsHook.dylib and hook feature card libsubstrate.dylib copy application data bag to refers to
Make area Load Commands.
Step S705, compilation tool insert_dylib is used by the application data after renewal using test bag generating means
The loading instruction area Load Commands of bag, which are injected into, to be applied in test bag, and carries out weight signature operation to application test bag, from
And generate corresponding application test bag.
Step S706, in application test bag operation, such as passes through application data hook plug-in unit using test bag generating means
WnsHook.dylib calls hook feature card libsubstrate.dylib corresponding data gateways from application test bag
Test data is got, then the test data can be transmitted to other-end by plug-in unit libmobiledevice being shown
And storage operation.Here other-end can be other mobile terminals, other fixed terminals or other server ends etc..
At this moment tester can also modify operation to test data as needed in other-end, and will be amended
Data are back to using test bag generating means.
Step S707, receives amended test data, and pass through application data hook using test bag generating means
Plug-in unit wnsHook.dylib returns to amended test data using corresponding data gateway in test bag, to realize
Modification operation to test data in application test bag.
So complete the application test bag generation method of this specific embodiment and answering for application test bag generating means
Generated with test bag and the test data of application test bag is read out, shown and modification process.
The application test bag generation method and application test bag generating means of the present invention in application test bag by increasing
Application data hook plug-in unit and hook feature card so that exterior terminal can get answering in the iPhone do not escaped from prison
With the test data of test bag, so as to improve the application testing efficiency using test bag, simplify and apply testing process;Solve
The technical problem that testing efficiency is relatively low and testing process is relatively complicated of the application test bag of existing iPhone.
" component ", " module ", " system ", " interface ", " process " etc. are usually intended to as used herein the term
Refer to computer related entity:Hardware, the combination of hardware and software, software or executory software.For example, component can be but not
It is limited to run process on a processor, processor, object, executable application, thread, program and/or the computer performed.
By diagram, it can be component to run both application and controllers on the controller.One or more assemblies can have
It is in the process of execution and/or thread, and component can be located on a computer and/or be distributed in two or more meters
Between calculation machine.
Fig. 8 and the discussion below are provided to be set to the electronics where realizing application test bag generating means of the present invention
Brief, summary the description of standby working environment.Fig. 8 working environment be only an example of appropriate working environment and
Be not intended to suggestion on working environment purposes or function scope any limitation.Example electronic equipment 812 includes but not limited
In wearable device, helmet, medical treatment & health platform, personal computer, server computer, hand-held or on knee set
Standby, mobile device (such as mobile phone, personal digital assistant (PDA), media player etc.), multicomputer system, consumption
Type electronic equipment, minicom, DCE of mainframe computer including above-mentioned any system or equipment, etc..
Although not requiring, the common background performed at " computer-readable instruction " by one or more electronic equipments
Lower description embodiment.Computer-readable instruction can be distributed via computer-readable medium and (be discussed below).It is computer-readable
Instruction can be implemented as program module, such as perform particular task or realize the function of particular abstract data type, object, application
DLL (API), data structure etc..Typically, the function of the computer-readable instruction can be in various environment arbitrarily
Combination is distributed.
Fig. 8 illustrates the electronic equipment of one or more of the application test bag generating means including present invention embodiment
812 example.In one configuration, electronic equipment 812 includes at least one processing unit 816 and memory 818.According to electronics
The exact configuration and type of equipment, memory 818 can be volatibility (such as RAM), non-volatile (such as ROM, flash memory
Deng) or certain combination of the two.The configuration is illustrated by dotted line 814 in fig. 8.
In other embodiments, electronic equipment 812 can include supplementary features and/or function.For example, equipment 812 may be used also
So that including additional storage device (such as can be removed and/or non-removable), it includes but is not limited to magnetic memory apparatus, light and deposited
Storage device etc..This additional memory devices are illustrated by storage device 820 in fig. 8.In one embodiment, for realizing this
The computer-readable instruction for one or more embodiments that text is provided can be in storage device 820.Storage device 820 may be used also
To store other computer-readable instructions for being used for realizing operating system, application program etc..Computer-readable instruction can be loaded into
Performed in memory 818 by such as processing unit 816.
Term as used herein " computer-readable medium " includes computer-readable storage medium.Computer-readable storage medium includes
The volatibility that any method or technique of information for storing such as computer-readable instruction or other data etc is realized
With non-volatile, removable and nonremovable medium.Memory 818 and storage device 820 are the examples of computer-readable storage medium.
Computer-readable storage medium includes but is not limited to RAM, ROM, EEPROM, flash memory or other memory technologies, CD-ROM, digital universal
Disk (DVD) or other light storage devices, cassette tape, tape, disk storage device or other magnetic storage apparatus can be used for
Information and any other medium that can be accessed by electronic equipment 812 are expected in storage.Any such computer-readable storage medium can
To be a part for electronic equipment 812.
Electronic equipment 812 can also include the communication connection 826 for allowing electronic equipment 812 to be communicated with other equipment.Communication
Connection 826 can include but is not limited to modem, NIC (NIC), integrated network interface, radiofrequency launcher/connect
Receive device, infrared port, USB connections or other interfaces for electronic equipment 812 to be connected to other electronic equipments.Communication connection
826 can include wired connection or wireless connection.Communication connection 826 can launch and/or receive communication medium.
Term " computer-readable medium " can include communication media.Communication media typically comprises computer-readable instruction
Or other data in " the own modulated data signal " of such as carrier wave or other transmission mechanisms etc, and passed including any information
Send medium.Term " own modulated data signal " can include such signal:One or more of the characteristics of signals is according to general
Information is encoded to the mode in signal to be set or changed.
Electronic equipment 812 can include input equipment 824, such as keyboard, mouse, pen, voice-input device, touch input
Equipment, infrared camera, video input apparatus and/or any other input equipment.Output equipment can also be included in equipment 812
822, such as one or more displays, loudspeaker, printer and/or other any output equipments.Input equipment 824 and output
Equipment 822 can be connected to electronic equipment 812 via wired connection, wireless connection or its any combination.In one embodiment,
Input equipment or output equipment from another electronic equipment are used as the input equipment 824 or defeated of electronic equipment 812
Go out equipment 822.
The component of electronic equipment 812 can be connected by various interconnection (such as bus).Such interconnection can include outer
Enclose component interconnection (PCI) (such as quick PCI), USB (USB), live wire (IEEE1394), optical bus structure etc.
Deng.In another embodiment, the component of electronic equipment 812 can pass through network interconnection.For example, memory 818 can be by position
Multiple physical memory cells arcs composition in different physical locations, by network interconnection.
It would be recognized by those skilled in the art that can be across network point for the storage device for storing computer-readable instruction
Cloth.For example, the electronic equipment 830 that can be accessed via network 828 can be stored for realizing one provided by the present invention or many
The computer-readable instruction of individual embodiment.Electronic equipment 812 can access electronic equipment 830 and downloading computer readable instruction
It is part or all of for perform.Alternately, electronic equipment 812 can download a plurality of computer-readable instruction on demand,
Or some instructions can be performed at electronic equipment 812 and some instructions can be performed at electronic equipment 830.
There is provided herein the various operations of embodiment.In one embodiment, described one or more operations can be with structure
The computer-readable instruction stored on into one or more computer-readable mediums, it will make to succeed in one's scheme when being performed by electronic equipment
Calculate equipment and perform the operation.Describing the orders of some or all of operations, to should not be construed as to imply that these operations necessarily suitable
Sequence correlation.It will be appreciated by those skilled in the art that the alternative sequence of the benefit with this specification.Furthermore, it is to be understood that
Not all operation must exist in each embodiment provided in this article.
Although moreover, the disclosure, this area skill has shown and described relative to one or more implementations
Art personnel are based on the reading to the specification and drawings and understand it will be appreciated that equivalent variations and modification.The disclosure include it is all this
The modifications and variations of sample, and be limited only by the scope of the following claims.Particularly with by said modules (such as element,
Resource etc.) various functions that perform, it is intended to correspond to the specified work(for performing the component for describing the term of such component
The random component (unless otherwise instructed) of energy (for example it is functionally of equal value), it is illustrated herein with execution in structure
The disclosure exemplary implementations in function open structure it is not equivalent.Although in addition, the special characteristic of the disclosure is
Through being disclosed relative to the only one in some implementations, but this feature can with such as can be to given or application-specific
For be expect and other favourable implementations other one or more combinations of features.Moreover, with regard to term " comprising ", " tool
Have ", " containing " or its deformation be used in embodiment or claim for, such term be intended to with term
The similar mode of "comprising" includes.
Each functional unit in the embodiment of the present invention can be integrated in a processing module or unit list
Solely be physically present, can also two or more units be integrated in a module.Above-mentioned integrated module can both be used
The form of hardware is realized, it would however also be possible to employ the form of software function module is realized.If the integrated module is with software function
The form of module is realized and is situated between as independent production marketing or in use, an embodied on computer readable storage can also be stored in
In matter.Storage medium mentioned above can be read-only storage, disk or CD etc..Above-mentioned each device or system, can be with
Perform the method in correlation method embodiment.
In summary, although the present invention is disclosed above with embodiment, and the sequence number before embodiment only makes for convenience of description
With the order to various embodiments of the present invention does not cause limitation.Also, above-described embodiment is simultaneously not used to the limitation present invention, this area
Those of ordinary skill, without departing from the spirit and scope of the present invention, can make it is various change with retouching, therefore the present invention
Protection domain is defined by the scope that claim is defined.
Claims (14)
1. one kind application test bag generation method, the application test bag is used to carry out data test to corresponding application data bag
Operation;Characterized in that, the application test bag generation method includes:
Based on the data gateway in the corresponding application data bag of test data, generate for obtaining the test data
Application data hook plug-in unit;
Obtain the loading instruction area of the application data bag;
Using the application data hook plug-in unit and the corresponding hook feature card of the application data hook plug-in unit, to described
The loading instruction area of application data bag is updated operation;And
Signature operation is carried out to the application data bag after renewal, to generate the application test bag.
2. application test bag generation method according to claim 1, it is characterised in that the application test bag generation method
Including:
According to the application data hook plug-in unit, from escaping from prison, test dynamic base obtains the hook feature card.
3. application test bag generation method according to claim 2, it is characterised in that described to use the application data hook
Subboard and the corresponding hook feature card of the application data hook plug-in unit, to the loading instruction area of the application data bag
The step of being updated operation includes:
The application data hook plug-in unit and the hook feature card are copied in the loading instruction area, to be answered described
When being run with test bag, loading operation is carried out to the application data hook plug-in unit and the hook feature card.
4. application test bag generation method according to claim 3, it is characterised in that the application test bag generation method
Also include step:
When the application test bag is run, corresponding data gateway obtains the test number from the application test bag
According to;And
Operation is shown to the test data in other-end.
5. application test bag generation method according to claim 4, it is characterised in that described from the application test bag
The step of corresponding data gateway obtains the test data includes:
The hook feature card corresponding data from the application test bag are called by the application data hook plug-in unit
Gateway obtains the test data.
6. application test bag generation method according to claim 3, it is characterised in that the application test bag generation method
Also include step:
When the application test bag is run, corresponding data gateway obtains the test number from the application test bag
According to;
The test data is modified operation in other-end;And
Amended test data is back to corresponding data gateway in the application test bag.
7. application test bag generation method according to claim 6, it is characterised in that described from the application test bag
The step of corresponding data gateway obtains the test data includes:
The hook feature card corresponding data from the application test bag are called by the application data hook plug-in unit
Gateway obtains the test data;
Amended test data is returned to by corresponding data in the application test bag by the application data hook plug-in unit
Gateway.
8. one kind application test bag generating means, the application test bag is used to carry out data test to corresponding application data bag
Operation;Characterized in that, the application test bag generation method includes:
Hook plug-in unit generation module, for based on the data gateway in the corresponding application data bag of test data, generation
Application data hook plug-in unit for obtaining the test data;
Load instruction area acquisition module, the loading instruction area for obtaining the application data bag;
Instruction area update module is loaded, for using the application data hook plug-in unit and the application data hook plug-in unit pair
The hook feature card answered, operation is updated to the loading instruction area of the application data bag;And
Using test bag generation module, for carrying out signature operation to the application data bag after renewal, surveyed with generating the application
Examination bag.
9. application test bag generating means according to claim 8, it is characterised in that the application test bag generating means
Including:
Hook feature card acquisition module, for according to the application data hook plug-in unit, test dynamic base to obtain institute from escaping from prison
State hook feature card.
10. application test bag generating means according to claim 9, it is characterised in that the loading instruction area updates mould
Block is used to copy the application data hook plug-in unit and the hook feature card in the loading instruction area to, with described
When being run using test bag, loading operation is carried out to the application data hook plug-in unit and the hook feature card.
11. application test bag generating means according to claim 10, it is characterised in that the application test bag generation dress
Putting also includes:
Test data acquisition module, for when the application test bag is run, the corresponding data from the application test bag
Gateway obtains the test data;Wherein described test data is shown operation in other-end.
12. application test bag generating means according to claim 11, it is characterised in that the test data acquisition module
The hook feature card corresponding data from the application test bag are called to come in and go out by the application data hook plug-in unit
Mouth obtains the test data.
13. application test bag generating means according to claim 10, it is characterised in that the application test bag generating means are also
Including:
Test data acquisition module, for when the application test bag is run, the corresponding data from the application test bag
Gateway obtains the test data;Wherein described test data is modified operation in other-end;And
Test data returns to module, goes out for amended test data to be back into corresponding data in the application test bag
Entrance.
14. application test bag generating means according to claim 13, it is characterised in that
The test data acquisition module calls the hook feature card to be answered from described by the application data hook plug-in unit
The test data is obtained with corresponding data gateway in test bag;
The test data returns to module and amended test data is returned into described answer by the application data hook plug-in unit
With corresponding data gateway in test bag.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710282807.2A CN107133169B (en) | 2017-04-26 | 2017-04-26 | Application test packet generation method and generation device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710282807.2A CN107133169B (en) | 2017-04-26 | 2017-04-26 | Application test packet generation method and generation device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107133169A true CN107133169A (en) | 2017-09-05 |
CN107133169B CN107133169B (en) | 2021-03-23 |
Family
ID=59716069
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710282807.2A Active CN107133169B (en) | 2017-04-26 | 2017-04-26 | Application test packet generation method and generation device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107133169B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110162310A (en) * | 2018-02-12 | 2019-08-23 | 腾讯科技(深圳)有限公司 | Application program generation method and device, card i/f test method and device |
CN112764796A (en) * | 2019-11-05 | 2021-05-07 | 阿里巴巴集团控股有限公司 | Installation package generation system |
CN112835639A (en) * | 2021-01-29 | 2021-05-25 | 百度在线网络技术(北京)有限公司 | Hook implementation method, device, equipment, medium and product |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102651060A (en) * | 2012-03-31 | 2012-08-29 | 北京奇虎科技有限公司 | Method and system for detecting vulnerability |
CN103077332A (en) * | 2012-12-28 | 2013-05-01 | 飞天诚信科技股份有限公司 | Method and device for running packer application with self-checking |
CN105512044A (en) * | 2015-12-25 | 2016-04-20 | 北京奇虎科技有限公司 | Method and system for updating object base used for keyword drive test |
CN105808536A (en) * | 2014-12-27 | 2016-07-27 | 北京奇虎科技有限公司 | A file processing method and device |
CN105988928A (en) * | 2015-03-02 | 2016-10-05 | 腾讯科技(深圳)有限公司 | Terminal application testing method and mobile terminal |
EP3104291A1 (en) * | 2015-06-09 | 2016-12-14 | Thomson Licensing | Device and method for protection of ios software modules |
CN106326113A (en) * | 2016-08-16 | 2017-01-11 | 腾讯科技(深圳)有限公司 | Game data monitoring method and device |
-
2017
- 2017-04-26 CN CN201710282807.2A patent/CN107133169B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102651060A (en) * | 2012-03-31 | 2012-08-29 | 北京奇虎科技有限公司 | Method and system for detecting vulnerability |
CN103077332A (en) * | 2012-12-28 | 2013-05-01 | 飞天诚信科技股份有限公司 | Method and device for running packer application with self-checking |
CN105808536A (en) * | 2014-12-27 | 2016-07-27 | 北京奇虎科技有限公司 | A file processing method and device |
CN105988928A (en) * | 2015-03-02 | 2016-10-05 | 腾讯科技(深圳)有限公司 | Terminal application testing method and mobile terminal |
EP3104291A1 (en) * | 2015-06-09 | 2016-12-14 | Thomson Licensing | Device and method for protection of ios software modules |
CN105512044A (en) * | 2015-12-25 | 2016-04-20 | 北京奇虎科技有限公司 | Method and system for updating object base used for keyword drive test |
CN106326113A (en) * | 2016-08-16 | 2017-01-11 | 腾讯科技(深圳)有限公司 | Game data monitoring method and device |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110162310A (en) * | 2018-02-12 | 2019-08-23 | 腾讯科技(深圳)有限公司 | Application program generation method and device, card i/f test method and device |
CN110162310B (en) * | 2018-02-12 | 2022-03-01 | 腾讯科技(深圳)有限公司 | Plug-in interface test method and device, computer equipment and storage medium |
CN112764796A (en) * | 2019-11-05 | 2021-05-07 | 阿里巴巴集团控股有限公司 | Installation package generation system |
CN112835639A (en) * | 2021-01-29 | 2021-05-25 | 百度在线网络技术(北京)有限公司 | Hook implementation method, device, equipment, medium and product |
CN112835639B (en) * | 2021-01-29 | 2024-02-27 | 百度在线网络技术(北京)有限公司 | Hook realization method, device, equipment, medium and product |
Also Published As
Publication number | Publication date |
---|---|
CN107133169B (en) | 2021-03-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105426223B (en) | Using loading method and device | |
CN104346274B (en) | Program debugger and a kind of adjustment method of program | |
CN106569869A (en) | Plug-in packaging method and device | |
CN106507161A (en) | Net cast method and live broadcast device | |
CN104134041A (en) | Anti-detecting method and device of terminal simulator system | |
CN107291759A (en) | The treating method and apparatus of browser page resource | |
CN107133169A (en) | Using test bag generation method and generating means | |
CN107729246A (en) | For the auxiliary test methods of intended application, device, equipment and storage medium | |
CN106445548A (en) | Test pack issuing method and device | |
CN110166543A (en) | Applied program processing method, device and computer equipment | |
CN107797820A (en) | Method and apparatus for generating patch | |
CN108717374A (en) | The method, apparatus and computer equipment that Java Virtual Machine preheats when starting | |
CN108268296A (en) | Loading method, the client and server of page layout | |
CN107741902A (en) | Program application detection method and program application detection means | |
CN107330009A (en) | Descriptor disaggregated model creation method, creating device and storage medium | |
CN108846129A (en) | Storing data access method, device and storage medium | |
CN106502709B (en) | Applied business reminding method and applied business suggestion device | |
CN112764729B (en) | Application software development method, device, computer equipment and readable storage medium | |
CN110007936A (en) | Data processing method and device | |
CN115408245A (en) | Data flow tracking method and system, electronic equipment and storage medium | |
CN110119386A (en) | Data processing method, data processing equipment, medium and calculating equipment | |
CN106100971B (en) | Information creating, method for sending information and information creating, information transmitting apparatus | |
CN104239112A (en) | Device driver installation method and device | |
CN107743085B (en) | Invite code management method and invitation code managing device | |
Park et al. | Self-adaptive middleware framework for internet of things |
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 |