CN111143213A - Software automation test method and device and electronic equipment - Google Patents

Software automation test method and device and electronic equipment Download PDF

Info

Publication number
CN111143213A
CN111143213A CN201911351430.7A CN201911351430A CN111143213A CN 111143213 A CN111143213 A CN 111143213A CN 201911351430 A CN201911351430 A CN 201911351430A CN 111143213 A CN111143213 A CN 111143213A
Authority
CN
China
Prior art keywords
information
software
picture
verification code
tested
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
CN201911351430.7A
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.)
Beijing Data Driven Technology Co ltd
Original Assignee
Beijing Data Driven Technology 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 Beijing Data Driven Technology Co ltd filed Critical Beijing Data Driven Technology Co ltd
Priority to CN201911351430.7A priority Critical patent/CN111143213A/en
Publication of CN111143213A publication Critical patent/CN111143213A/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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/04Architecture, e.g. interconnection topology
    • G06N3/045Combinations of networks
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/08Learning methods

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • Computational Linguistics (AREA)
  • Data Mining & Analysis (AREA)
  • Evolutionary Computation (AREA)
  • Biomedical Technology (AREA)
  • Molecular Biology (AREA)
  • Biophysics (AREA)
  • Artificial Intelligence (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Mathematical Physics (AREA)
  • Software Systems (AREA)
  • Health & Medical Sciences (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention provides a software automation test method and device and electronic equipment, comprising the following steps: when opening instruction information input by a user is monitored, opening a login page of the tested software according to the opening instruction information; acquiring login page information of the tested software and picture information which carries a picture verification code and is included in the login page information; sending the picture information to a pre-trained OCR picture analysis network so that the OCR picture analysis network analyzes the picture information and outputs verification code information corresponding to the picture verification code; receiving verification code information returned by an OCR picture analysis network; and sending the login page information and the verification code information to the tested software so as to test the tested software. The method and the device can relieve the technical problem that the existing software automatic test result is not ideal, realize the automatic test without manual intervention, and improve the efficiency and the precision of the software automatic test.

Description

Software automation test method and device and electronic equipment
Technical Field
The invention relates to the technical field of automatic testing, in particular to a software automatic testing method and device and electronic equipment.
Background
Automated testing is a process that translates human-driven test behavior into machine execution. Typically, after a test case is designed and passes review, the test is performed step by the tester according to the procedures described in the test case, resulting in a comparison of the actual results with the expected results. In the process, in order to save manpower, time or hardware resources and improve the testing efficiency, the concept of automatic testing is introduced.
At present, a picture verification code verification process is often encountered in an automatic test process, and most of the existing methods are to shield the picture verification code or to upload a universal verification code, so that the picture verification code can be bypassed in the automatic test process, and further the next test is carried out. The existing method simplifies the process of the automatic test, but causes incomplete code branch covered by the test, thereby causing the technical problem that the result of the automatic test is not ideal.
Disclosure of Invention
In view of the above, the present invention provides a software automation test method and apparatus, and an electronic device, so as to alleviate the technical problem that the existing software automation test result is not ideal.
In a first aspect, an embodiment of the present invention provides a software automation testing method, which is applied to a server, and the method includes:
when opening instruction information input by a user is monitored, opening a login page of the software to be tested according to the opening instruction information;
acquiring login page information of the tested software and picture information which carries a picture verification code and is included in the login page information;
sending the picture information to a pre-trained OCR picture analysis network so that the OCR picture analysis network analyzes the picture information and outputs verification code information corresponding to the picture verification code;
receiving the verification code information returned by the OCR picture analysis network;
and sending the login page information and the verification code information to the tested software so as to test the tested software.
With reference to the first aspect, an embodiment of the present invention provides a first possible implementation manner of the first aspect, where the OCR picture parsing network is a convolutional neural network, and the method further includes:
and acquiring a sample image pre-stored in a verification code image library, inputting the sample image into the convolutional neural network, and training the convolutional neural network to generate the OCR image analysis network.
With reference to the first aspect, an embodiment of the present invention provides a second possible implementation manner of the first aspect, where after the login page of the software under test is opened according to the opening instruction information, the method further includes:
and displaying the login page of the tested software.
With reference to the second possible implementation manner of the first aspect, an embodiment of the present invention provides a third possible implementation manner of the first aspect, where a login page of the software to be tested is a WEB page or an APP page; the step of acquiring the picture information carrying the picture verification code included in the login page information comprises:
capturing the WEB page, or capturing picture information carrying a picture verification code in the APP page;
and converting the picture information into a format corresponding to the OCR picture analysis network.
With reference to the first aspect, an embodiment of the present invention provides a fourth possible implementation manner of the first aspect, where the sending the login page information and the verification code information to the software under test to test the software under test includes:
sending the login page information and the verification code information to the tested software;
if the tested software returns the information that the verification is passed, the tested software is determined to be tested successfully;
and if the tested software returns the information that the verification fails, determining that the tested software is not tested successfully.
In a second aspect, an embodiment of the present invention further provides a software automation testing apparatus, which is applied to a server, and the apparatus includes:
the starting module is used for opening a login page of the tested software according to the starting instruction information when the starting instruction information input by the user is monitored;
the acquisition module is used for acquiring login page information of the tested software and picture information which carries a picture verification code and is included in the login page information;
the analysis module is used for sending the picture information to a pre-trained OCR picture analysis network so that the OCR picture analysis network can analyze the picture information and output verification code information corresponding to the picture verification code;
the receiving module is used for receiving the verification code information returned by the OCR picture analysis network;
and the test module is used for sending the login page information and the verification code information to the software to be tested so as to test the software to be tested.
With reference to the second aspect, an embodiment of the present invention provides a first possible implementation manner of the second aspect, where the OCR picture parsing network is a convolutional neural network, and the apparatus further includes:
and acquiring a sample image pre-stored in a verification code image library, inputting the sample image into the convolutional neural network, and training the convolutional neural network to generate the OCR image analysis network.
With reference to the second aspect, an embodiment of the present invention provides a second possible implementation manner of the second aspect, where the test module further includes:
sending the login page information and the verification code information to the tested software;
if the tested software returns the information that the verification is passed, the tested software is determined to be tested successfully;
and if the tested software returns the information that the verification fails, determining that the tested software is not tested successfully.
In a third aspect, an embodiment of the present invention further provides an electronic device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements the steps of the software automation testing method according to the first aspect when executing the computer program.
In a fourth aspect, the embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the software automation testing method according to the first aspect are executed.
The embodiment of the invention has the following beneficial effects:
the embodiment of the invention provides a software automation test method and device and electronic equipment, wherein the method comprises the following steps: when opening instruction information input by a user is monitored, opening a login page of the tested software according to the opening instruction information; acquiring login page information of the tested software and picture information which carries a picture verification code and is included in the login page information; sending the picture information to a pre-trained OCR picture analysis network so that the OCR picture analysis network analyzes the picture information and outputs verification code information corresponding to the picture verification code; receiving verification code information returned by an OCR picture analysis network; and sending the login page information and the verification code information to the tested software so as to test the tested software. The method and the device can relieve the technical problem that the existing software automatic test result is not ideal, realize the automatic test without manual intervention, and improve the efficiency and the precision of the software automatic test.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and drawings.
In order to make the aforementioned and other objects, features and advantages of the present invention comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.
FIG. 1 is a schematic diagram of an automated software testing system according to an embodiment of the present invention;
FIG. 2 is a flowchart of a software automation test method according to an embodiment of the present invention;
FIG. 3 is a flow chart of another software automation testing method provided by the embodiment of the invention;
FIG. 4 is a flow chart of another software automation testing method provided by the embodiment of the invention;
FIG. 5 is a flow chart of another software automation testing method provided by the embodiment of the invention;
fig. 6 is a schematic diagram of a software automation testing apparatus according to an embodiment of the present invention.
Icon:
10-opening the module; 20-an acquisition module; 30-an analysis module; 40-a receiving module; 50-test module.
Detailed Description
To make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings, and it is apparent that the described embodiments are some, but not all embodiments of the present invention. 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.
At present, a process of verifying a picture verification code is often encountered in an automatic test process, as shown in fig. 1, a common method is to shield the picture verification code, i.e., not to perform verification, or to set a universal verification code, so that the problem of verifying the picture verification code is avoided. Although the existing method simplifies the processing flow of the software automated test, the existing method cannot completely simulate the behavior of a human, and the test code and the production code are possibly different, so that the code coverage rate of the automated test is limited, and the result of the software automated test is not ideal.
Aiming at the technical problem that the existing software automation test result is not ideal, the embodiment of the invention provides a software automation test method, a software automation test device and electronic equipment, so that the software automation test without manual intervention is realized, and the efficiency and the precision of the software automation test are improved.
To facilitate understanding of the present embodiment, a detailed description is first provided below of a software automation testing method provided by the present embodiment.
The first embodiment is as follows:
an embodiment of the present invention provides a software automation testing method, which is applied to a server, and fig. 2 is a flowchart of the software automation testing method provided in the embodiment of the present invention. As shown in fig. 2, the method comprises the steps of:
step S102, when the opening instruction information input by the user is monitored, opening a login page of the tested software according to the opening instruction information;
specifically, in practical application, when an automatic test script in a server monitors opening instruction information input by a user, a login page of the software to be tested is opened according to the opening instruction information. The login page of the software to be tested is a WEB (World Wide WEB) page or an APP (Application, mobile phone software) page. In addition, the automatic test script is a code project written by a computer language such as java or python and aims at realizing a software test case.
Step S104, obtaining login page information of the tested software and picture information which carries a picture verification code and is included in the login page information;
after the login page of the software to be tested is opened, the picture verification code is carried on the login page, and in a specific time period, if no input operation is carried out on the picture verification code, the picture verification code on the login page is kept unchanged. At the moment, the login page of the tested software is captured, so that the login page information of the tested software and the picture information which carries the picture verification code and is included in the login page information are obtained. The length and width of the picture information and the pixels satisfy a certain rule, and the content of the picture information has a certain characteristic as long as the picture information carrying the picture verification code satisfies that the picture information can be analyzed by an OCR (Optical Character Recognition) picture analysis network, which is not limited in this embodiment of the present invention.
In addition, the picture content of the picture verification code is characters or letters, when the picture verification code is verified on the login page, the characters or letters in the picture content are input into the input frame corresponding to the picture verification code, and it should be noted that the picture verification code in the embodiment of the present invention does not include a picture verification code mode in which secondary operations are performed on the picture verification code, such as ordering of the picture content, selection of the picture content, and the like.
Step S106, sending the picture information to a pre-trained OCR picture analysis network so that the OCR picture analysis network analyzes the picture information and outputs verification code information corresponding to the picture verification code;
specifically, the captured image information is sent to a pre-trained OCR image analysis network, the OCR image analysis network can analyze the image information, and the analyzed content, namely, verification code information corresponding to the image verification code, is sent to an automatic test script.
Step S108, receiving verification code information returned by the OCR picture analysis network;
and step S110, sending the login page information and the verification code information to the tested software so as to test the tested software.
At the moment, the verification code information is input into the login page information by the automatic script to complete the verification of the picture verification code, so that the automatic test of the tested software is realized, the program does not need to be changed and manual intervention does not need to be carried out, the code coverage rate of the software automatic test is not limited, and the technical problem that the result of the software automatic test is not ideal is solved.
The software automatic testing method provided by the embodiment of the invention comprises the following steps: when opening instruction information input by a user is monitored, opening a login page of the tested software according to the opening instruction information; acquiring login page information of the tested software and picture information which carries a picture verification code and is included in the login page information; sending the picture information to a pre-trained OCR picture analysis network so that the OCR picture analysis network analyzes the picture information and outputs verification code information corresponding to the picture verification code; receiving verification code information returned by an OCR picture analysis network; and sending the login page information and the verification code information to the tested software so as to test the tested software. The method and the device can relieve the technical problem that the existing software automatic test result is not ideal, realize the automatic test without manual intervention, and improve the efficiency and the precision of the software automatic test.
Further, the OCR image analysis network is a convolutional neural network, and the method further includes: and acquiring a sample image prestored in a verification code image library, inputting the sample image into a convolutional neural network, and training the convolutional neural network to generate an OCR image analysis network.
Specifically, in the embodiment of the present invention, the OCR picture parsing network is a convolutional neural network, and before the OCR picture parsing network is used to parse picture information, the convolutional neural network needs to be trained to generate the OCR picture parsing network, that is, first, a sample image pre-stored in a captcha picture library is obtained, and the sample image is input to the convolutional neural network, so as to train the convolutional neural network, and finally, the OCR picture parsing network for parsing the picture information is generated.
Further, on the basis of fig. 2, another software automation testing method is provided in the embodiment of the present invention, and fig. 3 is a flowchart of another software automation testing method provided in the embodiment of the present invention. As shown in fig. 3, the method comprises the steps of:
step S202, when the opening instruction information input by the user is monitored, opening a login page of the tested software according to the opening instruction information;
step S204, displaying a login page of the tested software;
and displaying the login page of the tested software so as to capture the login page, thereby obtaining the login page information of the tested software and the picture information which is contained in the login page information and carries the picture verification code.
Step S206, obtaining login page information of the tested software and picture information which carries a picture verification code and is included in the login page information;
step S208, sending the picture information to a pre-trained OCR picture analysis network so that the OCR picture analysis network analyzes the picture information and outputs verification code information corresponding to the picture verification code;
step S210, receiving verification code information returned by an OCR picture analysis network;
and step S212, sending the login page information and the verification code information to the tested software so as to test the tested software.
Further, on the basis of fig. 2, another software automation testing method is provided in the embodiment of the present invention, and fig. 4 is a flowchart of another software automation testing method provided in the embodiment of the present invention. As shown in fig. 4, where the login page of the software to be tested is a WEB page or an APP page, the method further includes the following steps:
step S302, when the opening instruction information input by the user is monitored, opening a login page of the tested software according to the opening instruction information;
step S304, obtaining login page information of the tested software; the login page of the tested software is a WEB page or an APP page;
step S306, capturing a WEB page, or capturing picture information carrying a picture verification code in an APP page;
specifically, the login page information of the software to be tested and the picture information carrying the picture verification code included in the login page information are obtained by capturing a WEB page or obtaining the picture information carrying the picture verification code in an APP page.
Step S308, converting the picture information into a format corresponding to an OCR picture analysis network;
in addition, for capturing the obtained picture information carrying the picture verification code, the picture information needs to be converted into a format corresponding to the OCR picture analysis network, and the converted picture information is sent to the OCR picture analysis network through the interface.
Step S310, sending the picture information to a pre-trained OCR picture analysis network so that the OCR picture analysis network analyzes the picture information and outputs verification code information corresponding to the picture verification code;
step S312, receiving verification code information returned by the OCR picture analysis network;
and step S314, sending the login page information and the verification code information to the tested software so as to test the tested software.
Further, on the basis of fig. 2, another software automation testing method is provided in the embodiment of the present invention, and fig. 5 is a flowchart of another software automation testing method provided in the embodiment of the present invention. As shown in fig. 5, the method further comprises the steps of:
step S402, when the opening instruction information input by the user is monitored, opening a login page of the tested software according to the opening instruction information;
step S404, obtaining login page information of the tested software and picture information which carries a picture verification code and is included in the login page information;
step S406, sending the picture information to a pre-trained OCR picture analysis network so that the OCR picture analysis network analyzes the picture information and outputs verification code information corresponding to the picture verification code;
step S408, receiving verification code information returned by the OCR picture analysis network;
step S410, login page information and verification code information are sent to the tested software;
step S412, if the tested software returns the information that the verification is passed, the tested software is determined to be tested successfully;
and step S414, if the tested software returns the information that the verification fails, determining that the tested software is not tested successfully.
Specifically, after the login page information and the verification code information are sent to the tested software, the verification code information is input into an input box corresponding to the picture verification code in the login page information, and at the moment, if the tested software returns information that the verification is passed, the tested software is determined to be tested successfully; and if the tested software returns the information that the verification fails, determining that the tested software is not tested successfully. Therefore, the method realizes the automatic test of the software without manual intervention, and improves the efficiency and the precision of the automatic test of the software.
On the basis of the above embodiments, the embodiment of the present invention further provides a software automation testing apparatus, and fig. 6 is a diagram of a software automation testing apparatus provided in the embodiment of the present invention. As shown in fig. 6, the apparatus includes:
the starting module 10 is used for opening a login page of the tested software according to the starting instruction information when the starting instruction information input by the user is monitored;
an obtaining module 20, configured to obtain login page information of the software to be tested, and picture information that carries a picture verification code and is included in the login page information;
the analysis module 30 is configured to send the picture information to a pre-trained OCR picture analysis network, so that the OCR picture analysis network analyzes the picture information and outputs verification code information corresponding to the picture verification code;
the receiving module 40 is configured to receive the verification code information returned by the OCR picture parsing network;
and the testing module 50 is configured to send the login page information and the verification code information to the software to be tested, so as to test the software to be tested.
Further, the OCR image parsing network is a convolutional neural network, and the apparatus further includes:
and acquiring a sample image prestored in a verification code image library, inputting the sample image into a convolutional neural network, and training the convolutional neural network to generate an OCR image analysis network.
Further, the test module 50 further includes:
sending the login page information and the verification code information to the tested software;
if the tested software returns the information that the verification is passed, the tested software is determined to be tested successfully;
and if the tested software returns the information that the verification fails, determining that the tested software is not tested successfully.
The software automation test device provided by the embodiment of the invention comprises: when opening instruction information input by a user is monitored, opening a login page of the tested software according to the opening instruction information; acquiring login page information of the tested software and picture information which carries a picture verification code and is included in the login page information; sending the picture information to a pre-trained OCR picture analysis network so that the OCR picture analysis network analyzes the picture information and outputs verification code information corresponding to the picture verification code; receiving verification code information returned by an OCR picture analysis network; and sending the login page information and the verification code information to the tested software so as to test the tested software. The method and the device can relieve the technical problem that the existing software automatic test result is not ideal, realize the automatic test without manual intervention, and improve the efficiency and the precision of the software automatic test.
The embodiment of the invention also provides electronic 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 steps of the software automation test method provided by the embodiment are realized when the processor executes the computer program.
The embodiment of the invention also provides a computer-readable storage medium, wherein a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the software automation testing method of the embodiment are executed.
The computer program product provided in the embodiment of the present invention includes a computer-readable storage medium storing a program code, where instructions included in the program code may be used to execute the method described in the foregoing method embodiment, and specific implementation may refer to the method embodiment, which is not described herein again.
It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working process of the software automation test apparatus described above may refer to the corresponding process in the foregoing method embodiment, and is not described herein again.
In addition, in the description of the embodiments of the present invention, unless otherwise explicitly specified or limited, the terms "mounted," "connected," and "connected" are to be construed broadly, e.g., as meaning either a fixed connection, a removable connection, or an integral connection; 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 in specific cases to those skilled in the art.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a non-volatile computer-readable storage medium executable by a processor. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
In the description of the present invention, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc., indicate orientations or positional relationships based on the orientations or positional relationships shown in the drawings, and are only for convenience of description and simplicity of description, but do not indicate or imply that the device or element being referred to must have a particular orientation, be constructed and operated in a particular orientation, and thus, should not be construed as limiting the present invention. Furthermore, the terms "first," "second," and "third" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance.
Finally, it should be noted that: the above-mentioned embodiments are only specific embodiments of the present invention, which are used for illustrating the technical solutions of the present invention and not for limiting the same, and the protection scope of the present invention is not limited thereto, although the present invention is described in detail with reference to the foregoing embodiments, those skilled in the art should understand that: any person skilled in the art can modify or easily conceive the technical solutions described in the foregoing embodiments or equivalent substitutes for some technical features within the technical scope of the present disclosure; such modifications, changes or substitutions do not depart from the spirit and scope of the embodiments of the present invention, and they should be construed as being included therein. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (10)

1. A software automation testing method is applied to a server, and the method comprises the following steps:
when opening instruction information input by a user is monitored, opening a login page of the software to be tested according to the opening instruction information;
acquiring login page information of the tested software and picture information which carries a picture verification code and is included in the login page information;
sending the picture information to a pre-trained OCR picture analysis network so that the OCR picture analysis network analyzes the picture information and outputs verification code information corresponding to the picture verification code;
receiving the verification code information returned by the OCR picture analysis network;
and sending the login page information and the verification code information to the tested software so as to test the tested software.
2. The automated software testing method of claim 1, wherein the OCR picture parsing network is a convolutional neural network, the method further comprising:
and acquiring a sample image pre-stored in a verification code image library, inputting the sample image into the convolutional neural network, and training the convolutional neural network to generate the OCR image analysis network.
3. The method for automatically testing software according to claim 1, wherein after the login page of the software under test is opened according to the opening instruction information, the method further comprises:
and displaying the login page of the tested software.
4. The software automation test method according to claim 3, characterized in that the login page of the software to be tested is a WEB page or an APP page; the step of acquiring the picture information carrying the picture verification code included in the login page information comprises:
capturing the WEB page, or capturing picture information carrying a picture verification code in the APP page;
and converting the picture information into a format corresponding to the OCR picture analysis network.
5. The automated software testing method of claim 1, wherein the step of sending the landing page information and the verification code information to the software under test for testing the software under test comprises:
sending the login page information and the verification code information to the tested software;
if the tested software returns the information that the verification is passed, the tested software is determined to be tested successfully;
and if the tested software returns the information that the verification fails, determining that the tested software is not tested successfully.
6. An automatic software testing device, which is applied to a server, the device comprises:
the starting module is used for opening a login page of the tested software according to the starting instruction information when the starting instruction information input by the user is monitored;
the acquisition module is used for acquiring login page information of the tested software and picture information which carries a picture verification code and is included in the login page information;
the analysis module is used for sending the picture information to a pre-trained OCR picture analysis network so that the OCR picture analysis network can analyze the picture information and output verification code information corresponding to the picture verification code;
the receiving module is used for receiving the verification code information returned by the OCR picture analysis network;
and the test module is used for sending the login page information and the verification code information to the software to be tested so as to test the software to be tested.
7. The automated software testing apparatus of claim 6, wherein the OCR picture parsing network is a convolutional neural network, the apparatus further comprising:
and acquiring a sample image pre-stored in a verification code image library, inputting the sample image into the convolutional neural network, and training the convolutional neural network to generate the OCR image analysis network.
8. The software automation test device of claim 6, the test module further comprising:
sending the login page information and the verification code information to the tested software;
if the tested software returns the information that the verification is passed, the tested software is determined to be tested successfully;
and if the tested software returns the information that the verification fails, determining that the tested software is not tested successfully.
9. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the steps of the software automation test method of any one of the preceding claims 1 to 5 are implemented when the computer program is executed by the processor.
10. A computer-readable storage medium, characterized in that a computer program is stored on the computer-readable storage medium, which computer program, when being executed by a processor, performs the steps of the software automation test method of any one of the preceding claims 1 to 5.
CN201911351430.7A 2019-12-24 2019-12-24 Software automation test method and device and electronic equipment Pending CN111143213A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911351430.7A CN111143213A (en) 2019-12-24 2019-12-24 Software automation test method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911351430.7A CN111143213A (en) 2019-12-24 2019-12-24 Software automation test method and device and electronic equipment

Publications (1)

Publication Number Publication Date
CN111143213A true CN111143213A (en) 2020-05-12

Family

ID=70519890

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911351430.7A Pending CN111143213A (en) 2019-12-24 2019-12-24 Software automation test method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN111143213A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112631947A (en) * 2021-01-15 2021-04-09 北京字节跳动网络技术有限公司 Application program test control method and device, electronic equipment and storage medium
CN113301019A (en) * 2021-04-23 2021-08-24 杭州安恒信息技术股份有限公司 Verification code vulnerability detection method and device, electronic device and storage medium
CN113568794A (en) * 2021-07-29 2021-10-29 中国银行股份有限公司 Front-end automatic testing method and device
CN113704128A (en) * 2021-09-03 2021-11-26 四川虹美智能科技有限公司 Automatic testing method and device for interface
CN113765898A (en) * 2021-08-20 2021-12-07 北京来也网络科技有限公司 Login method, device, equipment and medium based on AI and RPA
CN115834451A (en) * 2022-11-11 2023-03-21 超聚变数字技术有限公司 Software login testing method and related device

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101339618A (en) * 2007-07-06 2009-01-07 上海思必得通讯技术有限公司 Mobile phones name card recognition device
CN101441713A (en) * 2007-11-19 2009-05-27 汉王科技股份有限公司 Optical character recognition method and apparatus of PDF document
CN102946334A (en) * 2012-11-28 2013-02-27 中国移动(深圳)有限公司 Method and system for acquiring valid image verification code
CN107085730A (en) * 2017-03-24 2017-08-22 深圳爱拼信息科技有限公司 A kind of deep learning method and device of character identifying code identification
US20170300676A1 (en) * 2015-04-16 2017-10-19 Tencent Technology (Shenzhen) Company Limited Method and device for realizing verification code
CN107454118A (en) * 2017-10-11 2017-12-08 北京安博通科技股份有限公司 Identifying code acquisition methods and device, login method and system
CN108563559A (en) * 2018-03-12 2018-09-21 平安普惠企业管理有限公司 A kind of test method of identifying code, device, terminal device and storage medium
CN109189683A (en) * 2018-08-28 2019-01-11 中金金融认证中心有限公司 A kind of method and system automatically entered for identifying code in APP test
CN109977980A (en) * 2017-12-28 2019-07-05 航天信息股份有限公司 A kind of method for recognizing verification code and device

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101339618A (en) * 2007-07-06 2009-01-07 上海思必得通讯技术有限公司 Mobile phones name card recognition device
CN101441713A (en) * 2007-11-19 2009-05-27 汉王科技股份有限公司 Optical character recognition method and apparatus of PDF document
CN102946334A (en) * 2012-11-28 2013-02-27 中国移动(深圳)有限公司 Method and system for acquiring valid image verification code
US20170300676A1 (en) * 2015-04-16 2017-10-19 Tencent Technology (Shenzhen) Company Limited Method and device for realizing verification code
CN107085730A (en) * 2017-03-24 2017-08-22 深圳爱拼信息科技有限公司 A kind of deep learning method and device of character identifying code identification
CN107454118A (en) * 2017-10-11 2017-12-08 北京安博通科技股份有限公司 Identifying code acquisition methods and device, login method and system
CN109977980A (en) * 2017-12-28 2019-07-05 航天信息股份有限公司 A kind of method for recognizing verification code and device
CN108563559A (en) * 2018-03-12 2018-09-21 平安普惠企业管理有限公司 A kind of test method of identifying code, device, terminal device and storage medium
CN109189683A (en) * 2018-08-28 2019-01-11 中金金融认证中心有限公司 A kind of method and system automatically entered for identifying code in APP test

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112631947A (en) * 2021-01-15 2021-04-09 北京字节跳动网络技术有限公司 Application program test control method and device, electronic equipment and storage medium
CN112631947B (en) * 2021-01-15 2023-04-25 抖音视界有限公司 Test control method and device for application program, electronic equipment and storage medium
CN113301019A (en) * 2021-04-23 2021-08-24 杭州安恒信息技术股份有限公司 Verification code vulnerability detection method and device, electronic device and storage medium
CN113568794A (en) * 2021-07-29 2021-10-29 中国银行股份有限公司 Front-end automatic testing method and device
CN113765898A (en) * 2021-08-20 2021-12-07 北京来也网络科技有限公司 Login method, device, equipment and medium based on AI and RPA
CN113765898B (en) * 2021-08-20 2023-08-01 北京来也网络科技有限公司 Login method, device, equipment and medium based on AI and RPA
CN113704128A (en) * 2021-09-03 2021-11-26 四川虹美智能科技有限公司 Automatic testing method and device for interface
CN115834451A (en) * 2022-11-11 2023-03-21 超聚变数字技术有限公司 Software login testing method and related device

Similar Documents

Publication Publication Date Title
CN111143213A (en) Software automation test method and device and electronic equipment
CN107861862A (en) UI automated testing methods, device and computer-readable recording medium
CN111740923A (en) Method and device for generating application identification rule, electronic equipment and storage medium
CN112597052A (en) Interface testing method and device and computer readable storage medium
CN111900694B (en) Relay protection equipment information acquisition method and system based on automatic identification
CN112565308B (en) Malicious application detection method, device, equipment and medium based on network traffic
US20160232338A1 (en) User verifying method, terminal device, server and storage medium
CN110806965A (en) Automatic test method, device, equipment and medium
CN108399129B (en) H5 page performance detection method
CN109344058A (en) A kind of small routine automated testing method
CN112837640A (en) Screen dynamic picture testing method, system, electronic equipment and storage medium
CN111045934A (en) Page analysis method, device, client, storage medium and electronic equipment
CN113037526A (en) Security detection method, terminal, system and storage medium
CN108519962B (en) Font display method and apparatus applied to android system, and terminal device
CN112799956B (en) Asset identification capability test method, device and system device
CN113923443A (en) Network video recorder testing method and device and computer readable storage medium
CN115515139A (en) Vulnerability security detection method, device, equipment and storage medium
CN104836695A (en) Security scanning method in system testing process and testing server
CN114168426A (en) Automated testing method and related equipment
CN114385290A (en) Page conversion method, device and storage medium
CN113569255A (en) Vulnerability detection method and device based on background RPC interface
CN113742192A (en) Log rule quality analysis method, system, electronic device and storage medium
CN115470095A (en) Test method, test system, electronic equipment and computer storage medium
CN114510409A (en) Application program code detection method and computer readable storage medium
CN111427791A (en) Test method, test device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20200512