CN112069082A - Automatic testing method and system - Google Patents

Automatic testing method and system Download PDF

Info

Publication number
CN112069082A
CN112069082A CN202011053878.3A CN202011053878A CN112069082A CN 112069082 A CN112069082 A CN 112069082A CN 202011053878 A CN202011053878 A CN 202011053878A CN 112069082 A CN112069082 A CN 112069082A
Authority
CN
China
Prior art keywords
test
test case
attribute value
resource
case
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
Application number
CN202011053878.3A
Other languages
Chinese (zh)
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.)
Intelligent Interconnection Technologies Co ltd
Original Assignee
Intelligent Interconnection Technologies Co ltd
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 Intelligent Interconnection Technologies Co ltd filed Critical Intelligent Interconnection Technologies Co ltd
Priority to CN202011053878.3A priority Critical patent/CN112069082A/en
Publication of CN112069082A publication Critical patent/CN112069082A/en
Pending legal-status Critical Current

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/3684Test management for test design, e.g. generating new test cases
    • 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

Abstract

The invention discloses an automatic testing method and system, relating to the technical field of software testing, wherein the method comprises the following steps: determining an attribute value corresponding to a test case according to-be-tested content, and selecting the test case from a test case database according to the attribute value corresponding to the test case, wherein different test cases are stored in the test case database, and the different test cases respectively correspond to at least one attribute value; determining a test resource type required by executing the test case according to the attribute value corresponding to the test case, and judging whether the test resource corresponding to the type is idle; if the test resource corresponding to the type is idle, executing the test case; and when an abnormal log exists, recording text information and image information corresponding to the abnormal log. The invention can solve the problems of poor expandability, high maintenance cost and low automatic testing efficiency of the conventional automatic test.

Description

Automatic testing method and system
Technical Field
The invention relates to the technical field of software testing, in particular to an automatic testing method and system.
Background
With the continuous development of intelligent technology, the role played by automated testing is more and more important. At present, an automatic test is usually designed based on an interface and an interface, usually, the automatic test is performed on a certain part of software, and only regression verification of a certain local end can be solved, but a system is a whole, and when data of a certain end changes, once the system is locally adjusted, inadaptability of the whole automatic test framework is directly caused.
Currently, there are many automatic testing tools in the market, such as QTP (Quick Test Professional), selenium (WEB automation tool), JUNIT (Java language based unit testing framework), and so on. The QTP and the selenium are mainly used for performing function automation tests, usually, use cases and test data are written into an EXCEL table, a script is started to call the use cases for execution, however, when the test cases are selected, due to the fact that the system can iterate continuously, great troubles are brought to the maintenance of the test cases and the test scripts, on one hand, codes need to be modified, on the other hand, the test cases need to be modified, and maintenance cost is gradually increased. Like JUNIT, after the interface execution is wrong, only the state that the test case is executed and passed can be recorded, the case execution failure log is not tracked, and if a problem is located, only the script can be executed again, so that the efficiency of the automatic test is low.
Disclosure of Invention
In order to solve the technical problems, the invention provides an automatic test method and system, which can solve the problems of poor expandability, high maintenance cost and low automatic test efficiency of the conventional automatic test.
In order to achieve the above object, the present invention provides an automated testing method, comprising:
determining an attribute value corresponding to a test case according to-be-tested content, and selecting the test case from a test case database according to the attribute value corresponding to the test case, wherein different test cases are stored in the test case database, and the different test cases respectively correspond to at least one attribute value;
determining a test resource type required by executing the test case according to the attribute value corresponding to the test case, and judging whether the test resource corresponding to the type is idle;
if the test resource corresponding to the type is idle, executing the test case;
and when an abnormal log exists, recording text information and image information corresponding to the abnormal log.
Further, the step of recording the image information corresponding to the abnormal log comprises:
determining screen capture starting and stopping time according to the execution time corresponding to the test case;
and if the test case fails to be executed, performing screen capture operation on the screen according to the screen capture starting and stopping time to obtain image information corresponding to the abnormal log.
Further, the step of judging whether the test resource corresponding to the type is idle includes:
sending a test resource request to a test server through an IP address corresponding to the test resource type, wherein different test resource types are respectively configured with different IP addresses;
and if the response information of the test server is received, determining that the test resources are idle.
Further, the method further comprises:
and if the test resource type corresponding to the attribute value does not exist, updating a test resource database, wherein different types of test resources and corresponding IP addresses are configured in the test resource database.
Further, before the step of determining an attribute value corresponding to the test case according to the content to be tested and selecting the test case according to the attribute value corresponding to the test case, the method further includes:
storing different test cases and corresponding test data in different document databases respectively, and configuring corresponding test case attribute values for the different test cases respectively, wherein the test cases and the corresponding test data are associated through test case IDs and the test case attribute values.
Further, the method further comprises: and generating a test report template corresponding to the attribute value according to the attribute value corresponding to the test case, the test resource type required by executing the test case, and the text information and the image information corresponding to the abnormal log.
Further, the present invention provides an automated test system, the system comprising:
the determining module is used for determining an attribute value corresponding to a test case according to the content to be tested, and selecting the test case from a test case database according to the attribute value corresponding to the test case, wherein different test cases are stored in the test case database, and the different test cases respectively correspond to at least one attribute value;
the judging module is used for determining the type of the test resource required by executing the test case according to the attribute value corresponding to the test case and judging whether the test resource corresponding to the type is idle or not;
the execution module is used for executing the test case if the test resource corresponding to the type is idle;
and the recording module is used for recording the text information and the image information corresponding to the abnormal log when the abnormal log exists.
Further, the recording module is specifically configured to determine screen capture start-stop time according to the execution time corresponding to the test case; and if the test case fails to be executed, performing screen capture operation on the screen according to the screen capture starting and stopping time to obtain image information corresponding to the abnormal log.
Further, the determining module is specifically configured to send a test resource request to a test server through an IP address corresponding to the test resource type, where different test resource types are configured with different IP addresses respectively; and if the response information of the test server is received, determining that the test resources are idle.
Further, the system further comprises: an update module;
and the updating module is used for updating the test resource database if the test resource type corresponding to the attribute value does not exist, wherein different types of test resources and the IP addresses respectively corresponding to the test resources are configured in the test resource database.
Further, the system further comprises: a storage configuration module;
the storage configuration module is used for respectively storing different test cases and corresponding test data in different document databases, and respectively configuring corresponding test case attribute values for the different test cases, wherein the test cases and the corresponding test data are associated through test case IDs and the test case attribute values.
Further, the system further comprises: a generation module;
the generating module is used for generating a test report template corresponding to the attribute value according to the attribute value corresponding to the test case, the test resource type required by executing the test case, and the text information and the image information corresponding to the abnormal log.
According to the automatic test method and the automatic test system, when the test case is selected, the attribute value is configured for the test case, the execution case screening can be carried out through the attribute value, the selection efficiency of the execution case is improved, and once the test case is changed, the expansion and maintenance of the test case can be realized as long as the corresponding attribute value is given; when the test resources are requested, the corresponding types of test resources are requested according to the attribute values of the test cases, and the utilization rate of the test resources is further improved; and the dimension of image information is added in the test result, so that the problem positioning precision of the automatic test can be further improved, and the problem solving efficiency is further improved.
Drawings
FIG. 1 is a flow chart of an automated testing method provided by the present invention;
fig. 2 is a schematic diagram of an automated testing method system provided by the present invention.
Detailed Description
The structure and implementation of the device of the present invention are further described in detail below with reference to the accompanying drawings and examples.
The invention provides an automatic testing method, as shown in fig. 1, which specifically comprises the following steps:
101. and determining an attribute value corresponding to the test case according to the content to be tested, and selecting the test case from the test case database according to the attribute value corresponding to the test case.
Different test cases are stored in the test case database, and the different test cases respectively correspond to at least one attribute value.
Specifically, when the existing automated test is used for executing case screening, all test files of the EXCEL are usually executed once, otherwise, the EXCEL files are manually used for screening good cases in advance and then executing scripts, so that the execution flexibility of the test cases is poor. When screening the use cases, the embodiment of the invention can automatically identify the attributes of the use cases, such as attribute values of a test case affiliated system, an affiliated module, a test case level, a test version and the like, according to the contents to be tested, and then select the test cases according to the attribute values of the test cases. Meanwhile, the attribute value options can be automatically displayed in an interface mode, at the moment, required attribute values can be manually selected from the attributes displayed on the interface, test cases are screened according to the selected attributes to serve as cases to be executed, and usability and flexibility are improved.
It should be noted that, generally, an automation test first needs to prepare a test script and a test case, and the existing automation test only writes the case and test data into an EXCEL table, and then starts the script to call the case from the EXCEL table for execution. However, when the test case is selected, the system is considered to be iterated continuously, so that great troubles are brought to the maintenance generation of the test case and the test script, on one hand, codes need to be modified, on the other hand, the test case needs to be modified, and the maintenance cost is gradually increased. In order to solve the problems of scripts, test data and test cases, the test cases and the test data are separated when an automation architecture is customized according to the embodiment of the invention, because some test data can be nested in the test scripts and are respectively stored in different documents after being separated, the unique ID of each test case is used as association, when the test cases need to be adjusted, only the test scripts need to be adjusted independently without changing the test cases and the test data, the problem that maintenance cost is increased after the test scripts are adjusted is solved, and the universality and independence of the test scripts, the test data and the test cases are enhanced.
For the embodiment of the present invention, step 101 may further include: storing different test cases and corresponding test data in different document databases respectively, and configuring corresponding test case attribute values for the different test cases respectively, wherein the test cases and the corresponding test data are associated through test case IDs and the test case attribute values.
It should be noted that, because most of the existing test scripts are written together with the test data, the maintenance is very complicated; after the designer changes, a new tester needs to look at annotations from the code and modify test data, so that the risk of code robustness exists besides low maintenance cost and low code reusability, and the code is abnormal and cannot be executed in a certain scene once the test is not considered completely; the test case is completely separated from the test data after optimization, the test data corresponding to the test script only needs to be written into a file corresponding to the test script, when the type of the original test data such as the test data is changed, only the test data file corresponding to the test script needs to be maintained, and the maintenance efficiency is obviously improved.
102. And determining the type of the test resource required by executing the test case according to the attribute value corresponding to the test case, and judging whether the test resource corresponding to the type is idle.
For the embodiment of the present invention, the step of determining whether the test resource corresponding to the type is idle may include: and sending a test resource request to the test server through the IP address corresponding to the test resource type, wherein different test resource types are respectively configured with different IP addresses. And if the response information of the test server is received, determining that the test resources are idle.
Specifically, the existing automated testing architecture selects a testing environment by manual participation before executing a script, and often selects a single environment with a single scene, and each execution needs to find a corresponding testing resource. In order to meet the conditions of multiple fields and multiple environments, reduce the waste of resources and facilitate the maintenance of test resources, the embodiment of the invention makes available resources into filing classification, for example, the resources are distinguished from large-type versions to small-type versions, so that the resources can be shared, the problem of resource waste is solved, when the test resources are needed, the resources are applied to a test resource platform, if the resources are idle, the resources are allocated until a test case is executed, and at the moment, the connection is disconnected to release the test resources.
For example, if the currently selected test system is an APP, then in the test resource server, the available APP resources are automatically associated, and specifically, according to whether the APP resources belong to an apple system or an android system, the brand and model of the mobile phone are automatically filtered through the selected system, and the required device is selected to execute the automated test. In the process, because the test resources are not independently accessed, the test resources are not optional for the equipment resources used by other people, so that the test results can be prevented from influencing each other; for another example, the test case is a web test case, the test equipment resources required by the web are automatically filtered through the type of the test system, firstly, whether the resource type is a WINDWOS operating system or an apple operating system is selected, then, the type and the version option value of the browser are selected, then, a request is sent to the test server through IP, if the response proves that the resources are available, and if the response does not prove that the resources are unavailable, the resources are unavailable.
It should be noted that, in the existing automatic test, test resources are manually selected, and when different objects are tested, manual intervention is required to complete a specified test task, for example, a mobile terminal is used, and when the script is tested, the screen size and the system version are provided; if the PC end needs to provide an operating system, a browser and the like; the embodiment of the invention prepares the test resource library in advance, each type of test resource has corresponding IP and access authority, the automatic script obtains the test resource type information by calling the resource library, calls the corresponding resource by the resource type information, and accesses the specified resource, so that the human intervention is reduced, and different resources can be called when a plurality of test scripts are simultaneously carried out, thereby ensuring the test compatibility.
103. And if the test resource corresponding to the type is idle, executing the test case.
Further, if the test resource type corresponding to the attribute value does not exist, updating a test resource database, where different types of test resources and corresponding IP addresses are configured in the test resource database.
104. And when an abnormal log exists, recording text information and image information corresponding to the abnormal log.
For the embodiment of the present invention, the step of recording the image information corresponding to the abnormal log includes: determining screen capture starting and stopping time according to the execution time corresponding to the test case; and if the test case fails to be executed, performing screen capture operation on the screen according to the screen capture starting and stopping time to obtain image information corresponding to the abnormal log.
Specifically, the existing automated test only records a text error log, but is unknown due to background reasons and compatibility reasons, and only secondary analysis can be performed. In order to solve the problem of difficulty in interface test analysis, the embodiment of the invention adds the image configurable information options such as the screenshot and the video, so that when the test case is executed, once the bug is found, the log abnormal information of the text can be recorded, and the image log information such as the screenshot and the video can be synchronously added, so that when the bug is not caused by the background, the problem can be positioned according to the screenshot and the video, and the positioning efficiency of the automatic test problem is improved.
It should be noted that, the embodiment of the present invention adds image information supplementation for the automated test, and by combining the start-stop time of executing the script with the test case execution state, when the test case execution fails, the intercepted video is written into the scene result directory, so that the problem is more visually displayed by viewing the video, and meanwhile, the log and the screenshot can be configured according to the self-requirement, so that the present invention is more flexible and reduces the resource waste.
Further, a test report template corresponding to the attribute value can be generated according to the attribute value corresponding to the test case, the type of the test resource required for executing the test case, and the text information and the image information corresponding to the abnormal log.
Specifically, after the test case is executed, the customized test report is generated according to the configuration items in step 101-104. It should be noted that, this pair of function optimization can also customize a test result according to needs, and manual processing statistics is not needed, and we can use the attribute value corresponding to the test case as a dimension item, for example, use the case level, the system to which the case belongs, the function module to which the case belongs, and the like as a dimension item, and can know the quality of the current version code more quickly through multi-dimensional display. And the frequently used test report can be defined as a test report template, and after the test case is selected, whether the selected test report template is available or not is judged according to the attribute value of the loaded test case, so that the practicability and the usability of the test report are improved.
According to the automatic test method provided by the invention, when the test case is selected, the attribute value is configured for the test case, the execution case screening can be carried out through the attribute value, the selection efficiency of the execution case is improved, and once the test case is changed, the expansion and maintenance of the test case can be realized as long as the corresponding attribute value is given; when the test resources are requested, the corresponding types of test resources are requested according to the attribute values of the test cases, and the utilization rate of the test resources is further improved; and the dimension of image information is added in the test result, so that the problem positioning precision of the automatic test can be further improved, and the problem solving efficiency is further improved.
As a specific implementation manner of the method shown in fig. 1, an embodiment of the present invention provides an automated testing system, as shown in fig. 2, where the system includes: the determining module 21 is configured to determine an attribute value corresponding to a test case according to content to be tested, and select a test case from a test case database according to the attribute value corresponding to the test case, where different test cases are stored in the test case database, and the different test cases respectively correspond to at least one attribute value.
Specifically, when the existing automated test is used for executing case screening, all test files of the EXCEL are usually executed once, otherwise, the EXCEL files are manually used for screening good cases in advance and then executing scripts, so that the execution flexibility of the test cases is poor. When screening the use cases, the embodiment of the invention can automatically identify the attributes of the use cases, such as attribute values of a test case affiliated system, an affiliated module, a test case level, a test version and the like, according to the contents to be tested, and then select the test cases according to the attribute values of the test cases. Meanwhile, the attribute value options can be automatically displayed in an interface mode, at the moment, required attribute values can be manually selected from the attributes displayed on the interface, test cases are screened according to the selected attributes to serve as cases to be executed, and usability and flexibility are improved.
The judging module 22 is configured to determine a type of a test resource required for executing the test case according to the attribute value corresponding to the test case, and judge whether the test resource corresponding to the type is idle.
And the execution module 23 is configured to execute the test case if the test resource corresponding to the type is idle.
Specifically, the existing automated testing architecture selects a testing environment by manual participation before executing a script, and often selects a single environment with a single scene, and each execution needs to find a corresponding testing resource. In order to meet the conditions of multiple fields and multiple environments, reduce the waste of resources and facilitate the maintenance of test resources, the embodiment of the invention makes available resources into filing classification, for example, the resources are distinguished from large-type versions to small-type versions, so that the resources can be shared, the problem of resource waste is solved, when the test resources are needed, the resources are applied to a test resource platform, if the resources are idle, the resources are allocated until a test case is executed, and at the moment, the connection is disconnected to release the test resources.
And the recording module 24 is configured to record text information and image information corresponding to the abnormal log when the abnormal log exists.
Specifically, the existing automated test only records a text error log, but is unknown due to background reasons and compatibility reasons, and only secondary analysis can be performed. In order to solve the problem of difficulty in interface test analysis, the embodiment of the invention adds the image configurable information options such as the screenshot and the video, so that when the test case is executed, once the bug is found, the log abnormal information of the text can be recorded, and the image log information such as the screenshot and the video can be synchronously added, so that when the bug is not caused by the background, the problem can be positioned according to the screenshot and the video, and the positioning efficiency of the automatic test problem is improved.
Further, the recording module 24 is specifically configured to determine a screen capture start-stop time according to the execution time corresponding to the test case; and if the test case fails to be executed, performing screen capture operation on the screen according to the screen capture starting and stopping time to obtain image information corresponding to the abnormal log.
Further, the determining module 22 is specifically configured to send a test resource request to the test server through the IP address corresponding to the test resource type, where different test resource types are configured with different IP addresses respectively; and if the response information of the test server is received, determining that the test resources are idle.
Further, the system further comprises: an update module 25;
the updating module 25 is configured to update the test resource database if the test resource type corresponding to the attribute value does not exist, where different types of test resources and corresponding IP addresses are configured in the test resource database.
Further, the system further comprises: a storage configuration module 26;
the storage configuration module 26 is configured to store different test cases and corresponding test data in different document databases, and configure corresponding test case attribute values for the different test cases, where the test cases and the corresponding test data are associated through test case IDs and test case attribute values.
Further, the system further comprises: a generation module 27;
the generating module 27 is configured to generate a test report template corresponding to the attribute value according to the attribute value corresponding to the test case, the test resource type required for executing the test case, and the text information and the image information corresponding to the abnormal log.
According to the automatic test system provided by the invention, when the test case is selected, the attribute value is configured for the test case, the execution case screening can be carried out through the attribute value, the selection efficiency of the execution case is improved, and once the test case is changed, the expansion and maintenance of the test case can be realized as long as the corresponding attribute value is given; when the test resources are requested, the corresponding types of test resources are requested according to the attribute values of the test cases, and the utilization rate of the test resources is further improved; and the dimension of image information is added in the test result, so that the problem positioning precision of the automatic test can be further improved, and the problem solving efficiency is further improved.
It should be understood that the specific order or hierarchy of steps in the processes disclosed is an example of exemplary approaches. Based upon design preferences, it is understood that the specific order or hierarchy of steps in the processes may be rearranged without departing from the scope of the present disclosure. The accompanying method claims present elements of the various steps in a sample order, and are not intended to be limited to the specific order or hierarchy presented.
In the foregoing detailed description, various features are grouped together in a single embodiment for the purpose of streamlining the disclosure. This method of disclosure is not to be interpreted as reflecting an intention that the claimed embodiments of the subject matter require more features than are expressly recited in each claim. Rather, as the following claims reflect, invention lies in less than all features of a single disclosed embodiment. Thus, the following claims are hereby expressly incorporated into the detailed description, with each claim standing on its own as a separate preferred embodiment of the invention.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. To those skilled in the art; various modifications to these embodiments will be readily apparent, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the disclosure. Thus, the present disclosure is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
What has been described above includes examples of one or more embodiments. It is, of course, not possible to describe every conceivable combination of components or methodologies for purposes of describing the aforementioned embodiments, but one of ordinary skill in the art may recognize that many further combinations and permutations of various embodiments are possible. Accordingly, the embodiments described herein are intended to embrace all such alterations, modifications and variations that fall within the scope of the appended claims. Furthermore, to the extent that the term "includes" is used in either the detailed description or the claims, such term is intended to be inclusive in a manner similar to the term "comprising" as "comprising" is interpreted when employed as a transitional word in a claim. Furthermore, any use of the term "or" in the specification of the claims is intended to mean a "non-exclusive or".
Those of skill in the art will further appreciate that the various illustrative logical blocks, units, and steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both. To clearly illustrate the interchangeability of hardware and software, various illustrative components, elements, and steps have been described above generally in terms of their functionality. Whether such functionality is implemented as hardware or software depends upon the particular application and design requirements of the overall system. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present embodiments.
The various illustrative logical blocks, or elements, described in connection with the embodiments disclosed herein may be implemented or performed with a general purpose processor, a digital signal processor, an Application Specific Integrated Circuit (ASIC), a field programmable gate array or other programmable logic device, discrete gate or transistor logic, discrete hardware components, or any combination thereof designed to perform the functions described herein. A general-purpose processor may be a microprocessor, but in the alternative, the processor may be any conventional processor, controller, microcontroller, or state machine. A processor may also be implemented as a combination of computing devices, e.g., a digital signal processor and a microprocessor, a plurality of microprocessors, one or more microprocessors in conjunction with a digital signal processor core, or any other similar configuration.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may be stored in RAM memory, flash memory, ROM memory, EPROM memory, EEPROM memory, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art. For example, a storage medium may be coupled to the processor such the processor can read information from, and write information to, the storage medium. In the alternative, the storage medium may be integral to the processor. The processor and the storage medium may reside in an ASIC, which may be located in a user terminal. In the alternative, the processor and the storage medium may reside in different components in a user terminal.
In one or more exemplary designs, the functions described above in connection with the embodiments of the invention may be implemented in hardware, software, firmware, or any combination of the three. If implemented in software, the functions may be stored on or transmitted over as one or more instructions or code on a computer-readable medium. Computer-readable media includes both computer storage media and communication media that facilitate transfer of a computer program from one place to another. Storage media may be any available media that can be accessed by a general purpose or special purpose computer. For example, such computer-readable media can include, but is not limited to, RAM, ROM, EEPROM, CD-ROM or other optical disk storage, magnetic disk storage or other magnetic storage devices, or any other medium which can be used to carry or store program code in the form of instructions or data structures and which can be read by a general-purpose or special-purpose computer, or a general-purpose or special-purpose processor. Additionally, any connection is properly termed a computer-readable medium, and, thus, is included if the software is transmitted from a website, server, or other remote source via a coaxial cable, fiber optic cable, twisted pair, Digital Subscriber Line (DSL), or wirelessly, e.g., infrared, radio, and microwave. Such discs (disk) and disks (disc) include compact disks, laser disks, optical disks, DVDs, floppy disks and blu-ray disks where disks usually reproduce data magnetically, while disks usually reproduce data optically with lasers. Combinations of the above may also be included in the computer-readable medium.
The above-mentioned embodiments are intended to illustrate the objects, technical solutions and advantages of the present invention in further detail, and it should be understood that the above-mentioned embodiments are merely exemplary embodiments of the present invention, and are not intended to limit the scope of the present invention, and any modifications, equivalent substitutions, improvements and the like made within the spirit and principle of the present invention should be included in the scope of the present invention.

Claims (12)

1. An automated testing method, the method comprising:
determining an attribute value corresponding to a test case according to-be-tested content, and selecting the test case from a test case database according to the attribute value corresponding to the test case, wherein different test cases are stored in the test case database, and the different test cases respectively correspond to at least one attribute value;
determining a test resource type required by executing the test case according to the attribute value corresponding to the test case, and judging whether the test resource corresponding to the type is idle;
if the test resource corresponding to the type is idle, executing the test case;
and when an abnormal log exists, recording text information and image information corresponding to the abnormal log.
2. The automated testing method of claim 1, wherein the step of recording the image information corresponding to the abnormal log comprises:
determining screen capture starting and stopping time according to the execution time corresponding to the test case;
and if the test case fails to be executed, performing screen capture operation on the screen according to the screen capture starting and stopping time to obtain image information corresponding to the abnormal log.
3. The automated testing method according to claim 1, wherein the step of determining whether the testing resource corresponding to the type is idle comprises:
sending a test resource request to a test server through an IP address corresponding to the test resource type, wherein different test resource types are respectively configured with different IP addresses;
and if the response information of the test server is received, determining that the test resources are idle.
4. The automated testing method of claim 1, further comprising:
and if the test resource type corresponding to the attribute value does not exist, updating a test resource database, wherein different types of test resources and corresponding IP addresses are configured in the test resource database.
5. The automated testing method of claim 1, wherein before the step of determining the attribute value corresponding to the test case according to the content to be tested and selecting the test case according to the attribute value corresponding to the test case, the method further comprises:
storing different test cases and corresponding test data in different document databases respectively, and configuring corresponding test case attribute values for the different test cases respectively, wherein the test cases and the corresponding test data are associated through test case IDs and the test case attribute values.
6. The automated testing method of claim 1, further comprising:
and generating a test report template corresponding to the attribute value according to the attribute value corresponding to the test case, the test resource type required by executing the test case, and the text information and the image information corresponding to the abnormal log.
7. An automated test system, the system comprising:
the determining module is used for determining an attribute value corresponding to a test case according to the content to be tested, and selecting the test case from a test case database according to the attribute value corresponding to the test case, wherein different test cases are stored in the test case database, and the different test cases respectively correspond to at least one attribute value;
the judging module is used for determining the type of the test resource required by executing the test case according to the attribute value corresponding to the test case and judging whether the test resource corresponding to the type is idle or not;
the execution module is used for executing the test case if the test resource corresponding to the type is idle;
and the recording module is used for recording the text information and the image information corresponding to the abnormal log when the abnormal log exists.
8. The automated test system of claim 7,
the recording module is specifically used for determining screen capture starting and stopping time according to the execution time corresponding to the test case; and if the test case fails to be executed, performing screen capture operation on the screen according to the screen capture starting and stopping time to obtain image information corresponding to the abnormal log.
9. The automated testing method of claim 7,
the judging module is specifically used for sending a test resource request to a test server through an IP address corresponding to the test resource type, and different test resource types are respectively configured with different IP addresses; and if the response information of the test server is received, determining that the test resources are idle.
10. The automated testing method of claim 7, wherein the system further comprises: an update module;
and the updating module is used for updating the test resource database if the test resource type corresponding to the attribute value does not exist, wherein different types of test resources and the IP addresses respectively corresponding to the test resources are configured in the test resource database.
11. The automated testing method of claim 7, wherein the system further comprises: a storage configuration module;
the storage configuration module is used for respectively storing different test cases and corresponding test data in different document databases, and respectively configuring corresponding test case attribute values for the different test cases, wherein the test cases and the corresponding test data are associated through test case IDs and the test case attribute values.
12. The automated testing method of claim 7, wherein the system further comprises: a generation module;
the generating module is used for generating a test report template corresponding to the attribute value according to the attribute value corresponding to the test case, the test resource type required by executing the test case, and the text information and the image information corresponding to the abnormal log.
CN202011053878.3A 2020-09-29 2020-09-29 Automatic testing method and system Pending CN112069082A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011053878.3A CN112069082A (en) 2020-09-29 2020-09-29 Automatic testing method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011053878.3A CN112069082A (en) 2020-09-29 2020-09-29 Automatic testing method and system

Publications (1)

Publication Number Publication Date
CN112069082A true CN112069082A (en) 2020-12-11

Family

ID=73683083

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011053878.3A Pending CN112069082A (en) 2020-09-29 2020-09-29 Automatic testing method and system

Country Status (1)

Country Link
CN (1) CN112069082A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113776782A (en) * 2021-08-12 2021-12-10 惠州Tcl云创科技有限公司 MTF test method, test equipment and computer readable storage medium
WO2023185482A1 (en) * 2022-03-29 2023-10-05 中兴通讯股份有限公司 Test method, storage medium and electronic apparatus

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1601483A (en) * 2004-10-22 2005-03-30 中国工商银行 Automation software testing system based on script explanatory tool
US20100070230A1 (en) * 2008-09-16 2010-03-18 Verizon Data Services Llc Integrated testing systems and methods
CN102214139A (en) * 2011-06-01 2011-10-12 北京航空航天大学 Automatic test performance control and debugging method facing distributed system
CN108804300A (en) * 2017-04-27 2018-11-13 龙芯中科技术有限公司 Automated testing method and system
CN110851356A (en) * 2019-10-30 2020-02-28 河海大学 Selenium-based Web application automatic test framework and construction method and system thereof

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1601483A (en) * 2004-10-22 2005-03-30 中国工商银行 Automation software testing system based on script explanatory tool
US20100070230A1 (en) * 2008-09-16 2010-03-18 Verizon Data Services Llc Integrated testing systems and methods
CN102214139A (en) * 2011-06-01 2011-10-12 北京航空航天大学 Automatic test performance control and debugging method facing distributed system
CN108804300A (en) * 2017-04-27 2018-11-13 龙芯中科技术有限公司 Automated testing method and system
CN110851356A (en) * 2019-10-30 2020-02-28 河海大学 Selenium-based Web application automatic test framework and construction method and system thereof

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113776782A (en) * 2021-08-12 2021-12-10 惠州Tcl云创科技有限公司 MTF test method, test equipment and computer readable storage medium
WO2023185482A1 (en) * 2022-03-29 2023-10-05 中兴通讯股份有限公司 Test method, storage medium and electronic apparatus

Similar Documents

Publication Publication Date Title
CN108984389B (en) Application program testing method and terminal equipment
US10860464B2 (en) Test selection for application commit
KR20140053542A (en) Automatic testing apparatus for embedded software, automatic testing method thereof and test scenario composing method
CN113127347B (en) Interface testing method, device, equipment and readable storage medium
CN111274154A (en) Automatic testing method, device, equipment and storage medium
CN112069082A (en) Automatic testing method and system
CN111190825A (en) Automatic test method, system and robot
CN112181854B (en) Method, device, equipment and storage medium for generating process automation script
CN110837474A (en) Script recording method, device, terminal and storage medium
CN110198327B (en) Data transmission method and related equipment
US10983782B1 (en) User interface upgrade analyzer
CN115658529A (en) Automatic testing method for user page and related equipment
CN112231206A (en) Script editing method for application program test, computer readable storage medium and test platform
CN114328250A (en) Automatic self-checking method, medium and device for software system
CN112069073A (en) Test case management method, terminal and storage medium
US11341030B2 (en) Scriptless software test automation
CN114546881B (en) Application software testing method, electronic device and computer readable storage medium
CN114328180A (en) Interface automation test method, system, electronic equipment and storage medium
CN115437903A (en) Interface test method, device, apparatus, storage medium, and program
CN111597119A (en) Test script updating method and device, storage medium and processor
CN117234949B (en) Test data noise reduction method and device, storage medium and computer equipment
JP5034292B2 (en) Module installation program, module installation apparatus, and module installation method
CN115982018B (en) UI test method, system, computer device and storage medium based on OCR
CN117648257A (en) Web automatic test method and system under Linux operating system
CN115934560A (en) User interface UI automation test method, device, equipment and 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
CB02 Change of applicant information

Address after: 075000 ten building, phase 1, airport economic and Technological Development Zone, Zhangjiakou, Hebei

Applicant after: Smart intercommunication Technology Co.,Ltd.

Address before: 075000 ten building, phase 1, airport economic and Technological Development Zone, Zhangjiakou, Hebei

Applicant before: INTELLIGENT INTERCONNECTION TECHNOLOGIES Co.,Ltd.

CB02 Change of applicant information