CN115292187A - Method and device for automatically testing code-free page, electronic equipment and medium - Google Patents
Method and device for automatically testing code-free page, electronic equipment and medium Download PDFInfo
- Publication number
- CN115292187A CN115292187A CN202210995705.6A CN202210995705A CN115292187A CN 115292187 A CN115292187 A CN 115292187A CN 202210995705 A CN202210995705 A CN 202210995705A CN 115292187 A CN115292187 A CN 115292187A
- Authority
- CN
- China
- Prior art keywords
- test
- case
- data
- weight value
- result
- 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/3672—Test management
- G06F11/3684—Test management for test design, e.g. generating new test cases
-
- 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/3692—Test management for test results analysis
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/23—Updating
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Data Mining & Analysis (AREA)
- Databases & Information Systems (AREA)
- Debugging And Monitoring (AREA)
Abstract
The disclosure provides a method, a device, electronic equipment and a medium for automatically testing a code-free page. The method and the device can be used in the technical field of computer testing. The method for automatically testing the page without the code comprises the following steps: acquiring a test case corresponding to a test key point, wherein the test case comprises page elements and a test step; acquiring test data corresponding to the page elements; testing the page elements and the test data according to the test step to obtain a test result; generating a test report according to the test result; and configuring a case weight value of the test case and a data weight value of the test data according to the test result.
Description
Technical Field
The present disclosure relates to the field of computer testing technologies, and in particular, to a method and an apparatus for automatically testing a code-free page, an electronic device, and a medium.
Background
In the prior art, a user interface automated testing tool mainly operates elements (such as menus, buttons, icons, text boxes, lists, dialog boxes and the like) of a user interface to drive system events to occur by running scripts, and judges whether an expected result is achieved or not according to system expressions, mainly page expressions, such as screen verification, changes of sizes and positions of page elements, characters and arrangement thereof, usability conditions, data integrity and the like, so as to complete case automated verification. Currently, the mainstream interface testers have Selenium, QTP, and the like.
Disclosure of Invention
In view of the above, the present disclosure provides a method, an apparatus, an electronic device, and a computer-readable storage medium for automatically testing a non-coded page, which are easy to maintain, low in cost, and good in readability and reusability.
One aspect of the present disclosure provides a method for automatically testing a non-coded page, including: acquiring a test case corresponding to a test key point, wherein the test case comprises page elements and test steps; acquiring test data corresponding to the page elements; testing the page elements and the test data according to the test step to obtain a test result; generating a test report according to the test result; and configuring a case weight value of the test case and a data weight value of the test data according to the test result.
According to the method for automatically testing the encoderless page, after the test case and the test data are obtained, the page elements and the test data of the test case can be tested according to the test steps, and the test result is obtained. On one hand, according to the test result, a test report can be generated, and through the test report, a tester can know the operation condition of the test, the validity of the test case and the validity of the test data. In addition, the test report may also be stored as retention as empirical information for subsequent testing. On the other hand, according to the test result, a case weight value of the test case and a data weight value of the test data can be configured, the test case and the test data can be automatically maintained through the configuration of the case weight value and the data weight value, the maintenance cost is reduced, and meanwhile, the readability and the reusability of the test case and the test data can be improved.
In some embodiments, the obtaining the test case corresponding to the test point includes: responding to a transaction name and a test key point input by a tester, and searching a test case corresponding to the transaction name and the test key point in a first database; and when a test case corresponding to the transaction name and the test key point is searched, selecting the test case according to the case weight value.
In some embodiments, said obtaining test data corresponding to said page element comprises: searching a second database for test data corresponding to the page elements of the selected test case; and when the test data corresponding to the page element is searched, selecting the test data according to the data weight value.
In some embodiments, the configuring the case weight value of the test case and the configuring the data weight value of the test data according to the test result includes: increasing the case weight value of the test case and updating the case weight value to the first database; and increasing the data weight value of the test data and updating the data weight value to the second database.
When the test result is a case operation error, the method further comprises: analyzing the error reason of case operation to obtain the error classification result, and configuring the case weight value of the test case and the data weight value of the test data according to the test result, including: and configuring a case weight value of the test case and a data weight value of the test data according to the error classification result.
In some embodiments, the error classification result includes an environmental problem, a data problem, or a program problem, and when the error classification result is the environmental problem, the page element and the test data are tested according to the testing step repeatedly m times, where m is an integer greater than or equal to 1, and if the test result obtained each time is still a case operation error and the error classification result is the environmental problem, the configuring a case weight value of the test case and the configuring a data weight value of the test data according to the error classification result includes: maintaining constant case weight values for the test cases in the first database; and maintaining the data weight values of the test data in the second database unchanged.
When the misclassification result is a data problem, configuring a case weight value of the test case and a data weight value of the test data according to the misclassification result, including: increasing the case weight value of the test case and updating the case weight value to the first database; and reducing the data weight value of the test data and updating the data weight value to the second database, and when the error classification result is a program problem, configuring a case weight value of the test case and configuring a data weight value of the test data according to the error classification result, wherein the steps of: increasing the case weight value of the test case and updating the case weight value to the first database; and increasing the data weight value of the test data and updating the data weight value to the second database.
In some embodiments, the test result includes a case operation pass or a case operation error, and when the test result is a case operation error, the method further includes: analyzing the error reason of case operation to obtain an error classification result, wherein the error classification result comprises an environmental problem, a data problem or a program problem, and when the test case is successfully operated, configuring a case weight value of the test case and a data weight value of the test data according to the test result, comprising: calculating and updating a case weight value of the test case according to the total number of times of running of the test case, the success times, the last running success date, the last running time, the current date and the current time; and calculating and updating a data weight value of the test data according to the total number of times of operation of the test data, the success number of times, the success date of the last operation, the last operation time, the current date and the current time, wherein the test case operation success comprises the fact that the test result is case operation passing, and when the test result is case operation error and the error classification result comprises a data problem or a program problem.
In some embodiments, the test result includes case operation pass or case operation error, and when the test result is case operation pass, the test report includes case operation pass information; and when the test result is a case operation error, the test report comprises case operation error information.
Another aspect of the present disclosure provides an apparatus for automatically testing a page without coding, including: the first acquisition module is used for executing and acquiring a test case corresponding to a test key point, wherein the test case comprises page elements and test steps; the second acquisition module is used for executing acquisition of the test data corresponding to the page element; the test module is used for testing the page elements and the test data according to the test steps to obtain a test result; the generating module is used for executing the test according to the test result and generating a test report; and the configuration module is used for configuring a case weight value of the test case and a data weight value of the test data according to the test result.
Another aspect of the present disclosure provides an electronic device comprising one or more processors and one or more memories, wherein the memories are configured to store executable instructions that, when executed by the processors, implement the method as described above.
Another aspect of the present disclosure provides a computer-readable storage medium storing computer-executable instructions for implementing the method as described above when executed.
Drawings
The above and other objects, features and advantages of the present disclosure will become more apparent from the following description of embodiments of the present disclosure with reference to the accompanying drawings, in which:
fig. 1 schematically illustrates an exemplary system architecture to which the methods, apparatus, and methods may be applied, in accordance with an embodiment of the present disclosure;
FIG. 2 schematically illustrates a flow chart of a method of code-free page automatic testing according to an embodiment of the present disclosure;
FIG. 3 schematically illustrates a flow chart for obtaining test cases corresponding to test points according to an embodiment of the present disclosure;
FIG. 4 schematically illustrates a flow diagram for obtaining test cases corresponding to test points according to an embodiment of the disclosure;
FIG. 5 schematically illustrates a flow diagram for obtaining test data corresponding to a page element according to an embodiment of the disclosure;
FIG. 6 schematically illustrates a flow diagram for obtaining test data corresponding to a page element according to an embodiment of the disclosure;
FIG. 7 schematically illustrates a flow chart for configuring case weight values for test cases and data weight values for test data according to test results according to an embodiment of the present disclosure;
FIG. 8 schematically illustrates a flow chart of a method of code-free page automatic testing according to an embodiment of the present disclosure;
FIG. 9 schematically illustrates a flow chart for configuring case weight values for test cases and data weight values for test data according to test results according to an embodiment of the present disclosure;
FIG. 10 schematically illustrates a flow chart for configuring case weight values for test cases and data weight values for configuration test data according to error classification results according to an embodiment of the present disclosure;
FIG. 11 schematically illustrates a flow chart for configuring case weight values for test cases and data weight values for test data according to misclassification results, according to an embodiment of the present disclosure;
FIG. 12 schematically illustrates a flow chart for configuring case weight values for test cases and data weight values for test data according to misclassification results, according to an embodiment of the present disclosure;
FIG. 13 schematically illustrates a flow chart for configuring case weight values for test cases and data weight values for test data according to test results according to an embodiment of the present disclosure;
FIG. 14 schematically illustrates a block diagram of a no-code page automatic test system according to an embodiment of the present disclosure;
FIG. 15 is a block diagram schematically illustrating an exemplary configuration of a device for testing page integrity according to an embodiment of the present disclosure;
FIG. 16 schematically shows a block diagram of a first obtaining module according to an embodiment of the disclosure;
FIG. 17 schematically illustrates a block diagram of a second acquisition module, according to an embodiment of the disclosure;
FIG. 18 schematically illustrates a block diagram of a configuration module according to an embodiment of the disclosure;
FIG. 19 is a block diagram schematically illustrating an exemplary configuration of a device for testing page integrity according to an embodiment of the present disclosure;
FIG. 20 schematically shows a block diagram of a configuration unit according to an embodiment of the present disclosure;
FIG. 21 schematically shows a block diagram of a configuration unit according to an embodiment of the disclosure;
FIG. 22 schematically shows a block diagram of an electronic device according to an embodiment of the disclosure.
Detailed Description
Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. It should be understood that these descriptions are illustrative only and are not intended to limit the scope of the present disclosure. In the following detailed description, for purposes of explanation, numerous specific details are set forth in order to provide a thorough understanding of the embodiments of the disclosure. It may be evident, however, that one or more embodiments may be practiced without these specific details. Moreover, in the following description, descriptions of well-known structures and techniques are omitted so as to not unnecessarily obscure the concepts of the present disclosure.
In the technical scheme of the disclosure, the acquisition, storage, application and the like of the personal information of the related user all accord with the regulations of related laws and regulations, necessary security measures are taken, and the customs of the public order is not violated. In the technical scheme of the disclosure, the processing of data acquisition, collection, storage, use, processing, transmission, provision, disclosure, application and the like all conform to the regulations of relevant laws and regulations, necessary security measures are taken, and the customs of public sequences is not violated.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the disclosure. The terms "comprises," "comprising," and the like, as used herein, specify the presence of stated features, steps, operations, and/or components, but do not preclude the presence or addition of one or more other features, steps, operations, or components.
Where a convention analogous to "at least one of A, B, or C, etc." is used, in general such a construction is intended in the sense one having skill in the art would understand the convention (e.g., "a system having at least one of A, B, or C" would include but not be limited to systems that have A alone, B alone, C alone, A and B together, A and C together, B and C together, and/or A, B, and C together, etc.). The terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, features defined as "first", "second", may explicitly or implicitly include one or more of the described features.
In the prior art, a user interface automated testing tool mainly operates elements (such as menus, buttons, icons, text boxes, lists, dialog boxes and the like) of a user interface to drive system events to occur by running scripts, and judges whether an expected result is achieved or not according to system expressions, mainly page expressions, such as screen verification, changes of sizes and positions of page elements, characters and arrangement thereof, usability conditions, data integrity and the like, so as to complete case automated verification. Currently, the mainstream interface testers have Selenium, QTP, and the like. The existing page automatic testing framework has obvious defects: the test data needs manual maintenance by a tester, and the maintenance cost is high; the learning cost of the tester for compiling the automatic test case is high; the test case readability and reusability are poor.
Embodiments of the present disclosure provide a method, an apparatus, an electronic device, a computer-readable storage medium, and a computer program product for code-free page automatic testing. The method for automatically testing the page without codes comprises the following steps: acquiring a test case corresponding to a test key point, wherein the test case comprises page elements and a test step; acquiring test data corresponding to the page elements; testing the page elements and the test data according to the testing step to obtain a test result; generating a test report according to the test result; and configuring a case weight value of the test case and a data weight value of the test data according to the test result.
It should be noted that the method, the apparatus, the electronic device, the computer-readable storage medium, and the computer program product for automatically testing a code-free page according to the present disclosure may be applied to the field of testing technologies, and may also be applied to any fields other than the field of testing technologies, such as the field of finance, and the field of the present disclosure is not limited herein.
Fig. 1 schematically illustrates an exemplary system architecture 100 to which the encodement-free page automatic test method, apparatus, electronic device, computer-readable storage medium and computer program product may be applied, according to embodiments of the present disclosure. It should be noted that fig. 1 is only an example of a system architecture to which the embodiments of the present disclosure may be applied to help those skilled in the art understand the technical content of the present disclosure, and does not mean that the embodiments of the present disclosure may not be applied to other devices, systems, environments or scenarios.
As shown in fig. 1, a system architecture 100 according to this embodiment may include terminal devices 101, 102, 103, a network 104, and a server 105. The network 104 serves as a medium for providing communication links between the terminal devices 101, 102, 103 and the server 105. Network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, to name a few.
A user may use terminal devices 101, 102, 103 to interact with a server 105 over a network 104 to receive or send messages or the like. The terminal devices 101, 102, 103 may have installed thereon various communication client applications, such as shopping-like applications, web browser applications, search-like applications, instant messaging tools, mailbox clients, social platform software, etc. (by way of example only).
The terminal devices 101, 102, 103 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop portable computers, desktop computers, and the like.
The server 105 may be a server providing various services, such as a background management server (for example only) providing support for websites browsed by users using the terminal devices 101, 102, 103. The backend management server may analyze and process the received data such as the user request, and feed back a processing result (for example, a web page, information, or data obtained or generated according to the user request) to the terminal device.
It should be noted that the method for automatically testing a page without code provided by the embodiment of the present disclosure may be generally executed by the server 105. Accordingly, the device for automatically testing pages without codes provided by the embodiment of the present disclosure may be generally disposed in the server 105. The method for automatically testing the page without the code provided by the embodiment of the present disclosure may also be executed by a server or a server cluster which is different from the server 105 and can communicate with the terminal devices 101, 102, 103 and/or the server 105. Accordingly, the device for automatically testing pages without codes provided by the embodiment of the present disclosure may also be disposed in a server or a server cluster different from the server 105 and capable of communicating with the terminal devices 101, 102, 103 and/or the server 105.
It should be understood that the number of terminal devices, networks, and servers in fig. 1 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
The non-coding page automatic test method according to the embodiment of the present disclosure will be described in detail below with reference to fig. 2 to 13 based on the scenario described in fig. 1.
Fig. 2 schematically shows a flow chart of a method for code-free page automatic testing according to an embodiment of the present disclosure.
As shown in fig. 2, the method for automatically testing a page without coding of this embodiment includes operations S210 to S250.
In operation S210, a test case corresponding to the test key is obtained, wherein the test case includes a page element and a test step.
As a possible implementation manner, as shown in fig. 3, operation S210 acquires a test case corresponding to a test point, including operation S211 and operation S212.
In operation S211, in response to the transaction name and the test key inputted by the tester, a test case corresponding to the transaction name and the test key is searched in the first database. The method comprises the steps of obtaining a transaction name of a bank transfer account, obtaining a test point, and determining the test point, wherein if the bank transfer account is taken as an example, the transaction name can be understood as the bank transfer account, the test point can be understood as comprising a sequential jump from a login page to a transfer success page, a sequential jump from the login page to a transfer failure page and a sequential jump from the login page to a retry page later, the test points are only examples, and other test points can be further arranged under the transaction name of the bank transfer account and are not listed one by one.
If the bank financing service is taken as an example, the transaction name can be understood as bank financing, and the test key points can be understood as comprising the sequential jump from the login page to the successful financing purchasing page, the sequential jump from the login page to the failed financing purchasing page, and the sequential jump from the login page to the page retried later.
The bank transfer business and the bank financing business are only exemplified, the disclosure can also be used for other businesses, and the transaction name and the test point can be endowed with different characteristic attributes according to different businesses. The method comprises the steps of obtaining a transaction name, a test case and a test case, wherein the test case can correspond to each test point of each transaction name, each test case can comprise k pages, each page can comprise Si page elements, each test case can further comprise a test step of connecting the Si page elements of each page, k and Si are integers which are larger than or equal to 1, and i is an integer which is larger than or equal to 1 and smaller than or equal to k.
Bank transfers are described below as an example, but are not to be construed as limiting the disclosure.
For example, in the login page, page elements may be included that are at least one of an account number input box, a password input box, a verification code input box, and a determination button; for another example, in the transfer amount setting page, page elements of a receiving account input box, a payment account input box, a transfer amount input box, a determination button, and the like may be included; as another example, in a response piece page, page elements that may be included are a drag bar, and the like. Correspondingly, the testing step can comprise the steps of inputting a test data account number, a password and a verification code on a login page, clicking to determine, if the test data is available, jumping to a transfer amount setting page, inputting a data receiving account, a payment account and a transfer amount, clicking to determine, if the test data is available, jumping to a receipt page, pulling down a pull-down strip of the receipt page, and if the pull-down strip is available, realizing the scrolling of the receipt page.
The first database is a database for storing the test cases.
In operation S212, when a test case corresponding to the transaction name and the test key is searched, the test case is selected according to the case weight value. It should be noted that, in the first database, there may be g test cases corresponding to the transaction name and the test principal point, where g is an integer greater than or equal to 1, each test case has a case weight value, in some examples, when g is greater than 1, h top test cases may be selected according to an order of the case weight values from large to small, and h is an integer greater than or equal to 1 and smaller than g.
The obtaining of the test case corresponding to the test point may be facilitated through operations S211 and S212.
As a possible implementation manner, as shown in fig. 4, the operation S210 acquires a test case corresponding to a test point, and further includes operations S213 and S214.
In operation S213, when a test case corresponding to the transaction name and the test key is not searched, a test case input by the tester is acquired and stored in the first database.
In operation S214, test cases input by the tester are extracted from the first database. The obtaining of the test case corresponding to the test key may be achieved when the test case corresponding to the transaction name and the test key does not exist in the first database through operations S213 and S214.
In operation S220, test data corresponding to the page element is acquired.
As a possible implementation manner, as shown in fig. 5, the operation S220 of acquiring the test data corresponding to the page element includes operations S221 and S222.
In operation S221, the second database is searched for test data corresponding to the page elements of the selected test case. The second database can be understood as a database that stores test data. With page elements of the landing page: the account number input box, the password input box, the verification code input box and the determination button are taken as examples, and the test data corresponding to the page element can be the account number, the password and the verification code. The same principle is applied to the page element of the transfer amount setting page and the test data type corresponding to the page element of the receipt page, and the description is omitted here for the sake of brevity.
In operation S222, when test data corresponding to a page element is searched, the test data is selected according to a data weight value. It should be noted that, in the second database, there may be r test data corresponding to the page element, where r is an integer greater than or equal to 1, and each test data has a data weight value, in some examples, when r is greater than 1, the top v test cases may be selected according to a sorting order of the data weight values from large to small, where v is an integer greater than or equal to 1 and less than r.
The obtaining of the test data corresponding to the page element may be facilitated through operations S221 and S222.
As a possible implementation manner, as shown in fig. 6, operation S220 obtains test data corresponding to a page element, and further includes operation S223 and operation S224.
In operation S223, when the test data corresponding to the page element is not searched, the test data input by the tester is acquired and stored in the second database.
In operation S224, test data input by the tester is extracted from the second database. Through operations S223 and S224, when there is no test data corresponding to the page element in the second database, obtaining the test data corresponding to the page element may be achieved.
In operation S230, the page elements and the test data are tested according to the test steps to obtain a test result.
In operation S240, a test report is generated according to the test result.
As a practical way, the test results may include case-run-through or case-run-error.
When the test result is case operation passing, the test report may include case operation passing information.
When the test result is a case operation error, the test report may include case operation error information.
Therefore, through the test report, the tester can know the running condition of the test and the effectiveness of the test case and the effectiveness of the test data. In addition, the test report can be stored as retention as experience information of the subsequent test.
In operation S250, case weight values of the test cases and data weight values of the test data are configured according to the test result.
As one implementable example, the test results may include case-run-through or case-run-error.
As shown in fig. 7, when the test result is that a case passes, operation S250 configures a case weight value of the test case and configures a data weight value of the test data according to the test result, including operations S251 and S252.
In operation S251, the case weight value of the test case is increased and updated to the first database.
In operation S252, the data weight value of the test data is increased and updated to the second database.
It can be understood that, when the test result is that a case passes the operation, the test case and the test data are both effective, so that the case weight value of the test case can be increased and updated to the first database, and the data weight value of the test data can be increased and updated to the second database, so that the effective case and the effective data can be selected with a high probability in the next test, thereby increasing the test efficiency and saving the test cost.
As shown in fig. 8, when the test result is a case operation error, the method for automatically testing a non-coded page further includes operation S260: and analyzing the cause of the case operation error to obtain an error classification result.
As shown in fig. 9, the operation S250 of configuring a case weight value of the test case and a data weight value of the test data according to the test result includes the operations S253 of: and configuring a case weight value of the test case and a data weight value of the test data according to the error classification result.
As some specific examples, the error classification result may include an environmental problem, a data problem, or a program problem, where the environmental problem may be understood as a hardware environment and a software environment, and the hardware environment refers to an environment formed by auxiliary hardware devices such as a server, a client, a network connection device, and a printer/scanner, which are necessary for testing; the software environment refers to an environment formed by an operating system, a database and other application software when the tested software runs. Under special conditions, network environment such as network bandwidth and IP address setting is also considered. A data problem may be understood as a problem of testing data. A program problem may be understood as a problem of the program to which the page belongs.
As shown in fig. 10, when the misclassification result is an environmental problem, the page element and the test data are repeatedly tested m times according to the test steps, where m is an integer greater than or equal to 1, and if the test result obtained each time is still a case operation error and the misclassification result is an environmental problem, operation S253 configures a case weight value of the test case and a data weight value of the test data according to the misclassification result, including operation S2531 and operation S2532.
In operation S2531, case weight values of the test cases in the first database are kept unchanged.
In operation S2532, the data weight value of the test data in the second database is maintained unchanged.
It can be understood that, when the page element and the test data are repeatedly tested m times according to the test steps, and the test result obtained each time is still a case operation error, and the error classification result is an environmental problem, it indicates that the environment has a problem, and the test case and the test data have no test effect no matter whether the test case and the test data are valid or invalid, so that the validity of the used test case and the used test data cannot be verified, and thus the case weight value of the test case in the first database can be kept unchanged, and the data weight value of the test data in the second database can be kept unchanged.
When the misclassification result is an environmental problem, the page element and the test data are tested according to the test steps by repeatedly executing m times, the test result obtained each time is still a case operation error, and the misclassification result is an environmental problem, the operations S2531 and S2532 can be convenient for realizing the configuration of the case weight value of the test case and the configuration of the data weight value of the test data according to the misclassification result. The test cases and the test data can be automatically maintained by configuring the case weight values and the data weight values, so that the maintenance cost is reduced, and the readability and the reusability of the test cases and the test data can be improved.
As shown in fig. 11, when the misclassification result is a data problem, operation S253 configures case weight values of the test cases and data weight values of the test data according to the misclassification result, including operation S2533 and operation S2534.
In operation S2533, case weight values of the test cases are increased and updated to the first database.
In operation S2534, the data weight value of the test data is decreased and updated to the second database.
It can be understood that, when the error classification result is a data problem, it indicates that the validity of the test data is relatively low, and the test case can test the data problem, which indicates that the validity of the test case is relatively high, so that the case weight value of the test case can be increased and updated to the first database, and the data weight value of the test data can be decreased and updated to the second database.
When the misclassification result is a data problem, operations S2533 and S2534 may facilitate configuring case weight values of the test cases and configuring data weight values of the test data according to the misclassification result. The test cases and the test data can be automatically maintained by configuring the case weight values and the data weight values, so that the maintenance cost is reduced, and the readability and the reusability of the test cases and the test data can be improved.
As shown in fig. 12, when the misclassification result is a procedure problem, operation S253 configures case weight values of the test cases and data weight values of the configuration test data according to the misclassification result, including operation S2535 and operation S2536.
In operation S2535, case weight values of the test cases are increased and updated to the first database.
In operation S2536, the data weight value of the test data is increased and updated to the second database.
It can be understood that, when the error classification result is a program problem, it indicates that the program problem can be detected by the test case and the test data, and thus indicates that the validity of both the test case and the test data is relatively high, so that the case weight value of the test case can be increased and updated to the first database, and the data weight value of the test data can be increased and updated to the second database.
When the misclassification result is a program problem, operations S2535 and S2536 may facilitate configuring a case weight value of the test case and a data weight value of the test data according to the misclassification result. The test case and the test data can be automatically maintained by configuring the case weight value and the data weight value, so that the maintenance cost is reduced, and the readability and the reusability of the test case and the test data can be improved.
According to some embodiments of the present disclosure, the test result may include a case operation pass or a case operation error, and when the test result is a case operation error, the method for automatically testing a non-coded page further includes: analyzing the cause of the case operation error to obtain an error classification result, wherein the error classification result comprises an environmental problem, a data problem or a program problem,
as shown in fig. 13, when the test case is successfully operated, operation S250 configures case weight values of the test case and configures data weight values of the test data according to the test result, including operation S001 and operation S002.
In operation S001, case weight values of the test cases are calculated and updated according to the total number of times the test cases are run, the number of times of success, the last run success date, the last run time, the current date, and the current time.
In some specific examples, the case weight value ETC may be calculated by equation (1).
Wherein T represents the total number of test case runs; PT represents the success number of the test case operation; LPD represents the last successful date of the test case run; LPT represents last running time of the test case; RD represents the current date of the test case operation; and RT represents the current time of test case operation.
In operation S002, a data weight value of the test data is calculated and updated according to the total number of test data runs, the number of successes, the last run success date, the last run time, the current date, and the current time.
In some specific examples, the case weight value ETD may be calculated by equation (2).
Wherein T represents the total number of test data runs; PT represents the success number of test data operation; LPD represents the last successful run date of the test data; LPT represents the last run time of the test data; RD represents the current date of test data operation; and RT represents the current time of test data operation.
The successful operation of the test case comprises that the test result is that the case is operated and passed, and when the test result is that the case is operated wrongly and the error classification result comprises a data problem or a program problem.
The configuration of the case weight value of the test case and the configuration of the data weight value of the test data according to the test result can be conveniently achieved through the operation S001 and the operation S002.
According to the method for automatically testing the encoderless page, after the test case and the test data are obtained, the page elements and the test data of the test case can be tested according to the test steps, and the test result is obtained. On one hand, according to the test result, a test report can be generated, and through the test report, a tester can know the running condition of the test, the effectiveness of the test case and the effectiveness of the test data. In addition, the test report can be stored as retention as experience information of the subsequent test. On the other hand, according to the test result, the case weight value of the test case and the data weight value of the test data can be configured, the test case and the test data can be automatically maintained through the configuration of the case weight value and the data weight value, the maintenance cost is reduced, and meanwhile, the readability and the reusability of the test case and the test data can be improved.
The method for automatically testing a page without coding according to an embodiment of the present disclosure is described in detail below with reference to fig. 14. It is to be understood that the following description is illustrative only and is not intended to be in any way limiting of the present disclosure.
The method comprises the steps of firstly forming a basic test database based on data input by a tester when compiling an automatic test case and keywords in test key points, and forming the basic case database based on the test page, the test key points, the test steps and expected results input by the tester. When the automatic case is executed, the method extracts the latest and effective test data from the test data database according to the keywords in the test key points and sends the latest and effective test data to the case execution module, and after the automatic test is executed, the case and data effectiveness weights in the database are updated according to the test results. The method can effectively improve the reusability of the automatic test cases and data and reduce the cost of the automatic cases of the personnel guardianship stock.
The method for automatically testing the page without the code is specifically as follows.
Step1.0 testers search the case with successful inventory operation in the case database by using the conditions of transaction name and test main points in the case entry module search function, the case bank algorithm displays the optional cases to the testers from high to low according to the case validity weight, and the testers select the cases with high validity weight to perform case operation.
Step1.1.1 if the tester does not search for successful operation of inventory in the case database by using the conditions of transaction name and test point in the case entry module search function, the tester needs to complete case recording. And the tester fills in the URL of the case page in the test page recording module, clicks the page element extracting button to obtain the xpath of all page elements in the page, and clicks to finish entering the case recording module after the xpath is obtained. If the case relates to a plurality of pages, the tester needs to acquire page elements one by one, and after the acquisition is completed, the tester clicks to complete the test and enters the test step entry module.
After entering the test step, the Step1.1.2 tester firstly needs to input test points, test steps and expected results in the test case, wherein the test step needs to select pages needing to be operated and page elements needing to be operated on each page, and needs to specify actions needing to be completed by the page elements.
And the Step2 test cases are confirmed by the testers and then stored in a case database and are sent to a server case preprocessing module through the client.
And the Step3 case preprocessing module is used for screening keywords of the test cases compiled by the testers, capturing the data types required by the test cases and searching in the test data database.
Step4, if the required data cannot be searched in the test database, the data bank module returns an empty result set, and the case operator directly uses the test data input by the tester to perform case operation; if the required data is searched in the test database, the data bank module returns an optimal result set according to the data validity weight, and the request receiver receives the data set and then recombines the message and initiates interface calling.
And after the Step7 case is operated, judging whether the test case passes the execution or not by comparing expected results input by the tester.
Step8.0 if the case verification is passed, improving the validity weight of the rule and the validity weight of the data used by the rule according to a case validity weight calculation method and a test data validity weight calculation method in a case bank algorithm. If the case verification fails, the error information needs to be sent to an error set (Fail List) for judgment.
Step8.1 if the case is an environmental problem, not updating the case validity weight and the test data validity weight, re-running the case, if the case fails due to the environmental problem after the re-running for three times, not updating the case validity weight and the test data validity weight, and registering the case verification result in a test report according to the failure.
If the data problem is Step8.2, improving the validity weight of the rule and reducing the validity weight of the data used by the rule according to a case validity weight calculation method and a test data validity weight calculation method in a case bank algorithm.
If Step8.3 is a program problem, improving the validity weight of the rule and the validity weight of the data used by the rule according to a case validity weight calculation method and a test data validity weight calculation method in a case bank algorithm.
Step9 generates a test report.
The page automatic test system without codes is described in detail below, as shown in fig. 14.
Test case generation
The test case generation module in the disclosure is divided into three submodules of test page entry, test step entry and test case search. Firstly, a tester searches in a searching module according to the conditions of 'tested transaction + testing key points', if the search has no result or needs to be input again, the tester enters a testing page input module, in the module, the tester fills in a case page URL and clicks an extraction page element button to obtain xpath of all page elements in a page, and after the obtaining is finished, the tester clicks to finish the entering of a testing step input module. If the case relates to a plurality of pages, the tester needs to acquire page elements one by one, and click to enter the case recording module after the acquisition is completed. After entering the case entry module, a tester needs to input test key points, test steps and expected results in a test case, wherein the test steps need to select pages needing to be operated and page elements needing to be operated on each page, and needs to specify actions needing to be completed by the page elements.
Case preprocessing
Case preprocessing in this disclosure is mainly divided into two sub-modules: test data search and natural language parsing.
The natural Language analysis uses open source software LTP (Language Technology Platform) to perform Chinese semantic analysis and extract key information of test data. And generating a test data search condition according to the test data key information extracted from the test key points input by the tester.
Case operation
The case operation module in the disclosure is divided into three submodules of case operation, result judgment and error classification. The method comprises the steps that Selenium + Testng is used for scheduling and operating cases, the operation result of the case with failed verification is sent to an error judgment module to be compared with an error set keyword input by a tester in advance, and therefore the reason of case failure is judged.
Case bank
The case bank in the disclosure is divided into test case screening, test data screening, test case validity weight updating and test data validity weight updating, wherein the test case screening is to screen in a case base according to 'transaction + test main points' input by a tester and sort and return test result case validity weights from high to low. The test data screening is to screen in a test database according to the keywords acquired by the natural language analysis module and acquire the data with the highest validity weight to generate a test data result set. The test case validity weight (ETC) is calculated according to formula (1) based on the tested running Times T (Times) and the successful running Times PT (Passed Times), wherein case verification is Passed, case verification failure caused by data problems or program problems belongs to successful running, case validity weight is not updated due to case verification failure caused by environmental problems, last running success Date LPD (Last Passed Date), last running Time LPT (Last Passed Time), current Date (Run Date), current Time RT (Run Time), first running Time of case LPD = RD, LPT = RT.
The Test Data validity weight (ETD) is calculated according to formula (2) according to the used Times T (Times) of the Test Data, the Passed Times PT (Passed Times) of case verification, the successful Date LPD (Last Passed Date) of Last operation, the LPT (Last Passed Time) of Last operation, the current Date (Run Date) and the current Time RT (Run Time) when the Data is used for the first Time, wherein the LPD = RD and LPT = RT, and the Test Data validity weight is not updated due to the fact that the case is not Passed due to environmental problems.
Based on the above method for automatically testing a non-coded page, the present disclosure further provides an apparatus 10 for automatically testing a non-coded page. The non-coded page automatic test apparatus 10 will be described in detail below with reference to fig. 15 to 21.
Fig. 15 schematically shows a block diagram of the structure of the non-coding page automatic test device 10 according to the embodiment of the present disclosure.
The device 10 for automatically testing the page without codes comprises a first acquisition module 1, a second acquisition module 2, a testing module 3, a generation module 4 and a configuration module 5.
A first obtaining module 1, where the first obtaining module 1 is configured to perform operation S210: and acquiring a test case corresponding to the test key point, wherein the test case comprises page elements and test steps.
A second obtaining module 2, where the second obtaining module 2 is configured to perform operation S220: and acquiring test data corresponding to the page elements.
A test module 3, the test module 3 being configured to perform operation S230: and testing the page elements and the test data according to the testing step to obtain a test result.
A generating module 4, where the generating module 4 is configured to execute operation S240: and generating a test report according to the test result.
A configuration module 5, the configuration module 5 being configured to perform operation S250: and configuring a case weight value of the test case and a data weight value of the test data according to the test result.
Fig. 16 schematically shows a block diagram of the first obtaining module 1 according to an embodiment of the present disclosure. The first acquisition module 1 comprises a first search unit 11 and a first selection unit 12.
And the first searching unit 11 is used for responding to the transaction name and the test point input by the tester, and searching the first database for the test case corresponding to the transaction name and the test point.
And the first selection unit 12, wherein the first selection unit 12 is used for selecting the test case according to the case weight value when the test case corresponding to the transaction name and the test principal point is searched.
Fig. 17 schematically shows a block diagram of the second obtaining module 2 according to an embodiment of the present disclosure. The second obtaining module 2 includes a second searching unit 21 and a second selecting unit 22.
A second search unit 21, the second search unit 21 being configured to search the second database for test data corresponding to the page elements of the selected test case.
And a second selecting unit 22, wherein the second selecting unit 22 is configured to select the test data according to the data weight value when the test data corresponding to the page element is searched.
Fig. 18 schematically shows a block diagram of the configuration module 5 according to an embodiment of the present disclosure. The test results include case-through or case-error, and the configuration module 5 may include an update unit 51 or a configuration unit 52.
When the test result is that the case passes the operation, the updating unit 51 is configured to increase the case weight value of the test case and update the case weight value to the first database; and increasing the data weight value of the test data and updating the data weight value to the second database.
When the test result is a case operation error, as shown in fig. 19, the page automatic test apparatus 10 without codes further includes an analyzing device 6, the analyzing device 6 is configured to analyze the cause of the case operation error to obtain an error classification result, and the configuration unit 52 is configured to configure a case weight value of the test case and a data weight value of the configuration test data according to the error classification result.
Fig. 20 schematically shows a block diagram of the configuration unit 52 according to an embodiment of the present disclosure. The misclassification results include environmental issues, data issues, or procedural issues, and configuration unit 52 includes an update element 521.
When the misclassification result is an environmental problem, the page element and the test data are repeatedly tested according to the test steps m times, wherein m is an integer greater than or equal to 1, and if the test result obtained each time is still a case operation error and the misclassification result is an environmental problem, the updating element 521 is used for keeping the case weight value of the test case in the first database unchanged; and keeping the data weight value of the test data in the second database unchanged.
When the result of the misclassification is a data problem, the updating element 521 is used to increase the case weight value of the test case and update the case weight value to the first database; and reducing the data weight value of the test data and updating the test data to the second database.
When the result of the misclassification is a program problem, the updating element 521 is used to increase the case weight value of the test case and update the case weight value to the first database; and increasing the data weight value of the test data and updating the data weight value to the second database.
Fig. 21 schematically shows a block diagram of the configuration unit 52 according to an embodiment of the present disclosure. The test result comprises case operation passing or case operation error, and when the test result is the case operation error, the method further comprises the following steps: the cause of the case operation error is analyzed to obtain an error classification result, the error classification result includes an environmental problem, a data problem or a program problem, and the configuration unit 52 includes a calculation element 522.
When the test cases are successfully operated, the calculating element 522 is configured to calculate and update the case weight values of the test cases according to the total number of times of operation of the test cases, the number of times of success, the last operation success date, the last operation time, the current date, and the current time; and calculating and updating the data weight value of the test data according to the total number of times of running of the test data, the success number, the last running success date, the last running time, the current date and the current time, wherein the test case running success comprises that the test result is case running passing, and when the test result is case running error and the error classification result comprises a data problem or a program problem.
According to the code-free automatic page testing device 10 of the embodiment of the disclosure, after the test case and the test data are obtained, the page elements and the test data of the test case can be tested according to the test steps, and the test result is obtained. On one hand, according to the test result, a test report can be generated, and through the test report, a tester can know the running condition of the test, the effectiveness of the test case and the effectiveness of the test data. In addition, the test report may also be stored as retention as empirical information for subsequent testing. On the other hand, according to the test result, a case weight value of the test case and a data weight value of the test data can be configured, the test case and the test data can be automatically maintained through the configuration of the case weight value and the data weight value, the maintenance cost is reduced, and meanwhile, the readability and the reusability of the test case and the test data can be improved.
In addition, according to the embodiment of the present disclosure, any multiple modules of the first obtaining module 1, the second obtaining module 2, the testing module 3, the generating module 4, and the configuring module 5 may be combined and implemented in one module, or any one module may be split into multiple modules. Alternatively, at least part of the functionality of one or more of these modules may be combined with at least part of the functionality of the other modules and implemented in one module.
According to an embodiment of the present disclosure, at least one of the first obtaining module 1, the second obtaining module 2, the testing module 3, the generating module 4, and the configuring module 5 may be implemented at least partially as a hardware circuit, such as a Field Programmable Gate Array (FPGA), a Programmable Logic Array (PLA), a system on a chip, a system on a substrate, a system on a package, an Application Specific Integrated Circuit (ASIC), or may be implemented by hardware or firmware in any other reasonable manner of integrating or packaging a circuit, or implemented by any one of three implementations of software, hardware, and firmware, or an appropriate combination of any several of them.
Alternatively, at least one of the first obtaining module 1, the second obtaining module 2, the testing module 3, the generating module 4 and the configuring module 5 may be at least partly implemented as a computer program module which, when executed, may perform a corresponding function.
Fig. 22 schematically illustrates a block diagram of an electronic device adapted to implement the above-described method according to an embodiment of the present disclosure.
As shown in fig. 22, an electronic apparatus 900 according to an embodiment of the present disclosure includes a processor 901 which can perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM) 902 or a program loaded from a storage portion 908 into a Random Access Memory (RAM) 903. Processor 901 may comprise, for example, a general purpose microprocessor (e.g., a CPU), an instruction set processor and/or associated chipset, and/or a special purpose microprocessor (e.g., an Application Specific Integrated Circuit (ASIC)), among others. The processor 901 may also include on-board memory for caching purposes. The processor 901 may comprise a single processing unit or a plurality of processing units for performing the different actions of the method flows according to embodiments of the present disclosure.
In the RAM 903, various programs and data necessary for the operation of the electronic apparatus 900 are stored. The processor 901, the ROM 902, and the RAM 903 are connected to each other through a bus 904. The processor 901 performs various operations of the method flows according to the embodiments of the present disclosure by executing programs in the ROM 902 and/or the RAM 903. Note that the programs may also be stored in one or more memories other than the ROM 902 and the RAM 903. The processor 901 may also perform various operations of the method flows according to embodiments of the present disclosure by executing programs stored in the one or more memories.
The present disclosure also provides a computer-readable storage medium, which may be contained in the apparatus/device/system described in the above embodiments; or may exist alone without being assembled into the device/apparatus/system. The computer-readable storage medium carries one or more programs which, when executed, implement a method according to an embodiment of the disclosure.
According to embodiments of the present disclosure, the computer-readable storage medium may be a non-volatile computer-readable storage medium, which may include, for example but is not limited to: a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. For example, according to embodiments of the present disclosure, a computer-readable storage medium may include the ROM 902 and/or the RAM 903 described above and/or one or more memories other than the ROM 902 and the RAM 903.
Embodiments of the present disclosure also include a computer program product comprising a computer program containing program code for performing the method illustrated by the flow chart. The program code is for causing a computer system to perform the methods of the embodiments of the disclosure when the computer program product is run on the computer system.
The computer program performs the above-described functions defined in the system/apparatus of the embodiments of the present disclosure when executed by the processor 901. The above described systems, devices, modules, units, etc. may be implemented by computer program modules according to embodiments of the present disclosure.
In one embodiment, the computer program may be hosted on a tangible storage medium such as an optical storage device, a magnetic storage device, and the like. In another embodiment, the computer program may also be transmitted in the form of a signal over a network medium, distributed, and downloaded and installed via the communication section 909 and/or installed from the removable medium 911. The computer program containing program code may be transmitted using any suitable network medium, including but not limited to: wireless, wired, etc., or any suitable combination of the foregoing.
In such an embodiment, the computer program may be downloaded and installed from a network via the communication section 909 and/or installed from the removable medium 911. The computer program, when executed by the processor 901, performs the above-described functions defined in the system of the embodiment of the present disclosure. The above described systems, devices, apparatuses, modules, units, etc. may be implemented by computer program modules according to embodiments of the present disclosure.
In accordance with embodiments of the present disclosure, program code for executing computer programs provided by embodiments of the present disclosure may be written in any combination of one or more programming languages, and in particular, these computer programs may be implemented using high level procedural and/or object oriented programming languages, and/or assembly/machine languages. The programming language includes, but is not limited to, programming languages such as Java, C + +, python, the "C" language, or the like. The program code may execute entirely on the user's computing device, partly on the user's device, partly on a remote computing device, or entirely on the remote computing device or server. In situations involving remote computing devices, the remote computing devices may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to external computing devices (e.g., through the internet using an internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems that perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
It will be appreciated by those skilled in the art that various combinations and/or combinations of the features recited in the various embodiments of the disclosure and/or the claims may be made even if such combinations or combinations are not explicitly recited in the disclosure. In particular, various combinations and/or combinations of the features recited in the various embodiments and/or claims of the present disclosure may be made without departing from the spirit or teaching of the present disclosure. All such combinations and/or associations are within the scope of the present disclosure.
The embodiments of the present disclosure have been described above. However, these examples are for illustrative purposes only and are not intended to limit the scope of the present disclosure. Although the embodiments are described separately above, this does not mean that the measures in the embodiments cannot be used advantageously in combination. The scope of the disclosure is defined by the appended claims and equivalents thereof. Various alternatives and modifications can be devised by those skilled in the art without departing from the scope of the disclosure, and these alternatives and modifications are intended to fall within the scope of the disclosure.
Claims (10)
1. A method for automatically testing a non-coded page is characterized by comprising the following steps:
acquiring a test case corresponding to a test key point, wherein the test case comprises page elements and test steps;
acquiring test data corresponding to the page elements;
testing the page elements and the test data according to the test step to obtain a test result;
generating a test report according to the test result; and
and configuring a case weight value of the test case and a data weight value of the test data according to the test result.
2. The method of claim 1, wherein obtaining test cases corresponding to test points comprises:
responding to a transaction name and a test key point input by a tester, and searching a test case corresponding to the transaction name and the test key point in a first database; and
and when the test case corresponding to the transaction name and the test key point is searched, selecting the test case according to the case weight value.
3. The method of claim 2, wherein obtaining test data corresponding to the page element comprises:
searching a second database for test data corresponding to the page elements of the selected test case; and
and when the test data corresponding to the page element is searched, selecting the test data according to the data weight value.
4. The method of claim 3, wherein the test results include case-run-through or case-run-error,
when the test result is that the case passes the operation, configuring a case weight value of the test case and configuring a data weight value of the test data according to the test result, including:
increasing the case weight value of the test case and updating the case weight value to the first database; and
increasing the data weight value of the test data and updating to the second database,
when the test result is a case operation error, the method further comprises: analyzing the causes of the case operation errors to obtain error classification results,
configuring a case weight value of the test case and a data weight value of the test data according to the test result, comprising: and configuring a case weight value of the test case and a data weight value of the test data according to the error classification result.
5. The method of claim 4, wherein the misclassification result comprises an environmental problem, a data problem, or a procedural problem,
when the error classification result is an environmental problem, repeatedly executing m times of the test on the page elements and the test data according to the test step, wherein m is an integer greater than or equal to 1, and if the test result obtained each time is still a case operation error and the error classification result is an environmental problem, configuring a case weight value of the test case and a data weight value of the test data according to the error classification result comprises the following steps:
maintaining constant case weight values for the test cases in the first database; and
maintaining constant the data weight values of the test data in the second database,
when the misclassification result is a data problem, configuring a case weight value of the test case and a data weight value of the test data according to the misclassification result, including:
increasing the case weight value of the test case and updating the case weight value to the first database; and
reducing the data weight value of the test data and updating to the second database,
when the error classification result is a program problem, the configuring a case weight value of the test case and a data weight value of the test data according to the error classification result includes:
increasing the case weight value of the test case and updating the case weight value to the first database; and
and increasing the data weight value of the test data and updating the data weight value to the second database.
6. The method of claim 1, wherein the test result comprises a case run pass or a case run error, and when the test result is a case run error, the method further comprises: analyzing the case operation error reasons to obtain error classification results, wherein the error classification results comprise environmental problems, data problems or program problems,
when the test case runs successfully, configuring a case weight value of the test case and a data weight value of the test data according to the test result, wherein the configuring comprises:
calculating and updating a case weight value of the test case according to the total number of times of operation of the test case, the success times, the last operation success date, the last operation time, the current date and the current time; and
calculating and updating the data weight value of the test data according to the total times of the test data operation, the success times, the last operation success date, the last operation time, the current date and the current time,
the successful operation of the test case comprises that the test result is case operation passing, and when the test result is case operation error and the error classification result comprises a data problem or a program problem.
7. The method of claim 1, wherein the test results include case-run-through or case-run-error,
when the test result is that the case passes the operation, the test report comprises case operation passing information;
and when the test result is a case operation error, the test report comprises case operation error information.
8. An uncoded page automatic test device, comprising:
the first acquisition module is used for executing and acquiring a test case corresponding to a test key point, wherein the test case comprises page elements and test steps;
the second acquisition module is used for executing acquisition of the test data corresponding to the page element;
the test module is used for testing the page elements and the test data according to the test steps to obtain a test result;
the generating module is used for executing the generation of a test report according to the test result; and
and the configuration module is used for configuring a case weight value of the test case and a data weight value of the test data according to the test result.
9. An electronic device, comprising:
one or more processors;
one or more memories for storing executable instructions that, when executed by the processor, implement the method of any one of claims 1-7.
10. A computer-readable storage medium, characterized in that the storage medium has stored thereon executable instructions which, when executed by a processor, implement the method according to any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210995705.6A CN115292187A (en) | 2022-08-18 | 2022-08-18 | Method and device for automatically testing code-free page, electronic equipment and medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210995705.6A CN115292187A (en) | 2022-08-18 | 2022-08-18 | Method and device for automatically testing code-free page, electronic equipment and medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN115292187A true CN115292187A (en) | 2022-11-04 |
Family
ID=83829852
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210995705.6A Pending CN115292187A (en) | 2022-08-18 | 2022-08-18 | Method and device for automatically testing code-free page, electronic equipment and medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115292187A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116578438A (en) * | 2023-07-13 | 2023-08-11 | 建信金融科技有限责任公司 | Automatic detection method and device suitable for aging transformation |
-
2022
- 2022-08-18 CN CN202210995705.6A patent/CN115292187A/en active Pending
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116578438A (en) * | 2023-07-13 | 2023-08-11 | 建信金融科技有限责任公司 | Automatic detection method and device suitable for aging transformation |
CN116578438B (en) * | 2023-07-13 | 2023-09-08 | 建信金融科技有限责任公司 | Automatic detection method and device suitable for aging transformation |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10970294B2 (en) | Website scoring system | |
CN105205144A (en) | Method and system used for data diagnosis and optimization | |
US11775504B2 (en) | Computer estimations based on statistical tree structures | |
CN113779240A (en) | Information identification method, device, computer system and readable storage medium | |
CN115061874A (en) | Log information verification method, device, equipment and medium | |
CN113535577B (en) | Application testing method and device based on knowledge graph, electronic equipment and medium | |
CN115292187A (en) | Method and device for automatically testing code-free page, electronic equipment and medium | |
CN115827122A (en) | Operation guiding method and device, electronic equipment and storage medium | |
CN114625667A (en) | Page testing method, device, equipment, storage medium and program product | |
CN115080434A (en) | Case execution method, device, equipment and medium | |
CN114691527A (en) | Unit test case generation method, apparatus, device, medium, and program product | |
CN111400623B (en) | Method and device for searching information | |
CN114637689A (en) | Application evaluation method, device, equipment and storage medium | |
CN113609018A (en) | Test method, training method, device, apparatus, medium, and program product | |
CN113052509A (en) | Model evaluation method, model evaluation apparatus, electronic device, and storage medium | |
CN113391988A (en) | Method and device for losing user retention, electronic equipment and storage medium | |
CN113448822A (en) | Test method, test device, computer readable medium and electronic equipment | |
CN114996119B (en) | Fault diagnosis method, fault diagnosis device, electronic device and storage medium | |
CN115687076A (en) | Test method, device, equipment and medium | |
CN115689263A (en) | Information generation method, device, equipment and storage medium | |
CN118093418A (en) | Test case assessment method, apparatus, device, medium and program product | |
CN114528224A (en) | Persistent integration method, apparatus, electronic device, storage medium, and program product | |
CN118174823A (en) | Message processing method, device, equipment, medium and program product | |
CN118377722A (en) | Page test method, device, equipment, medium and program product | |
CN114817007A (en) | Information processing method and device, electronic equipment and computer readable storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |