CN112363952A - Method for automatically testing software test software functional logic - Google Patents
Method for automatically testing software test software functional logic Download PDFInfo
- Publication number
- CN112363952A CN112363952A CN202011398972.2A CN202011398972A CN112363952A CN 112363952 A CN112363952 A CN 112363952A CN 202011398972 A CN202011398972 A CN 202011398972A CN 112363952 A CN112363952 A CN 112363952A
- Authority
- CN
- China
- Prior art keywords
- test
- software
- item
- case table
- automatic
- 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
Images
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/3696—Methods or tools to render software testable
Abstract
The invention discloses a method for automatically testing software test software functional logic, which comprises the following steps: compiling a test case table, and taking the test case table as the test rule input of the automatic test software; the automatic test software reads the test case table, obtains the relevant information to test item by item and captures the relevant printing item by item, records the execution result by reading the key words in the printing, records the position of the appointed result, and keeps the relevant printing; and the automatic test software summarizes the test results to generate a final test report. The method automatically performs automatic application function logic test through a test case table. The automatic test software obtains the functional points to be tested and the corresponding expected results, times and tags to be collected by reading the test case table, carries out automatic functional logic test on the software and finally generates a result table. Compared with a manual method, the method saves labor cost and time cost.
Description
Technical Field
The invention relates to the field of automatic testing, in particular to a method for automatically testing software functional logic.
Background
The current software automation test is mainly the monkey test. The principle of Monkey testing is that software on equipment is tested by sending a pseudorandom user event stream (such as key input, gesture operation and the like) to a system, the software stability is detected, and error information is collected.
The advantages and disadvantages of the Monkey test are obvious. Has the advantages that: the command sent randomly can test the situations outside a plurality of basic processes, and the potential threats of the software are exposed, so that a developer can take measures to avoid in advance; the disadvantages are that: the randomness of the command makes the monkey test unable to be used for the software functional logic test, the software test cannot depend on randomness, and the functional logic test of the software is the most important test.
The current software function test is mainly manual test, testers write test cases according to a software function book and then perform operation test according to items, test conditions are recorded manually, the process is very complicated, and a large amount of time is consumed.
Disclosure of Invention
The invention aims to provide a method for automatically testing software test function logic, which aims to solve the problems in the background technology, read a formulated test case table, perform related tests on software, judge an execution result by capturing a corresponding log, record the execution result, and automatically generate a test result table after the test is finished. The method is used for special test of software functional logic.
In order to achieve the purpose, the invention adopts the following technical scheme:
a method for automatically testing software functional logic comprises the following steps:
compiling a test case table, and taking the test case table as the test rule input of the automatic test software;
the automatic test software reads the test case table, obtains the relevant information to test item by item and captures the relevant printing item by item, records the execution result by reading the key words in the printing, records the position of the appointed result, and keeps the relevant printing;
and the automatic test software summarizes the test results to generate a final test report.
Further, the test case table includes: a test item; number of tests/time; testing the expected result; printing the keywords; result key.
Further, the test report includes: on the basis of the test case table, the execution result summarization, the special condition collection and the content addition according to the requirement are added.
Compared with the prior art, the invention has the beneficial effects that:
compared with the existing manual test, the method for automatically testing the software function logic saves the complex process, only needs to compile a test case table, can actively test after the automatic test software reads the test case table, generates a final test report, and can also store other related information according to the requirement. And error points are marked in the table, error information is stored, and developers can read and solve problems conveniently.
Drawings
FIG. 1 is a flow chart of a prior art software functional logic test;
FIG. 2 is a flow chart of a method of the present invention for automatically testing software functional logic;
Detailed Description
The present invention will be further described with reference to the following examples, which are intended to illustrate only some, but not all, of the embodiments of the present invention. Based on the embodiments of the present invention, other embodiments used by those skilled in the art without any creative effort belong to the protection scope of the present invention.
Example 1:
the technical solution of the present invention will be fully described below with reference to the accompanying drawings. As shown in fig. 1, the current software functional logic test flow is as follows: the method comprises the steps that a tester writes test cases one by one according to a software function tree, the test cases are input into a relevant system after writing is completed, an auditor audits one by one, the tester tests manually one by one after the audit is passed, then test results are recorded, and finally a test report is generated.
Based on the above problems, from the automated testing perspective, the automated testing software automatically performs testing by reading a testing rule file, reads relevant information, and generates a testing report according to a testing result after the testing is finished. The invention is realized by the following scheme: test case table, automated test software. The method specifically comprises the following steps:
as shown in fig. 2: step1, compiling a test case table, wherein each specific function point is taken as one item in the test case table, and the content of each item comprises: 1. specific test contents; 2. number of tests/time; 3. an expected execution result; 4. a printed keyword (tag) that needs to be captured.
Firstly, drawing a corresponding test case table by using a function tree, wherein the test case table comprises the following contents: the functional points that need to be tested, the expected results, and the number of times that testing is needed.
Step2, the automatic test software reads the test case table, obtains the relevant information to test item by item and capture the relevant printing one by one, records the execution result by reading the keywords in the printing, such as success, failure and the like, records the position where the specified result (such as failure) appears, and keeps the relevant printing. Taking a login account as an example, after an account password is filled in according to a set rule (such as inputting characters into an account password box randomly, or fixing the account, or automatically filling according to a certain account password table, etc.), the login is clicked, a login result is filtered firstly and printed according to a printing keyword (tag) provided by a developer, then relevant key information in printing, such as login success, login failure, etc., is read, an execution result is recorded, printing is reserved as required, and the position where a specified situation occurs is recorded.
Step3. generating a test report. On the basis of the test case table, the test times/time of each item and the corresponding execution result are summarized to generate a final summary table.
The method mainly aims at the problems that automatic testing cannot be performed on the logic of the application body, testing can only be performed through manual operation, the process is complicated, and the consumption of human resources is high.
The method automatically performs automatic application function logic test through a test case table. The automatic test software obtains the functional points to be tested and the corresponding expected results, times and tags to be collected by reading the test case table, carries out automatic functional logic test on the software and finally generates a result table. Compared with a manual method, the method saves labor cost and time cost.
The above description is only a preferred embodiment of the present invention, and the present invention is not limited thereto. It will be apparent to those skilled in the art that various modifications and improvements can be made without departing from the spirit and substance of the invention, and these modifications and improvements are also considered to be within the scope of the invention.
Claims (3)
1. A method for automatically testing software functional logic is characterized by comprising the following steps:
compiling a test case table, and taking the test case table as the test rule input of the automatic test software;
the automatic test software reads the test case table, obtains the relevant information to test item by item and captures the relevant printing item by item, records the execution result by reading the key words in the printing, records the position of the appointed result, and keeps the relevant printing;
and the automatic test software summarizes the test results to generate a final test report.
2. The method for automatically testing software functional logic according to claim 1, wherein the test case table comprises: a test item; number of tests/time; testing the expected result; printing the keywords; result key.
3. The method for automatically testing the software functional logic of the software according to claim 1, wherein the test report comprises: on the basis of the test case table, the execution result summarization, the special condition collection and the content addition according to the requirement are added.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011398972.2A CN112363952A (en) | 2020-12-03 | 2020-12-03 | Method for automatically testing software test software functional logic |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011398972.2A CN112363952A (en) | 2020-12-03 | 2020-12-03 | Method for automatically testing software test software functional logic |
Publications (1)
Publication Number | Publication Date |
---|---|
CN112363952A true CN112363952A (en) | 2021-02-12 |
Family
ID=74536864
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011398972.2A Pending CN112363952A (en) | 2020-12-03 | 2020-12-03 | Method for automatically testing software test software functional logic |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112363952A (en) |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20030101041A1 (en) * | 2001-10-30 | 2003-05-29 | International Business Machines Corporation | Annealing harvest event testcase collection within a batch simulation farm |
CN101500255A (en) * | 2008-02-03 | 2009-08-05 | 中国移动通信集团公司 | Mobile terminal test method and system |
CN108549605A (en) * | 2018-04-13 | 2018-09-18 | 郑州云海信息技术有限公司 | A kind of automated testing method |
-
2020
- 2020-12-03 CN CN202011398972.2A patent/CN112363952A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20030101041A1 (en) * | 2001-10-30 | 2003-05-29 | International Business Machines Corporation | Annealing harvest event testcase collection within a batch simulation farm |
CN101500255A (en) * | 2008-02-03 | 2009-08-05 | 中国移动通信集团公司 | Mobile terminal test method and system |
CN108549605A (en) * | 2018-04-13 | 2018-09-18 | 郑州云海信息技术有限公司 | A kind of automated testing method |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Dallmeier et al. | Mining object behavior with ADABU | |
CN104461894A (en) | Android App operating recording device and method | |
CN109871326A (en) | A kind of method and apparatus that script is recorded | |
CN111756575A (en) | Performance analysis method and device of storage server and electronic equipment | |
CN103577310A (en) | Method and device for recording software debugging logs | |
CN110018954B (en) | Code quality detection method, device and equipment, and code detection quality evaluation method, device and equipment | |
US20070150870A1 (en) | Method and apparatus for context oriented computer program tracing and visualization | |
CN106598834A (en) | UI (User Interface) testing method and device | |
Amalfitano et al. | The DynaRIA tool for the comprehension of Ajax web applications by dynamic analysis | |
CN112433948A (en) | Simulation test system and method based on network data analysis | |
CN107622017B (en) | Analysis method for universal automation software test | |
Xu | System problem detection by mining console logs | |
CN110287700B (en) | iOS application security analysis method and device | |
CN113065300A (en) | Method, system and device for backtracking simulation waveform in chip EDA (electronic design automation) simulation | |
Hayes et al. | Towards traceable test-driven development | |
CN103365772B (en) | Software test automatic evaluation device and method | |
CN106201857A (en) | The choosing method of test case and device | |
CN201548954U (en) | Device for automatically testing Web page | |
CN111611176B (en) | Automatic generation method, system and medium for universal interface coverage rate model verification environment | |
Schmid et al. | A survey of simulation tools for requirements engineering | |
CN112363952A (en) | Method for automatically testing software test software functional logic | |
Jayathilake | A mind map based framework for automated software log file analysis | |
US20170206153A1 (en) | Simulating process variable changes during process runtime | |
WO2007098615A1 (en) | Legacy application modernization by capturing, processing and analysing business processes | |
CN107885648B (en) | Method and device for generating test report |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20210212 |