CN111897714A - Test data precipitation method, device and system based on auxiliary test tool - Google Patents
Test data precipitation method, device and system based on auxiliary test tool Download PDFInfo
- Publication number
- CN111897714A CN111897714A CN202010585500.1A CN202010585500A CN111897714A CN 111897714 A CN111897714 A CN 111897714A CN 202010585500 A CN202010585500 A CN 202010585500A CN 111897714 A CN111897714 A CN 111897714A
- Authority
- CN
- China
- Prior art keywords
- test
- data
- test case
- tax
- tax information
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000012360 testing method Methods 0.000 title claims abstract description 196
- 238000001556 precipitation Methods 0.000 title claims abstract description 21
- 238000000034 method Methods 0.000 title claims abstract description 18
- 238000004590 computer program Methods 0.000 claims description 16
- 238000000151 deposition Methods 0.000 claims description 14
- 238000003860 storage Methods 0.000 claims description 9
- 230000029305 taxis Effects 0.000 claims description 4
- 230000008021 deposition Effects 0.000 claims 3
- 230000006870 function Effects 0.000 description 5
- 238000004364 calculation method Methods 0.000 description 3
- 230000008569 process Effects 0.000 description 3
- 238000013500 data storage Methods 0.000 description 2
- 238000011161 development Methods 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 238000004519 manufacturing process Methods 0.000 description 2
- 238000012795 verification Methods 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 230000008878 coupling Effects 0.000 description 1
- 238000010168 coupling process Methods 0.000 description 1
- 238000005859 coupling reaction Methods 0.000 description 1
- 238000013524 data verification Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000009472 formulation Methods 0.000 description 1
- 238000012423 maintenance Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 238000011160 research Methods 0.000 description 1
- 239000007787 solid 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/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
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q40/00—Finance; Insurance; Tax strategies; Processing of corporate or income taxes
- G06Q40/12—Accounting
- G06Q40/123—Tax preparation or submission
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Business, Economics & Management (AREA)
- Physics & Mathematics (AREA)
- Accounting & Taxation (AREA)
- General Physics & Mathematics (AREA)
- Finance (AREA)
- General Engineering & Computer Science (AREA)
- Development Economics (AREA)
- Quality & Reliability (AREA)
- Computer Hardware Design (AREA)
- Marketing (AREA)
- Technology Law (AREA)
- Economics (AREA)
- Strategic Management (AREA)
- General Business, Economics & Management (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
- Debugging And Monitoring (AREA)
Abstract
The invention discloses a test data precipitation method based on an auxiliary test tool, which is executed by the auxiliary test tool and comprises the following steps: acquiring account information from an electronic tax system and extracting test case data; the tax information in the account information is copied, the taxpayer identification number in the test case data is replaced by the tax information, the test case data containing the tax information is obtained, and the test case data containing the tax information is stored in an automatic test platform database; extracting the test case data containing the tax information in the automatic test platform database, and importing the tax information in the test case data containing the tax information into a form filling page of the electronic tax system to replace manual filling of a large amount of form data; the invention realizes the reusability of test data and provides massive data support for the subsequent test work.
Description
Technical Field
The invention relates to the technical field of data testing, in particular to a test data precipitation method, a test data precipitation device and a test data precipitation system based on an auxiliary test tool.
Background
The existing test data creating process is as follows: inserting or updating SQL by manual compiling of testers, manufacturing or modifying test case data, and manufacturing different test case data according to different service types; or manually filling a large amount of data into a form verification page to perform function verification, and checking whether necessary data is input into an input box. The idea of tangent plane programming is a technology for dynamically adding functions to a program without modifying source codes, and tangent plane programming can be conveniently realized by using a self-research framework in background development.
But the declaration service is various in types and complex in service; particularly in the tax industry, due to frequent tax policy change, the business relates to a large amount of business data calculation, the accuracy requirement on the data calculation is high, a large amount of input and submission operations are required during testing, and contents such as a calculation formula and data verification are tested. And under the low efficiency of manual testing, regression testing is frequent, repeated labor is boring, test data cannot be reused, inheritance is not caused, and the test quality is not absolutely guaranteed. In the development of an electronic tax system, business codes of the system are often required to be adjusted according to different national policies, and when the business codes are adjusted, a tester cannot be always put into maintenance and updating of test case data like a developer puts into the codes, so that the test case data cannot keep up with iterative updating of the codes.
Disclosure of Invention
The invention provides a test data precipitation method, a test data precipitation device and a test data precipitation system based on an auxiliary test tool, which can realize reusability of test data and provide massive data support for subsequent test work.
In order to solve the above technical problem, an embodiment of the present invention provides a test data deposition method based on an auxiliary test tool, which is executed by the auxiliary test tool, and includes:
after the auxiliary testing tool is injected into the electronic tax system, triggering a data acquisition instruction so as to respond to the data acquisition instruction to acquire account information from the electronic tax system and extract test case data;
the tax information in the account information is copied, the taxpayer identification number in the test case data is replaced by the tax information, the test case data containing the tax information is obtained, and the test case data containing the tax information is stored in an automatic test platform database;
and extracting the test case data containing the tax information in the automatic test platform database, and importing the tax information in the test case data containing the tax information into a form filling page of the electronic tax system to replace manual filling of a large amount of form data.
Preferably, the tax information includes a taxpayer identification number and declaration information thereof.
The embodiment of the present invention further provides a test data precipitation apparatus, including:
the data acquisition module is used for triggering a data acquisition instruction after the auxiliary test tool is injected into the electronic tax system, so as to respond to the data acquisition instruction to acquire account information from the electronic tax system and extract test case data;
the copying and unloading module is used for copying the tax information in the account information, replacing the taxpayer identification number in the test case data with the tax information to obtain the test case data containing the tax information, and storing the test case data containing the tax information in an automatic test platform database;
and the data multiplexing module is used for extracting the test case data containing the tax information in the automatic test platform database, and importing the tax information in the test case data containing the tax information into a form filling page of the electronic tax system to replace manual filling of a large amount of form data.
Preferably, the tax information includes a taxpayer identification number and declaration information thereof.
The embodiment of the present invention further provides a test data precipitation system, including: the system comprises a server, an electronic tax system, an auxiliary testing tool and an automatic testing platform;
the server is used for responding to the test case request instruction and determining to inject an auxiliary test tool according to rule configuration;
the electronic tax system is used for transmitting account information to the auxiliary testing tool;
the auxiliary test tool is used for executing the auxiliary test tool-based test data precipitation method in any one of the above embodiments;
the automatic test platform is used for managing the test case data containing the tax information and depositing the data to a large test case database.
As a preferred scheme, the specific step of managing the test case data containing the tax information includes: and distributing scenes and associating taxes to each piece of test case data.
An embodiment of the present invention further provides a computer-readable storage medium, where the computer-readable storage medium includes a stored computer program; wherein the computer program, when executed, controls an apparatus in which the computer readable storage medium is located to perform any one of the test data deposition methods based on an auxiliary test tool as described above.
An embodiment of the present invention further provides a terminal device, which includes a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, where the processor, when executing the computer program, implements the test data deposition method based on the auxiliary test tool as described in any one of the above.
Compared with the prior art, the embodiment of the invention has the following beneficial effects:
1. the invention realizes that the data of the current login account of the electronic tax system is acquired under the condition of not modifying the application source code, and the data is cloned, modified and stored and is precipitated as the test data of the service test environment, thereby forming a large test case data database and providing massive data support for tax service test.
2. The functions and services of the original system are not influenced, and the coupling of the auxiliary testing tool and the electronic tax system is low.
3. The tedious repeated labor of testing personnel is reduced, and the testing quality is improved.
4. The system can be flexibly started and closed according to the configuration.
Drawings
FIG. 1: the method is a flow diagram I of a test data precipitation method based on an auxiliary test tool;
FIG. 2: the invention provides a flow chart diagram II of a test data precipitation method based on an auxiliary test tool.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1 and 2, a preferred embodiment of the present invention provides a test data deposition method based on an auxiliary test tool, which is executed by the auxiliary test tool and includes:
and S1, after the auxiliary test tool is injected into the electronic tax system, triggering a data acquisition instruction to respond to the data acquisition instruction to acquire account information from the electronic tax system and extract test case data.
S2, the tax information in the account information is copied, the taxpayer identification number in the test case data is replaced by the tax information, the test case data containing the tax information is obtained, and the test case data containing the tax information is stored in an automatic test platform database; in this embodiment, the tax information includes the taxpayer identification number and the declaration information thereof.
And S3, extracting the test case data containing the tax information in the automatic test platform database, and importing the tax information in the test case data containing the tax information into a form filling page of the electronic tax system to replace manual filling of a large amount of form data.
Correspondingly, the embodiment of the invention also provides a test data precipitation device, which comprises:
and the data acquisition module is used for triggering a data acquisition instruction after the auxiliary test tool is injected into the electronic tax system, so as to respond to the data acquisition instruction to acquire account information from the electronic tax system and extract test case data.
The copying and unloading module is used for copying the tax information in the account information, replacing the taxpayer identification number in the test case data with the tax information to obtain the test case data containing the tax information, and storing the test case data containing the tax information in an automatic test platform database; in this embodiment, the tax information includes the taxpayer identification number and the declaration information thereof.
And the data multiplexing module is used for extracting the test case data containing the tax information in the automatic test platform database, and importing the tax information in the test case data containing the tax information into a form filling page of the electronic tax system to replace manual filling of a large amount of form data.
The embodiment of the present invention further provides a test data precipitation system, including: the system comprises a server, an electronic tax system, an auxiliary testing tool and an automatic testing platform;
the server is used for responding to the test case request instruction and determining to inject an auxiliary test tool according to rule configuration;
the electronic tax system is used for transmitting account information to the auxiliary testing tool;
the auxiliary test tool is used for executing the auxiliary test tool-based test data precipitation method in any one of the above embodiments;
the automatic test platform is used for managing the test case data containing the tax information and depositing the data to a large test case database. In this embodiment, the specific step of managing the test case data containing the tax information includes: and distributing scenes and associating taxes to each piece of test case data.
The method specifically comprises the following steps:
1. the browser requests the electronic tax system HTML page from the server.
2. And the electronic tax system determines whether to inject an auxiliary testing tool according to rule configuration, if not, the server returns to the original electronic tax system, and if so, the server returns to the electronic tax system injected with the auxiliary testing tool.
3. Through the auxiliary test tool, test case data can be copied, stored and reused, and the method is applied to a new service scene, and the specific process is as follows:
(1) copying: the auxiliary testing tool is injected into the electronic tax system to acquire data in the electronic tax system, such as taxpayer identification numbers, declaration information of the taxpayer identification numbers and the like. Then, the account information is copied, and the tax information is used for replacing the taxpayer identification number to become a new test case data which already has the tax information;
(2) unloading: the auxiliary test tool stores the copied test case data into an automatic test platform database;
(3) multiplexing: the auxiliary testing tool obtains the copied test case data from the automatic testing platform database, and the tax information is imported into the form filling page of the electronic tax system to replace manual filling of a large amount of form data.
4. The automatic test platform manages the test case data which are transferred and stored through the auxiliary test tool, and each piece of test case data is allocated with a scene, associated with taxes and deposited as a large test case database.
The invention obtains the data of the current login account of the electronic tax system under the condition of not modifying the application source code: the data is cloned, modified and stored through an auxiliary test tool, and the data is precipitated as service test environment test data to form a test case data big database; the data can be managed and reused through an automatic test platform, and massive data support is provided for tax service tests.
An embodiment of the present invention further provides a computer-readable storage medium, where the computer-readable storage medium includes a stored computer program; wherein the computer program controls, when running, an apparatus in which the computer readable storage medium is located to execute the test data deposition method based on the auxiliary test tool according to any of the above embodiments.
The embodiment of the present invention further provides a terminal device, where the terminal device includes a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, and the processor, when executing the computer program, implements the test data deposition method based on the auxiliary test tool according to any of the above embodiments.
Preferably, the computer program may be divided into one or more modules/units (e.g., computer program) that are stored in the memory and executed by the processor to implement the invention. The one or more modules/units may be a series of computer program instruction segments capable of performing specific functions, which are used for describing the execution process of the computer program in the terminal device.
The Processor may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, a discrete Gate or transistor logic device, a discrete hardware component, etc., the general purpose Processor may be a microprocessor, or the Processor may be any conventional Processor, the Processor is a control center of the terminal device, and various interfaces and lines are used to connect various parts of the terminal device.
The memory mainly includes a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required for at least one function, and the like, and the data storage area may store related data and the like. In addition, the memory may be a high speed random access memory, may also be a non-volatile memory, such as a plug-in hard disk, a Smart Memory Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like, or may also be other volatile solid state memory devices.
It should be noted that the terminal device may include, but is not limited to, a processor and a memory, and those skilled in the art will understand that the terminal device is only an example and does not constitute a limitation of the terminal device, and may include more or less components, or combine some components, or different components.
The above-mentioned embodiments are provided to further explain the objects, technical solutions and advantages of the present invention in detail, and it should be understood that the above-mentioned embodiments are only examples of the present invention and are not intended to limit the scope of the present invention. It should be understood that any modifications, equivalents, improvements and the like, which come within the spirit and principle of the invention, may occur to those skilled in the art and are intended to be included within the scope of the invention.
Claims (8)
1. A test data deposition method based on auxiliary test tools is characterized by being executed by the auxiliary test tools and comprising the following steps:
after the auxiliary testing tool is injected into the electronic tax system, triggering a data acquisition instruction so as to respond to the data acquisition instruction to acquire account information from the electronic tax system and extract test case data;
the tax information in the account information is copied, the taxpayer identification number in the test case data is replaced by the tax information, the test case data containing the tax information is obtained, and the test case data containing the tax information is stored in an automatic test platform database;
and extracting the test case data containing the tax information in the automatic test platform database, and importing the tax information in the test case data containing the tax information into a form filling page of the electronic tax system to replace manual filling of a large amount of form data.
2. The auxiliary test tool-based test data deposition method of claim 1, wherein the tax information comprises tax payer identification numbers and declaration information thereof.
3. A test data precipitation apparatus, comprising:
the data acquisition module is used for triggering a data acquisition instruction after the auxiliary test tool is injected into the electronic tax system, so as to respond to the data acquisition instruction to acquire account information from the electronic tax system and extract test case data;
the copying and unloading module is used for copying the tax information in the account information, replacing the taxpayer identification number in the test case data with the tax information to obtain the test case data containing the tax information, and storing the test case data containing the tax information in an automatic test platform database;
and the data multiplexing module is used for extracting the test case data containing the tax information in the automatic test platform database, and importing the tax information in the test case data containing the tax information into a form filling page of the electronic tax system to replace manual filling of a large amount of form data.
4. The test data deposition apparatus of claim 3, wherein the tax information comprises a taxpayer identification number and declaration information thereof.
5. A test data deposition system, comprising: the system comprises a server, an electronic tax system, an auxiliary testing tool and an automatic testing platform;
the server is used for responding to the test case request instruction and determining to inject an auxiliary test tool according to rule configuration;
the electronic tax system is used for transmitting account information to the auxiliary testing tool;
the auxiliary test tool is for performing the auxiliary test tool based test data precipitation method of any one of claim 1 or claim 2;
the automatic test platform is used for managing the test case data containing the tax information and depositing the data to a large test case database.
6. The test data precipitation system of claim 5, wherein the specific step of managing the test case data containing tax information comprises: and distributing scenes and associating taxes to each piece of test case data.
7. A computer-readable storage medium, characterized in that the computer-readable storage medium comprises a stored computer program; wherein the computer program, when executed, controls an apparatus in which the computer-readable storage medium is located to perform the method of test data deposition based on an assistive test tool of any of claims 1 or 2.
8. A terminal device comprising a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, the processor implementing the assistive test tool-based test data precipitation method of any one of claims 1 or 2 when executing the computer program.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010585500.1A CN111897714B (en) | 2020-06-24 | 2020-06-24 | Test data precipitation method, device and system based on auxiliary test tool |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010585500.1A CN111897714B (en) | 2020-06-24 | 2020-06-24 | Test data precipitation method, device and system based on auxiliary test tool |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111897714A true CN111897714A (en) | 2020-11-06 |
CN111897714B CN111897714B (en) | 2024-03-26 |
Family
ID=73207807
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010585500.1A Active CN111897714B (en) | 2020-06-24 | 2020-06-24 | Test data precipitation method, device and system based on auxiliary test tool |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111897714B (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20030233296A1 (en) * | 2000-12-01 | 2003-12-18 | Wagner Brad H. | System and method for automated form generation and comparison |
CN105553769A (en) * | 2015-12-15 | 2016-05-04 | 北京奇虎科技有限公司 | Data collecting-analyzing system and method |
CN106204259A (en) * | 2016-07-25 | 2016-12-07 | 贝才禾兑网络科技南京有限公司 | Automatic tax declaration method based on browser |
CN108876291A (en) * | 2018-05-25 | 2018-11-23 | 江苏财税通信息科技有限公司 | A kind of enterprise operation data collection system, method and cloud server |
CN109359273A (en) * | 2018-09-05 | 2019-02-19 | 航天信息软件技术有限公司 | A kind of method and system for being interacted to the property tax data of acquisition |
CN109815292A (en) * | 2019-01-03 | 2019-05-28 | 广州中软信息技术有限公司 | A kind of concerning taxes data collection system based on asynchronous message mechanism |
-
2020
- 2020-06-24 CN CN202010585500.1A patent/CN111897714B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20030233296A1 (en) * | 2000-12-01 | 2003-12-18 | Wagner Brad H. | System and method for automated form generation and comparison |
CN105553769A (en) * | 2015-12-15 | 2016-05-04 | 北京奇虎科技有限公司 | Data collecting-analyzing system and method |
CN106204259A (en) * | 2016-07-25 | 2016-12-07 | 贝才禾兑网络科技南京有限公司 | Automatic tax declaration method based on browser |
CN108876291A (en) * | 2018-05-25 | 2018-11-23 | 江苏财税通信息科技有限公司 | A kind of enterprise operation data collection system, method and cloud server |
CN109359273A (en) * | 2018-09-05 | 2019-02-19 | 航天信息软件技术有限公司 | A kind of method and system for being interacted to the property tax data of acquisition |
CN109815292A (en) * | 2019-01-03 | 2019-05-28 | 广州中软信息技术有限公司 | A kind of concerning taxes data collection system based on asynchronous message mechanism |
Also Published As
Publication number | Publication date |
---|---|
CN111897714B (en) | 2024-03-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108268253B (en) | Interface code generation method and terminal equipment | |
CN108459962B (en) | Code normalization detection method and device, terminal equipment and storage medium | |
CN109584082A (en) | Settlement of insurance claim method, electronic device and storage medium based on block chain | |
CN115185550A (en) | Service deployment method, device, computer equipment and storage medium | |
CN111290961A (en) | Interface test management method and device and terminal equipment | |
CN104363112A (en) | Parameter management method and parameter management device | |
US20110010348A1 (en) | Rule-based record profiles to automate record declaration of electronic documents | |
CN114528201A (en) | Abnormal code positioning method, device, equipment and medium | |
CN117215558A (en) | Visual software development method, device, equipment and medium for android | |
US11347533B2 (en) | Enhanced virtual machine image management system | |
CN116599881A (en) | Cloud platform tenant modeling test method, device, equipment and storage medium | |
CN111897714A (en) | Test data precipitation method, device and system based on auxiliary test tool | |
CN108255823B (en) | Method and device for reading invoice information | |
CN114637672A (en) | Automatic data testing method and device, computer equipment and storage medium | |
CN114157662A (en) | Cloud platform parameter adaptation method and device, terminal equipment and storage medium | |
CN113515452A (en) | Automatic test method and system for application, electronic equipment and storage medium | |
CN109582330B (en) | Data model upgrading method, device, equipment and readable storage medium | |
CN111399832A (en) | Page editing method and device | |
KR101737575B1 (en) | Method and device for verifying data based on sql sentences generated automatically | |
CN110728584B (en) | Information processing method and device, readable storage medium and electronic equipment | |
CN110716863A (en) | Method, system, terminal and storage medium for testing mandatory access control rule | |
CN112347095B (en) | Data table processing method, device and server | |
CN114896139A (en) | Data processing method and device for application engineering, electronic equipment and storage medium | |
CN117251431A (en) | Method, device, equipment and storage medium for processing business data in throwing account | |
CN115269660A (en) | Cache data processing method and device, 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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |