CN110737549A - Application testing method, device, server and system - Google Patents
Application testing method, device, server and system Download PDFInfo
- Publication number
- CN110737549A CN110737549A CN201810802201.1A CN201810802201A CN110737549A CN 110737549 A CN110737549 A CN 110737549A CN 201810802201 A CN201810802201 A CN 201810802201A CN 110737549 A CN110737549 A CN 110737549A
- Authority
- CN
- China
- Prior art keywords
- application
- test
- network request
- server
- mobile terminal
- 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.)
- Pending
Links
- 238000012360 testing method Methods 0.000 title claims abstract description 393
- 238000000034 method Methods 0.000 claims abstract description 67
- 238000010998 test method Methods 0.000 claims description 3
- 230000008569 process Effects 0.000 abstract description 12
- 238000004891 communication Methods 0.000 abstract description 5
- 238000012795 verification Methods 0.000 description 21
- 238000010586 diagram Methods 0.000 description 13
- 230000004044 response Effects 0.000 description 12
- 239000003795 chemical substances by application Substances 0.000 description 8
- 239000000725 suspension Substances 0.000 description 8
- 238000004590 computer program Methods 0.000 description 5
- 230000006870 function Effects 0.000 description 5
- 230000007246 mechanism Effects 0.000 description 4
- 230000008901 benefit Effects 0.000 description 3
- 230000000977 initiatory effect Effects 0.000 description 3
- 230000008859 change Effects 0.000 description 2
- 238000004422 calculation algorithm Methods 0.000 description 1
- 239000000969 carrier Substances 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/22—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
- G06F11/2273—Test methods
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/22—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
- G06F11/2268—Logging of test results
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The invention discloses an application testing method, a device, a server and a system, wherein the method comprises the steps of generating a corresponding network request by an application to be tested on a mobile terminal according to a testing operation, forwarding the network request to an application testing server, receiving a testing result generated by the application testing server according to the network request, and displaying the testing result on the mobile terminal, wherein the aspect of the technical scheme does not interfere with a normal testing process, the application to be tested and the application testing server carry out normal communication to complete a testing task, and the aspect of can obtain the testing result from the application testing server to be displayed on the mobile terminal, so that a tester can see the testing result conveniently, the testing efficiency and the testing accuracy are improved, and the testing time is saved.
Description
Technical Field
The invention relates to the field of application testing, in particular to an application testing method, device, server and system.
Background
However, in many cases, the automatic test cannot meet the requirement, so that a tester needs to perform manual test on the mobile terminal, sometimes, the next test needs to be performed according to the test result, and thus, the tester is very inconvenient because the tester cannot see the test result on the mobile terminal.
Disclosure of Invention
In view of the above, the present invention has been developed to provide application testing methods, apparatuses, servers, and systems that overcome or at least partially address the above-mentioned problems.
According to aspects of the invention, there are provided application testing methods, comprising:
the method comprises the steps that a corresponding network request is generated by an application to be tested on a mobile terminal according to a test operation, and the network request is forwarded to an application test server;
receiving a test result generated by the application test server according to the network request;
and displaying the test result on the mobile terminal.
Optionally, the method further comprises:
establishing proxy connection between the mobile terminal and the application test server;
the forwarding the network request to an application test server comprises: forwarding the network request to the application test server based on the proxy connection.
Optionally, the proxy connection is implemented based on a fixdler proxy service on the application test server.
Optionally, the test operation is a manual test operation performed on the mobile terminal by a manual tester.
Optionally, the displaying the test result on the mobile terminal includes:
displaying a floating window on a user interface of the application under test;
and displaying the test result in the suspension window.
According to another aspect of the invention, there are provided application testing methods, comprising:
receiving a corresponding network request generated by a tested application forwarded by an application testing device in the mobile terminal according to a testing operation;
generating a corresponding test result according to a preset test rule and the network request;
and sending the test result to the application test device for displaying.
Optionally, the method further comprises: establishing proxy connection with the mobile terminal;
the receiving a corresponding network request generated by a tested application forwarded by an application testing device in the mobile terminal according to the testing operation comprises:
and receiving a corresponding network request generated by the application to be tested sent by the application testing device through the proxy connection according to the testing operation.
Optionally, the establishing the proxy connection with the mobile terminal includes:
initiating a buddy proxy service, establishing the proxy connection based on the buddy proxy service.
Optionally, the generating a corresponding test result according to a preset test rule and the network request includes:
generating a verification template of the specified type of data according to a preset test rule;
and converting the network request into the specified type data, and verifying the converted network request according to the verification template to obtain the test result.
Optionally, the preset test rule is stored in a file in an Excel format, and the specified type data is json data.
According to a further aspect of the invention, there is provided a application testing device comprising:
the forwarding unit is suitable for generating a corresponding network request by the application to be tested on the mobile terminal according to the test operation and forwarding the network request to the application test server;
the receiving unit is suitable for receiving a test result generated by the application test server according to the network request;
and the display unit is suitable for displaying the test result on the mobile terminal.
Optionally, the forwarding unit is adapted to establish a proxy connection between the mobile terminal and the application test server; forwarding the network request to the application test server based on the proxy connection.
Optionally, the proxy connection is implemented based on a fixdler proxy service on the application test server.
Optionally, the test operation is a manual test operation performed on the mobile terminal by a manual tester.
Optionally, the presentation unit is adapted to display a floating window on a user interface of the application under test; and displaying the test result in the suspension window.
According to yet another aspect of the invention, there is provided a application test server, comprising:
the receiving unit is suitable for receiving a tested application forwarded by the application testing device in the mobile terminal and generating a corresponding network request according to the testing operation;
the generating unit is suitable for generating a corresponding test result according to a preset test rule and the network request;
and the sending unit is suitable for sending the test result to the application testing device for displaying.
Optionally, the receiving unit is adapted to establish a proxy connection with the mobile terminal, and receive a network request generated by the application under test sent by the application testing apparatus through the proxy connection according to the test operation.
Optionally, the receiving unit is adapted to initiate a buddy proxy service, based on which the proxy connection is established.
Optionally, the generating unit is adapted to generate a verification template of the specified type of data according to a preset test rule; and converting the network request into the specified type data, and verifying the converted network request according to the verification template to obtain the test result.
Optionally, the preset test rule is stored in a file in an Excel format, and the specified type data is json data.
According to a further aspect of the invention, there are provided application testing systems, wherein the systems include or more application testing devices as described in any of above, and an application testing server as described in any of above.
According to a further aspect of the invention, there is provided electronic device comprising a processor and a memory arranged to store computer executable instructions which, when executed, cause the processor to perform the method of any of as described above.
According to yet another aspect of the invention there is provided computer readable storage medium storing or more programs which, when executed by a processor, perform the method as any of above, or more programs.
According to the technical scheme, after the tested application generates the corresponding network request according to the test operation and forwards the network request to the application test server, the test result returned by the application test server can be received and displayed on the mobile terminal, the tested application and the application test server carry out normal communication to complete the test task in the aspect of , and the test result can be obtained from the application test server and displayed on the mobile terminal in the aspect of , so that the test result can be conveniently seen by a tester, the test efficiency and accuracy are improved, and the test time is saved.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
FIG. 1 shows a flow diagram of the application testing methods according to embodiments of the invention;
FIG. 2 shows a schematic flow diagram of another application testing methods according to embodiments of the present invention;
FIG. 3 shows a schematic structural diagram of a application testing device according to embodiments of the invention;
FIG. 4 is a diagram illustrating a application test servers according to embodiments of the present invention;
FIG. 5 shows a schematic structural diagram of a application test system according to embodiments of the invention;
FIG. 6 shows a schematic structural diagram of an electronic device according to embodiments of the invention;
fig. 7 shows a structural diagram of embodiments of the computer-readable storage medium according to the invention.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
FIG. 1 shows a flow diagram of a application testing method according to embodiments of the invention, as shown in FIG. 1, the method includes:
step S110, the application to be tested on the mobile terminal generates a corresponding network request according to the test operation, and the network request is forwarded to the application test server.
The application test server captures and analyzes the network request and generates a test result according to a preset test rule. That is, step S120, receives the test result generated by the application test server according to the network request.
In particular, in embodiments of the present invention, the test operation is a manual test operation performed by a manual tester on the mobile terminal, and if it is difficult to capture a network request on the mobile terminal, for example, root is required on the mobile terminal, the requirements of tests are not met.
Therefore, manual testers need to click, input and the like on the mobile terminal, and also need to check the test result on the terminal, which is not only troublesome, but also can affect the test, for example, after test steps are completed, the testers need to click the displayed message, the message shows short time, and when the testers look up to see the test result, the message is already displayed, so that the test requirement is not completed.
In the embodiment of the present invention, the test result may be displayed on the mobile terminal according to step S130. Therefore, when a manual tester can test on the mobile terminal, the test result can be seen almost in real time, and the test is very convenient.
It can be seen that the method shown in fig. 1 generates a corresponding network request according to a test operation by an application under test, forwards the network request to an application test server, and then receives a test result returned by the application test server, and displays the test result on a mobile terminal, in the aspect of the technical scheme , the application under test and the application test server do not interfere with a normal test process, the application under test and the application test server perform normal communication to complete a test task, in addition, in the aspect of , the test result can be obtained from the application test server and displayed on the mobile terminal, so that a tester can see the test result conveniently, the test efficiency and accuracy are improved, the test time is saved, the test process is decoupled from page variation, an automatic script is not required to be maintained, the tester can focus on case verification and use a low threshold, and the method is compatible with h5 and native applications, can achieve real-time test result display, and the tester can immediately find a problem in the case execution process without repeatedly checking the test result between a PC and a.
In embodiments of the present invention, the method further includes establishing a proxy connection between the mobile terminal and the application test server, and forwarding the network request to the application test server includes forwarding the network request to the application test server based on the proxy connection.
In practice, forwarding the network request and receiving the test results is done over two connections. For example, the network request actually needs to be sent to the application server by the application under test, and in order to implement packet capture, an agent mechanism is adopted to forward the network request to the application test server, which can be implemented by an agent connection, because the network request may also need to be forwarded back to the application server to complete a corresponding function. And the application test server can send the test result through the normal network connection with the mobile terminal.
For example, applications are deployed on the mobile terminal, the applications may set up a proxy connection for forwarding network requests of the application under test to the application test server, and the applications may also communicate directly with the application test server to obtain and display test results.
In embodiments of the present invention, the above method wherein the proxy connection is implemented based on a fixdler proxy service on the application test server.
Fiddler is a packet grabbing tool and can work in the form of a web proxy server, the used proxy address is 127.0.0.1, the port defaults to 8888, and can also be modified through setting, the proxy service is that middleware is arranged between an application and an application server, after the application sends out a network request, the proxy server intercepts a data packet of the network request, and the proxy server pretends to send data to the application server from a data table which is spanned by the network, and similarly, the application server returns response data, the proxy server intercepts the response data and returns the response data to the application.
In embodiments of the present invention, the presenting the test result on the mobile terminal in the method includes displaying a floating window on a user interface of the application under test, and presenting the test result in the floating window.
Therefore, manual testers can click, input and other operations on the user interface of the tested application, and can see the test result through the suspension window, and the suspension window can be dragged without affecting the normal test operation.
FIG. 2 shows a flow diagram of another application testing method according to embodiments of the invention, as shown in FIG. 2, the method includes:
step S210, receiving the application to be tested forwarded by the application testing apparatus in the mobile terminal, and generating a corresponding network request according to the testing operation.
Step S220, generating a corresponding test result according to the preset test rule and the network request. The method can be applied to an application test server side, namely, the application test server carries out packet capturing and analysis on the network request and generates a test result according to a preset test rule.
And step S230, sending the test result to the application test device for display.
The method is characterized in that a test result is displayed and returned to the mobile terminal, so that a tester can perform test operation in the mobile terminal and check the test result in the mobile terminal , the method is very convenient and is particularly suitable for a manual test scene.
In embodiments of the present invention, the method further includes establishing a proxy connection with the mobile terminal, and receiving a network request generated by the application under test forwarded by the application testing device in the mobile terminal according to the test operation includes receiving a network request generated by the application under test sent by the application testing device through the proxy connection according to the test operation.
In practice, the application testing device on the mobile terminal forwards the network request and receives the test result through two connections. For example, the network request actually needs to be sent to the application server by the application under test, and in order to implement packet capture, an agent mechanism is adopted to forward the network request to the application test server, which can be implemented by an agent connection, because the network request may also need to be forwarded back to the application server to complete a corresponding function. And the application test server can send the test result through the normal network connection with the mobile terminal.
For example, applications are deployed on the mobile terminal as a specific implementation of the application testing apparatus, the applications may set a proxy connection for forwarding a network request of the application under test to the application testing server, and the applications may also communicate directly with the application testing server to obtain and display a testing result.
In embodiments of the present invention, the establishing the proxy connection with the mobile terminal in the method includes initiating a buddy proxy service and establishing the proxy connection based on the buddy proxy service.
Fiddler is a packet grabbing tool and can work in the form of a web proxy server, the used proxy address is 127.0.0.1, the port defaults to 8888, and can also be modified through setting, the proxy service is that middleware is arranged between an application and an application server, after the application sends out a network request, the proxy server intercepts a data packet of the network request, and the proxy server pretends to send data to the application server from a data table which is spanned by the network, and similarly, the application server returns response data, the proxy server intercepts the response data and returns the response data to the application.
In embodiments of the present invention, the generating of the corresponding test result according to the preset test rule and the network request in the method includes generating a verification template of data of a specified type according to the preset test rule, converting the network request into data of the specified type, and verifying the converted network request according to the verification template to obtain the test result.
Therefore, a manual tester does not need to write codes or even how to write codes, and only needs to write verification logic in Excel and other format files according to fields according to preset rules, during specific verification, analysis tools (such as python implementation) can be used for reading the Excel files, analyzing contents, generating verification templates such as jsonnschema, and then converting network requests into json data, so that verification can be conveniently realized, and a test result can be obtained in step .
FIG. 3 shows a schematic diagram of a application testing device according to embodiments of the invention, as shown in FIG. 3, the application testing device 300 comprises:
the forwarding unit 310 is adapted to generate a corresponding network request according to the test operation by the application under test on the mobile terminal, and forward the network request to the application test server.
The application test server captures and analyzes the network request and generates a test result according to a preset test rule. Namely, the receiving unit 320, is adapted to receive a test result obtained by analyzing the network request by the application test server.
In particular, in embodiments of the present invention, in the above-mentioned apparatus, the test operation is a manual test operation performed by a manual tester on the mobile terminal, if it is difficult to capture a network request on the mobile terminal, for example, it is necessary to perform root on the mobile terminal, it will not meet test requirements.
Therefore, manual testers need to click, input and the like on the mobile terminal, and also need to check the test result on the terminal, which is not only troublesome, but also can affect the test, for example, after test steps are completed, the testers need to click the displayed message, the message shows short time, and when the testers look up to see the test result, the message is already displayed, so that the test requirement is not completed.
In the embodiment of the present invention, the presentation unit 330 is adapted to present the test result on the mobile terminal. Therefore, when a manual tester can test on the mobile terminal, the test result can be seen almost in real time, and the test is very convenient.
It can be seen that the device shown in fig. 3, through the mutual cooperation of the units, generates a corresponding network request according to a test operation by the application to be tested, forwards the network request to the application test server, and then receives and displays a test result returned by the application test server on the mobile terminal, in the technical scheme , the normal test process is not interfered, the application to be tested and the application test server perform normal communication to complete a test task, in addition, in the aspect of , the test result can be obtained from the application test server and displayed on the mobile terminal, so that the test result can be conveniently seen by the tester, the test efficiency and accuracy are improved, the test time is saved, the test process is decoupled from page change, an automatic script is not required to be maintained, the tester can focus on case verification and use with a low threshold, and h5 and native applications are compatible, so that real-time test result display can be realized, and the tester can immediately find a problem in the case execution process and does not need to check the test result back and forth between the PC and the mobile middle terminal.
In embodiments of the present invention, in the above apparatus, the forwarding unit 310 is adapted to establish a proxy connection between the mobile terminal and the application test server, and forward the network request to the application test server based on the proxy connection.
In practice, forwarding the network request and receiving the test results is done over two connections. For example, the network request actually needs to be sent to the application server by the application under test, and in order to implement packet capture, an agent mechanism is adopted to forward the network request to the application test server, which can be implemented by an agent connection, because the network request may also need to be forwarded back to the application server to complete a corresponding function. And the application test server can send the test result through the normal network connection with the mobile terminal.
For example, applications are deployed on the mobile terminal, the applications may set up a proxy connection for forwarding network requests of the application under test to the application test server, and the applications may also communicate directly with the application test server to obtain and display test results.
In embodiments of the present invention, in the above apparatus, the proxy connection is implemented based on a fixdler proxy service on the application test server.
Fiddler is a packet grabbing tool and can work in the form of a web proxy server, the used proxy address is 127.0.0.1, the port defaults to 8888, and can also be modified through setting, the proxy service is that middleware is arranged between an application and an application server, after the application sends out a network request, the proxy server intercepts a data packet of the network request, and the proxy server pretends to send data to the application server from a data table which is spanned by the network, and similarly, the application server returns response data, the proxy server intercepts the response data and returns the response data to the application.
In embodiments of the present invention, in the above apparatus, the display unit 330 is adapted to display the floating window on the user interface of the application under test, and display the test result in the floating window.
Therefore, manual testers can click, input and other operations on the user interface of the tested application, and can see the test result through the suspension window, and the suspension window can be dragged without affecting the normal test operation.
FIG. 4 shows a schematic structural diagram of types of application test servers according to embodiments of the present invention, as shown in FIG. 4, an application test server 400 includes:
the receiving unit 410 is adapted to receive a network request generated by the application under test forwarded by the application testing apparatus in the mobile terminal according to the testing operation.
The generating unit 420 is adapted to generate a corresponding test result according to a preset test rule and a network request.
The sending unit 430 is adapted to send the test result to the application testing apparatus for displaying.
The method is characterized in that a test result is displayed and returned to the mobile terminal, so that a tester can perform test operation in the mobile terminal and check the test result in the mobile terminal , the method is very convenient and is particularly suitable for a manual test scene.
In embodiments of the present invention, in the server, the receiving unit 410 is adapted to establish a proxy connection with the mobile terminal, and the application under test sent by the receiving application testing apparatus through the proxy connection generates a corresponding network request according to the testing operation.
In practice, the application testing device on the mobile terminal forwards the network request and receives the test result through two connections. For example, the network request actually needs to be sent to the application server by the application under test, and in order to implement packet capture, an agent mechanism is adopted to forward the network request to the application test server, which can be implemented by an agent connection, because the network request may also need to be forwarded back to the application server to complete a corresponding function. And the application test server can send the test result through the normal network connection with the mobile terminal.
For example, applications are deployed on the mobile terminal as a specific implementation of the application testing apparatus, the applications may set a proxy connection for forwarding a network request of the application under test to the application testing server, and the applications may also communicate directly with the application testing server to obtain and display a testing result.
In embodiments of the invention, in the server, the receiving unit 410 is adapted to initiate a buddy proxy service, and to establish the proxy connection based on the buddy proxy service.
Fiddler is a packet grabbing tool and can work in the form of a web proxy server, the used proxy address is 127.0.0.1, the port defaults to 8888, and can also be modified through setting, the proxy service is that middleware is arranged between an application and an application server, after the application sends out a network request, the proxy server intercepts a data packet of the network request, and the proxy server pretends to send data to the application server from a data table which is spanned by the network, and similarly, the application server returns response data, the proxy server intercepts the response data and returns the response data to the application.
In embodiments of the present invention, in the server, a generating unit is adapted to generate a check template of specified type data according to a preset test rule, convert the network request into the specified type data, and check the converted network request according to the check template to obtain a test result.
Therefore, a manual tester does not need to write codes or even how to write codes, and only needs to write verification logic in Excel and other format files according to fields according to preset rules, during specific verification, analysis tools (such as python implementation) can be used for reading the Excel files, analyzing contents, generating verification templates such as jsonnschema, and then converting network requests into json data, so that verification can be conveniently realized, and a test result can be obtained in step .
Fig. 5 shows a schematic structural diagram of types of application testing systems according to embodiments of the present invention, as shown in fig. 5, an application testing system 500 includes or more application testing apparatuses 300 as described in any embodiment above, and an application testing server 400 as described in any embodiment above.
In summary, according to the technical scheme of the invention, after the application to be tested generates the corresponding network request according to the test operation and forwards the network request to the application test server, the test result returned by the application test server can be received and displayed on the mobile terminal, the technical scheme does not interfere with the normal test process, the application to be tested and the application test server carry out normal communication to complete the test task, in addition, can obtain the test result from the application test server and display the test result on the mobile terminal, so that the test result can be conveniently seen by the tester, the test efficiency and accuracy are improved, the test time is saved, the test process is decoupled from page change, an automatic script is not required to be maintained, the tester can focus on case verification and use a low threshold, and the h5 and native applications are compatible, the real-time test result display can be realized, and the tester can immediately find a problem in the case execution process without repeatedly checking the test result between a PC and a mobile middle terminal.
It should be noted that:
the algorithms and displays presented herein are not inherently related to any particular computer, virtual machine, or other apparatus, various general purpose devices may also be used with the teachings based thereon, the required structure for constructing such devices is readily apparent from the above description.
However, it is understood that embodiments of the invention may be practiced without these specific details, and that examples well-known methods, structures, and techniques have not been shown in detail in order not to obscure the understanding of this description.
Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the invention, various features of the invention are sometimes grouped together by in a single embodiment, figure, or description thereof for the purpose of streamlining the disclosure and aiding in the understanding of the various inventive aspects, however, the disclosed method is not intended to be interpreted as reflecting an intention that the claimed invention requires more features than are expressly recited in each claim.
It will be understood by those skilled in the art that modules in the apparatus of the embodiments may be adaptively changed and arranged in or more apparatuses different from the embodiments, that modules or units or components in the embodiments may be combined into modules or units or components, and further, that they may be divided into sub-modules or sub-units or sub-components, that all features disclosed in this specification (including the accompanying claims, abstract and drawings), and all processes or units of any method or apparatus so disclosed, may be combined in any combination, except at least of such features and/or processes or units are mutually exclusive, unless expressly stated otherwise, each feature disclosed in this specification (including the accompanying claims, abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose.
Furthermore, those of skill in the art will appreciate that while the embodiments described herein include some features included in other embodiments, not others, combinations of features of different embodiments are meant to be within the scope of the invention and form different embodiments.
It will be appreciated by those skilled in the art that , some or all of the functions of in application testing apparatus, servers, and systems according to embodiments of the present invention may be implemented in practice using microprocessors or Digital Signal Processors (DSPs). The present invention may also be implemented as device or apparatus programs (e.g., computer programs and computer program products) for performing part or all of of the methods described herein. such programs implementing the present invention may be stored on a computer readable medium or may be in the form of or more signals.
For example, fig. 6 shows a schematic structural diagram of an electronic device according to embodiments of the invention, the electronic device comprising a processor 610 and a memory 620 arranged to store computer executable instructions (computer readable program code), the memory 620 may be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read only memory), an EPROM, a hard disk or a ROM, the memory 620 having a storage space 630 storing computer readable program code 631 for performing any of the method steps in the above method, the storage space 630 for storing computer readable program code may comprise respective computer readable program code 631 for implementing the various steps in the above method, for example, the computer readable program code 631 may be read from or written to the one or more computer program products or more computer program products, the computer program products comprise program code carriers such as a hard disk, a Compact Disk (CD), a memory card or a floppy disk, the computer readable program code 631 is generally a computer readable storage medium such as that is depicted in fig. 7, fig. 7 shows that the implementation of the computer readable program code 631 when the computer readable program code 631 performs the computer readable program code 631 in the computer readable program code 631, the computer readable program code embodiment of the method steps shown in the electronic device may be read by the computer readable storage medium 36600, the electronic device when the computer readable program code 631 performs the method steps 631 described by the computer readable program code 631, the computer readable storage device 600, the computer readable program code , the computer readable program code 631, the computer readable storage device 600, the computer readable program code 631, the computer readable storage device may be read by the computer readable storage.
The invention may be embodied by means of hardware comprising several distinct elements, and by means of a suitably programmed computer, in a unit claim enumerating several means, several of these means may be embodied by one and the same item of hardware, the use of the words , second, third, etc. may indicate any sequence.
The embodiment of the invention discloses A1 and application test methods, which comprise the following steps:
the method comprises the steps that a corresponding network request is generated by an application to be tested on a mobile terminal according to a test operation, and the network request is forwarded to an application test server;
receiving a test result generated by the application test server according to the network request;
and displaying the test result on the mobile terminal.
A2, the method of a1, wherein the method further comprises:
establishing proxy connection between the mobile terminal and the application test server;
the forwarding the network request to an application test server comprises: forwarding the network request to the application test server based on the proxy connection.
A3, the method as in a2, wherein the proxy connection is implemented based on a fixdler proxy service on the application test server.
A4, the method of a1, wherein the testing operation is a manual testing operation performed by a manual tester on the mobile terminal.
A5, the method of A1, wherein the presenting the test results on the mobile terminal comprises:
displaying a floating window on a user interface of the application under test;
and displaying the test result in the suspension window.
The embodiment of the invention also discloses B6 and application test methods, which comprise the following steps:
receiving a corresponding network request generated by a tested application forwarded by an application testing device in the mobile terminal according to a testing operation;
generating a corresponding test result according to a preset test rule and the network request;
and sending the test result to the application test device for displaying.
B7, the method according to B6, wherein the method further comprises: establishing proxy connection with the mobile terminal;
the receiving a corresponding network request generated by a tested application forwarded by an application testing device in the mobile terminal according to the testing operation comprises:
and receiving a corresponding network request generated by the application to be tested sent by the application testing device through the proxy connection according to the testing operation.
B8, the method as in B7, wherein the establishing the proxy connection with the mobile terminal comprises:
initiating a buddy proxy service, establishing the proxy connection based on the buddy proxy service.
B9, the method according to B6, wherein the generating a corresponding test result according to a preset test rule and the network request includes:
generating a verification template of the specified type of data according to a preset test rule;
and converting the network request into the specified type data, and verifying the converted network request according to the verification template to obtain the test result.
The method of B10, as stated in B9, wherein, the preset test rule is stored in a file of Excel format, and the specified type data is json data.
The embodiment of the invention also discloses C11 and application test devices, which comprise:
the forwarding unit is suitable for generating a corresponding network request by the application to be tested on the mobile terminal according to the test operation and forwarding the network request to the application test server;
the receiving unit is suitable for receiving a test result generated by the application test server according to the network request;
and the display unit is suitable for displaying the test result on the mobile terminal.
C12, the device of C11, wherein,
the forwarding unit is suitable for establishing proxy connection between the mobile terminal and the application test server; forwarding the network request to the application test server based on the proxy connection.
C13, the apparatus of claim C12, wherein the proxy connection is implemented based on a fixdler proxy service on the application test server.
C14, the apparatus of C11, wherein the test operation is a manual test operation performed on the mobile terminal by a manual tester.
C15, the device of C11, wherein,
the display unit is suitable for displaying a floating window on a user interface of the application to be tested; and displaying the test result in the suspension window.
The embodiment of the invention also discloses D16 and application test servers, which comprise:
the receiving unit is suitable for receiving a tested application forwarded by the application testing device in the mobile terminal and generating a corresponding network request according to the testing operation;
the generating unit is suitable for generating a corresponding test result according to a preset test rule and the network request;
and the sending unit is suitable for sending the test result to the application testing device for displaying.
D17, the server of D16, wherein,
the receiving unit is suitable for establishing proxy connection with the mobile terminal and receiving a corresponding network request generated by the application to be tested and sent by the application testing device through the proxy connection according to the testing operation.
D18, the server of D17, wherein,
the receiving unit is adapted to start a buddy proxy service, and establish the proxy connection based on the buddy proxy service.
D19, the server of D16, wherein,
the generating unit is suitable for generating a verification template of the specified type of data according to a preset test rule; and converting the network request into the specified type data, and verifying the converted network request according to the verification template to obtain the test result.
D20, the server according to D19, wherein the preset test rules are stored in a file in an Excel format, and the data of the specified type is json data.
The embodiment of the invention also discloses E21 and application test systems, wherein the systems comprise or more application test devices as described in any of C11-C15, and application test servers as described in any of D16-D20.
Embodiments of the present invention also disclose F22, electronic devices, wherein the electronic device comprises a processor and a memory arranged to store computer executable instructions that, when executed, cause the processor to perform the method as described in any of a1-a5 or, when executed, cause the processor to perform the method as described in any of a6-a 10.
Embodiments of the present invention also disclose G23, computer readable storage media, wherein the computer readable storage media stores or more programs, which or more programs, when executed by a processor, implement the method as described in any of a1-a5 or implement the method as described in any of a6-a 10.
Claims (10)
1, application testing method, comprising:
the method comprises the steps that a corresponding network request is generated by an application to be tested on a mobile terminal according to a test operation, and the network request is forwarded to an application test server;
receiving a test result generated by the application test server according to the network request;
and displaying the test result on the mobile terminal.
2. The method of claim 1, wherein the method further comprises:
establishing proxy connection between the mobile terminal and the application test server;
the forwarding the network request to an application test server comprises: forwarding the network request to the application test server based on the proxy connection.
The application test method of includes:
receiving a corresponding network request generated by a tested application forwarded by an application testing device in the mobile terminal according to a testing operation;
generating a corresponding test result according to a preset test rule and the network request;
and sending the test result to the application test device for displaying.
4. The method of claim 3, wherein the method further comprises: establishing proxy connection with the mobile terminal;
the receiving a corresponding network request generated by a tested application forwarded by an application testing device in the mobile terminal according to the testing operation comprises:
and receiving a corresponding network request generated by the application to be tested sent by the application testing device through the proxy connection according to the testing operation.
An application testing device of , comprising:
the forwarding unit is suitable for generating a corresponding network request by the application to be tested on the mobile terminal according to the test operation and forwarding the network request to the application test server;
the receiving unit is suitable for receiving a test result generated by the application test server according to the network request;
and the display unit is suitable for displaying the test result on the mobile terminal.
6. The apparatus of claim 5, wherein,
the forwarding unit is suitable for establishing proxy connection between the mobile terminal and the application test server; forwarding the network request to the application test server based on the proxy connection.
The application test server of , comprising:
the receiving unit is suitable for receiving a tested application forwarded by the application testing device in the mobile terminal and generating a corresponding network request according to the testing operation;
the generating unit is suitable for generating a corresponding test result according to a preset test rule and the network request;
and the sending unit is suitable for sending the test result to the application testing device for displaying.
8, application testing system, wherein the system comprises or more application testing devices as claimed in any of claims 5-6 and an application testing server as claimed in claim 7.
An electronic device of 9, , wherein the electronic device comprises a processor and a memory arranged to store computer executable instructions that, when executed, cause the processor to perform the method of any of claims 1-2, , or that, when executed, cause the processor to perform the method of any of claims 3-4, .
10, computer readable storage media, wherein the computer readable storage media stores or more programs, the or more programs, when executed by a processor, implement the method of any of claims 1-2 or the method of any of claims 3-4.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810802201.1A CN110737549A (en) | 2018-07-20 | 2018-07-20 | Application testing method, device, server and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810802201.1A CN110737549A (en) | 2018-07-20 | 2018-07-20 | Application testing method, device, server and system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110737549A true CN110737549A (en) | 2020-01-31 |
Family
ID=69235393
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810802201.1A Pending CN110737549A (en) | 2018-07-20 | 2018-07-20 | Application testing method, device, server and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110737549A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111966381A (en) * | 2020-08-24 | 2020-11-20 | 宝牧科技(天津)有限公司 | Light business terminal health detection system and method |
CN112162744A (en) * | 2020-09-30 | 2021-01-01 | 中国工商银行股份有限公司 | Automatic code generation method and device based on business scene |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20120221893A1 (en) * | 2011-02-28 | 2012-08-30 | Sap Ag | Managing test automation |
CN104980471A (en) * | 2014-04-10 | 2015-10-14 | 腾讯科技(深圳)有限公司 | Network request packet report method, device and system |
CN105320598A (en) * | 2015-11-24 | 2016-02-10 | 广州华多网络科技有限公司 | Software testing method and device |
CN105577453A (en) * | 2016-02-24 | 2016-05-11 | 北京奇虎科技有限公司 | System and method for realizing application test of mobile terminals |
CN106547687A (en) * | 2016-10-14 | 2017-03-29 | 深圳前海微众银行股份有限公司 | Application testing method, device and system |
CN106897207A (en) * | 2015-12-17 | 2017-06-27 | 北京奇虎科技有限公司 | Ui testing method and apparatus |
WO2018014580A1 (en) * | 2016-07-20 | 2018-01-25 | 平安科技(深圳)有限公司 | Data interface test method and apparatus, and server and storage medium |
CN107832210A (en) * | 2017-10-27 | 2018-03-23 | 广州四三九九信息科技有限公司 | Access method of testing, device and a server are buried in daily record |
-
2018
- 2018-07-20 CN CN201810802201.1A patent/CN110737549A/en active Pending
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20120221893A1 (en) * | 2011-02-28 | 2012-08-30 | Sap Ag | Managing test automation |
CN104980471A (en) * | 2014-04-10 | 2015-10-14 | 腾讯科技(深圳)有限公司 | Network request packet report method, device and system |
CN105320598A (en) * | 2015-11-24 | 2016-02-10 | 广州华多网络科技有限公司 | Software testing method and device |
CN106897207A (en) * | 2015-12-17 | 2017-06-27 | 北京奇虎科技有限公司 | Ui testing method and apparatus |
CN105577453A (en) * | 2016-02-24 | 2016-05-11 | 北京奇虎科技有限公司 | System and method for realizing application test of mobile terminals |
WO2018014580A1 (en) * | 2016-07-20 | 2018-01-25 | 平安科技(深圳)有限公司 | Data interface test method and apparatus, and server and storage medium |
CN106547687A (en) * | 2016-10-14 | 2017-03-29 | 深圳前海微众银行股份有限公司 | Application testing method, device and system |
CN107832210A (en) * | 2017-10-27 | 2018-03-23 | 广州四三九九信息科技有限公司 | Access method of testing, device and a server are buried in daily record |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111966381A (en) * | 2020-08-24 | 2020-11-20 | 宝牧科技(天津)有限公司 | Light business terminal health detection system and method |
CN112162744A (en) * | 2020-09-30 | 2021-01-01 | 中国工商银行股份有限公司 | Automatic code generation method and device based on business scene |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108683562B (en) | Anomaly detection positioning method and device, computer equipment and storage medium | |
WO2018184361A1 (en) | Application test method, server, terminal, and storage media | |
CN111177005A (en) | Service application testing method, device, server and storage medium | |
CN111858296B (en) | Interface testing method, device, equipment and storage medium | |
CN109815119B (en) | APP link channel testing method and device | |
CN110196800B (en) | Distributed transaction testing method, device and system | |
CN109522181B (en) | Performance test method, device and equipment of distributed storage system | |
CN111597110B (en) | Page test method and device, electronic equipment and storage medium | |
CN111198797B (en) | Operation monitoring method and device and operation analysis method and device | |
CN110737549A (en) | Application testing method, device, server and system | |
CN111767229A (en) | Performance test method, device and equipment | |
CN112965711B (en) | Job testing method and device, electronic equipment and storage medium | |
CN112671574B (en) | Front-end and back-end joint debugging method and device, proxy equipment and storage medium | |
CN111949537A (en) | Interface test method, device, equipment and medium | |
US9304891B1 (en) | Load-test generator | |
CN111400117A (en) | Method for automatically testing Ceph cluster | |
CN116738091A (en) | Page monitoring method and device, electronic equipment and storage medium | |
CN113238940B (en) | Interface test result comparison method, device, equipment and storage medium | |
CN112486824B (en) | Case code generation method, device, computer equipment and storage medium | |
CN115344490A (en) | Method and device for testing software product, storage medium and electronic equipment | |
CN111339380B (en) | Interface time-consuming data processing method and related device | |
CN115048295A (en) | Test method, test device, test terminal and computer readable storage medium | |
CN114036060A (en) | Method, system and computer readable medium for chip testing | |
CN114371866A (en) | Version reconfiguration test method, device and equipment of service system | |
CN111209198A (en) | Debugging method and device based on JPDA, electronic equipment and storage medium |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20200131 |
|
RJ01 | Rejection of invention patent application after publication |