CN108628743A - Applied program testing method, device, equipment and storage medium - Google Patents
Applied program testing method, device, equipment and storage medium Download PDFInfo
- Publication number
- CN108628743A CN108628743A CN201810385438.4A CN201810385438A CN108628743A CN 108628743 A CN108628743 A CN 108628743A CN 201810385438 A CN201810385438 A CN 201810385438A CN 108628743 A CN108628743 A CN 108628743A
- Authority
- CN
- China
- Prior art keywords
- data
- application
- configuration file
- test
- program
- 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
- 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
-
- 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/362—Software debugging
- G06F11/3636—Software debugging by tracing the execution of the program
-
- 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/362—Software debugging
- G06F11/3644—Software debugging by instrumenting at runtime
-
- 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/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)
- Debugging And Monitoring (AREA)
Abstract
The embodiment of the invention discloses a kind of applied program testing method, device, equipment and storage mediums.This method includes:Default input data corresponding with destination application is determined using test terminal;The application tests terminal according to the default input data and preset configuration file data, the destination application is tested, wherein, preset configuration file is called to generate Program Generating when the preset configuration file data executes the destination application by application execution terminal according to the default input data.Pass through above-mentioned technical proposal, it realizes and quickly and conveniently tests terminal in application, program test is carried out to running on the destination application in application execution terminal, so that application test terminal directly obtains required data by preset configuration file data, reduce using test terminal during the test with the interactive process of other-end, program test flow is shortened, the efficiency of program test is improved.
Description
Technical field
The present embodiments relate to computer technology more particularly to a kind of applied program testing method, device, equipment and deposit
Storage media.
Background technology
In order to improve the performance of the mobile terminals such as smart mobile phone and tablet computer, some mobile terminal device manufacturers carry
The dedicated cpu chip of mobile terminal and corresponding instruction set, such as ARM chips and ARM architecture processor expansion structures are supplied
(NEON) instruction set, developer can realize that the different function in mobile terminal, such as video are compiled based on NEON instruction set
Decoding function or subscriber authentication function etc..
Although carrying out program development based on the dedicated cpu chip of mobile terminal and corresponding instruction set, movement can be improved
The runnability and information security of terminal.But due to the difference of instruction, the mobile terminal based on the exploitation of NEON instruction set
Application program can only be run on mobile terminals, can not be run on the immobile terminals such as desktop computer or server.This
Sample can only just carry out the application program simple functions that function could be realized and test, and can not be by PC terminals or server etc.
The functional test script that the functional test tool of immobile terminal or developer voluntarily write has carried out the application program
Whole program test, such as functional test, safety test, performance test and compatibility test etc. so as to application program
Complete test becomes extremely inconvenient.
Invention content
The embodiment of the present invention provides a kind of applied program testing method, device, equipment and storage medium, with realize it is convenient and
Program test efficiently is carried out to application program.
In a first aspect, an embodiment of the present invention provides a kind of applied program testing methods, including:
Default input data corresponding with destination application is determined using test terminal;
The application tests terminal according to the default input data and preset configuration file data, to the intended application
Program is tested, wherein the preset configuration file data is executed by application execution terminal according to the default input data
Preset configuration file is called to generate Program Generating when the destination application.
Second aspect, the embodiment of the present invention additionally provide a kind of Application testing device, which includes:
Default input data determining module, for determining default input data corresponding with destination application;
Test module is used for according to the default input data and preset configuration file data, to the intended application journey
Sequence is tested, wherein the preset configuration file data executes institute by application execution terminal according to the default input data
Preset configuration file is called to generate Program Generating when stating destination application.
The third aspect, the embodiment of the present invention additionally provide a kind of equipment, which includes:
One or more processors;
Storage device, for storing one or more programs,
When one or more of programs are executed by one or more of processors so that one or more of processing
Device realizes the applied program testing method that any embodiment of the present invention is provided.
Fourth aspect, the embodiment of the present invention additionally provide a kind of computer readable storage medium, are stored thereon with computer
Program realizes the applied program testing method that any embodiment of the present invention is provided when the computer program is executed by processor.
The embodiment of the present invention tests terminal by application and determines default input data corresponding with destination application, and
The preset configuration file data generated in performance objective application program by application execution terminal, and according to default input data and
Preset configuration file data tests destination application, realizes and quickly and conveniently tests terminal in application, to operation
Destination application in application execution terminal carries out program test so that application test terminal directly passes through preset configuration text
Data needed for part data acquisition reduce using test terminal during the test with the interactive process of other-end, shorten
Program test flow improves the efficiency of program test.
Description of the drawings
Fig. 1 is a kind of flow chart of applied program testing method in the embodiment of the present invention one;
Fig. 2 is a kind of flow chart of applied program testing method in the embodiment of the present invention two;
Fig. 3 is a kind of structural schematic diagram of Application testing device in the embodiment of the present invention three;
Fig. 4 is a kind of structural schematic diagram of equipment in the embodiment of the present invention four.
Specific implementation mode
The present invention is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched
The specific embodiment stated is used only for explaining the present invention rather than limitation of the invention.It also should be noted that in order to just
Only the parts related to the present invention are shown in description, attached drawing rather than entire infrastructure.
Embodiment one
Applied program testing method provided in this embodiment is applicable to test terminal in application, in application execution terminal
Destination application carry out complete program test, and the input data in the destination application and corresponding output data
It can fix in advance, i.e., when input data predefines, corresponding output data also just corresponding determining situation.This method can be with
It is executed by Application testing device, which can be realized that the device can be integrated in by the mode of software and/or hardware
In the equipment for having complete Application testing, such as typically immobile terminal equipment, such as desktop computer or service
Device etc..Referring to Fig. 1, the method for this implementation specifically comprises the following steps:
S110, default input data corresponding with destination application is determined using test terminal.
Wherein, refer to terminal for carrying out Application testing using test terminal, for example, can be desktop computer (i.e.
PC terminals) or server etc..Destination application refers to application program to be tested, such as can be that live streaming application, shopping are answered
With and office application etc..
Default input data refers to pre-set input data, can be data input by user, can also be clothes
The data that business device issues, can also be the data using test terminal built-in, such as can be the use such as user name and login password
Family authentication information can also be the file data of the operations such as pending opening or encryption, can also be for encryption information
Random number, can also be video data etc. to be decoded.Here, default input data be in order to carry out Application testing and
The test data of setting, therefore data volume and specific data content can be predefined, as long as it may be implemented to applying journey
The program test of sequence.
Specifically, destination application is set to using testing in terminal, for carrying out program test.Eventually using test
End receives then according to the input source for presetting input data or acquisition carries out the default defeated of data input to the destination application
Enter data.For example, it may be application test terminal receives default input data input by user;Can also be using test terminal
It obtains and asks to server transmission data, and receive the response data that server responds data acquisition request and issues and make
To preset input data;It can also be using test terminal according to the default pre-set path of input data inside it, carry out pre-
If the lookup and acquisition of input data.
S120, using test terminal according to presetting input data and preset configuration file data, to destination application into
Row test.
Wherein, preset configuration file data refers to the profile data got in advance, is used to determine program test
In other test data other than presetting input data, such as can be in the corresponding program operation of default input data
Between result data and/or final output data (being collectively referred to as associated with output data) etc., or with default input data coordinate
Other test data such as use, historical test data, storage form can be the forms of tables of data, can also be
The form of simple data, can also be the combining form that tables of data is combined with data.
Illustratively, preset configuration file data presets input data performance objective application journey by application execution terminal foundation
Preset configuration file is called to generate Program Generating when sequence.Wherein, it is set when application execution terminal refers to destination application exploitation
Fixed application operation terminal, such as can be the mobile terminals such as smart mobile phone or tablet computer.Preset configuration file generates journey
Sequence refers to being arranged in advance in application execution terminal, the program for generating configuration file, can be progress data collection, and
The program that the data of collection are generated to configuration file, can also be data corresponding with the data in preset configuration file data
Processing routine, such as Data Input Interface and authentication program.Specifically, application execution terminal is in performance objective application program
During, at least one of default input data, the incidence relation being associated between output data and data data pass through
Preset configuration file generates the Data Input Interface of program, is transferred to preset configuration file and generates program, and by the program
Generate preset configuration file data.The advantages of this arrangement are as follows program is generated by preset configuration file, by application execution
Application test terminal is needed the individual profile data of Test data generation used by terminal in advance, can avoid passing through it
His channel structure profile data and caused by the situation of profile data mistake occur, ensure that profile data
Authenticity and reliability, and then improve the accuracy of program test.
Specifically, intended application journey is determined according to default input data and preset configuration file data using test terminal
Test data needed for sequence test, and the test data is utilized, program test is carried out to destination application, for example function could
Whether the functional test of realization, performance tests, the programs such as boundary condition test and pressure test that whether program operation stablizes deposit
Tested in the safety test of security breaches etc. and software compatibility etc..
The technical solution of the present embodiment tests terminal by application and determines default input number corresponding with destination application
According to, and the preset configuration file data that is generated in performance objective application program by application execution terminal, and according to default defeated
Enter data and preset configuration file data tests destination application, realizes quickly and conveniently whole in application test
End carries out program test to running on the destination application in application execution terminal so that application test terminal directly passes through
Preset configuration file data obtain needed for data, reduce and interacted during the test with other-end using test terminal
Journey shortens program test flow, improves the efficiency of program test.
Illustratively, based on the above technical solution, include to wait for analog functuion, work(to be simulated in destination application
It can be realized based on NEON instruction set.
Wherein, when analog functuion refers to using test terminal performance objective application program, intended application to be simulated is needed
Function in program, such as can be identification verification function, data encrypting and deciphering function or coding and decoding video function etc..NEON is instructed
Collection refers to ARM architecture processor expansion structure instruction set.
Specifically, comprising analog functuion is waited in the various functions achieved by destination application, this waits for that analog functuion is
Based on the proprietary chip of mobile terminal and proprietary instruction set, i.e. NEON instruction set is realized, that is to say, that in the destination application
When analog functuion when carrying out program development, the instruction set that is relied on is NEON instruction set.In this way, proprietary using mobile terminal
Instruction set carries out functional development, can not only improve the speed of service of corresponding function in mobile terminal, and make the function only
Mobile terminal is can run on, it is non-to implement some to avoid hacker from waiting for that analog functuion is simulated to this in immobile terminal
Judicial act, such as brush single act or the false popularity behavior etc. for forging live streaming main broadcaster, can play mobile terminal application centainly
Protective effect.
But can not be executed in immobile terminal just because of the function of being realized based on NEON instruction set, therefore non-moving end
It end can not be to comprising waiting for that the application program including analog functuion directly carries out program test.So being used in the embodiment of the present invention
The form of default input data and preset configuration file data reaches to test in terminal-pair destination application in application and waits simulating
The simulation of function so that destination application can be run on using test terminal, so that application test terminal can be right
Destination application carries out program test.Applied program testing method in the embodiment of the present invention is particularly suitable for intended application journey
Sequence can only be run in application execution terminal, and can not be when application is tested in terminal and be run, to destination application into stroke
The case where sequence is tested.
Illustratively, based on the above technical solution, preset configuration file data includes and default input data pair
The association output data answered;Correspondingly, using test terminal according to input data and preset configuration file data is preset, to target
Application program carries out test:According to presetting input data and being associated with the data type of output data, associated container is created;It will
Preset configuration file data is inserted into associated container, generates the mapping table between input data and output data;According to default
Input data and mapping table determine the target output data for waiting for analog functuion, and according to target output data, answer target
It is tested with program.
Wherein, associated container, also referred to as associative container refer to pair that data are stored according to the incidence relation between data
As, element therein is according to keywords to preserve and access, the efficient keyword can be supported to search and access, it specifically can be with
Including map, multimap, set and multiset etc., can select corresponding association to hold according to specific data application situation
Device.Illustratively, associated container includes map associated containers.Since the default input data in the embodiment of the present invention is only provided with
One group of test data, therefore map associated containers may be used, to build one-to-one mapping table.It can make to reflect in this way
It penetrates relation table to store in the form of key-value pair, and can realize the quick lookup of data using keyword as index terms.Target is defeated
It refers to waiting for that analog functuion carries out treated output data to input data to go out data.
Specifically, in order in application test terminal progress program test, need first to treat analog functuion progress simulated implementation,
Entire program is tested again.It is to be determined according to default input data and preset configuration file data in the embodiment of the present invention
The target output data for waiting for analog functuion, in the form of shielding waits for analog functuion code, realization simulates it.When it is implemented,
In order to quickly find corresponding output data according to default input data, an input data is established in the present embodiment
Mapping table between output data.In order to further increase data search speed, a map is created in the present embodiment
Associated container, i.e., according to input data and the data type that is associated with output data is preset, determine in map associated containers keyword with
The type of value, and create a map container.After associated container creates, then according to default defeated in preset configuration file data
The correspondence for entering data and being associated between output data, will each preset input data and corresponding association output data, point
Not in the form of keyword and value, by being inserted into map associated containers, the mapping generated between input data and output data is closed
It is table.Later, the lookup and really for the target output data for waiting for analog functuion can using default input data as keyword, be carried out
It is fixed.Again using the target output data as destination application in down-stream run input data, realize to intended application journey
The test of sequence.The advantages of this arrangement are as follows the determination of target output data can be carried out rapidly, further increase using survey
Try the speed that terminal carries out program test.
Embodiment two
The present embodiment on the basis of the above embodiment 1, by wait for analog functuion be identification verification function for, to application
Program testing method is described in detail.It on this basis, can also be further to " application test terminal determination and intended application
The corresponding default input data of program " optimizes.Explanation wherein identical as the various embodiments described above or corresponding term is herein
It repeats no more.
Before the applied program testing method in the present embodiment is described in detail, first to being with identification verification function
Inputoutput data when example illustrates.
Illustratively, wait for that analog functuion includes identification verification function, default input data includes at least one authentication
The random number of information and at least one setting data format, association output data include at least one target identities verification encryption letter
Breath.
Wherein, setting data format refers to the data format that can be identified inside particular device, which is used for pair
Authentication encryption information is decrypted, such as can be server.It refers to finally determining that target identities, which verify encryption information,
To the encrypted authentication encryption information of authentication information.
Specifically, wait for that analog functuion is identification verification function, that is to say, that include authentication work(in destination application
Can, which developed based on NEON instruction set, and mobile terminal can only be run on, without can run on PC ends
End or server.For example, user's login function in live streaming application software, cipher encryption algorithm is based on NEON instructions come complete
At.If immobile terminal will carry out program test using test script to live streaming application software, firstly the need of progress
It logs in.However, since its algorithm is NEON instructions, so can not directly be logged in by script.At this time, it may be necessary to real through the invention
The applied program testing method that example is provided is applied to realize.
Here, it first corresponds to be said with the realization process for executing the identification verification function instructed based on NEON in terminal
It is bright.Here by taking user's login function in the live streaming application software for running on mobile terminal as an example.Live streaming in mobile terminal
When application software enters login page, random number can be sent to server and obtain request.And server can be according to the random number
Acquisition requests to generate a random number, and is issued to mobile terminal, as the encrypted random value of login password.Then, mobile whole
It holds according to login password input by user and the random number received, using the 5th edition Message Digest 5 (MD5), calculates MD5
Value.Later, the Encryption Algorithm (i.e. default NEON Encryption Algorithm) further write using NEON instructions, to the MD5 values of calculating
Further computations are done, secondary encrypted result are obtained, and final secondary encrypted result is reported into server, by servicing
Device verifies the reported result of mobile terminal.It implements process can be as follows:
Result=Md5.Create (server_rand_data+password);
Result2=Neon_encrypt (Result).
Wherein, Md5.Create is then the calculating interface of MD5, and server_rand_data is the random of server generation
Number, password are login passwords input by user, and Result is MD5 values, and Neon_encrypt is default NEON Encryption Algorithm
Calculating interface, Result2 is final secondary encrypted result.
By the above process it is found that when analog functuion includes identification verification function, it includes at least to preset input data
The random number of one authentication information and at least one setting data format.Correspondingly, association output data is then at least one
A target identities verify encryption information.Here default input data is the data for test, thus in order to ensure test can
By property, multigroup test data can be set, i.e., comprising at least one authentication information and at least one in default input data
Set the random number of data format.Since the authentication information is therefore can to pre-set the identity for program test
Verification information, such as a preset authentication information, and specifically it is predisposed to " 123456 ".
Similarly, since the random number is also for program test, so it can be random according to it by server
The random number that number create-rule is generated in advance, rather than obtain request according to random number and generate in real time.What is be generated in advance is at least one
Random number can be stored in tabular form in server or application test terminal (immobile terminal) in advance, so that application is tested
Terminal is transferred.For example, preserving the entitled rand_data_config.txt of listing file of random number, interior data include 3 32
The character string of position:“abc12783sd192034d3dabd23090324”、“dd123d903987680292840000000000”
" aabbccddefefeefefe9902222fdddd ".It is random true from above-mentioned 3 random numbers when needing to obtain random number
A fixed random number.
Referring to Fig. 2, applied program testing method provided in this embodiment includes:
S210, authentication information input by user and server are received from list of random numbers using test terminal
Determining random number at random.
Specifically, using test terminal performance objective application program, such as application software is broadcast live, until user's login interface
When, that is, start the identification verification function that destination application tests terminal in application.At this point, application test terminal receives user
I.e. " 123456 " the preset authentication information of input, and sends random number to server and obtains request.Server then foundation
Random number obtains request, in the random number series list file rand_data_config.txt built in it, it is random determine one with
Machine number is issued to as return value, and by determining random number " dd123d903987680292840000000000 " using test
Terminal.
S220, using test terminal according to authentication information, random number and preset configuration file data, determine target body
Part verification encryption information, and encryption information is verified according to target identities, destination application is tested.
Specifically, it before carrying out program test to live streaming application software, needs to obtain in advance using test terminal default
Profile data, the preset configuration file data are generated by application execution terminal.
Illustratively, application execution terminal calls preset configuration according to when presetting input data performance objective application program
Document generator generates preset configuration file data:Application execution terminal receives at least one authentication information and extremely
A few random number;Application execution terminal adds each authentication information using Message Digest 5 using each random number
It is close, obtain at least one initial authentication encryption information;Application execution terminal is using NEON Encryption Algorithm is preset, to each first
Beginning authentication encryption information is encrypted, and at least one target identities verification encryption information is obtained, and default NEON Encryption Algorithm is based on
NEON instruction set generates;Application execution terminal is according at least one authentication information, at least one random number and at least one
Target identities verify the correspondence between encryption information, and preset configuration file is called to generate program, generate preset configuration text
Number of packages evidence.
When it is implemented, application execution terminal (mobile terminal) needs are tested according to preset test data, such as identity
Demonstrate,prove information and random number, to the analog functuion that waits in destination application, that is, be broadcast live user's login function in application software into
Row simulation, that is, generate preset configuration file data.So, it in order to generate required data, is directed in application execution terminal and waits simulating
Function pre-sets a configuration file and generates program, which, which generates, realizes that process is inside program:It utilizes
Each random number carries out one-time pad encryption using MD5 algorithms to each authentication information, obtains one-time pad encryption as a result, i.e.
Initial authentication encryption information;And using NEON Encryption Algorithm is preset, each initial authentication encryption information is carried out
Secondary encryption determines at least one target identities verification encryption information;Last foundation authentication information, random number and target body
Incidence relation between part verification encryption information, generates preset configuration file data.
Application execution terminal (mobile terminal) calls above-mentioned preset configuration file to generate Program Generating preset configuration file
The detailed process of data is:The Data Input Interface in program is generated by preset configuration file, receives at least one identity
Verification information " 123456 " and at least one random number " abc12783sd192034d3dabd23090324 ",
" dd123d903987680292840000000000 " and " aabbccddefefeefefe9902222fdddd ".Pass through tune later
Routine interface Char*GetLoginVerifyData (char*pSeverData, char* are generated with preset configuration file
Password), profile data is generated.Wherein GetLoginVerifyData is interface name, and pSeverData is random number
Parameter name, password are login password parameter name.It is implemented as follows:
NeonR1=GetLoginVerifyData (" abc12783sd192034d3dabd23090324 "+
“123456”);
NeonR2=GetLoginVerifyData (" dd123d903987680292840000000000 "+
“123456”);
NeonR3=GetLoginVerifyData (" aabbccddefefeefefe9902222fdddd "+
“123456”)。
Wherein, NeonR1, NeonR2 and NeonR3 are respectively the corresponding target identities verification encryption letter of each random number
Breath.To ultimately generate preset configuration file data VerifyConfig.txt, content is as follows:
“abc12783sd192034d3dabd23090324”:“NeonR1”
“dd123d903987680292840000000000”:“NeonR2”
“aabbccddefefeefefe9902222fdddd”:“NeonR3”.
After getting preset configuration file using test terminal, preset configuration file data is first read, and data are added
It is loaded onto in memory.Later, it according to presetting input data in preset configuration file and being associated with the data type of output data, creates
Map associated containers:map<string,string>Verify, and the data in preset configuration file are inserted into map associated containers,
Generate following map containers:
Verify [" abc12783sd192034d3dabd23090324 "]=" NeonR1 ";
Verify [" dd123d903987680292840000000000 "]=" NeonR2 ";
Verify [" aabbccddefefeefefe9902222fdddd "]=" NeonR3 ".
Authentication information input by user " 123456 " is got using test terminal and random number that server issues
After " dd123d903987680292840000000000 ", pass through verify.find
(" dd123d903987680292840000000000 "), so that it may to obtain result data " NeonR2 ".So application test is whole
Result data NeonR2 can be sent to server and carry out login authentication by end, then login function may be implemented, and completion passes through non-shifting
The simulation of identification verification function in dynamic terminal-pair mobile terminal, and can be further to the down-stream of application software is broadcast live into stroke
Sequence is tested.
The technical solution of the present embodiment, by taking identification verification function as an example, by application test terminal from server obtain with
Machine number enables to the test using test terminal-pair destination application more comprehensive.Terminal is tested according to body by application
Part verification information, random number and preset configuration file data determine that target identities verify encryption information, and to destination application
It is tested, the corresponding program code of identification verification function in destination application can be carried out with preset configuration file data
Shielding, to realize the simulation to identification verification function in mobile terminal so that based on the proprietary instruction set exploitation of mobile terminal
Function program can run on immobile terminal, so that immobile terminal is convenient and is efficiently carried out to destination application
Program test.
It is the embodiment of Application testing device provided in an embodiment of the present invention, the device and the various embodiments described above below
Applied program testing method belong to the same inventive concept, the not detailed description in the embodiment of Application testing device
Detail content can refer to the embodiment of above application program testing method.
Embodiment three
The present embodiment provides a kind of Application testing devices, and referring to Fig. 3, which specifically includes:
Default input data determining module 310, for determining default input data corresponding with destination application;
Test module 320, for according to the default input data and pre- establishing for presetting 310 determination of input data determining module
File data is set, destination application is tested, wherein preset configuration file data is by application execution terminal according to default
Preset configuration file is called to generate Program Generating when input data performance objective application program.
Optionally, comprising analog functuion is waited in destination application, wait for that analog functuion is realized based on NEON instruction set.
Optionally, preset configuration file data includes association output data corresponding with default input data;
Correspondingly, test module 320 is specifically used for:
According to presetting input data and being associated with the data type of output data, associated container is created;
Preset configuration file data is inserted into associated container, generates the mapping relations between input data and output data
Table;
According to input data and mapping table is preset, the target output data for waiting for analog functuion is determined, and according to target
Output data tests destination application.
Further, associated container includes map associated containers.
Optionally, wait for that analog functuion includes identification verification function, default input data includes at least one authentication letter
The random number of breath and at least one setting data format, association output data include at least one target identities verification encryption letter
Breath.
Further, input data determining module 310 is preset to be specifically used for:
It is random true from list of random numbers that authentication information input by user and server are received using test terminal
Fixed random number.
Optionally, test module 320 is specifically used for:
Application execution terminal receives at least one authentication information and at least one random number;
Application execution terminal utilizes each random number, using Message Digest 5, encrypts, obtains to each authentication information
Obtain at least one initial authentication encryption information;
Application execution terminal encrypts each initial authentication encryption information using NEON Encryption Algorithm is preset, and obtains
At least one target identities verify encryption information, preset NEON Encryption Algorithm and are generated based on NEON instruction set;
Application execution terminal is according at least one authentication information, at least one random number and at least one target identities
The correspondence between encryption information is verified, preset configuration file is called to generate program, generates preset configuration file data.
Three a kind of Application testing device through the embodiment of the present invention realizes quickly and conveniently whole in application test
End carries out program test to running on the destination application in application execution terminal so that application test terminal directly passes through
Preset configuration file data obtain needed for data, reduce and interacted during the test with other-end using test terminal
Journey shortens program test flow, improves the efficiency of program test.
What the executable any embodiment of the present invention of Application testing device that the embodiment of the present invention is provided was provided answers
With program testing method, have the corresponding function module of execution method and advantageous effect.
It is worth noting that, in the embodiment of above application program test device, included each unit and module are only
It is divided according to function logic, but is not limited to above-mentioned division, as long as corresponding function can be realized;Separately
Outside, the specific name of each functional unit is also only to facilitate mutually distinguish, the protection domain being not intended to restrict the invention.
Example IV
Referring to Fig. 4, a kind of equipment 400 is present embodiments provided comprising:One or more processors 420;Storage device
410, for storing one or more programs, when one or more programs are executed by one or more processors 420 so that one
Or multiple processors 420 realize the applied program testing method that the embodiment of the present invention is provided, including:
Default input data corresponding with destination application is determined using test terminal;
Using test terminal according to input data and preset configuration file data is preset, destination application is surveyed
Examination, wherein preset configuration file data is called by application execution terminal according to when presetting input data performance objective application program
Preset configuration file generates Program Generating.
Certainly, it will be understood by those skilled in the art that processor 420 can also realize that any embodiment of the present invention is provided
Applied program testing method technical solution.
The equipment 400 that Fig. 4 is shown is only an example, should not be brought to the function and use scope of the embodiment of the present invention
Any restrictions.
As shown in figure 4, the equipment 400 includes processor 420, storage device 410, input unit 430 and output device
440;The quantity of processor 420 can be one or more in equipment, in Fig. 4 by taking a processor 420 as an example;Place in equipment
Reason device 420, storage device 410, input unit 430 can be connected with output device 440 by bus or other modes, in Fig. 4
For being connected by bus 450.
Storage device 410 is used as a kind of computer readable storage medium, can be used for storing software program, computer executable
Program and module, the corresponding program instruction/module of method is (for example, Application testing in the embodiment of the present invention ...
Default input data determining module in device and test module).
Storage device 410 can include mainly storing program area and storage data field, wherein storing program area can store operation
Application program needed for system, at least one function;Storage data field can be stored uses created data etc. according to terminal.
In addition, storage device 410 may include high-speed random access memory, can also include nonvolatile memory, for example, at least
One disk memory, flush memory device or other non-volatile solid state memory parts.In some instances, storage device 410
It can further comprise that the memory remotely located relative to processor 420, these remote memories can be by network connections extremely
Equipment.The example of above-mentioned network includes but not limited to internet, intranet, LAN, mobile radio communication and combinations thereof.
Input unit 430 can be used for receiving the number or character information of input, and generate with the user setting of equipment with
And the related key signals input of function control.Output device 440 may include that display screen etc. shows equipment.
Example IV
The present embodiment provides a kind of storage medium including computer executable instructions, the computer executable instructions by
For executing a kind of applied program testing method when computer processor executes, this method includes:
Default input data corresponding with destination application is determined using test terminal;
Using test terminal according to input data and preset configuration file data is preset, destination application is surveyed
Examination, wherein preset configuration file data is called by application execution terminal according to when presetting input data performance objective application program
Preset configuration file generates Program Generating.
Certainly, a kind of storage medium including computer executable instructions that the embodiment of the present invention is provided, computer
The method operation that executable instruction is not limited to the described above, can also be performed the application program that any embodiment of the present invention is provided
Relevant operation in test method.
By the description above with respect to embodiment, it is apparent to those skilled in the art that, the present invention
It can be realized by software and required common hardware, naturally it is also possible to which by hardware realization, but the former is more in many cases
Good embodiment.Based on this understanding, technical scheme of the present invention substantially in other words contributes to the prior art
Part can be expressed in the form of software products, which can be stored in computer readable storage medium
In, such as the floppy disk of computer, read-only memory (Read-Only Memory, ROM), random access memory (Random
Access Memory, RAM), flash memory (FLASH), hard disk or CD etc., including some instructions are with so that a computer is set
Standby (can be personal computer, server or the network equipment etc.) executes the application journey that each embodiment of the present invention is provided
Sequence test method.
Note that above are only presently preferred embodiments of the present invention and institute's application technology principle.It will be appreciated by those skilled in the art that
The present invention is not limited to specific embodiments described here, can carry out for a person skilled in the art it is various it is apparent variation,
It readjusts and substitutes without departing from protection scope of the present invention.Therefore, although being carried out to the present invention by above example
It is described in further detail, but the present invention is not limited only to above example, without departing from the inventive concept, also
May include other more equivalent embodiments, and the scope of the present invention is determined by scope of the appended claims.
Claims (10)
1. a kind of applied program testing method, which is characterized in that including:
Default input data corresponding with destination application is determined using test terminal;
The application tests terminal according to the default input data and preset configuration file data, to the destination application
It is tested, wherein the preset configuration file data is by application execution terminal according to described in the default input data execution
Preset configuration file is called to generate Program Generating when destination application.
2. according to the method described in claim 1, it is characterized in that, comprising waiting for analog functuion in the destination application, institute
It states and waits for that analog functuion is realized based on NEON instruction set.
3. according to the method described in claim 2, it is characterized in that, the preset configuration file data include with it is described default defeated
Enter the corresponding association output data of data;
Correspondingly, the application tests terminal according to the default input data and preset configuration file data, to the target
Application program carries out test:
According to the default input data and the data type of the association output data, associated container is created;
The preset configuration file data is inserted into the associated container, the mapping generated between input data and output data is closed
It is table;
According to the default input data and the mapping table, the target output data of analog functuion is waited for described in determination, and
According to the target output data, the destination application is tested.
4. according to the method described in claim 3, it is characterized in that, the associated container includes map associated containers.
5. described according to the method described in claim 3, it is characterized in that, described wait for that analog functuion includes identification verification function
Default input data includes the random number of at least one authentication information and at least one setting data format, and the association is defeated
It includes at least one target identities verification encryption information to go out data.
6. according to the method described in claim 5, it is characterized in that, application test terminal determines and destination application pair
The default input data answered includes:
Application test terminal receive the authentication information input by user and server from list of random numbers with
The random number that machine determines.
7. according to the method described in claim 5, it is characterized in that, the application execution terminal is according to the default input data
It calls preset configuration file to generate preset configuration file data described in Program Generating when executing the destination application to include:
The application execution terminal receives at least one authentication information and at least one random number;
The application execution terminal believes each authentication using Message Digest 5 using each random number
Encryption for information obtains at least one initial authentication encryption information;
The application execution terminal encrypts each initial authentication encryption information using NEON Encryption Algorithm is preset,
At least one target identities verification encryption information is obtained, the default NEON Encryption Algorithm is given birth to based on the NEON instruction set
At;
The application execution terminal is according at least one authentication information, at least one random number and at least one
Correspondence between the target identities verification encryption information, calls preset configuration file to generate program, generates described pre-
If profile data.
8. a kind of Application testing device is configured at using test terminal, which is characterized in that including:
Default input data determining module, for determining default input data corresponding with destination application;
Test module, for according to the default input data and preset configuration file data, to the destination application into
Row test, wherein the preset configuration file data executes the mesh by application execution terminal according to the default input data
Preset configuration file is called to generate Program Generating when marking application program.
9. a kind of equipment, which is characterized in that the equipment includes:
One or more processors;
Storage device, for storing one or more programs,
When one or more of programs are executed by one or more of processors so that one or more of processors are real
The now applied program testing method as described in any in claim 1-7.
10. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program
The applied program testing method as described in any in claim 1-7 is realized when being executed by processor.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810385438.4A CN108628743B (en) | 2018-04-26 | 2018-04-26 | Application program testing method, device, equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810385438.4A CN108628743B (en) | 2018-04-26 | 2018-04-26 | Application program testing method, device, equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108628743A true CN108628743A (en) | 2018-10-09 |
CN108628743B CN108628743B (en) | 2022-02-08 |
Family
ID=63694645
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810385438.4A Active CN108628743B (en) | 2018-04-26 | 2018-04-26 | Application program testing method, device, equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108628743B (en) |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109560998A (en) * | 2019-02-02 | 2019-04-02 | 腾讯科技(深圳)有限公司 | A kind of network mechanism test method, device, terminal and storage medium |
CN110032491A (en) * | 2019-03-01 | 2019-07-19 | 西安电子科技大学 | A kind of microprocessor monitors method and system |
CN110083386A (en) * | 2019-04-04 | 2019-08-02 | 平安普惠企业管理有限公司 | Random number generates control method, device, computer equipment and storage medium |
CN110958155A (en) * | 2019-11-08 | 2020-04-03 | 深圳市元征科技股份有限公司 | Test configuration method and related device |
CN111737134A (en) * | 2020-06-23 | 2020-10-02 | 湖南国科微电子股份有限公司 | Chip testing method and device, electronic equipment and storage medium |
CN112463615A (en) * | 2020-12-03 | 2021-03-09 | 中国工商银行股份有限公司 | Application testing method and device, computing equipment and medium |
CN112492294A (en) * | 2019-09-12 | 2021-03-12 | 北京地平线机器人技术研发有限公司 | Application program testing method, device and system, network camera and medium |
CN112579426A (en) * | 2019-09-29 | 2021-03-30 | 初速度(苏州)科技有限公司 | Method and device for testing object to be tested |
CN113793490A (en) * | 2021-08-12 | 2021-12-14 | 北京中交兴路信息科技有限公司 | Pressure testing method and device for electronic fence, storage medium and terminal |
CN114760504A (en) * | 2022-04-18 | 2022-07-15 | 北京金山云网络技术有限公司 | Live broadcast server testing method and device, storage medium and electronic equipment |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104216826A (en) * | 2013-06-05 | 2014-12-17 | 腾讯科技(深圳)有限公司 | Test method and device |
US20150347276A1 (en) * | 2014-05-27 | 2015-12-03 | International Business Machines Corporation | Screenshot validation testing |
CN107666470A (en) * | 2016-07-28 | 2018-02-06 | 腾讯科技(深圳)有限公司 | A kind of processing method and processing device of checking information |
-
2018
- 2018-04-26 CN CN201810385438.4A patent/CN108628743B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104216826A (en) * | 2013-06-05 | 2014-12-17 | 腾讯科技(深圳)有限公司 | Test method and device |
US20150347276A1 (en) * | 2014-05-27 | 2015-12-03 | International Business Machines Corporation | Screenshot validation testing |
CN107666470A (en) * | 2016-07-28 | 2018-02-06 | 腾讯科技(深圳)有限公司 | A kind of processing method and processing device of checking information |
Non-Patent Citations (1)
Title |
---|
JESSICA程序猿: "关联容器操作", 《博客园 HTTPS://WWW.CNBLOGS.COM/WUCHANMING/P/3923761.HTML》 * |
Cited By (16)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109560998A (en) * | 2019-02-02 | 2019-04-02 | 腾讯科技(深圳)有限公司 | A kind of network mechanism test method, device, terminal and storage medium |
CN110032491A (en) * | 2019-03-01 | 2019-07-19 | 西安电子科技大学 | A kind of microprocessor monitors method and system |
CN110083386A (en) * | 2019-04-04 | 2019-08-02 | 平安普惠企业管理有限公司 | Random number generates control method, device, computer equipment and storage medium |
CN110083386B (en) * | 2019-04-04 | 2024-03-19 | 平安普惠企业管理有限公司 | Random number generation control method, device, computer equipment and storage medium |
CN112492294B (en) * | 2019-09-12 | 2024-03-26 | 北京地平线机器人技术研发有限公司 | Application program testing method, device, system, network camera and medium |
CN112492294A (en) * | 2019-09-12 | 2021-03-12 | 北京地平线机器人技术研发有限公司 | Application program testing method, device and system, network camera and medium |
CN112579426A (en) * | 2019-09-29 | 2021-03-30 | 初速度(苏州)科技有限公司 | Method and device for testing object to be tested |
CN112579426B (en) * | 2019-09-29 | 2022-06-24 | 魔门塔(苏州)科技有限公司 | Method and device for testing object to be tested |
CN110958155B (en) * | 2019-11-08 | 2023-02-28 | 深圳市元征科技股份有限公司 | Test configuration method and related device |
CN110958155A (en) * | 2019-11-08 | 2020-04-03 | 深圳市元征科技股份有限公司 | Test configuration method and related device |
CN111737134A (en) * | 2020-06-23 | 2020-10-02 | 湖南国科微电子股份有限公司 | Chip testing method and device, electronic equipment and storage medium |
CN111737134B (en) * | 2020-06-23 | 2023-09-26 | 湖南国科微电子股份有限公司 | Chip testing method and device, electronic equipment and storage medium |
CN112463615A (en) * | 2020-12-03 | 2021-03-09 | 中国工商银行股份有限公司 | Application testing method and device, computing equipment and medium |
CN113793490B (en) * | 2021-08-12 | 2022-09-13 | 北京中交兴路信息科技有限公司 | Pressure testing method and device for electronic fence, storage medium and terminal |
CN113793490A (en) * | 2021-08-12 | 2021-12-14 | 北京中交兴路信息科技有限公司 | Pressure testing method and device for electronic fence, storage medium and terminal |
CN114760504A (en) * | 2022-04-18 | 2022-07-15 | 北京金山云网络技术有限公司 | Live broadcast server testing method and device, storage medium and electronic equipment |
Also Published As
Publication number | Publication date |
---|---|
CN108628743B (en) | 2022-02-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108628743A (en) | Applied program testing method, device, equipment and storage medium | |
CN107528865B (en) | File downloading method and system | |
CN106919634B (en) | Method for sharing data across applications and web browser | |
CN109165266A (en) | List generation method, device, computer equipment and storage medium | |
US20140351583A1 (en) | Method of implementing a right over a content | |
CN116662941B (en) | Information encryption method, device, computer equipment and storage medium | |
CN111510442A (en) | User verification method and device, electronic equipment and storage medium | |
CN112150030A (en) | Account management method based on multiple units and multiple identities, terminal equipment and storage medium | |
US20230308290A1 (en) | Data sharing method and electronic device | |
CN109656989A (en) | Multi-data source integration method, device, computer equipment and storage medium | |
CN110457869B (en) | Program compiling and encrypting method and device, storage medium and electronic equipment | |
CN111090616A (en) | File management method, corresponding device, equipment and storage medium | |
CN111865869A (en) | Registration and authentication method and device based on random mapping, medium and electronic equipment | |
CN114222288A (en) | Equipment identifier generation method, equipment identifier verification method and device | |
CN111988133B (en) | System SM4 encryption and decryption verification method, device, equipment and storage medium | |
CN117978446A (en) | Chip communication transmission encryption method, device, computer equipment and storage medium | |
CN108667919A (en) | Data processing method, device, computer equipment and storage medium | |
CN112287357A (en) | Control flow verification method and system for embedded bare computer system | |
CN114785677B (en) | Log management method, device, computer equipment, storage medium and program product | |
CN114448722A (en) | Cross-browser login method and device, computer equipment and storage medium | |
CN107707532A (en) | URL generations, query argument verification method, device, equipment and storage medium | |
CN114297274A (en) | Big data extraction method and device, computer equipment and storage medium | |
CN112468356B (en) | Router interface testing method, device, electronic equipment and storage medium | |
CN114143042A (en) | Vulnerability simulation method and device, computer equipment and storage medium | |
CN108173824B (en) | Data service platform and access method, device and storage medium thereof |
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 |