CN110543424B - Test method and device for electronic tax platform - Google Patents

Test method and device for electronic tax platform Download PDF

Info

Publication number
CN110543424B
CN110543424B CN201910839777.XA CN201910839777A CN110543424B CN 110543424 B CN110543424 B CN 110543424B CN 201910839777 A CN201910839777 A CN 201910839777A CN 110543424 B CN110543424 B CN 110543424B
Authority
CN
China
Prior art keywords
test
electronic tax
script
function
tax platform
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.)
Active
Application number
CN201910839777.XA
Other languages
Chinese (zh)
Other versions
CN110543424A (en
Inventor
褚为民
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Anhui Aisino Corp
Original Assignee
Anhui Aisino Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Anhui Aisino Corp filed Critical Anhui Aisino Corp
Priority to CN201910839777.XA priority Critical patent/CN110543424B/en
Publication of CN110543424A publication Critical patent/CN110543424A/en
Application granted granted Critical
Publication of CN110543424B publication Critical patent/CN110543424B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3676Test management for coverage analysis
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3692Test management for test results analysis

Abstract

The invention provides a testing method and a testing device for an electronic tax platform, wherein the testing method comprises the following steps: constructing an automatic test system; testing the specific function of the electronic tax platform according to the automatic testing system; the system includes an automated test framework comprising at least: a function catalog including a plurality of basic sub-functions for implementing basic functions; a configuration catalog including configuration information for the automated test framework; an execution catalog for calling the basic subfunction and testing; and the statistics catalog is used for counting the test results. The test method can automatically test the whole functions of the electronic tax platform, reduces the manual participation of unchanged functions, saves the time of testers, and greatly reduces the cost of the stages of testing, maintaining and upgrading the electronic tax platform; and error information can be fed back in time when test submission is wrong, so that timely repair is facilitated.

Description

Test method and device for electronic tax platform
Technical Field
The invention relates to the technical field of automatic testing, in particular to a testing method and device for an electronic tax platform.
Background
At present, the electronic tax platform often undergoes iterative upgrading of versions due to business needs, and at the moment, the overall function of the electronic tax platform needs to be tested so as to discover defects and correct the defects in time, thereby guaranteeing the quality of websites. However, the test for the electronic tax platform is usually a manual test, and the manual test has the disadvantages of large workload, multiple repeated tests, time waste, high cost, easy error and difficult realization of regression test.
It follows that there is a need for a new testing method for electronic tax platforms.
Disclosure of Invention
The invention solves the problems that: traditional testing for electronic tax platforms is time consuming and difficult to implement regression testing.
In order to solve the above problems, the present invention provides a testing method for an electronic tax platform, including:
constructing an automatic test system;
testing the specific function of the electronic tax platform according to the automatic testing system;
the automated test system includes an automated test framework including at least:
a function catalog including a plurality of basic sub-functions for implementing basic functions;
a configuration catalog including configuration information for the automated test framework;
an execution catalog for calling the basic subfunction and testing;
and the statistics catalog is used for counting the test results.
Optionally, constructing an automated test system includes:
building an automatic test framework based on python+selenium;
under the automatic test framework, generating a public script for a public method of the electronic tax platform;
and generating an automatic script program according to the public script.
Optionally, after generating the public script for the public method of the electronic tax platform under the automated test framework, the test method further includes:
a test script is generated for the particular function.
Optionally, the public script includes a login method class, a submitting method class, a switching iframe method class, a menu searching method class, a method class for generating a test report and sending a mail and a declared information voiding method class.
Optionally, the executing steps of the login method class include:
calling a public login method, positioning a login element of the electronic tax platform and clicking;
and switching the iframe to a login bullet frame, selecting a login mode according to the account information, and logging in.
Optionally, the executing steps of the menu searching method class include:
after successful login, switching to an iframe of the current page of the electronic tax platform;
clearing the content in the condition frame, and transmitting the value of the function name to be inquired;
clicking a search button, inquiring a menu and entering a function interface of the electronic tax platform.
Compared with the prior art, the testing method for the electronic tax platform has the following advantages:
the testing method can automatically test the whole functions of the electronic tax platform in daily iteration upgrading of the electronic tax platform, reduces the manual participation of unchanged functions, can timely and effectively return old functions in version iteration upgrading, saves the time of testers, and greatly reduces the cost of stages of testing, maintaining and upgrading the electronic tax platform; and error information can be fed back in time when test submission is wrong, so that timely repair is facilitated.
Another objective of the present invention is to provide a testing device for an electronic tax platform, so as to solve the problems that the traditional testing for the electronic tax platform wastes time and is difficult to realize regression testing.
In order to achieve the above purpose, the technical scheme of the invention is realized as follows:
a test device for an electronic tax platform, comprising:
the system construction unit is used for constructing an automatic test system;
the test unit is used for testing the specific function of the electronic tax platform according to the automatic test system;
the automated test system includes an automated test framework including at least:
a function catalog including a plurality of basic sub-functions for implementing basic functions;
a configuration catalog including configuration information for the automated test framework;
an execution catalog for calling the basic subfunction and testing;
and the statistics catalog is used for counting the test results.
Optionally, the system building unit includes:
the frame building module is used for building an automatic test frame based on python+selenium;
the script generation module is used for generating a public script of a public method aiming at the electronic tax platform under the automatic test framework;
the script generation module is also used for generating an automatic script program according to the public script.
Optionally, the public script includes a login method class, a submitting method class, a switching iframe method class, a menu searching method class, a method class for generating a test report and sending a mail and a declared information voiding method class.
The testing device has the same advantages as the testing method compared with the prior art, and is not described herein.
Another object of the present invention is to provide a computer readable storage medium to solve the problems that the conventional test for electronic tax platform is time-consuming and it is difficult to implement regression test.
In order to achieve the above purpose, the technical scheme of the invention is realized as follows:
a computer readable storage medium storing a computer program which, when read and run by a processor, implements any one of the test methods described above.
The computer readable storage medium has the same advantages as those of the above test method compared with the prior art, and will not be described herein.
Drawings
FIG. 1 is a flow chart of a test method for an electronic tax platform according to an embodiment of the invention;
FIG. 2 is a flowchart of step S1 according to an embodiment of the present invention;
FIG. 3 is a flowchart illustrating a login method class according to an embodiment of the present invention;
FIG. 4 is a flowchart illustrating a menu search method according to an embodiment of the present invention;
FIG. 5 is a flowchart of step S14 according to an embodiment of the present invention;
FIG. 6 is a schematic diagram of a testing apparatus for an electronic tax platform according to an embodiment of the present invention;
fig. 7 is a schematic diagram of a system construction unit according to an embodiment of the present invention.
Reference numerals illustrate:
10-a system construction unit; 101-building a module by a frame; 102-a script generation module; 20-test unit.
Description of the embodiments
In order that the above objects, features and advantages of the invention will be readily understood, a more particular description of the invention will be rendered by reference to specific embodiments thereof which are illustrated in the appended drawings.
As shown in fig. 1, a flowchart of a testing method for an electronic tax platform in this embodiment is shown, where the method includes:
step S1, an automatic test system is constructed;
step S2, testing the specific function of the electronic tax platform according to the automatic testing system;
the automated test system includes an automated test framework including at least:
a function catalog including a plurality of basic sub-functions for implementing basic functions;
a configuration catalog including configuration information for the automated test framework;
an execution catalog for calling the basic subfunction and testing;
and the statistics catalog is used for counting the test results.
Wherein the automated testing system is used for testing specific functions of the electronic tax platform, such as a testing system based on python+selenium or java+selenium. After the automatic test system is built, the automatic test system is operated, so that the specific function of the electronic tax platform can be tested. The specific functions are specific functions of the electronic tax platform, and comprise functions of login, submission, clicking of options, information input and the like.
In this way, the embodiment can automatically test the whole function of the electronic tax platform in daily iteration upgrading of the electronic tax platform, reduces the manual participation of unchanged functions, can timely and effectively return old functions in version iteration upgrading, saves the time of testers, and greatly reduces the cost of stages of testing, maintaining and upgrading the electronic tax platform; and error information can be fed back in time when test submission is wrong, so that timely repair is facilitated.
Optionally, as shown in fig. 2, step S1 includes:
step S11, constructing an automatic test framework based on python+selenium;
step S12, under the automatic test framework, generating a public script of a public method for the electronic tax platform;
and step S13, generating an automatic script program according to the public script.
Wherein the automation test framework is used to enable the execution environment to effectively develop, execute and report automation test scripts, the present embodiment preferably installs the python version 3.0 and the selenium version 2.0. Python is a computer programming language, which is an object-oriented dynamic type language. selenium is a tool for Web application testing, which runs directly in the browser, as if the real user were operating, and includes several parts such as IDE, gild, webDriver, etc., while the selenium supports multiple programming languages including python, and based on the flexibility and simplicity of the python language, the present embodiment selects a combination of python and selenium for automated test design.
Specifically, the python+selenium-based automated test framework in this embodiment includes:
bin directory (the execution directory) containing a master function file;
a conf catalog (the configuration catalog) containing all configuration information used in the framework and all the configuration information are stored in a setting file under the conf catalog; setting.py files under the conf directory are configuration files, and related information can be added in the configuration files aiming at different configurations, so that unified management is facilitated;
the core catalog (the function catalog) comprises a calling method package of a database, a function page self-defining method, an automation script distinguished according to functions and a mail sending method; class and method for distinguishing and calling different functional pages by class in page_obj file under core directory; the test_case file under the core directory has the functions of automatic script and mail sending separated according to the functions;
the Logs catalog is used for storing log files printed after each execution;
a Reports catalog (the statistics catalog) that retains the generated results after the automated script execution is completed;
the UploadFiles directory may specify attachment upload for attachments that are ready for functionality that requires the attachment to be uploaded.
Thus, the embodiment can construct an automatic testing system based on python+selenium so as to test the specific function of the electronic tax platform; and the automated testing system based on python+selenium can perform page simulation operation on the specific function of the electronic tax platform, so that the regression efficiency and the resource utilization rate are improved.
Optionally, as shown in fig. 2, after step S12, the testing method further includes:
step S14, generating a test script for the specific function.
The test script is used for carrying out smoke test, and the development of the test script comprises a main flow development stage and a verification function test development stage aiming at specific functions.
The main flow test corresponding to the main flow development stage is controlled by the test level, so that the normal service function can be ensured. After the main flow test, development script verification test is carried out on some important verification information of all functions, if the important verification information is required to meet the requirement that a small-scale enterprise can be used for the service, a box-flicking prompt message is generated when a general tax payer enterprise is used for the service; the important information comprises qualification check, filling item check and format check. The verification function test for specific functions can ensure that the details of each function are normal.
Thus, all functions of the electronic tax platform can be ensured to be normal.
Optionally, the public script includes a login method class, a submitting method class, a switching iframe method class, a menu searching method class, a method class for generating a test report and sending a mail and a declared information voiding method class.
The electronic tax platform in this embodiment has a login function, a submission function, a search function, a declared information revocation function, and the like, wherein the submission function includes submission of non-declared items and declared items.
The public script can be called to test the specific function of the electronic tax platform, so that the automatic login of the electronic tax platform is realized, and the information of the submitting function is automatically input and submitted; the method class of generating the test report and sending the mail is called, the test report can be formed when the test submission is wrong and sent to the mailbox of the tester, so that the tester can track the cause of the functional error in time, and repair in time is facilitated; and the declared information voiding method class is called, and the automatic voiding and refreshing functions in declaration can be realized through the voiding method.
Optionally, as shown in fig. 3, the steps of executing the login method class include:
step S30, calling a public login method, positioning a login element of the electronic tax platform and clicking;
step S31, switching the iframe to a login bullet frame, and selecting a login mode according to account information and logging in.
The method comprises the steps of selecting a common user or natural person login mode according to account information (i.e. id), inputting an account and a password sliding verification code according to the position of an input box element, clicking to login, and performing the next operation after successful login.
Therefore, the login function of the electronic tax platform can be simulated, and different login modes can be provided according to different user selections.
Optionally, as shown in fig. 4, the implementation steps of the menu searching method class include:
step S40, after successful login, switching to an iframe of the current page of the electronic tax platform;
step S41, clearing the content in the condition frame, and transmitting the value of the function name to be inquired;
and step S42, clicking a 'search' button, inquiring a menu and entering a function interface of the electronic tax platform.
The content in the condition frame is cleared through a clear method, and the function name to be queried is transmitted through a send_key method.
Thus, the menu searching function of the electronic tax platform can be simulated.
The submitting method class of the embodiment comprises a reporting class submitting method and a non-reporting class submitting method;
for the reporting class submitting method, after the reporting interface inputs data, the iframe is switched to the iframe of the current reporting popup window, then the reporting popup window is clicked through positioning of a reporting element, the occurring popup frame information is stored in a jy_test file and printed after the reporting is clicked, judgment processing is carried out on the printed information, and particularly after the reporting report page inputs related data, a reporting button is clicked.
For the non-declaration class submitting method, according to different selections of modules to which service functions belong, different submitting methods find a 'save' button and click through element positioning, a confirmation popup frame is obtained after clicking, the position of the 'confirm' button is obtained through the element positioning method and clicked, submitting is carried out, after submitting successfully, popup frame information prompting successful submitting is saved in a text file and printed, and the information in the text file is subjected to assertion processing.
Optionally, the non-declaration class submitting method includes a new version class submitting method for function transformation, an invoice service submitting method, a tax-related service submitting method, a tax payer project (old function) submitting method, a sharing service (old function) submitting method, a preferential transaction service submitting method and a value-added tax service submitting method.
Thus, a proper submitting method can be selected according to different projects, and all non-declaration type function submissions of the electronic tax platform are ensured to be covered.
The switch iframe method class of the embodiment provides switch_to_ parent, switch _to_ iframe, switch _to_iframe_by_name, switch_to_iframe_by_ tagname, switch _to_iframe_by_index, switch_to_iframe_ contains, switch _to_iframe_by_id 7 methods, which are uniformly placed in a base_page file under a page_obj folder, and can be selected according to the actual function situation. An iframe is an HTML tag that acts as a document in a document, or a floating frame (frame), and an iframe element creates an inline frame (i.e., a row inside frame) that contains another document.
Therefore, the method for switching the iframes according to different attribute values can be flexibly switched according to the iframes of the located bullet frames.
The method for implementing the declared information voiding method is to search the latest record of the corresponding function by inquiring the declared information and click the voiding button to implement voiding of the record.
The realization of the method for generating the test report and sending the mail is to display the statistical pie chart of the test condition and the error detailed information according to the test result of the automatic execution, send the mail to the mail box of the appointed tester, and enable the tester to track the problematic items in time.
Optionally, as shown in fig. 5, step S14 includes:
step S141, calling the login method class and the menu searching method class to enter a specific function page;
step S142, calling the submitting method class after the data is input.
This allows for automated script generation for specific functions.
The embodiment also provides a testing device for an electronic tax platform, as shown in fig. 6, including:
a system construction unit 10, the system construction unit 10 being configured to construct an automated test system;
a test unit 20, wherein the test unit 20 is used for testing specific functions of the electronic tax platform according to the automatic test system;
the automated test system includes an automated test framework including at least:
a function catalog including a plurality of basic sub-functions for implementing basic functions;
a configuration catalog including configuration information for the automated test framework;
an execution catalog for calling the basic subfunction and testing;
and the statistics catalog is used for counting the test results.
Wherein the automated testing system is used for testing specific functions of the electronic tax platform, such as a testing system based on python+selenium or java+selenium. After the automatic test system is built, the automatic test system is operated, so that the specific function of the electronic tax platform can be tested. The specific functions are specific functions of the electronic tax platform, and comprise functions of login, submission, clicking of options, information input and the like.
In this way, the testing device for the electronic tax platform can automatically test the whole function of the electronic tax platform in daily iteration upgrading of the electronic tax platform, reduces the manual participation of unchanged functions, can timely and effectively return the old function in version iteration upgrading, saves the time of a tester, and greatly reduces the cost of stages of testing, maintaining and upgrading the electronic tax platform; and error information can be fed back in time when test submission is wrong, so that timely repair is facilitated.
Alternatively, as shown in fig. 7, the system construction unit 10 includes:
a frame construction module 101, wherein the frame construction module 101 is used for constructing an automated test frame based on python+selenium;
a script generation module 102, where the script generation module 102 is configured to generate, under the automation test framework, a public script for a public method of the electronic tax platform;
the script generation module 102 is further configured to generate an automation script program according to the public script.
Thus, the embodiment can construct an automatic testing system based on python+selenium so as to test the specific function of the electronic tax platform; and the automated testing system based on python+selenium can perform page simulation operation on the specific function of the electronic tax platform, so that the regression efficiency and the resource utilization rate are improved.
Optionally, the script generating module 102 is further configured to generate a test script for the specific function.
The generation of test scripts for the specific functions in script generation module 102 occurs after the generation of public scripts for public methods of the electronic tax platform.
The test script is used for carrying out smoke test, and the development of the test script comprises a main flow development stage and a verification function test development stage aiming at specific functions. The main flow test corresponding to the main flow development stage is controlled by the test level, so that the normal service function can be ensured. After the main flow test, development script verification test is carried out on some important verification information of all functions, if the important verification information is required to meet the requirement that a small-scale enterprise can be used for the service, a box-flicking prompt message is generated when a general tax payer enterprise is used for the service; the important information comprises qualification check, filling item check and format check. The verification function test for specific functions can ensure that the details of each function are normal.
Thus, all functions of the electronic tax platform can be ensured to be normal.
Optionally, the public script includes a login method class, a submitting method class, a switching iframe method class, a menu searching method class, a method class for generating a test report and sending a mail and a declared information voiding method class.
The electronic tax platform in this embodiment has a login function, a submission function, a search function, a declared information revocation function, and the like, wherein the submission function includes submission of non-declared items and declared items.
The public script can be called to test the specific function of the electronic tax platform, so that the automatic login of the electronic tax platform is realized, and the information of the submitting function is automatically input and submitted; the method class of generating the test report and sending the mail is called, the test report can be formed when the test submission is wrong and sent to the mailbox of the tester, so that the tester can track the cause of the functional error in time, and repair in time is facilitated; and the declared information voiding method class is called, and the automatic voiding and refreshing functions in declaration can be realized through the voiding method.
The login method is realized by calling a public login method, positioning and clicking a login element of the electronic tax platform, switching an iframe to a login bullet frame, and selecting a login mode according to account information and logging in.
The method comprises the steps of selecting a common user or natural person login mode according to account information (i.e. id), inputting an account and a password sliding verification code according to the position of an input box element, clicking to login, and performing the next operation after successful login.
Therefore, the login function of the electronic tax platform can be simulated, and different login modes can be provided according to different user selections.
After successful login, the method is switched to an iframe of the current page of the electronic tax platform, the content in a condition frame is cleared, the value of the function name to be inquired is transmitted, a search button is clicked, menu inquiry is carried out, and the function interface of the electronic tax platform is entered. The content in the condition frame is cleared through a clear method, and the function name to be queried is transmitted through a send_key method.
Thus, the menu searching function of the electronic tax platform can be simulated.
The submitting method class of the embodiment comprises a reporting class submitting method and a non-reporting class submitting method;
for the reporting class submitting method, after the reporting interface inputs data, the iframe is switched to the iframe of the current reporting popup window, then the reporting popup window is clicked through positioning of a reporting element, the occurring popup frame information is stored in a jy_test file and printed after the reporting is clicked, judgment processing is carried out on the printed information, and particularly after the reporting report page inputs related data, a reporting button is clicked.
For the non-declaration class submitting method, according to different selections of modules to which service functions belong, different submitting methods find a 'save' button and click through element positioning, a confirmation popup frame is obtained after clicking, the position of the 'confirm' button is obtained through the element positioning method and clicked, submitting is carried out, after submitting successfully, popup frame information prompting successful submitting is saved in a text file and printed, and the information in the text file is subjected to assertion processing.
Optionally, the non-declaration class submitting method includes a new version class submitting method for function transformation, an invoice service submitting method, a tax-related service submitting method, a tax payer project (old function) submitting method, a sharing service (old function) submitting method, a preferential transaction service submitting method and a value-added tax service submitting method.
Thus, a proper submitting method can be selected according to different projects, and all function submitting of the electronic tax platform is ensured to be covered.
The switch iframe method class of the embodiment provides switch_to_ parent, switch _to_ iframe, switch _to_iframe_by_name, switch_to_iframe_by_ tagname, switch _to_iframe_by_index, switch_to_iframe_ contains, switch _to_iframe_by_id 7 methods, which are uniformly placed in a base_page file under a page_obj folder, and can be selected according to the actual function situation. iframe is an HTML tag that acts as a document in a document, or a floating frame (fram). The iframe element creates an inline frame (i.e., a row inside frame) that contains another document.
Therefore, the method for switching the iframes according to different attribute values can be flexibly switched according to the iframes of the located bullet frames.
The method for implementing the declared information voiding method is to search the declared information, find a record with the latest corresponding function, click the voiding button and implement voiding of the record. The realization of the method for generating the test report and sending the mail is to display the statistical pie chart of the test condition and the error detailed information according to the test result of the automatic execution, send the mail to the mail box of the appointed tester, and enable the tester to track the problematic items in time.
Optionally, the script generating module 102 includes:
the calling sub-module is used for calling the login method class and the menu searching method class to enter a specific function page;
the calling sub-module is also used for calling the submitting method class after the data is input.
This allows for automated script generation for specific functions.
The embodiment also provides a computer readable storage medium, wherein the computer readable storage medium stores a computer program, and when the computer program is read and executed by a processor, the computer program realizes any one of the test methods for the electronic tax platform.
In this way, the computer readable storage medium of the embodiment can automatically test the whole function of the electronic tax platform in daily iteration upgrading of the electronic tax platform, reduces the manual participation of unchanged functions, can timely and effectively return old functions in version iteration upgrading, saves the time of testers, and greatly reduces the cost of stages of testing, maintaining and upgrading the electronic tax platform; and error information can be fed back in time when test submission is wrong, so that timely repair is facilitated.
Although the present disclosure is described above, the scope of protection of the present disclosure is not limited thereto. Various changes and modifications may be made by one skilled in the art without departing from the spirit and scope of the disclosure, and these changes and modifications will fall within the scope of the invention.

Claims (8)

1. A test method for an electronic tax platform, comprising:
constructing an automatic test system;
the build automation test system includes: building an automatic test framework based on python+selenium; under the automatic test framework, generating a public script of a public method aiming at the electronic tax platform, and generating a test script aiming at a specific function; generating an automatic script program according to the public script;
the development of the test script comprises a main flow development stage and a verification function development stage aiming at a specific function; the main flow test corresponding to the main flow development stage is controlled through a test level, so that the normal service function can be ensured; the verification function development stage is to carry out development script verification test on some verification information of all functions, and the development script verification test can ensure that the details of each function are normal;
testing the specific function of the electronic tax platform according to the automatic testing system;
the automated test framework comprises at least:
a function catalog including a plurality of basic sub-functions for implementing basic functions;
a configuration catalog including configuration information for the automated test framework;
an execution catalog for calling the basic subfunction and testing;
and the statistics catalog is used for counting the test results.
2. The test method for an electronic tax platform of claim 1, wherein the public scripts include a login method class, a submit method class, a switch iframe method class, a menu search method class, a generate test report and send mail method class, and a declared information voiding method class.
3. The method for testing an electronic tax platform according to claim 2, wherein the step of executing the login method class comprises:
calling a public login method, positioning a login element of the electronic tax platform and clicking;
and switching the iframe to a login bullet frame, selecting a login mode according to the account information, and logging in.
4. A test method for an electronic tax platform according to claim 3, wherein the step of executing the menu search method class comprises:
after successful login, switching to an iframe of the current page of the electronic tax platform;
clearing the content in the condition frame, and transmitting the value of the function name to be inquired;
clicking a search button, inquiring a menu and entering a function interface of the electronic tax platform.
5. A test device for an electronic tax platform, comprising:
the system construction unit is used for constructing an automatic test system; the build automation test system includes: building an automatic test framework based on python+selenium; under the automatic test framework, generating a public script of a public method aiming at the electronic tax platform, and generating a test script aiming at a specific function; generating an automatic script program according to the public script; the development of the test script comprises a main flow development stage and a verification function development stage aiming at a specific function; the main flow test corresponding to the main flow development stage is controlled through a test level, so that the normal service function can be ensured; the verification function development stage is to carry out development script verification test on some verification information of all functions, and the development script verification test can ensure that the details of each function are normal;
the test unit is used for testing the specific function of the electronic tax platform according to the automatic test system;
the automated test framework comprises at least:
a function catalog including a plurality of basic sub-functions for implementing basic functions;
a configuration catalog including configuration information for the automated test framework;
an execution catalog for calling the basic subfunction and testing;
and the statistics catalog is used for counting the test results.
6. The test device for an electronic tax platform of claim 5, wherein the system construction unit comprises:
the frame building module is used for building an automatic test frame based on python+selenium;
the script generation module is used for generating a public script of a public method aiming at the electronic tax platform under the automatic test framework;
the script generation module is also used for generating an automatic script program according to the public script.
7. The test device for an electronic tax platform of claim 6, wherein the common scripts comprise a login method class, a submit method class, a switch iframe method class, a menu search method class, a generate test report and send mail method class, and a declared information voiding method class.
8. A computer readable storage medium, characterized in that the computer readable storage medium stores a computer program which, when read and run by a processor, implements the method according to any of claims 1-4.
CN201910839777.XA 2019-09-06 2019-09-06 Test method and device for electronic tax platform Active CN110543424B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910839777.XA CN110543424B (en) 2019-09-06 2019-09-06 Test method and device for electronic tax platform

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910839777.XA CN110543424B (en) 2019-09-06 2019-09-06 Test method and device for electronic tax platform

Publications (2)

Publication Number Publication Date
CN110543424A CN110543424A (en) 2019-12-06
CN110543424B true CN110543424B (en) 2023-05-05

Family

ID=68712788

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910839777.XA Active CN110543424B (en) 2019-09-06 2019-09-06 Test method and device for electronic tax platform

Country Status (1)

Country Link
CN (1) CN110543424B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111737036B (en) * 2020-06-08 2024-02-02 中国工商银行股份有限公司 Service processing method and device based on robot flow automation

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1994009466A1 (en) * 1992-10-09 1994-04-28 Educational Testing Service System and method for computer based testing
EP1478193A2 (en) * 2003-05-13 2004-11-17 Samsung Electronics Co., Ltd. Generation of test streams for testing digital TV software
CN101814052A (en) * 2010-02-04 2010-08-25 浪潮集团山东通用软件有限公司 Automatic test method
CN104468275A (en) * 2014-12-18 2015-03-25 辽宁生产力促进中心 Industrial cluster creative platform testing device and method
CN108197021A (en) * 2017-12-28 2018-06-22 深圳市彬讯科技有限公司 A kind of web system automated testing method, device, equipment and storage medium
US10162734B1 (en) * 2016-07-20 2018-12-25 Intuit Inc. Method and system for crowdsourcing software quality testing and error detection in a tax return preparation system
CN109426611A (en) * 2017-08-31 2019-03-05 贵州白山云科技股份有限公司 A kind of method for testing software and device
CN109656804A (en) * 2018-09-27 2019-04-19 深圳壹账通智能科技有限公司 Automated testing method, equipment, storage medium and device
CN110096425A (en) * 2018-12-10 2019-08-06 厦门市美亚柏科信息股份有限公司 A kind of automated testing method based on QT development mode, device and storage medium

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9037928B2 (en) * 2012-01-01 2015-05-19 Mosys, Inc. Memory device with background built-in self-testing and background built-in self-repair
CN102075381A (en) * 2010-12-14 2011-05-25 云海创想信息技术(北京)有限公司 Automatic test platform server and system applied to cloud storage
CN103678104B (en) * 2012-09-17 2018-04-27 腾讯科技(深圳)有限公司 Automated testing method and device based on data
US20170147480A1 (en) * 2013-04-23 2017-05-25 Google Inc. Test script generation
CN106383784A (en) * 2016-09-20 2017-02-08 上海爱数信息技术股份有限公司 Software automated test method and system
CN107562626B (en) * 2017-08-31 2020-06-02 国家电网公司 Method for realizing Web automatic test by encapsulating Selenium and Sikuli
CN110109831A (en) * 2019-04-24 2019-08-09 中科恒运股份有限公司 Automated test frame system, automated testing method and terminal device

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1994009466A1 (en) * 1992-10-09 1994-04-28 Educational Testing Service System and method for computer based testing
EP1478193A2 (en) * 2003-05-13 2004-11-17 Samsung Electronics Co., Ltd. Generation of test streams for testing digital TV software
CN101814052A (en) * 2010-02-04 2010-08-25 浪潮集团山东通用软件有限公司 Automatic test method
CN104468275A (en) * 2014-12-18 2015-03-25 辽宁生产力促进中心 Industrial cluster creative platform testing device and method
US10162734B1 (en) * 2016-07-20 2018-12-25 Intuit Inc. Method and system for crowdsourcing software quality testing and error detection in a tax return preparation system
CN109426611A (en) * 2017-08-31 2019-03-05 贵州白山云科技股份有限公司 A kind of method for testing software and device
CN108197021A (en) * 2017-12-28 2018-06-22 深圳市彬讯科技有限公司 A kind of web system automated testing method, device, equipment and storage medium
CN109656804A (en) * 2018-09-27 2019-04-19 深圳壹账通智能科技有限公司 Automated testing method, equipment, storage medium and device
CN110096425A (en) * 2018-12-10 2019-08-06 厦门市美亚柏科信息股份有限公司 A kind of automated testing method based on QT development mode, device and storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
基于XML描述校验规则的数据输入测试用例自动生成方法;姚庚梅;李红霞;魏琴;陈再新;;科技信息(第21期);全文 *
电子税务申报系统的研究与实现;潘宏坤;李跃文;;上海工程技术大学学报(第04期);全文 *

Also Published As

Publication number Publication date
CN110543424A (en) 2019-12-06

Similar Documents

Publication Publication Date Title
CN107729243B (en) Application programming interface automatic test method, system, equipment and storage medium
CN110851356B (en) Selenium-based Web application automatic test framework and construction method and system thereof
CN110321113B (en) Integrated assembly line system taking project batches as standards and working method thereof
CN101241467B (en) Automatized white box test system and method facing to WEB application
CN108845940B (en) Enterprise-level information system automatic function testing method and system
US20180239692A1 (en) Electronic technology resource evaluation system
CN102043714B (en) Automatic testing system of embedded software
US20130339933A1 (en) Systems and methods for quality assurance automation
CN104657274A (en) Method and device for testing software interface
CN108923997B (en) Cloud service node automatic testing method and device based on python
CN111240968A (en) Automatic test management method and system
CN110928796B (en) Automatic test platform
CN111309609B (en) software processing system
CN112131116A (en) Automatic regression testing method for embedded software
CN115629766A (en) Page change identification method and device based on front-end VUE framework
CN110543424B (en) Test method and device for electronic tax platform
CN113515297B (en) Version updating method and device, electronic equipment and storage medium
Haraldsson et al. The use of automatic test data generation for genetic improvement in a live system
Malhotra et al. A defect tracking tool for open source software
CN109508204B (en) Front-end code quality detection method and device
CN107292175A (en) Server apparatus method for managing security and device
CN116016270A (en) Switch test management method and device, electronic equipment and storage medium
CN116225377A (en) Unified development method and device for cross-platform applet and electronic equipment
CN115629956A (en) Software defect management method and system based on interface automatic test
CN114880239A (en) Interface automation testing framework and method based on data driving

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