CN109587013A - APP network compatibility test method, device, computer equipment and storage medium - Google Patents
APP network compatibility test method, device, computer equipment and storage medium Download PDFInfo
- Publication number
- CN109587013A CN109587013A CN201910048297.1A CN201910048297A CN109587013A CN 109587013 A CN109587013 A CN 109587013A CN 201910048297 A CN201910048297 A CN 201910048297A CN 109587013 A CN109587013 A CN 109587013A
- Authority
- CN
- China
- Prior art keywords
- request
- palindrome
- network
- test equipment
- app
- 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
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/08—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W24/00—Supervisory, monitoring or testing arrangements
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Environmental & Geological Engineering (AREA)
- Mobile Radio Communication Systems (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention belongs to testing tool field, a kind of APP network compatibility test method, device, equipment and storage medium are disclosed, this method comprises: obtaining main test equipment identifies the network request of corresponding APP as the first request;According to first first palindrome of request;Each network request for identifying corresponding APP from test equipment is obtained to request as second;Based on second palindrome of preset network mode and every one second request;It is corresponding from the result that test equipment mark output compatibility verification passes through to monitoring client according to network identity and second palindrome if second palindrome is identical as first palindrome;Switch preset network mode and obtain the third palindrome, if the third palindrome is identical as first palindrome, according to after switching network mode and the third palindrome is corresponding identifies the result that passes through of output compatibility verification to monitoring client from test equipment.This method does not have to setup test data again, and the testing efficiency of APP network compatibility can be improved.
Description
Technical field
The invention belongs to testing tool fields, are to be related to a kind of APP network compatibility test method, dress more specifically
It sets, computer equipment and storage medium.
Background technique
Network compatibility test is done to APP, APP can normally be returned under various types and various network environments by referring to
The network data of request.Traditional way is to install APP respectively on a variety of different types by hand, reconnects different nets
Whether network, test APP can normally receive data.This manual method needs to put into a large amount of manpowers, and is all a large amount of repeat
The efficiency of manual labor, test are lower.
It is to automate to replace carrying out similar test process by hand using UI there are also a kind of way, although efficiency is mentioned
Rise, but due to the tool of UI automation cannot be guaranteed each type can stable operation, with UI automation, to do network simultaneous
Capacitive measuring stability is poor.On the other hand, due to needing multiple equipment to survey when carrying out network compatibility test to APP
Examination, when the operation of test is to carry out write operation to file, such as when carrying out delete operation to file, operation can be returned and be deleted for the first time
Except successfully as a result, but second operation then can directly return file not found as a result, therefore using UI automation tools into
When row test, other equipment need to prepare data again when being tested again, so that UI automation does network compatibility to data
Dependence it is stronger, efficiency is lower.
Summary of the invention
The embodiment of the present invention provides a kind of APP network compatibility test method, device, computer equipment and storage medium,
To solve the problems, such as that APP network compatibility testing efficiency is lower.
A kind of APP network compatibility test method, comprising:
Obtain the device identification of test equipment, wherein the device identification of the test equipment includes main test equipment mark
Identified with from test equipment, it is described from test equipment be it is multiple;
It obtains the main test equipment and identifies the network request of corresponding APP as the first request;
According to first palindrome of the first request;
Each network request for identifying corresponding APP from test equipment is obtained to request as second;
Based on preset network mode and each second request, second palindrome, wherein the preset network
Mode includes network identity;
It is corresponding according to the network identity and second palindrome if second palindrome is identical as first palindrome
Described identify the result that passes through of output compatibility verification to monitoring client from test equipment;
Switch the preset network mode and obtain the third palindrome, if the third palindrome and first palindrome phase
Together, then according to after switching network mode and the third palindrome is corresponding described identifies output compatibility verification from test equipment
By result to the monitoring client.
A kind of APP Web-compatible system safety testing device, comprising:
Device identification obtains module, for obtaining the device identification of test equipment, wherein the equipment mark of the test equipment
Know include main test equipment identify and from test equipment identify, it is described from test equipment be it is multiple;
First request module identifies the network request of corresponding APP as obtaining the main test equipment
One request;
First palindrome obtains module, for according to first palindrome of the first request;
Second request module is made for obtaining each network request for identifying corresponding APP from test equipment
For the second request;
Second palindrome obtains module, for being returned based on preset network mode and each second request second
Text, wherein the preset network mode includes network identity;
Verification result output module, if identical as first palindrome for second palindrome, according to described from survey
Examination device identification and the network identity result that is verified of output are to monitoring client then according to the network identity and described the
Two palindrome are corresponding described from the result that test equipment mark output compatibility verification passes through to monitoring client;
Network updates authentication module, for switching the preset network mode and obtaining the third palindrome, if the third
The palindrome is identical as first palindrome, then according to after switching network mode and the third palindrome is corresponding described sets from test
The result that standby mark output compatibility verification passes through is to the monitoring client.
A kind of computer equipment, including memory, processor and storage are in the memory and can be in the processing
The computer program run on device, the processor realize above-mentioned APP network compatibility test when executing the computer program
The step of method.
A kind of computer readable storage medium, the computer-readable recording medium storage have computer program, the meter
The step of calculation machine program realizes above-mentioned APP network compatibility test method when being executed by processor.
Above-mentioned APP network compatibility test method, device, computer equipment and storage medium, by obtaining test equipment
Device identification, then obtain main test equipment and identify corresponding APP network request as the first request, and according to the first request
Obtain first palindrome;Then obtain it is each identify corresponding APP network request as the second request from test equipment, and based on pre-
If network mode and second second palindrome of request;If second palindrome is identical as first palindrome, according to network identity and
The corresponding result passed through from test equipment mark output compatibility verification of second palindrome finally switches preset net to monitoring client
Network mode simultaneously obtains the third palindrome, if the third palindrome is identical as first palindrome, according to the network mode and third time after switching
Text is corresponding from the result that test equipment mark output compatibility verification passes through to monitoring client.Pass through obtain main test equipment
The palindrome is used as analogue data, then verifies from test equipment whether analogue data can be received entirely under preset network mode,
The network compatibility of APP can be verified;Since analogue data can be directly acquired from test equipment, and setup test again is not had to
Data to test data no dependence, therefore improve the testing efficiency of APP network compatibility.
Detailed description of the invention
It to describe the technical solutions in the embodiments of the present invention more clearly, below will be to embodiment or description of the prior art
Needed in attached drawing be briefly described, it should be apparent that, the accompanying drawings in the following description is only of the invention some
Embodiment for those of ordinary skill in the art without any creative labor, can also be according to these
Attached drawing obtains other attached drawings.
Fig. 1 is an application environment schematic diagram of APP network compatibility test method in one embodiment of the invention;
Fig. 2 is a flow chart of APP network compatibility test method in one embodiment of the invention;
Fig. 3 is another flow chart of APP network compatibility test method in one embodiment of the invention;
Fig. 4 is another flow chart of APP network compatibility test method in one embodiment of the invention;
Fig. 5 is another flow chart of APP network compatibility test method in one embodiment of the invention;
Fig. 6 is another flow chart of APP network compatibility test method in one embodiment of the invention;
Fig. 7 is the another application environment schematic of APP network compatibility test method in one embodiment of the invention;
Fig. 8 is a functional block diagram of APP Web-compatible system safety testing device in one embodiment of the invention;
Fig. 9 is that first palindrome obtains a principle of module in APP Web-compatible system safety testing device in one embodiment of the invention
Block diagram;
Figure 10 is a principle of the second request module in APP Web-compatible system safety testing device in one embodiment of the invention
Block diagram;
Figure 11 is a schematic diagram of computer equipment in one embodiment of the invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are some of the embodiments of the present invention, instead of all the embodiments.Based on this hair
Embodiment in bright, every other implementation obtained by those of ordinary skill in the art without making creative efforts
Example, shall fall within the protection scope of the present invention.
APP network compatibility test method provided by the present application, can be applicable in the application environment such as Fig. 1, wherein client
End includes main test equipment and from test equipment, and client is communicated by network with server-side, server-side pass through network and
Monitoring client is communicated, and server-side obtains the device identification of client (test equipment), and is obtained main test equipment mark and corresponded to
APP network request as first request, then according to first first palindrome of request;It is obtained again from test equipment mark pair
The APP network request answered then is connect based on preset network mode and the second request from test equipment as the second request
Second palindrome received, and second palindrome is compared with first palindrome, if second palindrome is identical as first palindrome, basis
From the result that test equipment and network identity output are verified to monitoring client;Finally switch preset network mode and obtains the
Three palindrome, if the third palindrome is identical as first palindrome, according to after switching network mode and the third palindrome it is corresponding from test
The device identification result that passes through of output compatibility verification is to monitoring client.Wherein, APP refers to the APP for test network compatibility.
Client can be, but not limited to be various smart phones, tablet computer and other smart machines.Server-side can use independent clothes
The server cluster of business device either multiple servers composition is realized.Monitoring client can be, but not limited to various personal computers,
Laptop, smart phone, tablet computer and portable wearable device.
In one embodiment, it as shown in Fig. 2, providing a kind of APP network compatibility test method, applies scheming in this way
It is illustrated, includes the following steps: for server-side in 1
S10: the device identification of test equipment is obtained, wherein the device identification of test equipment includes main test equipment mark
It is identified with from test equipment, is multiple from test equipment.
It should be understood that main test equipment is with from test equipment, simultaneously indistinction, difference are purposes in specific physical configuration
Difference: main test equipment is then used for from test equipment in preset network mode for obtaining data as analogue data
Lower acquisition analogue data is to examine network compatibility.In order to verify network compatibility of the APP in specific model as a result, from
Test equipment be it is multiple, can be using the model of the high test equipment of subscriber usage as from test equipment in practical application.
Wherein, device identification refers to server-side for distinguishing the mark of different test equipments, such as the sequence number of equipment.It can
Selection of land, server-side can obtain the device identification of test equipment by line command, for example, server-side can be ordered by line of input
Adb devices is enabled to obtain the information for the equipment for being connected to server-side, wherein can be defeated according to line command adb devices
Two contents of the sequence number information of test equipment and status information out, server-side can be using sequence number informations therein as test
The device identification of equipment.
Specifically, before starting test, server-side presets the sequence number information of each test equipment, and sequence number is believed
Breath forms corresponding table with corresponding main test equipment and from test equipment.When starting test, server-side is obtained by line command and is surveyed
The sequence number information of equipment is tried, and the sequence number information that will acquire is matched with corresponding table, if testing based on matched result
Equipment is then identified corresponding sequence number information as main test equipment;If matched result be from test equipment, will be corresponding
Sequence number information be used as from test equipment identify.
Further, it can also include the corresponding type of test equipment in corresponding table, export the network compatibility of APP
When verification result, the corresponding type of test equipment is exported with the verification result of APP network compatibility to monitoring client, it can be with
Tester is set to understand the verification result of the corresponding APP network compatibility of specific model.
S20: it obtains main test equipment and identifies the network request of corresponding APP as the first request.
Wherein, the network request of APP refers to the request that the APP in test equipment is issued to the server-side of connection, for from
Server-side obtains returned data (i.e. the palindrome).
Specifically, server-side obtains the network request conduct that APP is issued in main test equipment according to main test equipment mark
First request.It should be understood that the first request is server-side to distinguish whether the network request of APP carrys out autonomous test equipment, thus
Carry out corresponding operation (i.e. acquisition data are used as analogue data).It is appreciated that the first request can be to be multiple, correspondence is multiple
The test case of APP network compatibility.
S30: according to first first palindrome of request.
Wherein, first palindrome refers to the palindrome that main test equipment receives.
Specifically, server-side is sent to main test equipment according to the first request palindrome of main test equipment, then obtains
The palindrome that main test equipment is an actually-received is as first palindrome.Due to first palindrome be server-side be transferred directly to it is main test set
Standby, without transmission obstacle in transmission process, therefore first palindrome that main test equipment receives is that completely, i.e., server-side passes
It is defeated by the palindrome of main test equipment and the palindrome that main test equipment is an actually-received is the same.In addition, server-side is by the palindrome
It is sent to outside main test equipment, also the first request and the corresponding palindrome (first palindrome) is stored in the database of server-side,
As analogue data.
S40: it obtains each network request for identifying corresponding APP from test equipment and is requested as second.
Specifically, server-side obtains each network request issued from the APP of test equipment according to from test equipment mark
As the second request.
S50: it is based on second palindrome of preset network mode and every one second request, wherein preset network mode
Including network identity.
Wherein, preset network mode refers to for the network mode being arranged from test equipment, for example, mobile 2gnet,
2gwap, 3gnet, 3gwap and 4g, connection 2gnet, 2gwap, 3gnet, 3gwap and 4g, telecommunications 2gnet, 2gwap, 3gnet,
The network modes such as 3gwap and 4g, specific preset network mode can be configured by gateway.Network identity refers to service
End is for distinguishing the mark of heterogeneous networks mode, such as can be the network identities such as mobile 2g, connection 3g or telecommunications 3g.
Specifically, the request content progress that server-side requests the corresponding request content of every one second request and first
Match, if corresponding request content is identical, successful match is requested from the database of server-side further according to the first of successful match
Corresponding first palindrome is obtained, and first palindrome is sent under preset network mode from test equipment, then is obtained from survey
The palindrome that examination equipment is an actually-received is as second palindrome;If corresponding request content is different, it fails to match, and server-side is to prison
It controls end and issues prompting message, the second request for reminding tester's adjustment to send from the APP of test equipment.
S60: corresponding from test equipment according to network identity and second palindrome if second palindrome is identical as first palindrome
The mark result that passes through of output compatibility verification is to monitoring client.
Specifically, second palindrome is compared by server-side with first palindrome, if second palindrome is identical as first palindrome, is said
Bright to be received entirely first palindrome from test equipment under preset network mode, then server-side is according to preset network mould
The corresponding network identity of formula is corresponding with second palindrome to identify the knot that output APP network compatibility is verified from test equipment
Fruit is to monitoring client;If second palindrome has differences with first palindrome, illustrating can not from test equipment under preset network mode
Be received entirely first palindrome, network may be incompatible, then server-side according to the corresponding network identity of preset network mode and
The corresponding output APP network compatibility of second palindrome verifies unacceptable result to monitoring client.
S70: switching preset network mode and obtains the third palindrome, if the third palindrome is identical as first palindrome, basis
Network mode and the third palindrome after switching is corresponding from the result that test equipment mark output compatibility verification passes through to monitoring
End.
Specifically, server-side switches over preset network mode, switches to other network modes and acquisition is switching
The third palindrome being an actually-received under network mode afterwards from test equipment, then compares the third palindrome and first palindrome
Compared with if the third palindrome is identical as first palindrome, according to the corresponding network identity of network mode and the third palindrome pair after switching
The slave test equipment mark result that is verified of output APP network compatibility answered is to monitoring client;If the third palindrome and first time
Text it is not identical, then according to after switching the corresponding network identity of network mode and the third palindrome it is corresponding from test equipment identify it is defeated
APP network compatibility verifies unacceptable result to monitoring client out.
In the corresponding embodiment of Fig. 2, by obtaining the device identification of test equipment, main test equipment mark is then obtained
Corresponding APP network request is requested as first, and according to first first palindrome of request;Then it obtains and each is set from test
It is standby to identify corresponding APP network request as the second request, and based on preset network mode and every one second request the
Two palindrome;If second palindrome is identical as first palindrome, identified according to network identity and second palindrome are corresponding from test equipment
The result that passes through of output compatibility verification is to monitoring client;Finally switch preset network mode and obtain the third palindrome, if third
The palindrome is identical as first palindrome, then according to after switching network mode and the third palindrome it is corresponding from test equipment mark output it is simultaneous
The result that capacitive is verified is to monitoring client.It is used as analogue data by the palindrome for obtaining main test equipment, then preset
Whether verifying can be received entirely analogue data from test equipment under network mode, can verify the network compatibility of APP;Due to
Analogue data can be directly acquired from test equipment, and does not have to setup test data again, to test data no dependence, therefore
Improve the testing efficiency of APP network compatibility.
It in one embodiment,, specifically can be with according to first first palindrome of request as shown in figure 3, in step s 30
The following steps are included:
S31: it requests to identify according to first request one kind.
Wherein, a kind of request mark refers to the set mark of the first request that server-side sends main test equipment.It can
To understand, due to the first request be it is multiple, server-side, which can be identified using a kind of request to distinguish the first request, be specifically
Which refers to, i.e., main test equipment is every to send one first request, and server-side all uses a different a kind of request mark to the
One request is identified.Optionally, the sequence that server-side is sent according to the first request that main test equipment is sent is specific to carry out
Number, such as be 1001 for the first time, be 1002 for the second time, and so on, then will specifically number as one kind request mark
Know.
S32: the first request is sent according to the corresponding request address of the first request.
Specifically, server-side sends the first request according to the corresponding request address of the first request, according to the first request right
It accesses or operates in the request address answered.For example, the corresponding request address of the first request are as follows:
Http:// v.juhe.cn/weather/index? cityname=******&dtype=&format=&key =92e13ff1efec7f1ae3651f3f083c020c;
If the corresponding weather condition in the city one week of inquiry one of the above request address, server-side are asked according to first
It asks corresponding request address to send the first request, the day in inquiry city one week then can be got from corresponding request address
Gas situation is as the palindrome.
S33: first palindrome returned from request address is obtained, and the first request, one kind are requested into mark and first palindrome
Corresponding storage is in the database.
Specifically, server-side obtains first palindrome returned from request address corresponding with the first request, and first is asked
Ask, a kind of request mark and first palindrome are correspondingly stored in the database of server-side, using as the simulation from test equipment
Data.It is appreciated that due to first request be it is multiple, can in the database of server-side according to one kind request mark
Form the list of corresponding with a palindrome analogue data of request, so as to from test equipment can by the comparison that request is numbered come
Obtain first palindrome corresponding with the first request.For example, as shown in Table 1 below:
Table 1
Request number | Request | The palindrome |
1001 | A | a |
1002 | B | b |
1003 | C | c |
…… | …… | …… |
In the corresponding embodiment of Fig. 3, by requesting to identify according to first request one kind, further according to the first request pair
The request address answered sends the first request, finally obtains first palindrome returned from request address, and first is requested, first time
Text storage corresponding with one kind request mark is in the database.By obtaining the request palindrome of main test equipment, may be used as from survey
The analogue data of equipment is tried, provides data support for the network compatibility test of the subsequent APP from test equipment.
In one embodiment, as shown in figure 4, in step s 40, that is, obtaining each from the corresponding APP of test equipment mark
Network request as second request, can specifically include following steps:
S41: two classes of each network request that corresponding APP is identified from test equipment of setting request mark.
Wherein, two classes request mark refers to server-side to mark set by the request sent from test equipment.In order to test
The network compatibility of the APP from test equipment is demonstrate,proved, the second request of identical content is arranged one by one with the first request for server-side
Corresponding request mark.Specifically, from the network request that the APP of test equipment is sent, the request content of transmission and main test
The request content that the APP of equipment is sent as requesting the sequence sent to be, send out each from the APP of test equipment by server-side
It when SCN Space Cable Network is requested, as main test equipment, is numbered from 1001, and will specifically number and request to identify as two classes.
S42: requesting mark to be added into the network request of APP two classes, and making the network request of APP includes two classes request mark
Know.
Specifically, the two classes request mark that server-side will acquire is added to from the request that test equipment is sent, and makes from survey
Trying the request that equipment is sent includes two classes request mark.It is alternatively possible to which the two classes request mark that will acquire is added in request
The end of appearance, such as:
Http:// v.juhe.cn/weather/index? cityname=******&dtype=&format=&key =92e13ff1efec7f1ae3651f3f083c020c&FAKE=true&ID=1001;
In above request content, " &FAKE=true&ID=" it is pre-set field, for distinguishing request content
It requests to identify with two classes, 1001 be two classes request mark.
S43: obtaining includes that two classes request the network request of the APP identified as the second request.
Specifically, server-side obtains the network request that the APP of two classes request mark is added as the second request, and server-side exists
After receiving the second request, two classes obtained in the second request request mark, request number of the mark from server-side further according to two classes
The identical a kind of request of mark is requested to identify with two classes according to obtaining in library, a kind of request of acquisition identifies corresponding first palindrome and returns
From test equipment.
In the corresponding embodiment of Fig. 4, by the way that each two classes for identifying corresponding APP network request from test equipment are arranged
Two classes are requested mark to be added into the network request of APP by request mark, and making the network request of APP includes two classes request mark,
Finally obtain includes that two classes request the network request of the APP identified as the second request.By from the APP's in test equipment
Two classes request mark is added in network request, can be used as the foundation for obtaining analogue data, obtains tool further according to request mark
The request palindrome of body verifies the network compatibility of APP so as to realize the comparison of the request palindrome.
In one embodiment, as shown in figure 5, in step s 50, i.e., being requested based on preset network mode and every one second
Second palindrome is obtained, can specifically include following steps:
S51: two classes for obtaining every one second request request mark.
Specifically, server-side obtains two classes request mark according to the request content of every one second request.Optionally, server-side
End content by obtaining the request content of every one second request identifies to obtain the request of two classes.Such as:
Http:// v.juhe.cn/weather/index? cityname=******&dtype=&format=&key =92e13ff1efec7f1ae3651f3f083c020c&FAKE=true&ID=1001;
Passing through acquisition request content " &FAKE=true&ID=" subsequent field obtains two classes request mark.
S52: if two classes request mark is identical as one kind request mark, based on preset network mode and a kind of request mark
Knowledge obtains first palindrome from database, and first palindrome is sent to from test equipment.
Specifically, the two classes request mark that server-side will acquire is matched with one kind request mark, if two classes request mark
Know and request mark identical with one kind, then first palindrome is sent to from test equipment based on preset network mode, such as joining
First palindrome is sent to from test equipment under the network mode of logical 3g.
S53: first palindrome received from test equipment is obtained as second palindrome.
It is appreciated that the palindrome received from test equipment may be imperfect since network mode may be incompatible
Or the palindrome is not received, so that server-side can further judge the network compatibility of APP according to the palindrome received.
Specifically, server-side is sent to by first palindrome from test equipment, after preset time, such as 10 seconds, it obtains
Take the palindrome being an actually-received from test equipment as second palindrome.Wherein, preset time can be had according to the actual situation
Body setting, here without limitation.
In the corresponding embodiment of Fig. 5, two classes by obtaining every one second request request mark, if two classes request mark
It is identical as one kind request mark, then first palindrome is obtained from database based on preset network mode and a kind of request mark,
And first palindrome is sent to from test equipment.It is identified according to identical request to obtain the palindrome, can be made in main test equipment
The corresponding palindrome of network request that APP is sent is used as analogue data, realize main test equipment with from the corresponding palindrome of test equipment
Comparison, to verify the network compatibility of APP.Due to not having to setup test data again, the network of APP can be improved
The efficiency of compatibility test.
In one embodiment, as shown in fig. 6, in step S70, that is, switch preset network mode and obtain third and return
Text, if the third palindrome is identical as first palindrome, according to after switching network mode and the third palindrome it is corresponding from test equipment
The result that mark output compatibility verification passes through can specifically include following steps to monitoring client:
S71: switching preset network mode, obtains updated network mode, wherein updated network mode includes
Updated network identity.
Specifically, server-side is updated by the way that different gateways is arranged so that preset network mode be switched over
Network mode afterwards, for example, preset network mode can be switched to network by network mode A by the way that gateway is arranged by server-side
Mode B, such as connection 3g is switched into connection 4g, then updated network mode is connection 4g.It should be understood that updated network
Mode includes multiple network modes, in testing, multiple network modes can be switched over to obtain more in a predetermined sequence
Network mode after new, then the APP network compatibility under each updated network mode is verified one by one.
S72: it obtains each network request for identifying corresponding APP from test equipment and is requested as third.
Wherein, third request refers to the network request that the network mode of the APP from test equipment in the updated is sent.
Specifically, after network mode in obtaining updated, server-side obtains the net that each APP from test equipment is sent
Network request, is requested the network request of the APP as third.Since third request is issues from test equipment, third is asked
Request mark can be added by seeking corresponding request content also.Wherein, the method that request mark is added is identical as the second request, here not
It repeats again.
S73: updated network mode and each third request third palindrome are based on.
Specifically, the request mark that server-side is requested according to each third is judged with one kind request mark, if third
The request mark of request is identical as one kind request mark, then the network mode of first palindrome in the updated is sent to from test and is set
It is standby, then each palindrome being an actually-received from test equipment is obtained as the third palindrome.
S74: if the third palindrome is identical as first palindrome, according to updated network identity and the third palindrome it is corresponding from
The test equipment mark result that passes through of output compatibility verification is to monitoring client.
Specifically, the third palindrome is compared by server-side with first palindrome, if the third palindrome is identical as first palindrome,
Illustrate that network mode in the updated can be received entirely first palindrome from test equipment, show APP from test equipment and
Updated network mode is compatible, then server-side is corresponding from test equipment mark according to updated network identity and the third palindrome
The result that is verified of output APP network compatibility is known to monitoring client.If the third palindrome has differences with first palindrome, illustrate
Network mode in the updated cannot be received entirely first palindrome from test equipment, APP net under network mode in the updated
There may be problems for network compatibility, then server-side is corresponding from test equipment mark according to updated network identity and the third palindrome
Know output APP network compatibility and verifies unacceptable result to monitoring client.
In the corresponding embodiment of Fig. 6, by switching preset network mode, updated network mode is obtained, then
It obtains each network request for identifying corresponding APP from test equipment to request as third, is then based on updated network mould
Formula and each third request third palindrome, if the last third palindrome is identical as first palindrome, according to updated network
It identifies corresponding with the third palindrome from the result that test equipment mark output compatibility verification passes through to monitoring client.By to network
Mode switches over, can heterogeneous networks mode to the APP in test equipment carry out the verifying of network compatibility, to guarantee
APP can be compatible under different test equipments and different network modes.
In a specific embodiment, as shown in fig. 7, server-side can specifically include proxy server, preposition service
Device, testing service device and emulating server, specifically:
Proxy server, for obtaining the network request of APP in main test equipment, then by the APP's of main test equipment
Network request is sent to front server, then obtains the corresponding palindrome returned from front server, the APP's that finally will acquire
Network request is sent to emulating server with the corresponding palindrome.
Front server for the request that Receiving Agent server is sent, and is judged according to request, if based on request
Test equipment issues, then sends the request to request server, obtains the palindrome returned from request server;If request is from survey
It tries equipment to issue, then sends the request to emulating server, obtain the palindrome returned from emulating server.
Emulating server, for being judged according to request, if the request content sent from test equipment is set with main test
The request content that preparation is sent is identical, then the corresponding palindrome of main test equipment request content is back to from test equipment.
Testing service device, the network request sent for obtaining main test equipment APP, the net sent according to main test equipment
The network request palindrome returns to main test equipment through proxy server;In addition, being also used to obtain from test equipment in each of setting
The palindrome received under kind network mode, and be compared with the palindrome of main test equipment, if the palindrome is identical, exports APP and exist
From the verification information of the corresponding type of test equipment and corresponding network mode compatibility to monitoring client.
It should be understood that embodiment illustrated in fig. 7 is to be refined server-side, server-side may be other can be implemented
The form of APP network compatibility test, is not specifically limited herein.
It should be understood that the size of the serial number of each step is not meant that the order of the execution order in above-described embodiment, each process
Execution sequence should be determined by its function and internal logic, the implementation process without coping with the embodiment of the present invention constitutes any limit
It is fixed.
In one embodiment, a kind of APP Web-compatible system safety testing device is provided, the APP Web-compatible system safety testing device with
APP network compatibility test method corresponds in above-described embodiment.As shown in figure 8, the APP Web-compatible system safety testing device packet
It includes device identification and obtains module 10, the first request module 20, first palindrome acquisition module 30, the second request module
40, second palindrome obtains module 50, verification result output module 60 and network update authentication module 70.Each functional module is specifically
It is bright as follows:
Device identification obtains module 10, for obtaining the device identification of test equipment, wherein the device identification of test equipment
It identifies including main test equipment and is identified from test equipment;
First request module 20 identifies the network request of corresponding APP as first for obtaining main test equipment
Request;
First palindrome obtains module 30, for according to first first palindrome of request;
Second request module 40 identifies the network request of corresponding APP as second for obtaining from test equipment
Request;
Second palindrome obtains module 50, for being based on preset network mode and second second palindrome of request, wherein
Preset network mode includes network identity;
Verification result output module 60, if for second palindrome it is identical with first palindrome, according to the network identity with
Second palindrome is corresponding described from the result that test equipment mark output compatibility verification passes through to monitoring client;
Network update authentication module 70, for switching preset network mode and obtaining the third palindrome, if the third palindrome with
First palindrome is identical, then according to after switching network mode and the third palindrome it is corresponding from test equipment identify output compatibility test
The result that passes through is demonstrate,proved to monitoring client.
Further, as shown in figure 9, first palindrome, which obtains module 30, includes the request of first identifier acquiring unit 31, first
Transmission unit 32 and the first palindrome acquiring unit 33.
First identifier acquiring unit 31, for requesting to identify according to first request one kind;
First request transmitting unit 32, for sending the first request according to the corresponding request address of the first request;
First palindrome acquiring unit 33, for obtaining first palindrome returned from request address, and by the first request, a kind of
The storage corresponding with first palindrome of request mark is in the database.
Further, as shown in Figure 10, the second request module 40 includes second identifier acquiring unit 41, second identifier
Adding unit 42 and the second request unit 43.
Second identifier setting unit 41, for being arranged the two of each network request for identifying corresponding APP from test equipment
Class request mark;
Second identifier adding unit 42 makes the net of APP for requesting mark to be added into the network request of APP two classes
Network request includes two classes request mark;
Second request unit 43 includes that two classes request the network request of the APP identified to be asked as second for obtaining
It asks.
Further, second palindrome obtains module 50 and is specifically also used to:
Obtain the two classes request mark of every one second request;
If two classes request mark is identical as a kind of request mark, based on preset network mode and it is a kind of request to identify from
First palindrome is obtained in database, and first palindrome is sent to from test equipment;
First palindrome received from test equipment is obtained as second palindrome.
Further, APP Web-compatible system safety testing device provided by the embodiment further includes network switching test module,
In, network switching test module is specifically used for:
Switch preset network mode, obtain updated network mode, wherein updated network mode includes updating
Network identity afterwards;
Each network request for identifying corresponding APP from test equipment is obtained to request as third;
Based on updated network mode and each third request third palindrome;
It is corresponding according to the updated network identity and the third palindrome if the third palindrome is identical as first palindrome
Described identify the result that passes through of output compatibility verification to the monitoring client from test equipment.
Specific restriction about APP Web-compatible system safety testing device may refer to survey above for APP network compatibility
The restriction of method for testing, details are not described herein.Modules in above-mentioned APP Web-compatible system safety testing device can completely or partially lead to
Software, hardware and combinations thereof are crossed to realize.Above-mentioned each module can be embedded in the form of hardware or independently of in computer equipment
In processor, can also be stored in a software form in the memory in computer equipment, in order to processor call execute with
The corresponding operation of upper modules.
In one embodiment, a kind of computer equipment is provided, which can be server, internal junction
Composition can be as shown in figure 11.The computer equipment include by system bus connect processor, memory, network interface and
Database.Wherein, the processor of the computer equipment is for providing calculating and control ability.The memory packet of the computer equipment
Include non-volatile memory medium, built-in storage.The non-volatile memory medium is stored with operating system, computer program and data
Library.The built-in storage provides environment for the operation of operating system and computer program in non-volatile memory medium.The calculating
The database of machine equipment is for storage device identification, first palindrome, second palindrome and third palindrome etc..The net of the computer equipment
Network interface is used to communicate with external terminal by network connection.To realize one kind when the computer program is executed by processor
APP network compatibility test method.
In one embodiment, a kind of computer equipment is provided, including memory, processor and storage are on a memory
And the computer program that can be run on a processor, processor perform the steps of when executing computer program
Obtain the device identification of test equipment, wherein the device identification of test equipment include main test equipment mark and from
Test equipment mark, it is described from test equipment be it is multiple;
It obtains main test equipment and identifies the network request of corresponding APP as the first request;
According to first first palindrome of request;
Each network request for identifying corresponding APP from test equipment is obtained to request as second;
Based on second palindrome of preset network mode and every one second request, wherein preset network mode includes
Network identity;
If second palindrome is identical as first palindrome, identified according to network identity and second palindrome are corresponding from test equipment
The result that passes through of output compatibility verification is to monitoring client;
Switch preset network mode and obtain the third palindrome, if the third palindrome is identical as first palindrome, according to switching
Network mode and the third palindrome afterwards is corresponding from the result that test equipment mark output compatibility verification passes through to monitoring client.
In one embodiment, a kind of computer readable storage medium is provided, computer program is stored thereon with, is calculated
Machine program performs the steps of when being executed by processor
Obtain the device identification of test equipment, wherein the device identification of test equipment include main test equipment mark and from
Test equipment mark, it is described from test equipment be it is multiple;
It obtains main test equipment and identifies the network request of corresponding APP as the first request;
According to first first palindrome of request;
Each network request for identifying corresponding APP from test equipment is obtained to request as second;
Based on second palindrome of preset network mode and every one second request, wherein preset network mode includes
Network identity;
If second palindrome is identical as first palindrome, identified according to network identity and second palindrome are corresponding from test equipment
The result that passes through of output compatibility verification is to monitoring client;
Switch preset network mode and obtain the third palindrome, if the third palindrome is identical as first palindrome, according to switching
Network mode and the third palindrome afterwards is corresponding from the result that test equipment mark output compatibility verification passes through to monitoring client.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with
Relevant hardware is instructed to complete by computer program, the computer program can be stored in a non-volatile computer
In read/write memory medium, the computer program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein,
To any reference of memory, storage, database or other media used in each embodiment provided herein,
Including non-volatile and/or volatile memory.Nonvolatile memory may include read-only memory (ROM), programming ROM
(PROM), electrically programmable ROM (EPROM), electrically erasable ROM (EEPROM) or flash memory.Volatile memory may include
Random access memory (RAM) or external cache.By way of illustration and not limitation, RAM is available in many forms,
Such as static state RAM (SRAM), dynamic ram (DRAM), synchronous dram (SDRAM), double data rate sdram (DDRSDRAM), enhancing
Type SDRAM (ESDRAM), synchronization link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM
(RDRAM), direct memory bus dynamic ram (DRDRAM) and memory bus dynamic ram (RDRAM) etc..
It is apparent to those skilled in the art that for convenience of description and succinctly, only with above-mentioned each function
Can unit, module division progress for example, in practical application, can according to need and by above-mentioned function distribution by different
Functional unit, module are completed, i.e., the internal structure of described device is divided into different functional unit or module, more than completing
The all or part of function of description.
Embodiment described above is merely illustrative of the technical solution of the present invention, rather than its limitations;Although referring to aforementioned reality
Applying example, invention is explained in detail, those skilled in the art should understand that: it still can be to aforementioned each
Technical solution documented by embodiment is modified or equivalent replacement of some of the technical features;And these are modified
Or replacement, the spirit and scope for technical solution of various embodiments of the present invention that it does not separate the essence of the corresponding technical solution should all
It is included within protection scope of the present invention.
Claims (10)
1. a kind of APP network compatibility test method characterized by comprising
Obtain the device identification of test equipment, wherein the device identification of the test equipment include main test equipment mark and from
Test equipment mark, it is described from test equipment be it is multiple;
It obtains the main test equipment and identifies the network request of corresponding APP as the first request;
According to first palindrome of the first request;
Each network request for identifying corresponding APP from test equipment is obtained to request as second;
Based on preset network mode and each second request, second palindrome, wherein the preset network mode
Including network identity;
If second palindrome is identical as first palindrome, according to the network identity and the corresponding institute of second palindrome
It states from the result that test equipment mark output compatibility verification passes through to monitoring client;
Switch the preset network mode and obtains the third palindrome, if the third palindrome is identical as first palindrome,
According to after switching network mode and the third palindrome is corresponding described identify output compatibility verification from test equipment and pass through
Result to the monitoring client.
2. APP network compatibility test method as described in claim 1, which is characterized in that described according to first request
Obtain first palindrome, comprising:
It requests to identify according to described first request one kind;
First request is sent according to the corresponding request address of first request;
Obtain first palindrome that returns from the request address, and will first request, described a kind of request to identify and described
The corresponding storage of first palindrome is in the database.
3. APP network compatibility test method as claimed in claim 2, which is characterized in that the acquisition is each described from survey
The network request of the corresponding APP of device identification is tried as the second request, comprising:
The two classes request mark of each network request that corresponding APP is identified from test equipment is set;
Mark is requested to be added into the network request of the APP two class, making the network request of the APP includes that two classes are asked
Seek mark;
The network request of the APP including two class request mark is obtained as the second request.
4. APP network compatibility test method as claimed in claim 3, which is characterized in that described to be based on preset network mould
Formula and each second request, second palindrome, comprising:
Obtain the two classes request mark of each second request;
If the two classes request mark is identical as a kind of request mark, asked based on preset network mode and described one kind
It asks mark to obtain first palindrome from the database, and first palindrome is sent to described from test equipment;
First palindrome received from test equipment is obtained as second palindrome.
5. APP network compatibility test method as described in claim 1, which is characterized in that the switching preset net
Network mode simultaneously obtains the third palindrome, if the third palindrome is identical as first palindrome, according to the network mode after switching
It is corresponding with the third palindrome described from the result that test equipment mark output compatibility verification passes through to the monitoring client, packet
It includes:
Switch the preset network mode, obtain updated network mode, wherein the updated network mode includes
Updated network identity;
Each network request for identifying corresponding APP from test equipment is obtained to request as third;
Based on the updated network mode and each third request third palindrome;
If the third palindrome is identical as first palindrome, according to the updated network identity and the third palindrome
It is corresponding described from the result that test equipment mark output compatibility verification passes through to the monitoring client.
6. a kind of APP Web-compatible system safety testing device characterized by comprising
Device identification obtains module, for obtaining the device identification of test equipment, wherein the device identification packet of the test equipment
It includes main test equipment mark and is identified from test equipment, described from test equipment is multiple;
First request module, the network request that corresponding APP is identified for obtaining the main test equipment are asked as first
It asks;
First palindrome obtains module, for according to first palindrome of the first request;
Second request module each described identifies the network request of corresponding APP as the from test equipment for obtaining
Two requests;
Second palindrome obtains module, for being based on preset network mode and each second request, second palindrome,
In, the preset network mode includes network identity;
Verification result output module, if identical as first palindrome for second palindrome, according to the network identity
It is corresponding with second palindrome described from the result that test equipment mark output compatibility verification passes through to monitoring client;
Network updates authentication module, for switching the preset network mode and obtaining the third palindrome, if the third palindrome
It is identical as first palindrome, then according to after switching network mode and the third palindrome it is corresponding described from test equipment mark
The result that passes through of output compatibility verification is known to the monitoring client.
7. APP Web-compatible system safety testing device as claimed in claim 6, which is characterized in that first palindrome obtains module
Including first identifier acquiring unit, the first request transmitting unit and the first palindrome acquiring unit;
The first identifier acquiring unit, for requesting to identify according to described first request one kind;
First request transmitting unit, for sending first request according to the corresponding request address of first request;
First palindrome acquiring unit for obtaining first palindrome returned from the request address, and described first is asked
It asks, a kind of request mark and first palindrome correspond to storage in the database.
8. APP Web-compatible system safety testing device as claimed in claim 6, which is characterized in that the second request module
Including second identifier acquiring unit, second identifier adding unit and the second request unit;
The second identifier setting unit, for each network request for identifying corresponding APP from test equipment to be arranged
Two classes request mark;
The second identifier adding unit makes institute for requesting mark to be added into the network request of the APP two class
The network request for stating APP includes two classes request mark;
The second request unit, for obtaining the network request of the APP including two class request mark
As the second request.
9. a kind of computer equipment, including memory, processor and storage are in the memory and can be in the processor
The computer program of upper operation, which is characterized in that the processor realized when executing the computer program as claim 1 to
The step of any one of 5 APP network compatibility test method.
10. a kind of computer readable storage medium, the computer-readable recording medium storage has computer program, and feature exists
In realization APP network compatibility as described in any one of claim 1 to 5 is tested when the computer program is executed by processor
The step of method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910048297.1A CN109587013B (en) | 2019-01-18 | 2019-01-18 | APP network compatibility testing method and device, computer equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910048297.1A CN109587013B (en) | 2019-01-18 | 2019-01-18 | APP network compatibility testing method and device, computer equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109587013A true CN109587013A (en) | 2019-04-05 |
CN109587013B CN109587013B (en) | 2022-08-19 |
Family
ID=65916977
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910048297.1A Active CN109587013B (en) | 2019-01-18 | 2019-01-18 | APP network compatibility testing method and device, computer equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109587013B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112910722A (en) * | 2019-12-04 | 2021-06-04 | 北京达佳互联信息技术有限公司 | Network request testing method, device, terminal and storage medium |
CN113824612A (en) * | 2021-09-22 | 2021-12-21 | 深圳创维数字技术有限公司 | Network equipment compatibility testing method, terminal equipment and storage medium |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2003143157A (en) * | 2001-11-05 | 2003-05-16 | Toshiba Kyaria Kk | Communication system, master, slave, mac address server, and communication method |
CN107357726A (en) * | 2017-07-04 | 2017-11-17 | 广州云测信息技术有限公司 | A kind of application compatibility method of testing and device |
CN107404418A (en) * | 2017-07-26 | 2017-11-28 | 百度在线网络技术(北京)有限公司 | Internet product method of testing, device, equipment and storage medium |
CN108009091A (en) * | 2017-12-04 | 2018-05-08 | 北京远特科技股份有限公司 | A kind of compatibility test system and method for vehicle device equipment and external equipment |
CN108304318A (en) * | 2018-01-02 | 2018-07-20 | 深圳壹账通智能科技有限公司 | The test method and terminal device of equipment compatibility |
CN108848000A (en) * | 2018-05-07 | 2018-11-20 | 深圳壹账通智能科技有限公司 | Network request test method, device, computer equipment and storage medium |
CN108959057A (en) * | 2017-05-18 | 2018-12-07 | 腾讯科技(深圳)有限公司 | Test method, test device, storage equipment and the network equipment |
CN108989343A (en) * | 2018-08-24 | 2018-12-11 | 携程旅游信息技术(上海)有限公司 | The change of VOIP network and compatible processing method, system, equipment and medium |
-
2019
- 2019-01-18 CN CN201910048297.1A patent/CN109587013B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2003143157A (en) * | 2001-11-05 | 2003-05-16 | Toshiba Kyaria Kk | Communication system, master, slave, mac address server, and communication method |
CN108959057A (en) * | 2017-05-18 | 2018-12-07 | 腾讯科技(深圳)有限公司 | Test method, test device, storage equipment and the network equipment |
CN107357726A (en) * | 2017-07-04 | 2017-11-17 | 广州云测信息技术有限公司 | A kind of application compatibility method of testing and device |
CN107404418A (en) * | 2017-07-26 | 2017-11-28 | 百度在线网络技术(北京)有限公司 | Internet product method of testing, device, equipment and storage medium |
CN108009091A (en) * | 2017-12-04 | 2018-05-08 | 北京远特科技股份有限公司 | A kind of compatibility test system and method for vehicle device equipment and external equipment |
CN108304318A (en) * | 2018-01-02 | 2018-07-20 | 深圳壹账通智能科技有限公司 | The test method and terminal device of equipment compatibility |
CN108848000A (en) * | 2018-05-07 | 2018-11-20 | 深圳壹账通智能科技有限公司 | Network request test method, device, computer equipment and storage medium |
CN108989343A (en) * | 2018-08-24 | 2018-12-11 | 携程旅游信息技术(上海)有限公司 | The change of VOIP network and compatible processing method, system, equipment and medium |
Non-Patent Citations (1)
Title |
---|
赵兰枝: "物联网底层差异设备兼容性测试模型仿真分析", 《计算机仿真》 * |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112910722A (en) * | 2019-12-04 | 2021-06-04 | 北京达佳互联信息技术有限公司 | Network request testing method, device, terminal and storage medium |
CN112910722B (en) * | 2019-12-04 | 2022-07-22 | 北京达佳互联信息技术有限公司 | Network request testing method, device, terminal and storage medium |
CN113824612A (en) * | 2021-09-22 | 2021-12-21 | 深圳创维数字技术有限公司 | Network equipment compatibility testing method, terminal equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN109587013B (en) | 2022-08-19 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109597761A (en) | A kind of automatic interface testing method based on Jmeter | |
CN104469737B (en) | A kind of universal embedded integrated circuit card and its user signing contract information Activiation method | |
CN108763090A (en) | Test environment dispositions method, device, computer equipment and storage medium | |
CN109460527A (en) | Product data configuration method, device, computer equipment and storage medium | |
EP3337219A1 (en) | Carrier configuration processing method, device and system, and computer storage medium | |
CN109726134B (en) | Interface test method and system | |
CN104579822A (en) | Automatic performance test system and method of mobile application based on Http protocol | |
CN109669859B (en) | Service testing method, device, computer equipment and storage medium | |
CN109150904A (en) | Interface service call method and terminal device | |
CN103246606B (en) | The performance test methods of ESB platform and system | |
CN110532168A (en) | Full LI(link interface) pressure surveys method, apparatus, computer equipment and storage medium | |
CN104581785A (en) | Wireless network testing method, testing device and mobile terminal | |
CN110377325A (en) | Interface allocation method, interface call method, device, equipment and storage medium | |
CN109299010A (en) | Mock test method, device, computer equipment and storage medium | |
CN111917758A (en) | Method and device for accessing Internet of things platform, computer equipment and storage medium | |
CN108769186A (en) | service authority control method and device | |
CN112699034B (en) | Virtual login user construction method, device, equipment and storage medium | |
CN109783357A (en) | The method and device of test application program, computer equipment, storage medium | |
CN109587013A (en) | APP network compatibility test method, device, computer equipment and storage medium | |
CN112615759A (en) | Full link voltage measurement assembly, full link voltage measurement method and device | |
CN108595280B (en) | Interface adaptation method and device, computer equipment and storage medium | |
CN112035163A (en) | Software development kit configuration method, device and storage medium | |
CN108733545B (en) | Pressure testing method and device | |
CN101079903B (en) | Method and system based on remote login of user terminal | |
CN112165726A (en) | Method and system for distributing network to intelligent equipment by WeChat small program |
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 |