CN104978247A - Application test method, application test device and application test system - Google Patents

Application test method, application test device and application test system Download PDF

Info

Publication number
CN104978247A
CN104978247A CN201410177842.4A CN201410177842A CN104978247A CN 104978247 A CN104978247 A CN 104978247A CN 201410177842 A CN201410177842 A CN 201410177842A CN 104978247 A CN104978247 A CN 104978247A
Authority
CN
China
Prior art keywords
data
image data
test
terminal
test result
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
Application number
CN201410177842.4A
Other languages
Chinese (zh)
Other versions
CN104978247B (en
Inventor
刘洋
刘楚蓉
侯媛媛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201410177842.4A priority Critical patent/CN104978247B/en
Publication of CN104978247A publication Critical patent/CN104978247A/en
Application granted granted Critical
Publication of CN104978247B publication Critical patent/CN104978247B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses an application test method, an application test device and an application test system. For a first test of an application of a terminal, when a processing server receives a test request of the terminal, an identification of the terminal and test result data can be obtained; the type of the test result data is determined, wherein the type of the test result data includes text data and/or picture data; if the test result data is the text data, the text data is matched with the preset text data; if the test result data is the picture data, the picture data is matched with the preset picture data; and an application test result corresponding to the identification of the terminal is generated according to the matching result. When the embodiment of the invention is adopted, the processing server automatically obtains the test result data and processes the test result data to generate the application test result corresponding to the identification of the terminal; the artificial participation is not needed; the test time is saved; testing personnel can confirm the concrete condition of the first test through the application test result; and the intellectuality of the first test of the application is improved.

Description

A kind of application testing method, Apparatus and system
Technical field
The present invention relates to computer realm, particularly relate to a kind of application testing method, Apparatus and system.
Background technology
In prior art, for starting test of the application of terminal, corresponding different terminals, tester can carry out manual testing for each terminal, also can realize preserving test data with the form of file or sectional drawing in terminal, whether tester can consult the test data be stored in terminal, successful in the terminal to determine starting test of this application.The step of starting test such as, when mobile phone M download games application N, downloading page display " whether down load application is precious ", if selection "Yes", then download " application is precious " at mobile phone M and successfully install, running game application N, login page display " disqualification logs in ", " number of robbing " button of the page can be clicked, if the number of robbing success, then can logging in game application N, tester can confirm when operating each step that whether the starting test of this step in this mobile terminal be successful, also automatically each step of above-mentioned starting test can be carried out sectional drawing and be preserved for mobile phone M, tester can consult the test data of preservation, to confirm that whether the starting test in the terminal of each step is successful.In prior art, to starting test of the application of terminal, need artificial participation, length consuming time, and be easily affected by human factors the problem occurring test leakage, survey by mistake, test data is stored in terminal again, needs the test data of tester's comparison different terminals, and easily because the situations such as changed test personnel increase the probability of test data loss.
Summary of the invention
The embodiment of the present invention provides a kind of application testing method, Apparatus and system.By processing server automatic acquisition test result data, test result data can be processed, generate the application testing result of the mark correspondence of terminal, save the test duration, improve the intelligent of the starting test of application.
First aspect present invention provides a kind of application testing method, can comprise:
Processing server, when receiving the test request of terminal, obtains mark and the test result data of described terminal;
Described processing server determines the type of described test result data, and the type of described test result data comprises: text data and/or image data;
When the type of described test result data is described text data, described text data mates with pre-set text data by described processing server; And/or when the type of described test result data is described image data, described image data mates with default image data by described processing server;
Described processing server generates the application testing result of the mark correspondence of described terminal according to described matching result.
Second aspect present invention provides a kind of application testing device, can comprise:
Acquisition module, for when receiving the test request of terminal, obtains mark and the test result data of described terminal;
Determination module, for determining the type of described test result data, the type of described test result data comprises: text data and/or image data;
Matching module, during for determining that at described determination module the type of described test result data is described text data, mates described text data with pre-set text data; And/or when the type that described determination module determines described test result data is described image data, described image data is mated with default image data;
Result-generation module, for generating the application testing result of the mark correspondence of described terminal according to the matching result of described matching module.
Third aspect present invention provides a kind of processing server, can comprise the device as described in second aspect.
Fourth aspect present invention provides a kind of application test systems, the processing server as described in the third aspect comprising terminal, the reception server be connected with described terminal communication and communicate to connect with described reception server.
Implement the embodiment of the present invention, there is following beneficial effect:
In the embodiment of the present invention, for starting test of the application of terminal, processing server can when receiving the test request of terminal, the mark of automatic acquisition terminal and test result data, and determine the type of test result data, type according to test result data is mated test result data, is generated the application testing result of the mark correspondence of terminal by matching result.Achieve by processing server automatic acquisition test result data and test result data is processed, generate the application testing result of the mark correspondence of terminal, without the need to artificial participation, save the test duration, tester consults the concrete condition of starting test by application testing result, improves the intelligent of the starting test of application.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
The process flow diagram of a kind of application testing method that Fig. 1 provides for the embodiment of the present invention;
The structural representation of a kind of application testing device that Fig. 2 provides for the embodiment of the present invention;
The structural representation of the matching module that Fig. 3 provides for the embodiment of the present invention;
The schematic diagram of a kind of application test systems that Fig. 4 provides for the embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
In the embodiment of the present invention, application can for being arranged on the application program in terminal, terminal is personal computer, panel computer, notebook computer, smart mobile phone etc. such as, processing server is the server processed test result data, and reception server is for receiving and transmitted test request server.Be described with the example that is applied as of installing in the terminal in the embodiment of the present invention, wherein, IP (the InternetProtocol of mobile terminal, the agreement interconnected between network) be public network IP, the IP of processing server is Intranet IP, the IP of reception server is public network IP, and test request, by reverse proxy, is transmitted to processing server by reception server.Wherein, public network, Intranet are the access waies of two kinds of the Internet Internet.In the specific implementation of the embodiment of the present invention, reception server is apache (Apache HTTP Server such as, be called for short Apache, the web page server of an open source code of Apache Software Foundation), processing server is tomcat (a kind of WEB application server) such as, also can be other implementations, specifically not by the restriction of the embodiment of the present invention.
In the embodiment of the present invention, when the thread in terminal listens to the starting test of application unlatching, can send test request to reception server, test request is sent to processing server by reception server, processing server can respond this test request, and obtains the test result data of this terminal.
Further alternative, test request also can carry the mark of test result data and terminal.Wherein, test comprises at least one testing procedure, concrete, processing server can obtain the test result data of each testing procedure or the test result data of default testing procedure, then terminal can when listening to each testing procedure or foresee steps, test result data corresponding for this step is sent to reception server, server forwards is to processing server, also can for terminal be at the end of listening to starting test, the test result data of each testing procedure or foresee steps is sent to reception server, and server forwards is to processing server.
In prior art, for starting test of the application of terminal, corresponding different terminals, tester can carry out manual testing for each terminal, also can realize preserving test data with the form of file or sectional drawing in terminal, tester can consult the test data be stored in terminal, whether successful in the terminal to determine starting test of this application, test data is stored in terminal again, need the test data of tester's comparison different terminals, and easily because the situations such as changed test personnel increase the probability of test data loss, need artificial participation, length consuming time, and be easily affected by human factors and occur test leakage, the problem by mistake surveyed.
And in the embodiment of the present invention, for starting test of the application of terminal, processing server can when receiving the test request of terminal, the mark of automatic acquisition terminal and test result data, achieve by processing server automatic acquisition test result data and test result data is processed, generate the application testing result of the mark correspondence of terminal, without the need to artificial participation, save the test duration, tester consults the concrete condition of starting test by application testing result, improves the intelligent of the starting test of application.
What be stored in terminal in prior art is original test data without any process, namely the test result data in the embodiment of the present invention, when tester consults test result data, test result data and default result data manually need be distinguished, to determine that whether this test result data is accurate, thus undertaken distinguishing the test result that is applied by tester.
And in the embodiment of the present invention, directly to be applied test result by processing server, for processing server matching treatment is carried out to test result data after the result that obtains, tester only need consult this application testing result, the application testing result of starting test in which step of which terminal can be known, without the need to test result data and default result data manually being distinguished again, only directly net result need be consulted.
Below in conjunction with accompanying drawing 1 ~ accompanying drawing 2, the application testing method that the embodiment of the present invention provides is described in detail.
Refer to Fig. 1, be the process flow diagram of a kind of application testing method that the embodiment of the present invention provides, the embodiment of the present invention is described using processing server as executive agent.As shown in Figure 1, the method can comprise the following steps: S101 ~ S104.
S101, processing server, when receiving the test request of terminal, obtains mark and the test result data of terminal.
As the optional embodiment of one, processing server can receive the test request of a terminal, also the test request of multiple terminal can be received, wherein, test request is specifically as follows: reception server is when receiving the test request of multiple terminal concurrence, by reverse proxy, the test request of multiple terminal concurrence is transmitted to processing server, the test request that processing server receives.In specific implementation, when the thread in terminal listens to the starting test of application unlatching, test request can be sent to reception server, test request is sent to processing server by reception server, wherein, the mark of test request carried terminal, processing server can respond this test request, and obtains the test result data of this terminal.Further alternative, test request also can carry the mark of test result data and terminal, gets mark and the test result data of terminal when processing server receives test request.
In further realization, the application testing method that the embodiment of the present invention provides can also comprise step:
Processing server obtains at least one testing procedure mark of the mark correspondence of terminal.
In specific implementation, test comprises at least one testing procedure, processing server can obtain the test result data of each testing procedure or the test result data of default testing procedure, then terminal can when listening to each testing procedure or foresee steps, test result data corresponding for this step is sent to reception server, server forwards is to processing server, also can for terminal be at the end of listening to starting test, the test result data of each testing procedure or foresee steps is sent to reception server, and reception server is transmitted to processing server.Such as, starting testing procedure of application A comprises altogether 20 steps, processing server can get the test result data of each testing procedure in 20 steps, also can obtain default testing procedure: the test result data of step 15 ~ step 20 each testing procedure of totally 6 testing procedures.
Further alternative, if the test request of multiple terminal concurrence, and corresponding each terminal, comprise the test data of multiple testing procedure mark, the test result data of multiple terminals that processing server gets, in test data for the mark of same terminal, the testing procedure of the test result data that the multiple testing procedure marks got are corresponding identifies testing procedure mark that can be orderly, also can be unordered testing procedure mark, such as, the testing procedure of the application A in terminal A comprises altogether 20 steps, the testing procedure of the application B in terminal B comprises altogether 10 testing procedures, the testing procedure 18 of application A is got at moment T, get the testing procedure 5 of application B, the testing procedure 10 of application A is got at moment T+2, get the testing procedure 6 of application B.
Concrete, for reception server, fileupload assembly by apache realizes the reception of test request, pass through reverse proxy, test request is forwarded to tomcat, can the implementation of provisioning interface in the terminal, such as, can whether for distinguishing, whether the same of this terminal takes turns test request by identical for the CaseSuitNo in test request, whether whether the CaseNo in available test request is identical is the same different testing procedures of taking turns under test request of same terminal for distinguishing, with the same concrete testing procedure of taking turns under test request of the same terminal of testing procedure mark difference.
Further alternative, test result data can be the test result at each testing procedure of terminal monitoring, the test result script data got, also can for automatically carrying out to the test result display page of each testing procedure the test result data that sectional drawing obtains, can also for automatically carrying out to the test result of each testing procedure the test result data that Text Feature Extraction obtains, can also for directly to preserve to the test result of each testing procedure the result data comprising text data and/or image data obtained.
S102, the type of processing server determination test result data, the type of test result data comprises: text data and/or image data.
As the optional embodiment of one, the type of processing server determination test result data, the type of test result data comprises: text data and/or image data, in specific implementation, the type of test result data can be determined according to the file suffixes name of test result data, or directly test result data is distinguished, if text data, then determine that the type of this test result data is: text data, if not text data, then determine that the type of this test result data is: image data.Wherein, the type of the test result data that same step mark is corresponding can comprise: text data and image data.In specific implementation, such as, judge the type of test result data by statement " fileItem.isFormField () ".
S103, when the type of test result data is text data, text data mates with pre-set text data by processing server; And/or when the type of test result data is image data, image data mates with default image data by processing server.
As the optional embodiment of one, processing server searches pre-set text data corresponding to testing procedure mark, judges whether the text data of testing procedure mark correspondence identifies corresponding pre-set text Data Matching with testing procedure; And/or processing server searches default image data corresponding to testing procedure mark, judge whether the image data of testing procedure mark correspondence identifies corresponding default image data with testing procedure and mate.
In specific implementation, when the type of test result data is text data, directly text data can be mated with pre-set text data, if completely the same, then can be defined as coupling, if exist inconsistent, then can be defined as not mating.Further, also can carry out participle to text data, according to predetermined keyword, the text data after participle is retrieved again, if there is the keyword consistent with predetermined keyword in text data, then extract this keyword, if the keyword extracted from text data is consistent with the keyword in pre-set text data, then can be defined as coupling, otherwise, then can be defined as not mating.
In specific implementation, when the type of test result data is image data, directly this image data can be mated with default image data, if this image data and default image data matching, then can be defined as coupling, otherwise not mate.Further, processing server also can carry out pre-service to image data, and pre-service comprises: extract the text message in image data, image data carried out to gray proces or carry out processes pixel to image data; Processing server judges whether pretreated image data mates with default image data.Concrete, image data carries out gray proces such as removes image data background color by ImageMagick picture Processing Technique, obtains the image data of white gravoply, with black engraved characters.Text message in extraction image data is such as by OCR (Optical Character Recognition, optical character identification) realization of picture recognition technology, thus the text message extracted from image data is mated with the text message in default image data.Processes pixel is carried out to image data, thus the pixel of the pixel of image data with default image data is mated.
S104, processing server generates the application testing result of the mark correspondence of terminal according to matching result.
As the optional embodiment of one, processing server can generate the application testing result of the mark correspondence of terminal according to matching result, in specific implementation, application testing result can comprise: the default image data that test result data corresponding to test result corresponding to the total test result of the terminal attributive information of the mark correspondence of terminal, the mark correspondence of terminal, testing procedure mark, testing procedure mark, testing procedure mark are corresponding or pre-set text data etc., application testing result such as:
" terminal A: the mark of terminal: XX, type: XX, test duration: XX;
Application A: application identities: XX, version number: XX, testing procedure sum: XX;
Step identifies 1 test result: success, and test result data is: XX;
Step identifies 2 test results: failure, and test result data is: XX, does not mate reason: XX, and default result data is: XX;
……
Step mark N test result: success, test result data is: XX;
Total test result: fail step: testing procedure mark 2 Success step: testing procedure mark 1 ... N.
Starting Test Suggestion: XXXX.”
Further alternative, the application testing method that the embodiment of the present invention provides after step s 104, can also comprise step:
Processing server is in the application testing result of the mark correspondence of default viewing area display terminal.
As the optional embodiment of one, application testing result is sent to default viewing area and shows by processing server, default viewing area can be the display page etc. in default display, such as, by JSP/SERVLET at WEB (World Wide Web, WWW) the application testing result of mark correspondence of page display terminal, wherein, JSP (Java Server Pages) is the technical standard that a kind of dynamic generates the Web page of HTML, XML or extended formatting document, and SERVLET holds program with the Server that Java writes.
The embodiment of the present invention provides a kind of application testing method, for starting test of the application of terminal, processing server can when receiving the test request of terminal, the mark of automatic acquisition terminal and test result data, and determine the type of test result data, the type of test result data comprises: text data and/or image data, and the type according to test result data is mated test result data, is generated the application testing result of the mark correspondence of terminal by matching result.Achieve by processing server automatic acquisition test result data and test result data is processed, generate the application testing result of the mark correspondence of terminal, without the need to artificial participation, save the test duration, tester consults the concrete condition of starting test by application testing result, improves the intelligent of the starting test of application.
Below in conjunction with accompanying drawing 2, the application testing device that the embodiment of the present invention provides is described in detail.It should be noted that, the application testing device shown in accompanying drawing 2, for performing the present invention's method embodiment illustrated in fig. 1, for convenience of explanation, illustrate only the part relevant to the embodiment of the present invention, concrete ins and outs do not disclose, and please refer to the embodiment shown in Fig. 2 of the present invention.
Referring to Fig. 2, is the structural representation of a kind of application testing device that the embodiment of the present invention provides; This device can comprise: acquisition module 201, determination module 202, matching module 203 and result-generation module 204.
Acquisition module 201, for when receiving the test request of terminal, obtains mark and the test result data of terminal.
As the optional embodiment of one, this device can receive the test request of a terminal, also the test request of multiple terminal can be received, wherein, test request is specifically as follows: this device is when receiving the test request of multiple terminal concurrence, by reverse proxy, the test request of multiple terminal concurrence is transmitted to processing server, the test request that this device receives.In specific implementation, when the thread in terminal listens to the starting test of application unlatching, test request can be sent to reception server, test request is sent to this device by reception server, wherein, the mark of test request carried terminal, this device can respond this test request, and obtains the test result data of this terminal.Further alternative, test request also can carry the mark of test result data and terminal, gets mark and the test result data of terminal when this device receives test request.
In further realization, acquisition module 201, also for obtain the mark correspondence of terminal at least one described in testing procedure mark.
In specific implementation, test comprises at least one testing procedure, acquisition module 201 can obtain the test result data of each testing procedure or the test result data of default testing procedure, then terminal can when listening to each testing procedure or foresee steps, test result data corresponding for this step is sent to reception server, server forwards gives this device, also can for terminal be at the end of listening to starting test, the test result data of each testing procedure or foresee steps is sent to reception server, and reception server is transmitted to this device.Such as, starting testing procedure of application A comprises altogether 20 steps, acquisition module 201 can get the test result data of each testing procedure in 20 steps, also can obtain default testing procedure: the test result data of step 15 ~ step 20 each testing procedure of totally 6 testing procedures.
Further alternative, if the test request of multiple terminal concurrence, and corresponding each terminal, comprise the test data of multiple testing procedure mark, the test result data of multiple terminals that acquisition module 201 gets, in test data for the mark of same terminal, the testing procedure of the test result data that the multiple testing procedure marks got are corresponding identifies testing procedure mark that can be orderly, also can be unordered testing procedure mark, such as, the testing procedure of the application A in terminal A comprises altogether 20 steps, the testing procedure of the application B in terminal B comprises altogether 10 testing procedures, the testing procedure 18 of application A is got at moment T, get the testing procedure 5 of application B, the testing procedure 10 of application A is got at moment T+2, get the testing procedure 6 of application B.
Concrete, for reception server, fileupload assembly by apache realizes the reception of test request, pass through reverse proxy, test request is forwarded to tomcat, can the implementation of provisioning interface in the terminal, such as, can whether for distinguishing, whether the same of this terminal takes turns test request by identical for the CaseSuitNo in test request, whether whether the CaseNo in available test request is identical is the same different testing procedures of taking turns under test request of same terminal for distinguishing, with the same concrete testing procedure of taking turns under test request of the same terminal of testing procedure mark difference.
Further alternative, test result data can be the test result at each testing procedure of terminal monitoring, the test result script data got, also can for automatically carrying out to the test result display page of each testing procedure the test result data that sectional drawing obtains, can also for automatically carrying out to the test result of each testing procedure the test result data that Text Feature Extraction obtains, can also for directly to preserve to the test result of each testing procedure the result data comprising text data and/or image data obtained.
Determination module 202, for determining the type of test result data, the type of test result data comprises: text data and/or image data.
As the optional embodiment of one, determination module 202 determines the type of test result data, the type of test result data comprises: text data and/or image data, in specific implementation, determination module 202 can determine the type of test result data according to the file suffixes name of test result data, or directly test result data is distinguished, if text data, then determine that the type of this test result data is: text data, if not text data, then determine that the type of this test result data is: image data.Wherein, the type of the test result data that same step mark is corresponding can comprise: text data and image data.In specific implementation, such as, judge the type of test result data by statement " fileItem.isFormField () ".
Matching module 203, for when the type of test result data is text data, mates text data with pre-set text data; And/or when the type of test result data is image data, image data is mated with default image data.
As the optional embodiment of one, as shown in Figure 3, be the structural representation of the matching module that the embodiment of the present invention provides, as shown in the figure, matching module 203, can comprise: search unit 2031 and judging unit 2032.
Search unit 2031, for searching the default image data of pre-set text data corresponding to testing procedure mark and/or testing procedure mark correspondence.
Judging unit 2032, for judging whether the text data of testing procedure mark correspondence identifies corresponding pre-set text Data Matching with testing procedure, and/or judge whether the image data of testing procedure mark correspondence identifies corresponding default image data with testing procedure and mate.
In specific implementation, when the type of test result data is text data, directly text data can be mated with pre-set text data, if completely the same, then can be defined as coupling, if exist inconsistent, then can be defined as not mating.Further, also can carry out participle to text data, according to predetermined keyword, the text data after participle is retrieved again, if there is the keyword consistent with predetermined keyword in text data, then extract this keyword, if the keyword extracted from text data is consistent with the keyword in pre-set text data, then can be defined as coupling, otherwise, then can be defined as not mating.
In specific implementation, when the type of test result data is image data, directly this image data can be mated with default image data, if this image data and default image data matching, then can be defined as coupling, otherwise not mate.Further, as shown in Figure 3, matching module 203 can also comprise: pretreatment unit 2033.
Pretreatment unit 2033, for when the type of test result data is image data, carry out pre-service to image data, pre-service comprises: extract the text message in image data, image data carried out to gray proces or carry out processes pixel to image data.
Concrete, judging unit 2032, also for judging whether pretreated image data mates with default image data.
Concrete, image data carries out gray proces such as removes image data background color by ImageMagick picture Processing Technique, obtains the image data of white gravoply, with black engraved characters.The text message extracted in image data such as realizes by OCR picture recognition technology, thus is mated with the text message in default image data by the text message extracted from image data.Carry out processes pixel to image data, thus the pixel of the pixel of image data with default image data is mated.
Result-generation module 204, for generating the application testing result of the mark correspondence of terminal according to the matching result of matching module 203.
As the optional embodiment of one, result-generation module 204 can generate the application testing result of the mark correspondence of terminal according to matching result, in specific implementation, application testing result can comprise: the default image data that test result data corresponding to test result corresponding to the total test result of the terminal attributive information of the mark correspondence of terminal, the mark correspondence of terminal, testing procedure mark, testing procedure mark, testing procedure mark are corresponding or pre-set text data etc., application testing result such as:
" terminal A: the mark of terminal: XX, type: XX, test duration: XX;
Application A: application identities: XX, version number: XX, testing procedure sum: XX;
Step identifies 1 test result: success, and test result data is: XX;
Step identifies 2 test results: failure, and test result data is: XX, does not mate reason: XX, and default result data is: XX;
……
Step mark N test result: success, test result data is: XX;
Total test result: fail step: testing procedure mark 2 Success step: testing procedure mark 1 ... N.
Starting Test Suggestion: XXXX.”
Further alternative, the application testing device that the embodiment of the present invention provides also comprises: display module 205.
Display module 205, for the application testing result of the mark correspondence at default viewing area display terminal.
As the optional embodiment of one, application testing result is sent to default viewing area and shows by display module 205, default viewing area can be the display page etc. in default display, such as, by the application testing result of JSP/SERVLET in the mark correspondence of WEB page display terminal.
The embodiment of the present invention provides a kind of application testing device, for starting test of the application of terminal, acquisition module can when receiving the test request of terminal, the mark of automatic acquisition terminal and test result data, determination module can determine the type of test result data, the type of test result data comprises: text data and/or image data, matching module can mate test result data according to the type of test result data, and result-generation module can be generated the application testing result of the mark correspondence of terminal by matching result.Achieve by processing server automatic acquisition test result data and test result data is processed, generate the application testing result of the mark correspondence of terminal, without the need to artificial participation, save the test duration, tester consults the concrete condition of starting test by application testing result, improves the intelligent of the starting test of application.
Further alternative, the embodiment of the invention also discloses a kind of processing server, comprise the device shown in Fig. 2 or Fig. 3; The 26S Proteasome Structure and Function of this device see Fig. 2 or associated description embodiment illustrated in fig. 3, can be not repeated herein.It should be noted that, the push server that the present embodiment provides is corresponding with the application testing method shown in Fig. 1, is the executive agent based on the application process shown in Fig. 1.
The embodiment of the invention also discloses a kind of application test systems, as shown in Figure 4, is the schematic diagram of a kind of application test systems that the embodiment of the present invention provides.As shown in Figure 4, the application test systems that the embodiment of the present invention provides can comprise terminal 1N0, reception server 20 and processing server 30, terminal 1N0 and reception server 20 communicates to connect, and reception server 20 and processing server 30 communicate to connect.Wherein, application has been installed in terminal 1N0.Wherein, N be greater than 0 positive integer.Wherein, the device of processing server 30 as shown in Figure 2 or Figure 3 in embodiment, the system in the embodiment of the present invention can comprise N number of terminal.Terminal 1N0 is including, but not limited to terminal devices such as personal computer, panel computer, notebook computer, smart mobile phones.
One of ordinary skill in the art will appreciate that all or part of flow process realized in above-described embodiment method, that the hardware that can carry out instruction relevant by computer program has come, described program can be stored in a computer read/write memory medium, this program, when performing, can comprise the flow process of the embodiment as above-mentioned each side method.Wherein, described storage medium can be magnetic disc, CD, read-only store-memory body (Read-Only Memory, ROM) or random store-memory body (Random Access Memory, RAM) etc.
Above disclosedly be only present pre-ferred embodiments, certainly can not limit the interest field of the present invention with this, therefore according to the equivalent variations that the claims in the present invention are done, still belong to the scope that the present invention is contained.

Claims (12)

1. an application testing method, is characterized in that, described method comprises:
Processing server, when receiving the test request of terminal, obtains mark and the test result data of described terminal;
Described processing server determines the type of described test result data, and the type of described test result data comprises: text data and/or image data;
When the type of described test result data is described text data, described text data mates with pre-set text data by described processing server; And/or when the type of described test result data is described image data, described image data mates with default image data by described processing server;
Described processing server generates the application testing result of the mark correspondence of described terminal according to described matching result.
2. the method for claim 1, is characterized in that, described method also comprises:
Described processing server obtain the mark correspondence of described terminal at least one described in testing procedure mark;
When the described type in described test result data is described text data, described text data mates with pre-set text data by described processing server; And/or when the type of described test result data is described image data, described image data and default image data carry out mating comprising by described processing server:
Described processing server searches described pre-set text data corresponding to described testing procedure mark, judges whether the described text data of described testing procedure mark correspondence identifies corresponding pre-set text Data Matching with described testing procedure; And/or
Described processing server searches described default image data corresponding to described testing procedure mark, judges whether the described image data of described testing procedure mark correspondence identifies corresponding default image data with described testing procedure and mate.
3. the method for claim 1, is characterized in that, when the described type in described test result data is described image data, described image data and default image data carry out mating comprising by described processing server:
Described processing server carries out pre-service to described image data, and described pre-service comprises: extract the text message in described image data, described image data carried out to gray proces or carry out processes pixel to described image data;
Described processing server judges whether described pretreated image data mates with described default image data.
4. the method for claim 1, it is characterized in that, described test request is: reception server is when receiving the test request of multiple terminal concurrence, by reverse proxy, the test request of described multiple terminal concurrence is transmitted to described processing server, the test request that described processing server receives.
5. the method for claim 1, is characterized in that, described processing server comprises generate the application testing result of the mark correspondence of described terminal according to described matching result after:
Described processing server shows the application testing result of the mark correspondence of described terminal in default viewing area.
6. an application testing device, is characterized in that, described device comprises:
Acquisition module, for when receiving the test request of terminal, obtains mark and the test result data of described terminal;
Determination module, for determining the type of described test result data, the type of described test result data comprises: text data and/or image data;
Matching module, during for determining that at described determination module the type of described test result data is described text data, mates described text data with pre-set text data; And/or when the type that described determination module determines described test result data is described image data, described image data is mated with default image data;
Result-generation module, for generating the application testing result of the mark correspondence of described terminal according to the matching result of described matching module.
7. device as claimed in claim 6, is characterized in that, described acquisition module, also for obtain the mark correspondence of described terminal at least one described in testing procedure mark;
Described matching module, comprising: search unit and judging unit;
Describedly search unit, for searching described pre-set text data corresponding to described testing procedure mark and/or described default image data corresponding to described testing procedure mark;
Described judging unit, for judging whether the described text data of described testing procedure mark correspondence identifies corresponding pre-set text Data Matching with described testing procedure, and/or judge whether the described image data of described testing procedure mark correspondence identifies corresponding default image data with described testing procedure and mate.
8. device as claimed in claim 6, it is characterized in that, described matching module, comprising: pretreatment unit and judging unit;
Described pretreatment unit, for when the type of described test result data is described image data, carry out pre-service to described image data, described pre-service comprises: extract the text message in described image data, described image data carried out to gray proces or carry out processes pixel to described image data;
Described judging unit, for judging whether described pretreated image data mates with described default image data.
9. device as claimed in claim 6, it is characterized in that, described test request is: the test request of described multiple terminal concurrence, when receiving the test request of multiple terminal concurrence, is transmitted to described device by reverse proxy, the test request that described device receives by reception server.
10. device as claimed in claim 6, it is characterized in that, described device also comprises:
Display module, for showing the application testing result of the mark correspondence of described terminal in default viewing area.
11. 1 kinds of processing servers, is characterized in that, comprise as arbitrary in claim 6 ~ 10 as described in device.
12. 1 kinds of application test systems, is characterized in that, the processing server as claimed in claim 11 comprising terminal, the reception server be connected with described terminal communication and communicate to connect with described reception server.
CN201410177842.4A 2014-04-29 2014-04-29 A kind of application testing method, apparatus and system Active CN104978247B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410177842.4A CN104978247B (en) 2014-04-29 2014-04-29 A kind of application testing method, apparatus and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410177842.4A CN104978247B (en) 2014-04-29 2014-04-29 A kind of application testing method, apparatus and system

Publications (2)

Publication Number Publication Date
CN104978247A true CN104978247A (en) 2015-10-14
CN104978247B CN104978247B (en) 2019-08-23

Family

ID=54274778

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410177842.4A Active CN104978247B (en) 2014-04-29 2014-04-29 A kind of application testing method, apparatus and system

Country Status (1)

Country Link
CN (1) CN104978247B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101571922A (en) * 2008-05-04 2009-11-04 中兴通讯股份有限公司 Character recognition tool for mobile terminal automation testing and method thereof
CN102420712A (en) * 2010-09-28 2012-04-18 中国移动通信集团公司 Testing method and equipment
CN103312850A (en) * 2013-05-10 2013-09-18 江苏科技大学 Mobile phone automation testing system and work method
CN103634165A (en) * 2013-12-05 2014-03-12 北京奇虎科技有限公司 Method, terminal device and system for realizing network testing based on reverse proxy
KR20140046121A (en) * 2012-10-10 2014-04-18 에스케이플래닛 주식회사 System and method for testing application

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101571922A (en) * 2008-05-04 2009-11-04 中兴通讯股份有限公司 Character recognition tool for mobile terminal automation testing and method thereof
CN102420712A (en) * 2010-09-28 2012-04-18 中国移动通信集团公司 Testing method and equipment
KR20140046121A (en) * 2012-10-10 2014-04-18 에스케이플래닛 주식회사 System and method for testing application
CN103312850A (en) * 2013-05-10 2013-09-18 江苏科技大学 Mobile phone automation testing system and work method
CN103634165A (en) * 2013-12-05 2014-03-12 北京奇虎科技有限公司 Method, terminal device and system for realizing network testing based on reverse proxy

Also Published As

Publication number Publication date
CN104978247B (en) 2019-08-23

Similar Documents

Publication Publication Date Title
CN109428878B (en) Vulnerability detection method, detection device and detection system
CN105302732B (en) A kind of automatic test approach and device of mobile terminal
CN101854371B (en) The method called and process of JavaScript object, device
US20160241589A1 (en) Method and apparatus for identifying malicious website
CN109039987A (en) A kind of user account login method, device, electronic equipment and storage medium
CN106469044B (en) Method and device for realizing page jump
US10743183B2 (en) Method and device for realizing wireless access point connection authentication
CN105516131A (en) Vulnerability scanning method and device and electronic equipment
CN102480501A (en) Application resource downloading method and associated equipment
CN103618606A (en) App login method verified through short message
CN111931188A (en) Vulnerability testing method and system under login scene
US20170017695A1 (en) Question and answer information providing system, information processing device, and non-transitory computer-readable medium
CN104869019A (en) Feedback method and apparatus for positioning faults, and server
CN105701153B (en) Method and device for reading webpage resources and electronic equipment
CN108965905B (en) Live broadcast data stream pushing and method and device for providing and acquiring stream pushing address
CN104796453A (en) Information processing terminal and control method
AU2017268628A1 (en) Method, device, terminal, server and storage medium of processing network request and response
CN104317884A (en) Method and device for acquiring types of source pages of website
CN106919690B (en) Information shielding method and device and electronic equipment
CN113395367B (en) HTTPS service identification method and device, storage medium and electronic equipment
US20100228772A1 (en) Method and apparatus for performing an information search and retrieval by submitting an electronic form over e-mail
CN110348226B (en) Engineering file scanning method and device, electronic equipment and storage medium
CN103609193B (en) The method and wireless access network equipment of identification terminal type
CN111045934A (en) Page analysis method, device, client, storage medium and electronic equipment
CN107357562B (en) Information filling method, device and client

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant