CN113568794A - Front-end automatic testing method and device - Google Patents

Front-end automatic testing method and device Download PDF

Info

Publication number
CN113568794A
CN113568794A CN202110866763.4A CN202110866763A CN113568794A CN 113568794 A CN113568794 A CN 113568794A CN 202110866763 A CN202110866763 A CN 202110866763A CN 113568794 A CN113568794 A CN 113568794A
Authority
CN
China
Prior art keywords
verification code
graphic
webpage
graphic verification
detected
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
CN202110866763.4A
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.)
Bank of China Ltd
Original Assignee
Bank of China 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 Bank of China Ltd filed Critical Bank of China Ltd
Priority to CN202110866763.4A priority Critical patent/CN113568794A/en
Publication of CN113568794A publication Critical patent/CN113568794A/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/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2205Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested
    • G06F11/221Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested to test buses, lines or interfaces, e.g. stuck-at or open line faults
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/31User authentication
    • G06F21/36User authentication by graphic or iconic representation

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Hardware Design (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Quality & Reliability (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention provides a front-end automatic testing method and a device, wherein the method comprises the following steps: receiving a user interface test request; when the graphic verification code needs to be input, the position of the graphic verification code element is positioned; capturing the graphic verification code according to the position of the graphic verification code element to obtain a verification code screenshot; and identifying the verification code in the verification code screenshot by using a character identification technology to obtain an identification result, and inputting the identification result. The verification code is positioned and then subjected to screenshot, and the screenshot is subjected to character recognition to obtain a recognition result of the graphic verification code, so that corresponding recognition results can be filled in aiming at different graphic verification codes, and the graphic verification code can be automatically input even in batch front-end automatic tests, so that the test efficiency is improved; compared with the prior art of universal verification codes, background codes do not need to be changed, so that development and testing can work independently, and further the testing efficiency is improved. The invention is used in the field of network security.

Description

Front-end automatic testing method and device
Technical Field
The invention relates to the technical field of network security, in particular to a front-end automatic testing method and a front-end automatic testing device.
Background
At present, graphic verification codes are required to be input when a plurality of websites log in, and when the front end carries out automatic test, because one graphic cannot be identified, in order to realize batch automatic test, a universal verification code is adopted, namely a fixed verification code is arranged in the background in advance, and the front end can pass verification no matter whether the verification code is consistent with an actual verification code or not as long as the verification code is filled. However, the universal verification code is adopted, and the code of the background needs to be modified, so that the workload of developers is increased. And the test and the development can not be separated, developers need to intervene before and after the test, and after the test is finished, the developers need to delete the code modified by the background again, so that the test efficiency is low.
Disclosure of Invention
The embodiment of the invention provides a front-end automatic testing method, which is used for automatically inputting graphic verification codes and improving the testing efficiency and comprises the following steps:
receiving a user interface test request;
according to the user interface test request, when the graphic verification code needs to be input, the position of the graphic verification code element is positioned;
capturing the graphic verification code according to the position of the graphic verification code element to obtain a verification code screenshot;
and identifying the verification code in the verification code screenshot by using a character identification technology to obtain an identification result, and inputting the identification result.
In a specific embodiment, determining that a graphic verification code needs to be input according to a user interface test request includes:
determining the address of the webpage to be detected according to the user interface test request;
according to the address of the webpage to be detected, whether a graphic verification code element exists in the front-end page of the webpage to be detected is searched;
and if the graphic verification code element exists, determining that the graphic verification code needs to be input.
Accordingly, in a specific embodiment, the positioning the position of the graph type captcha element includes:
when the graphic verification code needs to be input is determined, the ID identification of the graphic verification code element is determined in the front-end page of the webpage to be detected;
and positioning the position of the graphic verification code element in the webpage to be detected according to the ID identification of the graphic verification code element.
The front-end automated testing method in a specific embodiment further comprises:
after the identification result is input, monitoring and inputting a verification result;
if the input verification result is wrong, determining the address of the webpage to be detected according to the user interface test request;
downloading an original file of the graphic verification code from the webpage to be detected according to the address of the webpage to be detected;
transcoding the original file to obtain a picture file in a preset format, identifying the picture file in the preset format by using a character identification technology to obtain an identification result of the verification code, and re-inputting the identification result.
The embodiment of the invention also provides a front-end automatic testing device, which is used for recording the graphic verification codes and improving the testing efficiency, and comprises the following components:
the request receiving module is used for receiving a user interface test request;
the verification code positioning module is used for positioning the positions of the graphic verification code elements when the graphic verification codes are required to be input according to the user interface test request;
the identifying code screenshot module is used for screenshot the graphic identifying code according to the position of the graphic identifying code element to obtain an identifying code screenshot;
and the character recognition module is used for recognizing the verification code in the verification code screenshot by utilizing a character recognition technology to obtain a recognition result and inputting the recognition result.
In a specific implementation process, the verification code positioning module is specifically configured to:
determining the address of the webpage to be detected according to the user interface test request;
according to the address of the webpage to be detected, whether a graphic verification code element exists in the front-end page of the webpage to be detected is searched;
and if the graphic verification code element exists, determining that the graphic verification code needs to be input.
Correspondingly, in implementation, the verification code positioning module is specifically configured to:
when the graphic verification code needs to be input is determined, the ID identification of the graphic verification code element is determined in the front-end page of the webpage to be detected;
and positioning the position of the graphic verification code element in the webpage to be detected according to the ID identification of the graphic verification code element.
The front-end automatic testing device provided in the specific embodiment of the present invention further includes: an error correction module to:
after the identification result is input, monitoring and inputting a verification result;
if the input verification result is wrong, determining the address of the webpage to be detected according to the user interface test request;
downloading an original file of the graphic verification code from the webpage to be detected according to the address of the webpage to be detected;
transcoding the original file to obtain a picture file in a preset format, identifying the picture file in the preset format by using a character identification technology to obtain an identification result of the verification code, and re-inputting the identification result.
The embodiment of the invention also provides computer equipment which comprises a memory, a processor and a computer program which is stored on the memory and can run on the processor, wherein the processor realizes the front-end automatic testing method when executing the computer program.
An embodiment of the present invention also provides a computer-readable storage medium, where a computer program for executing the foregoing front-end automated testing method is stored in the computer-readable storage medium.
In the embodiment of the invention, a user interface test request is received; according to the user interface test request, when the graphic verification code needs to be input, the position of the graphic verification code element is positioned; capturing the graphic verification code according to the position of the graphic verification code element to obtain a verification code screenshot; and identifying the verification code in the verification code screenshot by using a character identification technology to obtain an identification result, and inputting the identification result. The verification code is positioned and then subjected to screenshot, and the screenshot is subjected to character recognition to obtain a recognition result of the graphic verification code, so that corresponding recognition results can be filled in aiming at different graphic verification codes, and the graphic verification code can be automatically input even in batch front-end automatic tests, so that the test efficiency is improved; compared with the prior art of universal verification codes, background codes do not need to be changed, so that development and testing can work independently, and further the testing efficiency is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic diagram of a front-end automated testing method according to an embodiment of the present invention.
Fig. 2 is a schematic diagram illustrating an implementation process of determining that a graphic verification code needs to be input according to a user interface test request in an embodiment of the present invention.
FIG. 3 is a diagram illustrating an implementation process for locating positions of pattern type captcha elements in an embodiment of the present invention.
FIG. 4 is a diagram illustrating a front-end automated testing method according to an embodiment of the present invention.
FIG. 5 is a schematic diagram of a front-end automated testing apparatus according to an embodiment of the present invention.
FIG. 6 is a diagram of a front-end automated testing apparatus according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The embodiment of the invention provides a front-end automatic testing method, which is used for automatically inputting graphic verification codes and improving the testing efficiency, and as shown in figure 1, the method comprises the following steps:
step 101: receiving a user interface test request;
step 102: according to the user interface test request, when the graphic verification code needs to be input, the position of the graphic verification code element is positioned;
step 103: capturing the graphic verification code according to the position of the graphic verification code element to obtain a verification code screenshot;
step 104: and identifying the verification code in the verification code screenshot by using a character identification technology to obtain an identification result, and inputting the identification result.
As can be known from the flow shown in fig. 1, in the embodiment of the present invention, a user interface test request is received; according to the user interface test request, when the graphic verification code needs to be input, the position of the graphic verification code element is positioned; capturing the graphic verification code according to the position of the graphic verification code element to obtain a verification code screenshot; and identifying the verification code in the verification code screenshot by using a character identification technology to obtain an identification result, and inputting the identification result. The verification code is positioned and then subjected to screenshot, and the screenshot is subjected to character recognition to obtain a recognition result of the graphic verification code, so that corresponding recognition results can be filled in aiming at different graphic verification codes, and the graphic verification code can be automatically input even in batch front-end automatic tests, so that the test efficiency is improved; compared with the prior art of universal verification codes, background codes do not need to be changed, so that development and testing can work independently, and further the testing efficiency is improved.
When the method is specifically implemented, a user interface test request (UI request) is received, and the position of the graphic verification code element is positioned when the graphic verification code needs to be input is determined according to the user interface test request. In specific implementation, the process of determining that the graphic verification code needs to be input according to the user interface test request, as shown in fig. 2, includes:
step 201: determining the address of the webpage to be detected according to the user interface test request;
step 202: according to the address of the webpage to be detected, whether a graphic verification code element exists in the front-end page of the webpage to be detected is searched;
step 203: and if the graphic verification code element exists, determining that the graphic verification code needs to be input.
The front page of each webpage contains a plurality of elements, each element corresponds to one part of the webpage, and if the graphic verification code element is found in the front page of the webpage to be detected, the test proves that the graphic verification code needs to be input.
In a specific embodiment, the process of locating the position of the pattern type captcha element, as shown in fig. 3, includes:
step 301: when the graphic verification code needs to be input is determined, the ID identification of the graphic verification code element is determined in the front-end page of the webpage to be detected;
step 302: and positioning the position of the graphic verification code element in the webpage to be detected according to the ID identification of the graphic verification code element.
In specific implementation, each element in the front-end page has a corresponding ID, and the ID can represent the position of the element in the whole web page, including the position coordinates and the length and width of the element. Therefore, the position of the graphic verification code element in the webpage to be detected can be positioned according to the ID identification of the graphic verification code element.
And after the positions of the graphic verification code elements are positioned, screenshot is carried out on the graphic verification codes according to the positions of the graphic verification code elements to obtain verification code screenshots.
And identifying the verification code in the verification code screenshot by using a character identification technology to obtain an identification result, and inputting the identification result. In a specific embodiment, a mature character recognition component is generally directly called to recognize the verification code in the verification code screenshot, for example, Baidu image recognition software is used in the specific embodiment, the screenshot is in a JPG format, and the recognition result can be obtained by directly inputting the recognition software. And calling a character recognition API to read the picture of the screenshot, and directly returning the recognized character.
In a specific embodiment, the recognition result may be incorrect, and the graphic verification code may be subjected to screenshot again to obtain a new verification code screenshot, and character recognition may be performed again and repeated several times to be able to recognize the correct result.
However, if the verification code is repeated for a plurality of times, an upper limit of the number of times (e.g., 3 times) may be preset, and once the number of times exceeds the upper limit, a correct result is not recognized, which may be due to unclear screenshot of the verification code. In order to deal with this situation, in an embodiment, a front-end automated testing method is further provided, as shown in fig. 4, on the basis of fig. 1, further including:
step 401: after the identification result is input, monitoring and inputting a verification result;
step 402: if the input verification result is wrong, determining the address of the webpage to be detected according to the user interface test request;
step 403: downloading an original file of the graphic verification code from the webpage to be detected according to the address of the webpage to be detected;
step 404: transcoding the original file to obtain a picture file in a preset format, identifying the picture file in the preset format by using a character identification technology to obtain an identification result of the verification code, and re-inputting the identification result.
The method comprises the steps of downloading an original file of the graphic verification code, transcoding the original file into a JPG or other recognizable format, re-identifying after transcoding is finished, obtaining an identification result of the verification code, and re-inputting the identification result.
Based on the same inventive concept, embodiments of the present invention further provide a front-end automated testing apparatus, and since the principle of the problem solved by the front-end automated testing apparatus is similar to that of the front-end automated testing method, the implementation of the front-end automated testing apparatus may refer to the implementation of the front-end automated testing method, and the repeated parts are not repeated, and the specific structure is as shown in fig. 5:
a request receiving module 501, configured to receive a user interface test request;
the verification code positioning module 502 is used for determining the position of the graphic verification code element when the graphic verification code needs to be input according to the user interface test request;
the identifying code screenshot module 503 is configured to screenshot the graphic identifying code according to the position of the graphic identifying code element to obtain an identifying code screenshot;
and the character recognition module 504 is configured to recognize the verification code in the verification code screenshot by using a character recognition technology, obtain a recognition result, and enter the recognition result.
In an embodiment, the verification code positioning module 502 is specifically configured to:
determining the address of the webpage to be detected according to the user interface test request;
according to the address of the webpage to be detected, whether a graphic verification code element exists in the front-end page of the webpage to be detected is searched;
and if the graphic verification code element exists, determining that the graphic verification code needs to be input.
Further, in implementation, the verification code positioning module 502 is specifically configured to:
when the graphic verification code needs to be input is determined, the ID identification of the graphic verification code element is determined in the front-end page of the webpage to be detected;
and positioning the position of the graphic verification code element in the webpage to be detected according to the ID identification of the graphic verification code element.
In a specific embodiment, a front-end automated testing apparatus is further provided, as shown in fig. 6, on the basis of fig. 5, the front-end automated testing apparatus further includes: an error correction module 601, configured to:
after the identification result is input, monitoring and inputting a verification result;
if the input verification result is wrong, determining the address of the webpage to be detected according to the user interface test request;
downloading an original file of the graphic verification code from the webpage to be detected according to the address of the webpage to be detected;
transcoding the original file to obtain a picture file in a preset format, identifying the picture file in the preset format by using a character identification technology to obtain an identification result of the verification code, and re-inputting the identification result.
The embodiment of the invention also provides computer equipment which comprises a memory, a processor and a computer program which is stored on the memory and can run on the processor, wherein the processor realizes the front-end automatic testing method when executing the computer program.
An embodiment of the present invention also provides a computer-readable storage medium, where a computer program for executing the foregoing front-end automated testing method is stored in the computer-readable storage medium.
In summary, the front-end automated testing method and apparatus provided in the embodiments of the present invention have the following advantages:
by receiving a user interface test request; according to the user interface test request, when the graphic verification code needs to be input, the position of the graphic verification code element is positioned; capturing the graphic verification code according to the position of the graphic verification code element to obtain a verification code screenshot; and identifying the verification code in the verification code screenshot by using a character identification technology to obtain an identification result, and inputting the identification result. The verification code is positioned and then subjected to screenshot, and the screenshot is subjected to character recognition to obtain a recognition result of the graphic verification code, so that corresponding recognition results can be filled in aiming at different graphic verification codes, and the graphic verification code can be automatically input even in batch front-end automatic tests, so that the test efficiency is improved; compared with the prior art of universal verification codes, background codes do not need to be changed, so that development and testing can work independently, and further the testing efficiency is improved.
Although the present invention provides method steps as described in the examples or flowcharts, more or fewer steps may be included based on routine or non-inventive labor. The order of steps recited in the embodiments is merely one manner of performing the steps in a multitude of orders and does not represent the only order of execution. When an actual apparatus or client product executes, it may execute sequentially or in parallel (e.g., in the context of parallel processors or multi-threaded processing) according to the embodiments or methods shown in the figures.
As will be appreciated by one skilled in the art, embodiments of the present description may be provided as a method, apparatus (system) or computer program product. Accordingly, embodiments of the present description may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the system embodiment, since it is substantially similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment. In this document, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. The terms "upper", "lower", and the like, indicate orientations or positional relationships based on the orientations or positional relationships shown in the drawings, and are only for convenience in describing the present invention and simplifying the description, but do not indicate or imply that the referred devices or elements must have a specific orientation, be constructed and operated in a specific orientation, and thus, should not be construed as limiting the present invention. Unless expressly stated or limited otherwise, the terms "mounted," "connected," and "connected" are intended to be inclusive and mean, for example, that they may be fixedly connected, detachably connected, or integrally connected; can be mechanically or electrically connected; they may be connected directly or indirectly through intervening media, or they may be interconnected between two elements. The specific meanings of the above terms in the present invention can be understood by those skilled in the art according to specific situations. It should be noted that the embodiments and features of the embodiments may be combined with each other without conflict. The present invention is not limited to any single aspect, nor is it limited to any single embodiment, nor is it limited to any combination and/or permutation of these aspects and/or embodiments. Moreover, each aspect and/or embodiment of the present invention may be utilized alone or in combination with one or more other aspects and/or embodiments thereof.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; such modifications and substitutions do not depart from the spirit and scope of the present invention, and they should be construed as being included in the following claims and description.

Claims (10)

1. A front-end automated testing method is characterized by comprising the following steps:
receiving a user interface test request;
according to the user interface test request, when the graphic verification code needs to be input, the position of the graphic verification code element is positioned;
capturing the graphic verification code according to the position of the graphic verification code element to obtain a verification code screenshot;
and identifying the verification code in the verification code screenshot by using a character identification technology to obtain an identification result, and inputting the identification result.
2. The front-end automated testing method of claim 1, wherein determining that a graphical class validation code needs to be entered based on a user interface test request comprises:
determining the address of the webpage to be detected according to the user interface test request;
according to the address of the webpage to be detected, whether a graphic verification code element exists in the front-end page of the webpage to be detected is searched;
and if the graphic verification code element exists, determining that the graphic verification code needs to be input.
3. The front-end automated testing method of claim 2, wherein locating the position of the graph-like captcha element comprises:
when the graphic verification code needs to be input is determined, the ID identification of the graphic verification code element is determined in the front-end page of the webpage to be detected;
and positioning the position of the graphic verification code element in the webpage to be detected according to the ID identification of the graphic verification code element.
4. The front-end automated testing method of claim 1, further comprising:
after the identification result is input, monitoring and inputting a verification result;
if the input verification result is wrong, determining the address of the webpage to be detected according to the user interface test request;
downloading an original file of the graphic verification code from the webpage to be detected according to the address of the webpage to be detected;
transcoding the original file to obtain a picture file in a preset format, identifying the picture file in the preset format by using a character identification technology to obtain an identification result of the verification code, and re-inputting the identification result.
5. A front end automated testing apparatus, comprising:
the request receiving module is used for receiving a user interface test request;
the verification code positioning module is used for positioning the positions of the graphic verification code elements when the graphic verification codes are required to be input according to the user interface test request;
the identifying code screenshot module is used for screenshot the graphic identifying code according to the position of the graphic identifying code element to obtain an identifying code screenshot;
and the character recognition module is used for recognizing the verification code in the verification code screenshot by utilizing a character recognition technology to obtain a recognition result and inputting the recognition result.
6. The front-end automated testing apparatus of claim 5, wherein the validation code positioning module is specifically configured to:
determining the address of the webpage to be detected according to the user interface test request;
according to the address of the webpage to be detected, whether a graphic verification code element exists in the front-end page of the webpage to be detected is searched;
and if the graphic verification code element exists, determining that the graphic verification code needs to be input.
7. The front-end automated testing apparatus of claim 6, wherein the validation code positioning module is specifically configured to:
when the graphic verification code needs to be input is determined, the ID identification of the graphic verification code element is determined in the front-end page of the webpage to be detected;
and positioning the position of the graphic verification code element in the webpage to be detected according to the ID identification of the graphic verification code element.
8. The front-end automated testing apparatus of claim 5, further comprising: an error correction module to:
after the identification result is input, monitoring and inputting a verification result;
if the input verification result is wrong, determining the address of the webpage to be detected according to the user interface test request;
downloading an original file of the graphic verification code from the webpage to be detected according to the address of the webpage to be detected;
transcoding the original file to obtain a picture file in a preset format, identifying the picture file in the preset format by using a character identification technology to obtain an identification result of the verification code, and re-inputting the identification result.
9. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the method of any one of claims 1 to 4 when executing the computer program.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program for executing the method of any one of claims 1 to 4.
CN202110866763.4A 2021-07-29 2021-07-29 Front-end automatic testing method and device Pending CN113568794A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110866763.4A CN113568794A (en) 2021-07-29 2021-07-29 Front-end automatic testing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110866763.4A CN113568794A (en) 2021-07-29 2021-07-29 Front-end automatic testing method and device

Publications (1)

Publication Number Publication Date
CN113568794A true CN113568794A (en) 2021-10-29

Family

ID=78169152

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110866763.4A Pending CN113568794A (en) 2021-07-29 2021-07-29 Front-end automatic testing method and device

Country Status (1)

Country Link
CN (1) CN113568794A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017148315A1 (en) * 2016-03-04 2017-09-08 阿里巴巴集团控股有限公司 Captcha-based authentication processing method and device
CN108563559A (en) * 2018-03-12 2018-09-21 平安普惠企业管理有限公司 A kind of test method of identifying code, device, terminal device and storage medium
CN109284600A (en) * 2018-08-08 2019-01-29 贵阳朗玛信息技术股份有限公司 A kind of method and device of identifying code for identification
CN111143213A (en) * 2019-12-24 2020-05-12 北京数衍科技有限公司 Software automation test method and device and electronic equipment
CN111274957A (en) * 2020-01-20 2020-06-12 阳光人寿保险股份有限公司 Webpage verification code identification method, device, terminal and computer storage medium
CN111352827A (en) * 2018-12-24 2020-06-30 中移信息技术有限公司 Automatic testing method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017148315A1 (en) * 2016-03-04 2017-09-08 阿里巴巴集团控股有限公司 Captcha-based authentication processing method and device
CN108563559A (en) * 2018-03-12 2018-09-21 平安普惠企业管理有限公司 A kind of test method of identifying code, device, terminal device and storage medium
CN109284600A (en) * 2018-08-08 2019-01-29 贵阳朗玛信息技术股份有限公司 A kind of method and device of identifying code for identification
CN111352827A (en) * 2018-12-24 2020-06-30 中移信息技术有限公司 Automatic testing method and device
CN111143213A (en) * 2019-12-24 2020-05-12 北京数衍科技有限公司 Software automation test method and device and electronic equipment
CN111274957A (en) * 2020-01-20 2020-06-12 阳光人寿保险股份有限公司 Webpage verification code identification method, device, terminal and computer storage medium

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
SHENGCHENG YU 等: "Layout and Image Recognition Driving Cross-Platform Automated Mobile Testing", 2021 IEEE/ACM 43RD INTERNATIONAL CONFERENCE ON SOFTWARE ENGINEERING (ICSE), 30 May 2021 (2021-05-30), pages 1 - 11 *
刘敏 等: "基于selenium自动化测试框架的改进与应用", 电信工程技术与标准化, 15 January 2019 (2019-01-15), pages 78 - 82 *
彭新宇: "基于Selenium的Web自动化测试框架研究与实现", 中国优秀硕士学位论文全文数据库 信息科技辑, 15 June 2021 (2021-06-15), pages 138 - 90 *
田春成 等: "Selenium 3+Python 3自动化测试项目实战 从菜鸟到高手", 30 September 2019, 电子工业出版社, pages: 107 - 117 *

Similar Documents

Publication Publication Date Title
US9846634B2 (en) Visual graphical user interface verification
CN108845930B (en) Interface operation test method and device, storage medium and electronic device
CN108734012B (en) Malicious software identification method and device and electronic equipment
US9946637B2 (en) Automatic updating of graphical user interface element locators based on dimension comparison
CN107145437B (en) Java annotation test method and device
CN108491321B (en) Method and device for determining test case range and storage medium
CN110347085B (en) Automated test system, method, vehicle, and computer-readable medium
US20150370694A1 (en) Automatic updating of graphical user interface element locators based on image comparison
CN107223257B (en) Test method, test server and test system
CN113032792A (en) System service vulnerability detection method, system, equipment and storage medium
CN106709335B (en) Vulnerability detection method and device
CN112256635A (en) Method and device for identifying file type
CN117493188A (en) Interface testing method and device, electronic equipment and storage medium
CN116431522A (en) Automatic test method and system for low-code object storage gateway
CN115827496A (en) Code abnormality detection method and device, electronic equipment and storage medium
CN113568794A (en) Front-end automatic testing method and device
CN113031995B (en) Rule updating method and device, storage medium and electronic equipment
CN113326046B (en) Method and device for acquiring compiling time length
CN111400245B (en) Art resource migration method and device
CN111159006B (en) Automatic testing method and device
CN113868137A (en) Method, device and system for processing buried point data and server
CN110855526B (en) Method and device for detecting data source connection, storage medium and electronic equipment
CN113946828A (en) Vulnerability scanning method and vulnerability scanning device of industrial control system
CN113127874A (en) Method and device for processing intranet sensitive information
CN113468076A (en) Application program exception testing method, device, equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination