CN110825616A - Automatic test system for mobile terminal equipment in local area network - Google Patents
Automatic test system for mobile terminal equipment in local area network Download PDFInfo
- Publication number
- CN110825616A CN110825616A CN201910910580.0A CN201910910580A CN110825616A CN 110825616 A CN110825616 A CN 110825616A CN 201910910580 A CN201910910580 A CN 201910910580A CN 110825616 A CN110825616 A CN 110825616A
- Authority
- CN
- China
- Prior art keywords
- test
- jump
- parameter
- program
- 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
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3672—Test management
- G06F11/3688—Test management for test execution, e.g. scheduling of test suites
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3672—Test management
- G06F11/3684—Test management for test design, e.g. generating new test cases
Abstract
The invention discloses an automatic test system for mobile terminal equipment in a local area network, which aims at two mobile terminal equipment which are positioned in the same local area network and are a client and a server, realizes automatic function test, solves the problems of overhigh labor cost and overlong time period in a test stage, improves the test efficiency and coverage rate, and effectively reduces the missing test rate.
Description
Technical Field
The invention belongs to the technical field of software testing, and particularly relates to an automatic testing system for mobile terminal equipment in a local area network.
Background
The mobile terminal device refers to a computer device that can be used in mobile, and broadly includes a mobile phone, a notebook, a tablet computer, a POS machine, and even a vehicle-mounted computer. Generally, two mobile terminal devices which are mutually interactive and are located in the same local area network, one mobile terminal device serves as a server side, the other mobile terminal device serves as a client side, the two mobile terminal devices can mutually send signaling, and response is carried out according to the received signaling. With the development of networks and technologies towards wider and wider bandwidths, the mobile communication industry has moved to the real mobile information age, and the applications of mobile terminal devices are more and more extensive, so that the testing of the mobile terminal devices is more and more important.
In the prior art, for the function test of the mobile terminal device, it is usually necessary to manually identify a program to be tested, manually compile a large number of repeated test cases, and then manually perform the test and verification regression by a tester on the basis, which often consumes more labor cost in the process, and has more repetitive test work, especially, when a new program is added to the mobile terminal device, the process needs to be re-executed, which consumes more time, has high labor cost, has low test efficiency, and is prone to the missing test phenomenon with incomplete coverage in different degrees.
Disclosure of Invention
In view of the above, the invention provides an automated testing system for mobile terminal devices in a local area network, which is used for realizing automated function testing for two mobile terminal devices which are located in the same local area network and are a client and a server, solves the problems of overhigh labor cost and overlong time period in a testing stage, improves testing efficiency and coverage rate, and effectively reduces the missing rate.
The invention provides an automatic test system for mobile terminal equipment in a local area network, which comprises a configuration unit, a test case generation unit, a test execution unit and a test report generation unit, wherein the configuration unit is used for generating a test case;
the configuration unit is used for configuring the equipment name and the port number of the mobile terminal equipment aiming at a program to be detected running on the mobile terminal equipment, setting the configuration time, the program name, the functional elements and the parameter tuple of the program to be detected and generating a configuration file, wherein the parameter tuple comprises the parameter name, the parameter value and the element name;
the test case generating unit is used for determining whether the program to be tested is a newly added program or not according to the configuration time, the program name and the functional elements which are set in the configuration file; if the new program is added, determining a test case generation mode according to the event type recorded in the element name, and when the event type is a click event, determining a server expected result according to the client expected result set in the parameter name and the parameter value, and generating a test case on the basis; when the event type is an input event, determining a plurality of parameter values which accord with the regulation according to the parameter range, the parameter type and the input length which are set in the parameter values, and generating a plurality of test cases on the basis; when the event type is a jump event, inquiring and recording the parameter value of the jump page in the configuration file according to the jump button information and the jump page set in the parameter value, after iterating to the last jump page, forming a jump event dictionary by the recorded jump pages, and generating an independent test case for each jump page according to the jump event dictionary; if the program is not the newly added program, outputting the existing test case;
the test execution unit generates a test script according to the test case generated by the test case generation unit, executes the test script, and completes the test of the program to be tested through the interaction with the mobile terminal equipment to form a test result;
and the test report generating unit is used for generating a test analysis report according to the test result obtained by the test executing unit.
Further, the test case comprises a case number, a case name, a precondition, a parameter name, an event type, a client expected value and a server expected value.
Further, the jump event dictionary is a key-value pair consisting of jump button information and a jump-to page.
Has the advantages that:
according to the invention, the test cases are automatically generated according to the set configuration file, so that the problem that a large number of repeated test cases need to be compiled by a tester is solved, the labor cost is saved, the coverage rate is improved, meanwhile, the automatic execution of the test cases is realized, the automatic execution of multiple rounds of tests can be realized, the test missing rate is effectively reduced, and the test time period is shortened.
Detailed Description
The present invention will be described in detail below with reference to examples.
The invention provides an automatic test system for mobile terminal equipment in a local area network, which is deployed on a server in the same local area network with the mobile terminal equipment to be tested, and has the basic idea that: and aiming at the program to be tested running on the mobile terminal equipment to be tested, establishing a configuration file, automatically generating a test case according to the established configuration file, automatically executing the generated test case, and finally automatically generating a test analysis report.
The invention provides an automatic test system for mobile terminal equipment in a local area network, which comprises a configuration unit, a test case generation unit, a test execution unit and a test report generation unit, wherein:
the configuration unit is configured to configure the device name, the port number and other device information of the mobile terminal device for a to-be-tested program running on the to-be-tested mobile terminal device, set configuration time, a program name, a functional element and a parameter tuple of the to-be-tested program, generate a configuration file, and simultaneously configure a test case and a test analysis report pre-storage path.
The test case generation unit reads the configuration file and generates a test case according to the parameter tuple in the configuration file, and the content of the test case needs to include: the method comprises the following steps of case number, case name, precondition, parameter name, event type, client expected value and server expected value. Determining whether the program to be tested is a newly added program or not according to the configuration time, the program name and the functional elements which are set in the configuration file; if the event is a newly added program, determining a test case generation mode according to the event type recorded in the element name, and when the event type is a click event, determining a server expected result according to a client expected result set in the parameter name and the parameter value and a response mode of a server agreed by the event, and generating a test case on the basis; when the event type is an input event, determining a plurality of parameter values which accord with the regulation according to the parameter range, the parameter type and the input length set in the parameter values, and generating a plurality of test cases on the basis; when the event type is a jump event, inquiring and recording the parameter value of the jump page in a configuration file according to jump button information and the jump page set in the parameter value, after iterating to the last jump page, forming a jump event dictionary by the recorded jump page, and generating an independent test case for each jump page according to the jump event dictionary; and if the program is not the new program, outputting the existing test case.
The input event of the present invention, the type of the parameter value may be a number or a character, and the following details are provided:
for the condition that the parameter values are numbers, a boundary value analysis method can be adopted to generate a plurality of parameter values so as to generate a plurality of test cases, the case names, the events and the formats of the expected results of the local terminal of the test cases are all consistent, and the expected results of the opposite terminal are different according to whether the data are in a specified range;
for the case that the parameter values are characters, multiple test cases can be generated by combining the methods of equivalence class division and boundary value analysis.
And the test execution unit generates a plurality of test scripts according to the test cases after the test cases are generated, and automatically executes the test scripts. For example, if two buttons a and B exist in the required test program at the same time, the mode a is entered when the button a is clicked, and the mode B is entered when the button B is clicked, two test scripts need to be generated according to the test case. Since the programs on the interactive mobile terminal device to be tested all send HTTP requests to perform communication, the HTTP requests sent by the two parties need to be obtained, and whether the element values expected to be obtained in the test case are consistent or not is confirmed by analyzing the information carried in the packet in the requests, if so, the test is passed, and if not, the test is failed. And recording the execution condition of the test case in the test analysis report, and storing the test case in a report storage path configured in the configuration file.
For example: supposing that the current test case is a click event, automatically opening a program on a client by a script, finishing simulated click, sending an instruction corresponding to the event to a server through an HTTP protocol, monitoring a sending request by a monitoring service, intercepting the request, analyzing the consistency of information in a data packet and a value to be sent in the script, reconstructing the HTTP request, sending the HTTP request to the server, replying to the client by the server after receiving the request and performing corresponding operation, intercepting again after monitoring the request sent by the server, judging whether the test case passes through by judging whether the information carries a value defined in advance through a packet body, and recording the value into a corresponding log. And then continuing to perform the next test case until all the test cases in the script are executed, and exiting. And after all the scripts are executed, the monitoring service is closed, and the test service is finished.
And the test report generating unit is used for recording whether the expected result and the actual result of the client and the server are consistent or not in the test process when the test case is automatically executed, and writing the specific test case number, name and actual test result into the analysis report of the current script by combining the detailed information of the test case in the test script. And after all the test scripts are executed, summarizing each analysis report to generate a complete test analysis report.
In summary, the above description is only a preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims (3)
1. An automated testing system for mobile terminal equipment in a local area network is characterized by comprising a configuration unit, a test case generation unit, a test execution unit and a test report generation unit;
the configuration unit is used for configuring the equipment name and the port number of the mobile terminal equipment aiming at a program to be detected running on the mobile terminal equipment, setting the configuration time, the program name, the functional elements and the parameter tuple of the program to be detected and generating a configuration file, wherein the parameter tuple comprises the parameter name, the parameter value and the element name;
the test case generating unit is used for determining whether the program to be tested is a newly added program or not according to the configuration time, the program name and the functional elements which are set in the configuration file; if the new program is added, determining a test case generation mode according to the event type recorded in the element name, and when the event type is a click event, determining a server expected result according to the client expected result set in the parameter name and the parameter value, and generating a test case on the basis; when the event type is an input event, determining a plurality of parameter values which accord with the regulation according to the parameter range, the parameter type and the input length which are set in the parameter values, and generating a plurality of test cases on the basis; when the event type is a jump event, inquiring and recording the parameter value of the jump page in the configuration file according to the jump button information and the jump page set in the parameter value, after iterating to the last jump page, forming a jump event dictionary by the recorded jump pages, and generating an independent test case for each jump page according to the jump event dictionary; if the program is not the newly added program, outputting the existing test case;
the test execution unit generates a test script according to the test case generated by the test case generation unit, executes the test script, and completes the test of the program to be tested through the interaction with the mobile terminal equipment to form a test result;
and the test report generating unit is used for generating a test analysis report according to the test result obtained by the test executing unit.
2. The system of claim 1, wherein the test cases comprise a case number, a case name, a precondition, a parameter name, an event type, a client expected value, and a server expected value.
3. The system of claim 1, wherein the jump event dictionary is a key-value pair consisting of jump button information and a jump-to page.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910910580.0A CN110825616A (en) | 2019-09-25 | 2019-09-25 | Automatic test system for mobile terminal equipment in local area network |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910910580.0A CN110825616A (en) | 2019-09-25 | 2019-09-25 | Automatic test system for mobile terminal equipment in local area network |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110825616A true CN110825616A (en) | 2020-02-21 |
Family
ID=69548277
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910910580.0A Pending CN110825616A (en) | 2019-09-25 | 2019-09-25 | Automatic test system for mobile terminal equipment in local area network |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110825616A (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104123227A (en) * | 2014-08-13 | 2014-10-29 | 广东电网公司信息中心 | Method for automatically generating testing cases |
CN104391786A (en) * | 2014-10-31 | 2015-03-04 | 任子行网络技术股份有限公司 | Webpage automatic test system and method thereof |
CN104536889A (en) * | 2014-12-26 | 2015-04-22 | 北京奇虎科技有限公司 | Method and system for testing user interface, use case management platform and operating terminal |
US20150339213A1 (en) * | 2014-05-21 | 2015-11-26 | Cgi Technologies And Solutions Inc. | Automated testing of an application system |
CN108304324A (en) * | 2018-01-22 | 2018-07-20 | 百度在线网络技术(北京)有限公司 | Method for generating test case, device, equipment and storage medium |
-
2019
- 2019-09-25 CN CN201910910580.0A patent/CN110825616A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20150339213A1 (en) * | 2014-05-21 | 2015-11-26 | Cgi Technologies And Solutions Inc. | Automated testing of an application system |
CN104123227A (en) * | 2014-08-13 | 2014-10-29 | 广东电网公司信息中心 | Method for automatically generating testing cases |
CN104391786A (en) * | 2014-10-31 | 2015-03-04 | 任子行网络技术股份有限公司 | Webpage automatic test system and method thereof |
CN104536889A (en) * | 2014-12-26 | 2015-04-22 | 北京奇虎科技有限公司 | Method and system for testing user interface, use case management platform and operating terminal |
CN108304324A (en) * | 2018-01-22 | 2018-07-20 | 百度在线网络技术(北京)有限公司 | Method for generating test case, device, equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10872034B2 (en) | Method, device and computer program product for executing test cases | |
US9672137B1 (en) | Shadow test replay service | |
CN108399114B (en) | System performance testing method and device and storage medium | |
US10185650B1 (en) | Testing service with control testing | |
US9836388B1 (en) | Software testing environment that includes a duplicating proxy service | |
US10824549B1 (en) | System and method for regression testing of an application programming interface | |
CN110750458A (en) | Big data platform testing method and device, readable storage medium and electronic equipment | |
CN110557299A (en) | network transmission function batch test method, system, terminal and storage medium | |
US20180357143A1 (en) | Testing computing devices | |
CN106776346B (en) | Test method and device of CCMTS (China center testing System) equipment | |
CN109522181B (en) | Performance test method, device and equipment of distributed storage system | |
CN106713011B (en) | Method and system for obtaining test data | |
CN108009086B (en) | System automation test method based on case decomposition and function learning | |
CN111464384A (en) | Consistency test method and device for asynchronous messages | |
CN108600007B (en) | Cloud platform responsibility tracing method and system | |
CN111400171B (en) | Interface testing method, system and device and readable storage medium | |
CN113127356A (en) | Pressure measurement method and device, electronic equipment and storage medium | |
CN116545891A (en) | Automatic distribution network testing method based on intelligent equipment | |
CN107832176A (en) | Hard disk pressure automatic test approach and system under a kind of Windows | |
CN116383025A (en) | Performance test method, device, equipment and medium based on Jmeter | |
CN116467188A (en) | Universal local reproduction system and method under multi-environment scene | |
CN110825616A (en) | Automatic test system for mobile terminal equipment in local area network | |
CN111400117B (en) | Method for automatically testing Ceph cluster | |
CN108255715B (en) | Test result processing method and terminal equipment | |
CN114385498A (en) | Performance test method, system, computer equipment and readable 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 | ||
WD01 | Invention patent application deemed withdrawn after publication | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20200221 |