WO2020211391A1 - Automatic test method and apparatus, computer device and storage medium - Google Patents

Automatic test method and apparatus, computer device and storage medium Download PDF

Info

Publication number
WO2020211391A1
WO2020211391A1 PCT/CN2019/122451 CN2019122451W WO2020211391A1 WO 2020211391 A1 WO2020211391 A1 WO 2020211391A1 CN 2019122451 W CN2019122451 W CN 2019122451W WO 2020211391 A1 WO2020211391 A1 WO 2020211391A1
Authority
WO
WIPO (PCT)
Prior art keywords
information
authentication
test
result
preset
Prior art date
Application number
PCT/CN2019/122451
Other languages
French (fr)
Chinese (zh)
Inventor
张猛
Original Assignee
深圳壹账通智能科技有限公司
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 深圳壹账通智能科技有限公司 filed Critical 深圳壹账通智能科技有限公司
Publication of WO2020211391A1 publication Critical patent/WO2020211391A1/en

Links

Classifications

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

Definitions

  • This application belongs to the field of computer technology, and particularly relates to an automated test method, device, computer equipment, and storage medium.
  • the embodiments of the present application provide an automated test method, device, computer equipment, and storage medium, aiming to solve the problem of low test efficiency in the test method in the prior art method.
  • an automated test method which includes:
  • the information to be authenticated is authenticated according to the preset information authentication process and the judgment result of the authentication object to obtain the authentication result of passing or not;
  • an automated test device which includes:
  • the registration login test unit is used to perform a registration login test according to the registration information and login information in the preset configuration file to obtain the registration login test result;
  • a registration login test result sending unit configured to send the registration login test result to the user if the registration login test result is passed, and receive test information fed back by the user according to the registration login test result;
  • the authentication object judgment unit is configured to judge the authentication object information in the test information according to the preset authentication judgment rule to obtain the authentication object judgment result;
  • the information obtaining unit to be authenticated is configured to obtain information to be authenticated corresponding to the judgment result of the authentication object in the configuration file;
  • the information authentication unit is configured to authenticate the information to be authenticated according to the preset information authentication process and the judgment result of the authentication object to obtain the authentication result of passing or not;
  • the service interface testing unit is configured to, if the authentication result is passed, obtain the activation tool corresponding to the configuration file in the preset tool library and pass the activation tool to test the corresponding service interface so as to The return information of the service interface is used as the test result.
  • a computer device which includes a memory, a processor, and computer-readable instructions stored in the memory and executable on the processor, and the processor executes the computer
  • the automated test method described in the first aspect is realized when the instruction is read.
  • a computer-readable storage medium stores computer-readable instructions that, when executed by a processor, implement the aforementioned first aspect Automated testing methods.
  • FIG. 1 is a schematic flowchart of an automated test method provided by an embodiment of the present invention
  • FIG. 2 is a schematic block diagram of an automated test device provided by an embodiment of the present invention.
  • FIG. 3 is a schematic block diagram of subunits of an automated test device provided by an embodiment of the present invention.
  • FIG. 4 is a schematic block diagram of another subunit of the automated test device according to an embodiment of the present invention.
  • FIG. 5 is a schematic block diagram of another subunit of the automated test device according to an embodiment of the present invention.
  • FIG. 6 is another schematic block diagram of an automated test device provided by an embodiment of the present invention.
  • FIG. 7 is a schematic block diagram of a computer device according to an embodiment of the present invention.
  • FIG. 1 is a schematic flowchart of an automated test method provided by an embodiment of the present invention.
  • the automated test method is applied to a user terminal, and the method is executed by application software installed in the user terminal.
  • the user terminal is a terminal device used to execute an automated test method to obtain test results, such as a desktop computer, a notebook computer, and a tablet. Computer or mobile phone, etc.
  • the method includes steps S110 to S160.
  • S110 Perform a registration login test according to the registration information and the login information in the preset configuration file to obtain a registration login test result.
  • the configuration file is the file information that is pre-configured by the user in the user terminal for multi-directional testing of the application.
  • the configuration file includes registration information, login information, etc., and the configuration file can be reused during multiple tests.
  • the registration information includes information required to register an account, such as registered account information and registration password information; the login information includes information required to log in to an account, such as login account information and login password.
  • the registration login test result is passed, send the registration login test result to the user, and receive the test information fed back by the user according to the registration login test result. If the user receives the registration and login test result, the user can submit the test information to perform the next test on the application in the user terminal.
  • the test information includes authentication object information
  • the authentication object information is the authentication object submitted by the user for authentication testing.
  • the preset authentication judgment rule is the rule information used to judge the authentication object information in the test information.
  • the authentication judgment rule includes the rule information for judging the target authentication object and whether the authentication object information contains the proxy Information about the rules that people make judgments.
  • the target authentication object can be an enterprise or an individual. Different target authentication objects apply different authentication procedures. If the authentication object information includes an agent, the authentication process for the agent needs to be added.
  • step S130 includes sub-steps S131, S132 and S133.
  • S131 Determine whether the target authentication object in the authentication object information is an enterprise according to a preset authentication judgment rule to obtain a target object judgment result.
  • the target authentication object in the authentication object information is an enterprise according to a preset authentication judgment rule to obtain the target object judgment result.
  • the target authentication object may be an enterprise or an individual, and then it can be judged whether the target authentication object is an enterprise to obtain the judgment result of the target object.
  • the authentication object information includes an agent to obtain the result of the agent judgment.
  • the authentication object information may or may not include an agent. Therefore, it is necessary to judge whether the authentication object information contains an agent to obtain the result of the agent judgment.
  • S133 Integrate the judgment result of the target object and the judgment result of the agent to obtain the judgment result of the authentication object.
  • the obtained target object judgment result and the agent judgment result are integrated to finally obtain the authentication object judgment result, and the next test operation can be performed according to the obtained authentication object judgment result.
  • S140 Obtain the information to be authenticated corresponding to the judgment result of the authentication object in the configuration file.
  • the configuration file also includes the specific information that needs to be authenticated, such as the enterprise's three-in-one certificate number, enterprise legal person information, individual industrial and commercial household legal person information, agent ID number and agent mobile phone number, etc., through the obtained authentication object judgment As a result, the corresponding information in the configuration file can be obtained as the information to be authenticated.
  • the enterprise three certificate combination number, enterprise legal person information, agent ID number and agent are correspondingly obtained from the configuration file
  • the mobile phone number is the information to be authenticated.
  • S150 Perform authentication on the information to be authenticated according to the preset information authentication process and the judgment result of the authentication object to obtain the authentication result of passing or not.
  • the information to be authenticated is authenticated according to the preset information authentication process and the judgment result of the authentication object to obtain the authentication result of whether it passes.
  • the information authentication process is the preset process information used to authenticate the information to be authenticated, and the corresponding process is selected from the preset information authentication process according to the judgment result of the authentication object to complete the authentication of the information to be authenticated.
  • step S150 includes sub-steps S151, S152 and S153.
  • S151 Send authentication request information corresponding to the information to be authenticated to the corresponding information authentication interface according to the information authentication process and the judgment result of the authentication object.
  • the preset information authentication process includes an enterprise information authentication interface, an individual information authentication interface, and an agent information authentication interface.
  • the enterprise information authentication interface can be So it is the enterprise information query interface of the Industrial and Commercial Bureau website
  • the individual information authentication interface can be the individual information query interface of the Industrial and Commercial Bureau website
  • the agent information authentication interface can be the identity information query interface of the public security organ.
  • the corresponding information authentication interface can be obtained from the preset information authentication process, and the authentication request information corresponding to the information to be authenticated can be sent through the corresponding information authentication interface.
  • the judgment result of the authentication object is that the target authentication object is an enterprise and the authentication object information includes an agent
  • the information to be authenticated includes the enterprise's three-certificate unity number, enterprise legal person information, agent ID number and agent mobile phone number
  • the authentication request information related to the enterprise in the information to be authenticated is sent to the enterprise information authentication interface
  • the authentication request information related to the agent in the information to be authenticated is sent to the agent information authentication interface.
  • the information authentication interface can feedback the corresponding interface authentication information after receiving the authentication request information.
  • the enterprise information authentication interface corresponds to feedback enterprise interface authentication information
  • the individual information authentication interface corresponds to feedback individual interface authentication information
  • the agent information authentication interface corresponds to feedback agent Interface authentication information.
  • Authenticating the information to be authenticated according to the interface authentication information to obtain an authentication result. Specifically, if the interface authentication information is consistent with the information to be authenticated, the authentication result is passed, and if the interface authentication information is inconsistent with the information to be authenticated, the authentication result is failed.
  • the preset tool library contains multiple activation tools, which can be used to test the corresponding service interface by using the activation tool, and the corresponding service interface can be tested by obtaining the return information fed back by the service interface.
  • step S160 includes sub-steps S161 and S162.
  • the configuration file also includes the activation tool number.
  • Each activation tool in the preset tool library corresponds to a tool number.
  • the preset tool library can be selected To obtain the target activation tool corresponding to the activation tool number.
  • the target activation tool is executed to test the corresponding service interface and obtain the return information fed back by the service interface.
  • the corresponding service interface is tested by executing the activation tool, and the return information fed back by the service interface can be obtained. Specifically, if the service interface test is successful, the return information "p ass" fed back by the service interface can be received ; If the service interface test fails, Behe receives the "faile d" returned message from the service interface.
  • step S170 is further included after step S160.
  • the service interface corresponding to the activation tool is cleared through a preset interface clearing tool.
  • the default interface clearing tool is a tool used to clear the information in the tested service interface. After the interface clearing tool is used to clear the service interface corresponding to the activation tool, the preset configuration file can be reused The service interface in the tested application is tested again.
  • the registration and login test is performed through the registration information and the login information, and the test information fed back by the user is obtained after passing, the authentication object information in the test information is judged, and the information to be authenticated corresponding to the authentication object judgment result in the configuration file is obtained.
  • the information authentication process is combined with the judgment result of the authentication object to authenticate the information to be authenticated, and after the authentication is passed, the activation tool corresponding to the configuration file in the tool library is tested to obtain the test result.
  • the embodiment of the present invention also provides an automated test device, which is used to execute the aforementioned automatic test device. Any embodiment of the automated testing method. Specifically, please refer to FIG. 6, which is a schematic block diagram of an automated test apparatus provided by an embodiment of the present invention.
  • the automated test device can be configured in a user terminal such as a desktop computer, a notebook computer, a tablet computer, or a mobile phone.
  • the automated test device 100 includes a registration and login test unit 110, a registration and login test result sending unit 120, an authentication object judgment unit 130, an information acquisition unit 140 to be authenticated, an information authentication unit 150, and an interface testing unit 160 .
  • the registration login test unit 110 is used to register the login test unit, and is used to perform a registration login test according to the registration information and login information in a preset configuration file to obtain a registration login test result.
  • the configuration file is the file information that is pre-configured by the user in the user terminal for multi-directional testing of the application.
  • the configuration file includes registration information, login information, etc., and the configuration file can be reused in multiple testing processes.
  • the registration login test result sending unit 120 is configured to, if the registration login test result is passed, send the registration login test result to the user and receive test information that the user feedbacks based on the registration login test result.
  • the registration login test result is passed, send the registration login test result to the user, and receive the test information fed back by the user according to the registration login test result. If the user receives the registration and login test result, the user can submit the test information to perform the next test on the application in the user terminal.
  • the test information includes authentication object information
  • the authentication object information is the authentication object submitted by the user for authentication testing.
  • the authentication object judgment unit 130 is configured to judge the authentication object information in the test information according to a preset authentication judgment rule to obtain the authentication object judgment result.
  • the authentication object information in the test information is judged according to the preset authentication judgment rule to obtain the authentication object judgment result.
  • the preset authentication judgment rules are used to verify the authentication object information in the test information.
  • the rule information for judgment specifically, the authentication judgment rule includes rule information for judging the target authentication object and rule information for judging whether the authentication object information includes an agent.
  • the target authentication object can be an enterprise or an individual, and different authentication objects are applicable to different authentication procedures. If the authentication object information includes an agent, the authentication process for the agent needs to be added.
  • the authentication object judgment unit 130 includes subunits: a target authentication object judgment unit 131, an agent judgment unit 132, and a judgment result acquisition unit 133.
  • the target authentication object judgment unit 131 is configured to judge whether the target authentication object in the authentication object information is an enterprise according to a preset authentication judgment rule to obtain a target object judgment result.
  • the target authentication object in the authentication object information is an enterprise according to a preset authentication judgment rule to obtain the target object judgment result.
  • the target authentication object may be an enterprise or an individual, and then it can be judged whether the target authentication object is an enterprise to obtain the judgment result of the target object.
  • the agent judgment unit 132 is configured to judge whether an agent is included in the authentication object information according to a preset authentication judgment rule to obtain an agent judgment result.
  • the authentication object information includes an agent to obtain the result of the agent judgment.
  • the authentication object information may or may not include an agent. Therefore, it is necessary to judge whether the authentication object information contains an agent to obtain the result of the agent judgment.
  • the judgment result obtaining unit 133 is configured to integrate the target object judgment result and the agent judgment result to obtain the authentication object judgment result.
  • the obtained target object judgment result and the agent judgment result are integrated to finally obtain the authentication object judgment result, and the next test operation can be performed according to the obtained authentication object judgment result.
  • the to-be-authenticated information obtaining unit 140 is configured to obtain the to-be-authenticated information corresponding to the judgment result of the authentication object in the configuration file.
  • the configuration file also includes the specific information that needs to be authenticated, such as the enterprise's three-in-one certificate number, enterprise legal person information, individual industrial and commercial household legal person information, agent ID number and agent mobile phone number, etc., through the obtained authentication object judgment As a result, the corresponding information in the configuration file can be obtained as the information to be authenticated.
  • the information authentication unit 150 is configured to check the information authentication process according to the preset information authentication process and the judgment result of the authentication object The information to be authenticated is authenticated to obtain the authentication result of whether it is passed or not.
  • the information to be authenticated is authenticated according to the preset information authentication process and the judgment result of the authentication object to obtain the authentication result of whether it passes.
  • the information authentication process is the preset process information used to authenticate the information to be authenticated, and the corresponding process is selected from the preset information authentication process according to the judgment result of the authentication object to complete the authentication of the information to be authenticated.
  • the information authentication unit 150 includes subunits: an authentication request information sending unit 151, an interface authentication information obtaining unit 152, and an authentication result obtaining unit 153.
  • the authentication request information sending unit 151 is configured to send authentication request information corresponding to the information to be authenticated to the corresponding information authentication interface according to the preset information authentication process and the authentication object judgment result.
  • the authentication request information corresponding to the information to be authenticated is sent to the corresponding information authentication interface.
  • the preset information authentication process includes an enterprise information authentication interface, an individual information authentication interface, and an agent information authentication interface.
  • the enterprise information authentication interface can be the enterprise information query interface of the Industrial and Commercial Bureau website, and the individual information authentication interface can be the Industrial and Commercial Bureau website.
  • the individual information query interface and the agent information authentication interface can be the identity information query interface of the public security organ.
  • the corresponding information authentication interface can be obtained from the preset information authentication process, and the authentication request information corresponding to the information to be authenticated can be sent through the corresponding information authentication interface.
  • the interface authentication information obtaining unit 152 is configured to obtain interface authentication information fed back by the information authentication interface according to the authentication request information.
  • the information authentication interface can feedback the corresponding interface authentication information after receiving the authentication request information.
  • the enterprise information authentication interface corresponds to feedback enterprise interface authentication information
  • the individual information authentication interface corresponds to feedback individual interface authentication information
  • the agent information authentication interface corresponds to feedback agent Interface authentication information.
  • the authentication result obtaining unit 153 is configured to authenticate the information to be authenticated according to the interface authentication information to obtain an authentication result.
  • Authenticating the information to be authenticated according to the interface authentication information to obtain an authentication result. Specifically, if the interface authentication information is consistent with the information to be authenticated, the authentication result is passed, and if the interface authentication information is inconsistent with the information to be authenticated, the authentication result is failed.
  • the service interface testing unit 160 is configured to, if the authentication result is passed, obtain the The activation tool corresponding to the configuration file is used to test the corresponding service interface through the activation tool to use the return information of the service interface as the test result.
  • the preset tool library contains multiple activation tools, which can be used to test the corresponding service interface by using the activation tool, and the corresponding service interface can be tested by obtaining the return information fed back by the service interface.
  • the service interface testing unit 160 includes sub-units: an activation tool acquisition unit 161 and a test result acquisition unit 162.
  • the activation tool obtaining unit 161 is configured to obtain the target activation tool corresponding to the activation tool number in the preset tool library according to the activation tool number in the configuration file.
  • the configuration file also includes the activation tool number.
  • Each activation tool in the preset tool library corresponds to a tool number. By matching the activation tool number with the tool number of each activation tool, the preset tool library can be selected To obtain the target activation tool corresponding to the activation tool number.
  • the test result acquisition unit 162 is configured to execute the target activation tool to test the corresponding service interface and use the return information fed back by the service interface as the test result.
  • the target activation tool is executed to test the corresponding service interface and obtain the return information fed back by the service interface. Executing the activation tool to test the corresponding service interface, you can obtain the return information fed back by the service interface. Specifically, if the service interface test is successful, you can receive the return information "P ass” fed back by the service interface. ; If the service interface test fails, Behe receives the "faile d" returned message from the service interface.
  • the automated testing device 100 further includes a subunit: a service interface clearing unit 170.
  • the service interface clearing unit 170 is configured to clear the service interface corresponding to the activation tool through a preset interface clearing tool.
  • the service interface corresponding to the activation tool is cleared through a preset interface clearing tool.
  • the default interface clearing tool is a tool used to clear the information in the tested service interface. After the interface clearing tool clears the service interface corresponding to the activation tool, the preset configuration can be reused.
  • the configuration file retests the service interface in the application that has been tested.
  • the above-mentioned automated test device may be implemented in the form of a computer program, and the computer program may run on a computer device as shown in FIG. 7.
  • FIG. 7 is a schematic block diagram of a computer device according to an embodiment of the present invention.
  • the computer device 500 includes a processor 502, a memory, and a network interface 505 connected through a system bus 501, where the memory may include a non-volatile storage medium 503 and an internal memory 504.
  • the non-volatile storage medium 503 can store an operating system 5031 and a computer program 5032.
  • the processor 502 can execute the automated test method.
  • the processor 502 is used to provide computing and control capabilities, and supports the operation of the entire computer device 500.
  • the internal memory 504 provides an environment for the operation of the computer program 5032 in the non-volatile storage medium 503.
  • the processor 502 can execute an automated test method.
  • the network interface 505 is used for network communication, such as providing data information transmission.
  • the structure shown in FIG. 7 is only a block diagram of part of the structure related to the solution of the present invention, and does not constitute a limitation on the computer device 500 to which the solution of the present invention is applied.
  • the specific computer device 500 may include more or fewer components than shown in the figure, or combine certain components, or have a different component arrangement.
  • the processor 502 is configured to run a computer program 5032 stored in the memory, so as to implement the steps of the automated test method described in any of the foregoing embodiments.
  • the embodiment of the computer device shown in FIG. 7 does not constitute a limitation on the specific configuration of the computer device.
  • the computer device may include more or Fewer parts, or a combination of some parts, or a different arrangement of parts.
  • the computer device may only include a memory and a processor. In such an embodiment, the structures and functions of the memory and the processor are consistent with the embodiment shown in FIG. 7, and details are not described herein again.
  • the processor 502 may be a central processing unit (Central
  • the processor 502 can also be other general-purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), ready-made programmable gate arrays (Field- Programmable Gate Array, FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc.
  • DSP Digital Signal Processor
  • ASIC Application Specific Integrated Circuit
  • FPGA ready-made programmable gate arrays
  • the general-purpose processor may be a microprocessor or the processor may also be any conventional processor.
  • a computer-readable storage medium may be a non-volatile computer-readable storage medium.
  • the computer-readable storage medium stores a computer program, where the computer program implements the steps of the automated test method described in any of the foregoing embodiments when the computer program is executed by the processor.
  • the disclosed equipment, apparatus, and method may be implemented in other ways.
  • the device embodiments described above are only illustrative.
  • the division of the units is only a logical function division.
  • there may be other division methods, or units with the same function may be combined into one.
  • the displayed or discussed mutual coupling or direct coupling or communication connection may be through some interfaces,
  • the indirect coupling or communication connection of the device or unit can also be electrical, mechanical or other forms of connection
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed to multiple networks Unit. Some or all of the units may be selected according to actual needs to achieve the objectives of the solutions of the embodiments of the present invention.
  • the functional units in the various embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit.
  • the above-mentioned integrated unit can be implemented in the form of hardware or software functional unit.
  • the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium.
  • the read storage medium includes a number of instructions to enable a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention.
  • the aforementioned computer-readable storage medium includes: U disk, mobile hard disk, Read-Only Memory (ROM, Read-Only Memory), magnetic disk or optical disk and other media that can store program codes.

Abstract

The embodiments of the present application are applicable to the technical field of computers, and provide an automatic test method and apparatus, a computer device and a storage medium. Said method comprises: performing a registration and login test according to registration information and login information; if the test is passed, acquiring test information fed back by a user; determining authentication object information in the test information; acquiring, in a configuration file, information to be authenticated corresponding to an authentication object determination result; by means of an information authentication procedure in combination with the authentication object determination result, authenticating the information to be authenticated; and if the authentication is passed, testing a service interface by using a commissioning tool, in a tool library, corresponding to the configuration file, so as to obtain a test result. The present invention is based on an automatic testing tool technique, improves the success rate in the test process, and greatly increases the test efficiency.

Description

说明书 发明名称: 自动化测试方法、 装置、 计算机设备及存储介质 Manual Title of Invention: Automated test method, device, computer equipment and storage medium
[0001] 本申请申明享有 2019年 04月 15日递交的申请号为 201910300607.4、 名称为“自动 化测试方法、 装置、 计算机设备及存储介质”中国专利申请的优先权, 该中国专 利申请的整体内容以参考的方式结合在本申请中。 [0001] This application affirms that it enjoys the priority of a Chinese patent application filed on April 15, 2019 with the application number 201910300607.4 and the name "Automated Test Method, Apparatus, Computer Equipment and Storage Medium". The overall content of the Chinese patent application is based on The reference method is incorporated in this application.
技术领域 Technical field
[0002] 本申请属于计算机技术领域, 特别是涉及一种自动化测试方法、 装置、 计算机 设备及存储介质。 [0002] This application belongs to the field of computer technology, and particularly relates to an automated test method, device, computer equipment, and storage medium.
背景技术 Background technique
[0003] 在对软件进行测试的过程中, 不同的用户类型需对应采用相应的测试流程。 由 于用户类型的不同所需使用的测试数据也不相同, 传统的测试方法中需根据多 个用户类型配置多份测试数据, 并从多份测试数据中手动选择与用户类型相匹 配的测试数据。 实际使用过程中经常容易导致因用户类型与所需的测试数据不 匹配导致测试失败的问题, 从而降低了测试的效率。 因此现有的技术方法存在 软件测试效率不高的问题。 [0003] In the process of testing software, different user types need to adopt corresponding testing procedures. Because different user types need to use different test data, traditional test methods need to configure multiple test data according to multiple user types, and manually select the test data matching the user type from the multiple test data. In actual use, it is often easy to cause the problem of test failure due to the mismatch between the user type and the required test data, thereby reducing the efficiency of the test. Therefore, the existing technical methods have the problem of low software testing efficiency.
发明概述 Summary of the invention
技术问题 technical problem
[0004] 有鉴于此, 本申请实施例提供了一种自动化测试方法、 装置、 计算机设备及存 储介质, 旨在解决现有技术方法中测试方法所存在的测试效率不高的问题。 问题的解决方案 [0004] In view of this, the embodiments of the present application provide an automated test method, device, computer equipment, and storage medium, aiming to solve the problem of low test efficiency in the test method in the prior art method. The solution to the problem
技术解决方案 Technical solutions
[0005] 为解决上述技术问题, 本申请实施例采用的技术方案是: [0005] To solve the above technical problems, the technical solutions adopted in the embodiments of this application are:
[0006] 第一方面, 提供了一种自动化测试方法, 其包括: [0006] In a first aspect, an automated test method is provided, which includes:
[0007] 根据预设的配置文件中的注册信息及登录信息进行注册登录测试以得到注册登 录测试结果; [0007] Perform a registration login test according to the registration information and login information in the preset configuration file to obtain the registration login test result;
[0008] 若所述注册登录测试结果为通过, 将所述注册登录测试结果发送至用户并接收 所述用户根据所述注册登录测试结果反馈的测试信息; [0009] 根据预设的认证判断规则对所述测试信息中的认证对象信息进行判断以得到认 证对象判断结果; [0008] If the registration and login test result is passed, sending the registration and login test result to the user and receiving the test information fed back by the user according to the registration and login test result; [0009] Judging the authentication object information in the test information according to preset authentication judgment rules to obtain the authentication object judgment result;
[0010] 获取所述配置文件中与所述认证对象判断结果相对应的待认证信息; [0010] obtaining information to be authenticated corresponding to the judgment result of the authentication object in the configuration file;
[0011] 根据预设的信息认证流程及所述认证对象判断结果对所述待认证信息进行认证 以得到是否通过的认证结果; [0011] The information to be authenticated is authenticated according to the preset information authentication process and the judgment result of the authentication object to obtain the authentication result of passing or not;
[0012] 若所述认证结果为通过, 获取预设工具库中与所述配置文件相对应的开通工具 并通过所述开通工具测试相对应的服务接口以将所述服务接口的返回信息作为 测试结果。 [0012] If the authentication result is passed, obtain the activation tool corresponding to the configuration file in the preset tool library and pass the activation tool to test the corresponding service interface to use the return information of the service interface as a test result.
[0013] 第二方面, 提供了一种自动化测试装置, 其包括: [0013] In a second aspect, an automated test device is provided, which includes:
[0014] 注册登录测试单元, 用于根据预设的配置文件中的注册信息及登录信息进行注 册登录测试以得到注册登录测试结果; [0014] The registration login test unit is used to perform a registration login test according to the registration information and login information in the preset configuration file to obtain the registration login test result;
[0015] 注册登录测试结果发送单元, 用于若所述注册登录测试结果为通过, 将所述注 册登录测试结果发送至用户并接收所述用户根据所述注册登录测试结果反馈的 测试信息; [0015] a registration login test result sending unit, configured to send the registration login test result to the user if the registration login test result is passed, and receive test information fed back by the user according to the registration login test result;
[0016] 认证对象判断单元, 用于根据预设的认证判断规则对所述测试信息中的认证对 象信息进行判断以得到认证对象判断结果; [0016] The authentication object judgment unit is configured to judge the authentication object information in the test information according to the preset authentication judgment rule to obtain the authentication object judgment result;
[0017] 待认证信息获取单元, 用于获取所述配置文件中与所述认证对象判断结果相对 应的待认证信息; [0017] The information obtaining unit to be authenticated is configured to obtain information to be authenticated corresponding to the judgment result of the authentication object in the configuration file;
[0018] 信息认证单元, 用于根据预设的信息认证流程及所述认证对象判断结果对所述 待认证信息进行认证以得到是否通过的认证结果; [0018] The information authentication unit is configured to authenticate the information to be authenticated according to the preset information authentication process and the judgment result of the authentication object to obtain the authentication result of passing or not;
[0019] 服务接口测试单元, 用于若所述认证结果为通过, 获取预设工具库中与所述配 置文件相对应的开通工具并通过所述开通工具测试相对应的服务接口以将所述 服务接口的返回信息作为测试结果。 [0019] The service interface testing unit is configured to, if the authentication result is passed, obtain the activation tool corresponding to the configuration file in the preset tool library and pass the activation tool to test the corresponding service interface so as to The return information of the service interface is used as the test result.
[0020] 第三方面, 提供了一种计算机设备, 包括存储器、 处理器以及存储在所述存储 器中并可在所述处理器上运行的计算机可读指令, 所述处理器执行所述计算机 可读指令时实现上述第一方面所述的自动化测试方法。 [0020] In a third aspect, a computer device is provided, which includes a memory, a processor, and computer-readable instructions stored in the memory and executable on the processor, and the processor executes the computer The automated test method described in the first aspect is realized when the instruction is read.
[0021] 第四方面, 提供了一种计算机可读存储介质, 所述计算机可读存储介质存储有 计算机可读指令, 所述计算机可读指令被处理器执行时实现上述第一方面所述 的自动化测试方法。 [0021] In a fourth aspect, a computer-readable storage medium is provided, and the computer-readable storage medium stores computer-readable instructions that, when executed by a processor, implement the aforementioned first aspect Automated testing methods.
[0022] 本申请的一个或多个实施例的细节在下面的附图和描述中提出。 本申请的其它 特征、 目的和优点将从说明书、 附图以及权利要求书变得明显。 [0022] The details of one or more embodiments of the present application are set forth in the following drawings and description. Other features, purposes and advantages of the application will become apparent from the description, drawings and claims.
发明的有益效果 The beneficial effects of the invention
对附图的简要说明 Brief description of the drawings
附图说明 Description of the drawings
[0023] 图 1为本发明实施例提供的自动化测试方法的流程示意图; [0023] FIG. 1 is a schematic flowchart of an automated test method provided by an embodiment of the present invention;
[0024] 图 2为本发明实施例提供的自动化测试装置的示意性框图; [0024] FIG. 2 is a schematic block diagram of an automated test device provided by an embodiment of the present invention;
[0025] 图 3为本发明实施例提供的自动化测试装置的子单元示意性框图; [0025] FIG. 3 is a schematic block diagram of subunits of an automated test device provided by an embodiment of the present invention;
[0026] 图 4为本发明实施例提供的自动化测试装置的另一子单元示意性框图; [0026] FIG. 4 is a schematic block diagram of another subunit of the automated test device according to an embodiment of the present invention;
[0027] 图 5为本发明实施例提供的自动化测试装置的另一子单元示意性框图; [0027] FIG. 5 is a schematic block diagram of another subunit of the automated test device according to an embodiment of the present invention;
[0028] 图 6为本发明实施例提供的自动化测试装置的另一示意性框图; [0028] FIG. 6 is another schematic block diagram of an automated test device provided by an embodiment of the present invention;
[0029] 图 7为本发明实施例提供的计算机设备的示意性框图。 [0029] FIG. 7 is a schematic block diagram of a computer device according to an embodiment of the present invention.
发明实施例 Invention embodiment
本发明的实施方式 Embodiments of the invention
[0030] 请参阅图 1, 图 1是本发明实施例提供的自动化测试方法的流程示意图。 该自动 化测试方法应用于用户终端中, 该方法通过安装于用户终端中的应用软件进行 执行, 用户终端即是用于执行自动化测试方法以获取测试结果的终端设备, 例 如台式电脑、 笔记本电脑、 平板电脑或手机等。 [0030] Please refer to FIG. 1. FIG. 1 is a schematic flowchart of an automated test method provided by an embodiment of the present invention. The automated test method is applied to a user terminal, and the method is executed by application software installed in the user terminal. The user terminal is a terminal device used to execute an automated test method to obtain test results, such as a desktop computer, a notebook computer, and a tablet. Computer or mobile phone, etc.
[0031] 如图 1所示, 该方法包括步骤 S110至 S160。 [0031] As shown in FIG. 1, the method includes steps S110 to S160.
[0032] S110、 根据预设的配置文件中的注册信息及登录信息进行注册登录测试以得到 注册登录测试结果。 [0032] S110: Perform a registration login test according to the registration information and the login information in the preset configuration file to obtain a registration login test result.
[0033] 获取预设配置文件中的注册信息及登录信息, 根据所述注册信息及登录信息进 行注册登录测试并得到注册登录测试结果。 在对所需测试的应用程序进行测试 的流程中, 包含对账号进行注册测试及登录测试, 也即是测试的第一步即是获 取注册信息进行注册并获取登录信息进行进行登录以完成对应用程序的第一步 测试, 完成第一步测试即可得到相应的测试结果, 也即是得到注册登录测试结 果。 配置文件即是用户预先配置于用户终端中以用于对应用程序进行多方位测 试的文件信息, 配置文件中包括注册信息、 登录信息等, 配置文件可在多次测 试过程中进行重复使用。 注册信息中包含对账号进行注册所需的信息, 例如注 册账号信息及注册密码等信息; 登录信息中包含对账号进行登录所需的信息, 例如登录账号信息及登录密码等信息。 [0033] Obtain registration information and login information in the preset configuration file, perform a registration login test according to the registration information and login information, and obtain a registration login test result. In the process of testing the application to be tested, the account registration test and login test are included, that is, the first step of the test is to obtain registration information to register and obtain login information to log in to complete the application The first test of the program. After completing the first test, you can get the corresponding test result, that is, get the registration log-in test result. fruit. The configuration file is the file information that is pre-configured by the user in the user terminal for multi-directional testing of the application. The configuration file includes registration information, login information, etc., and the configuration file can be reused during multiple tests. The registration information includes information required to register an account, such as registered account information and registration password information; the login information includes information required to log in to an account, such as login account information and login password.
[0034] S120、 若所述注册登录测试结果为通过, 将所述注册登录测试结果发送至用户 并接收所述用户根据所述注册登录测试结果反馈的测试信息。 [0034] S120. If the registration login test result is passed, send the registration login test result to the user and receive test information fed back by the user according to the registration login test result.
[0035] 若注册登录测试结果为通过, 向用户发送该注册登录测试结果, 并接收用户根 据所述注册登录测试结果反馈的测试信息。 若用户接收到的注册登录测试结果 , 则用户可提交测试信息以对用户终端中的应用程序进行下一步测试。 具体的 , 测试信息中包括认证对象信息, 认证对象信息即是用户所提交的需进行认证 测试的认证对象。 [0035] If the registration login test result is passed, send the registration login test result to the user, and receive the test information fed back by the user according to the registration login test result. If the user receives the registration and login test result, the user can submit the test information to perform the next test on the application in the user terminal. Specifically, the test information includes authentication object information, and the authentication object information is the authentication object submitted by the user for authentication testing.
[0036] S130、 根据预设的认证判断规则对所述测试信息中的认证对象信息进行判断以 得到认证对象判断结果。 [0036] S130. Judging the authentication object information in the test information according to a preset authentication judgment rule to obtain an authentication object judgment result.
[0037] 根据预设的认证判断规则对所述测试信息中的认证对象信息进行判断以得到认 证对象判断结果。 预设的认证判断规则即是用于对测试信息中的认证对象信息 进行判断的规则信息, 具体的, 认证判断规则包括对目标认证对象进行判断的 规则信息以及对认证对象信息中的是否包含代理人进行判断的规则信息。 其中 , 目标认证对象可以是企业, 还可以是个体, 不同的目标认证对象适用不同的 认证流程, 若认证对象信息中包含代理人, 则还需加入对代理人进行认证的流 程。 [0037] Judging the authentication object information in the test information according to preset authentication judgment rules to obtain the authentication object judgment result. The preset authentication judgment rule is the rule information used to judge the authentication object information in the test information. Specifically, the authentication judgment rule includes the rule information for judging the target authentication object and whether the authentication object information contains the proxy Information about the rules that people make judgments. Among them, the target authentication object can be an enterprise or an individual. Different target authentication objects apply different authentication procedures. If the authentication object information includes an agent, the authentication process for the agent needs to be added.
[0038] 在一实施例中, 步骤 S130包括子步骤 S131、 S132和 S133。 [0038] In an embodiment, step S130 includes sub-steps S131, S132 and S133.
[0039] S131、 根据预设的认证判断规则对所述认证对象信息中的目标认证对象是否为 企业进行判断以得到目标对象判断结果。 [0039] S131. Determine whether the target authentication object in the authentication object information is an enterprise according to a preset authentication judgment rule to obtain a target object judgment result.
[0040] 根据预设的认证判断规则对所述认证对象信息中的目标认证对象是否为企业进 行判断以得到目标对象判断结果。 具体的, 目标认证对象可以是企业, 还可以 是个体, 则可对目标认证对象是否为企业进行判断以得到目标对象判断结果。 [0040] Determine whether the target authentication object in the authentication object information is an enterprise according to a preset authentication judgment rule to obtain the target object judgment result. Specifically, the target authentication object may be an enterprise or an individual, and then it can be judged whether the target authentication object is an enterprise to obtain the judgment result of the target object.
[0041] S132、 根据预设的认证判断规则对所述认证对象信息中是否包含代理人进行判 断以得到代理人判断结果。 [0041] S132. Judging whether an agent is included in the authentication object information according to a preset authentication judgment rule To get the judgment result of the agent.
[0042] 根据预设的认证判断规则对所述认证对象信息中是否包含代理人进行判断以得 到代理人判断结果。 认证对象信息中可包含代理人, 也可不包含代理人, 因此 需对认证对象信息中是否包含代理人进行判断, 以得到代理人判断结果。 [0042] According to a preset authentication judgment rule, it is judged whether the authentication object information includes an agent to obtain the result of the agent judgment. The authentication object information may or may not include an agent. Therefore, it is necessary to judge whether the authentication object information contains an agent to obtain the result of the agent judgment.
[0043] S133、 将所述目标对象判断结果及所述代理人判断结果进行整合以得到认证对 象判断结果。 [0043] S133. Integrate the judgment result of the target object and the judgment result of the agent to obtain the judgment result of the authentication object.
[0044] 将所得到的目标对象判断结果及代理人判断结果进行整合, 即可最终得到认证 对象判断结果, 根据所得到的认证对象判断结果即可进行下一步测试操作。 [0044] The obtained target object judgment result and the agent judgment result are integrated to finally obtain the authentication object judgment result, and the next test operation can be performed according to the obtained authentication object judgment result.
[0045] S140、 获取所述配置文件中与所述认证对象判断结果相对应的待认证信息。 [0045] S140. Obtain the information to be authenticated corresponding to the judgment result of the authentication object in the configuration file.
[0046] 获取所述配置文件中与所述认证对象判断结果相对应的待认证信息。 具体的, 配置文件中还包括企业三证合一号、 企业法人信息、 个体工商户法人信息、 代 理人身份证号及代理人手机号等需进行认证的具体信息, 通过所得到的认证对 象判断结果即可获取配置文件中对应的信息作为待认证信息。 [0046] obtaining information to be authenticated corresponding to the judgment result of the authentication object in the configuration file. Specifically, the configuration file also includes the specific information that needs to be authenticated, such as the enterprise's three-in-one certificate number, enterprise legal person information, individual industrial and commercial household legal person information, agent ID number and agent mobile phone number, etc., through the obtained authentication object judgment As a result, the corresponding information in the configuration file can be obtained as the information to be authenticated.
[0047] 例如, 认证对象判断结果为目标认证对象为企业且认证对象信息中包含代理人 , 则从配置文件中对应获取企业三证合一号、 企业法人信息、 代理人身份证号 及代理人手机号作为待认证信息。 [0047] For example, if the judgment result of the authentication object is that the target authentication object is an enterprise and the authentication object information includes an agent, then the enterprise three certificate combination number, enterprise legal person information, agent ID number and agent are correspondingly obtained from the configuration file The mobile phone number is the information to be authenticated.
[0048] S150、 根据预设的信息认证流程及所述认证对象判断结果对所述待认证信息进 行认证以得到是否通过的认证结果。 [0048] S150. Perform authentication on the information to be authenticated according to the preset information authentication process and the judgment result of the authentication object to obtain the authentication result of passing or not.
[0049] 根据预设的信息认证流程及所述认证对象判断结果对所述待认证信息进行认证 以得到是否通过的认证结果。 信息认证流程即是预设的用于对待认证信息进行 认证的流程信息, 根据认证对象判断结果从预设信息认证流程中选择相对应的 流程, 以完成对待认证信息的认证。 [0049] The information to be authenticated is authenticated according to the preset information authentication process and the judgment result of the authentication object to obtain the authentication result of whether it passes. The information authentication process is the preset process information used to authenticate the information to be authenticated, and the corresponding process is selected from the preset information authentication process according to the judgment result of the authentication object to complete the authentication of the information to be authenticated.
[0050] 在一实施例中, 步骤 S150包括子步骤 S151、 S152和 S153。 [0050] In an embodiment, step S150 includes sub-steps S151, S152 and S153.
[0051] S151、 根据所述信息认证流程及所述认证对象判断结果向对应的信息认证接口 发送与待认证信息相对应的认证请求信息。 [0051] S151. Send authentication request information corresponding to the information to be authenticated to the corresponding information authentication interface according to the information authentication process and the judgment result of the authentication object.
[0052] 根据所述信息认证流程及所述认证对象判断结果向对应的信息认证接口发送与 待认证信息相对应的认证请求信息。 具体的, 预设信息认证流程中包含企业信 息认证接口、 个体信息认证接口及代理人信息认证接口, 企业信息认证接口可 以是工商局网站的企业信息查询接口, 个体信息认证接口可以是工商局网站的 个体信息查询接口, 代理人信息认证接口可以是公安机关的身份信息查询接口 。 根据认证对象判断结果即可从预设的信息认证流程中获取对应的信息认证接 口, 并通过所对应的信息认证接口发送与待认证信息相对应的认证请求信息。 [0052] Send the authentication request information corresponding to the information to be authenticated to the corresponding information authentication interface according to the information authentication process and the judgment result of the authentication object. Specifically, the preset information authentication process includes an enterprise information authentication interface, an individual information authentication interface, and an agent information authentication interface. The enterprise information authentication interface can be So it is the enterprise information query interface of the Industrial and Commercial Bureau website, the individual information authentication interface can be the individual information query interface of the Industrial and Commercial Bureau website, and the agent information authentication interface can be the identity information query interface of the public security organ. According to the judgment result of the authentication object, the corresponding information authentication interface can be obtained from the preset information authentication process, and the authentication request information corresponding to the information to be authenticated can be sent through the corresponding information authentication interface.
[0053] 例如, 认证对象判断结果为目标认证对象为企业且认证对象信息中包含代理人 , 待认证信息中包括企业三证合一号、 企业法人信息、 代理人身份证号及代理 人手机号作为待认证信息, 则向企业信息认证接口发送待认证信息中与企业相 关的认证请求信息, 向代理人信息认证接口发送待认证信息中与代理人相关的 认证请求信息。 [0053] For example, the judgment result of the authentication object is that the target authentication object is an enterprise and the authentication object information includes an agent, and the information to be authenticated includes the enterprise's three-certificate unity number, enterprise legal person information, agent ID number and agent mobile phone number As the information to be authenticated, the authentication request information related to the enterprise in the information to be authenticated is sent to the enterprise information authentication interface, and the authentication request information related to the agent in the information to be authenticated is sent to the agent information authentication interface.
[0054] S152、 获取所述信息认证接口根据所述认证请求信息反馈的接口认证信息。 [0054] S152. Obtain interface authentication information fed back by the information authentication interface according to the authentication request information.
[0055] 获取所述信息认证接口根据所述认证请求信息反馈的接口认证信息。 信息认证 接口接收认证请求信息后即可反馈对应的接口认证信息, 其中, 企业信息认证 接口对应反馈企业接口认证信息, 个体信息认证接口对应反馈个体接口认证信 息, 代理人信息认证接口对应反馈代理人接口认证信息。 [0055] Obtain interface authentication information fed back by the information authentication interface according to the authentication request information. The information authentication interface can feedback the corresponding interface authentication information after receiving the authentication request information. Among them, the enterprise information authentication interface corresponds to feedback enterprise interface authentication information, the individual information authentication interface corresponds to feedback individual interface authentication information, and the agent information authentication interface corresponds to feedback agent Interface authentication information.
[0056] S 153、 根据所述接口认证信息对所述待认证信息进行认证以得到认证结果。 [0056] S153. Authenticate the information to be authenticated according to the interface authentication information to obtain an authentication result.
[0057] 根据所述接口认证信息对所述待认证信息进行认证以得到认证结果。 具体的, 若接口认证信息与待认证信息一致, 则认证结果为通过, 若接口认证信息与待 认证信息不一致, 则认证结果为不通过。 [0057] Authenticating the information to be authenticated according to the interface authentication information to obtain an authentication result. Specifically, if the interface authentication information is consistent with the information to be authenticated, the authentication result is passed, and if the interface authentication information is inconsistent with the information to be authenticated, the authentication result is failed.
[0058] S160、 若所述认证结果为通过, 获取预设工具库中与所述配置文件相对应的开 通工具并通过所述开通工具测试相对应的服务接口以将所述服务接口的返回信 息作为测试结果。 [0058] S160. If the authentication result is passed, obtain the activation tool corresponding to the configuration file in the preset tool library, and pass the activation tool to test the corresponding service interface to return information of the service interface As a result of the test.
[0059] 若认证结果为通过, 获取预设工具库中与所述配置文件相对应的开通工具, 通 过开通工具测试相对应的服务接口以将所述服务接口的返回信息作为测试结果 。 具体的, 预设工具库中包含了多个开通工具, 通过使用开通工具即可用于对 相应的服务接口进行测试, 获取服务接口所反馈的返回信息即可完成对相应的 服务接口进行测试。 [0059] If the authentication result is passed, obtain the activation tool corresponding to the configuration file in the preset tool library, and test the corresponding service interface through the activation tool to use the return information of the service interface as the test result. Specifically, the preset tool library contains multiple activation tools, which can be used to test the corresponding service interface by using the activation tool, and the corresponding service interface can be tested by obtaining the return information fed back by the service interface.
[0060] 在一实施例中, 步骤 S160包括子步骤 S161和 S162。 [0060] In an embodiment, step S160 includes sub-steps S161 and S162.
[0061] S161、 根据所述配置文件中的开通工具编号获取预设工具库中与所述开通工具 编号相对应的目标开通工具。 [0061] S161. Obtain and the activation tool in the preset tool library according to the activation tool number in the configuration file Target activation tool corresponding to the number.
[0062] 根据所述配置文件中的开通工具编号获取预设工具库中与所述开通工具编号相 对应的目标开通工具。 具体的, 配置文件中还包括开通工具编号, 预设工具库 中的每一个开通工具均对应一个工具编号, 通过开通工具编号与每一个开通工 具的工具编号进行匹配, 即可从预设工具库中获取与开通工具编号相对应的目 标开通工具。 [0062] Obtain the target activation tool corresponding to the activation tool number in the preset tool library according to the activation tool number in the configuration file. Specifically, the configuration file also includes the activation tool number. Each activation tool in the preset tool library corresponds to a tool number. By matching the activation tool number with the tool number of each activation tool, the preset tool library can be selected To obtain the target activation tool corresponding to the activation tool number.
[0063] S162、 执行所述目标开通工具以测试相对应的服务接口并将所述服务接口所反 馈的返回信息作为测试结果。 [0063] S162. Execute the target activation tool to test the corresponding service interface and use the return information fed back by the service interface as the test result.
[0064] 执行所述目标开通工具以测试相对应的服务接口并获取服务接口所反馈的返回 信息。 执行所述开通工具对相应服务接口进行测试, 即可获取服务接口所反馈 的返回信息, 具体的, 若服务接口测试成功, 则可接收到该服务接口所反馈的“p ass”这一返回信息; 若服务接口测试失败, 贝呵接受到该服务接口所反馈的“faile d”这一返回信息。 [0064] The target activation tool is executed to test the corresponding service interface and obtain the return information fed back by the service interface. The corresponding service interface is tested by executing the activation tool, and the return information fed back by the service interface can be obtained. Specifically, if the service interface test is successful, the return information "p ass" fed back by the service interface can be received ; If the service interface test fails, Behe receives the "faile d" returned message from the service interface.
[0065] 在一实施例中, 步骤 S160之后还包括步骤 S170。 [0065] In an embodiment, step S170 is further included after step S160.
[0066] S170、 通过预设的接口清空工具将与所述开通工具相对应的服务接口进行清空 [0066] S170. Clear the service interface corresponding to the activation tool through a preset interface clearing tool
[0067] 通过预设的接口清空工具将与所述开通工具相对应的服务接口进行清空。 预设 接口清空工具即是用于对已测试的服务接口中的信息进行清空的工具, 通过接 口清空工具将与开通工具相对应的服务接口进行清空以后, 可重复使用预设配 置文件对已进行测试的应用程序中的服务接口进行再次测试。 [0067] The service interface corresponding to the activation tool is cleared through a preset interface clearing tool. The default interface clearing tool is a tool used to clear the information in the tested service interface. After the interface clearing tool is used to clear the service interface corresponding to the activation tool, the preset configuration file can be reused The service interface in the tested application is tested again.
[0068] 通过注册信息及登录信息进行注册登录测试并通过后获取用户所反馈的测试信 息, 对测试信息中认证对象信息进行判断并获取配置文件中与认证对象判断结 果对应的待认证信息, 通过信息认证流程结合认证对象判断结果对待认证信息 进行认证, 并在认证通过后工具库中与所述配置文件相对应的开通工具对服务 接口进行测试以得到测试结果。 通过上述自动化测试方法对应用程序进行测试 并获取测试结果, 提高了测试过程中的成功率, 大幅增加了测试效率, 在实际 应用过程中取得了良好的技术效果。 [0068] The registration and login test is performed through the registration information and the login information, and the test information fed back by the user is obtained after passing, the authentication object information in the test information is judged, and the information to be authenticated corresponding to the authentication object judgment result in the configuration file is obtained. The information authentication process is combined with the judgment result of the authentication object to authenticate the information to be authenticated, and after the authentication is passed, the activation tool corresponding to the configuration file in the tool library is tested to obtain the test result. Through the above-mentioned automated testing method to test the application program and obtain the test result, the success rate in the test process is improved, the test efficiency is greatly increased, and good technical effects are achieved in the actual application process.
[0069] 本发明实施例还提供一种自动化测试装置, 该自动化测试装置用于执行前述自 动化测试方法的任一实施例。 具体地, 请参阅图 6 , 图 6是本发明实施例提供的 自动化测试装置的示意性框图。 该自动化测试装置可以配置于台式电脑、 笔记 本电脑、 平板电脑或手机等用户终端中。 [0069] The embodiment of the present invention also provides an automated test device, which is used to execute the aforementioned automatic test device. Any embodiment of the automated testing method. Specifically, please refer to FIG. 6, which is a schematic block diagram of an automated test apparatus provided by an embodiment of the present invention. The automated test device can be configured in a user terminal such as a desktop computer, a notebook computer, a tablet computer, or a mobile phone.
[0070] 如图 2所示, 自动化测试装置 100包括注册登录测试单元 110、 注册登录测试结 果发送单元 120、 认证对象判断单元 130、 待认证信息获取单元 140、 信息认证单 元 150和接口测试单元 160。 [0070] As shown in FIG. 2, the automated test device 100 includes a registration and login test unit 110, a registration and login test result sending unit 120, an authentication object judgment unit 130, an information acquisition unit 140 to be authenticated, an information authentication unit 150, and an interface testing unit 160 .
[0071] 注册登录测试单元 110, 用于注册登录测试单元, 用于根据预设的配置文件中 的注册信息及登录信息进行注册登录测试以得到注册登录测试结果。 [0071] The registration login test unit 110 is used to register the login test unit, and is used to perform a registration login test according to the registration information and login information in a preset configuration file to obtain a registration login test result.
[0072] 获取预设配置文件中的注册信息及登录信息, 根据所述注册信息及登录信息进 行注册登录测试并得到注册登录测试结果。 在对所需测试的应用程序进行测试 的流程中, 包含对账号进行注册测试及登录测试, 也即是测试的第一步即是获 取注册信息进行注册并获取登录信息进行进行登录以完成对应用程序的第一步 测试, 完成第一步测试即可得到相应的测试结果, 也即是得到注册登录测试结 果。 配置文件即是用户预先配置于用户终端中以用于对应用程序进行多方位测 试的文件信息, 配置文件中包括注册信息、 登录信息等, 配置文件可在多次测 试过程中进行重复使用。 [0072] Obtain registration information and login information in the preset configuration file, perform a registration login test according to the registration information and login information, and obtain a registration login test result. In the process of testing the application to be tested, the account registration test and login test are included, that is, the first step of the test is to obtain registration information to register and obtain login information to log in to complete the application The first test of the program, after completing the first test, you can get the corresponding test result, that is, get the registration log-in test result. The configuration file is the file information that is pre-configured by the user in the user terminal for multi-directional testing of the application. The configuration file includes registration information, login information, etc., and the configuration file can be reused in multiple testing processes.
[0073] 注册登录测试结果发送单元 120, 用于若所述注册登录测试结果为通过, 将所 述注册登录测试结果发送至用户并接收所述用户根据所述注册登录测试结果反 馈的测试信息。 [0073] The registration login test result sending unit 120 is configured to, if the registration login test result is passed, send the registration login test result to the user and receive test information that the user feedbacks based on the registration login test result.
[0074] 若注册登录测试结果为通过, 向用户发送该注册登录测试结果, 并接收用户根 据所述注册登录测试结果反馈的测试信息。 若用户接收到的注册登录测试结果 , 则用户可提交测试信息以对用户终端中的应用程序进行下一步测试。 具体的 , 测试信息中包括认证对象信息, 认证对象信息即是用户所提交的需进行认证 测试的认证对象。 [0074] If the registration login test result is passed, send the registration login test result to the user, and receive the test information fed back by the user according to the registration login test result. If the user receives the registration and login test result, the user can submit the test information to perform the next test on the application in the user terminal. Specifically, the test information includes authentication object information, and the authentication object information is the authentication object submitted by the user for authentication testing.
[0075] 认证对象判断单元 130, 用于根据预设的认证判断规则对所述测试信息中的认 证对象信息进行判断以得到认证对象判断结果。 [0075] The authentication object judgment unit 130 is configured to judge the authentication object information in the test information according to a preset authentication judgment rule to obtain the authentication object judgment result.
[0076] 根据预设的认证判断规则对所述测试信息中的认证对象信息进行判断以得到认 证对象判断结果。 预设的认证判断规则即是用于对测试信息中的认证对象信息 进行判断的规则信息, 具体的, 认证判断规则包括对目标认证对象进行判断的 规则信息以及对认证对象信息中的是否包含代理人进行判断的规则信息。 其中 , 目标认证对象可以是企业, 还可以是个体, 不同的目标认证对象适用不同的 认证流程, 若认证对象信息中包含代理人, 则还需加入对代理人进行认证的流 程。 [0076] The authentication object information in the test information is judged according to the preset authentication judgment rule to obtain the authentication object judgment result. The preset authentication judgment rules are used to verify the authentication object information in the test information The rule information for judgment, specifically, the authentication judgment rule includes rule information for judging the target authentication object and rule information for judging whether the authentication object information includes an agent. Among them, the target authentication object can be an enterprise or an individual, and different authentication objects are applicable to different authentication procedures. If the authentication object information includes an agent, the authentication process for the agent needs to be added.
[0077] 其他发明实施例中, 如图 3所示, 所述认证对象判断单元 130包括子单元: 目标 认证对象判断单元 131、 代理人判断单元 132和判断结果获取单元 133。 [0077] In other embodiments of the invention, as shown in FIG. 3, the authentication object judgment unit 130 includes subunits: a target authentication object judgment unit 131, an agent judgment unit 132, and a judgment result acquisition unit 133.
[0078] 目标认证对象判断单元 131, 用于根据预设的认证判断规则对所述认证对象信 息中的目标认证对象是否为企业进行判断以得到目标对象判断结果。 [0078] The target authentication object judgment unit 131 is configured to judge whether the target authentication object in the authentication object information is an enterprise according to a preset authentication judgment rule to obtain a target object judgment result.
[0079] 根据预设的认证判断规则对所述认证对象信息中的目标认证对象是否为企业进 行判断以得到目标对象判断结果。 具体的, 目标认证对象可以是企业, 还可以 是个体, 则可对目标认证对象是否为企业进行判断以得到目标对象判断结果。 [0079] Determine whether the target authentication object in the authentication object information is an enterprise according to a preset authentication judgment rule to obtain the target object judgment result. Specifically, the target authentication object may be an enterprise or an individual, and then it can be judged whether the target authentication object is an enterprise to obtain the judgment result of the target object.
[0080] 代理人判断单元 132, 用于根据预设的认证判断规则对所述认证对象信息中是 否包含代理人进行判断以得到代理人判断结果。 [0080] The agent judgment unit 132 is configured to judge whether an agent is included in the authentication object information according to a preset authentication judgment rule to obtain an agent judgment result.
[0081] 根据预设的认证判断规则对所述认证对象信息中是否包含代理人进行判断以得 到代理人判断结果。 认证对象信息中可包含代理人, 也可不包含代理人, 因此 需对认证对象信息中是否包含代理人进行判断, 以得到代理人判断结果。 [0081] According to a preset authentication judgment rule, it is judged whether the authentication object information includes an agent to obtain the result of the agent judgment. The authentication object information may or may not include an agent. Therefore, it is necessary to judge whether the authentication object information contains an agent to obtain the result of the agent judgment.
[0082] 判断结果获取单元 133 , 用于将所述目标对象判断结果及所述代理人判断结果 进行整合以得到认证对象判断结果。 [0082] The judgment result obtaining unit 133 is configured to integrate the target object judgment result and the agent judgment result to obtain the authentication object judgment result.
[0083] 将所得到的目标对象判断结果及代理人判断结果进行整合, 即可最终得到认证 对象判断结果, 根据所得到的认证对象判断结果即可进行下一步测试操作。 [0083] The obtained target object judgment result and the agent judgment result are integrated to finally obtain the authentication object judgment result, and the next test operation can be performed according to the obtained authentication object judgment result.
[0084] 待认证信息获取单元 140, 用于获取所述配置文件中与所述认证对象判断结果 相对应的待认证信息。 [0084] The to-be-authenticated information obtaining unit 140 is configured to obtain the to-be-authenticated information corresponding to the judgment result of the authentication object in the configuration file.
[0085] 获取所述配置文件中与所述认证对象判断结果相对应的待认证信息。 具体的, 配置文件中还包括企业三证合一号、 企业法人信息、 个体工商户法人信息、 代 理人身份证号及代理人手机号等需进行认证的具体信息, 通过所得到的认证对 象判断结果即可获取配置文件中对应的信息作为待认证信息。 [0085] Obtain the information to be authenticated corresponding to the judgment result of the authentication object in the configuration file. Specifically, the configuration file also includes the specific information that needs to be authenticated, such as the enterprise's three-in-one certificate number, enterprise legal person information, individual industrial and commercial household legal person information, agent ID number and agent mobile phone number, etc., through the obtained authentication object judgment As a result, the corresponding information in the configuration file can be obtained as the information to be authenticated.
[0086] 信息认证单元 150, 用于根据预设的信息认证流程及所述认证对象判断结果对 所述待认证信息进行认证以得到是否通过的认证结果。 [0086] The information authentication unit 150 is configured to check the information authentication process according to the preset information authentication process and the judgment result of the authentication object The information to be authenticated is authenticated to obtain the authentication result of whether it is passed or not.
[0087] 根据预设的信息认证流程及所述认证对象判断结果对所述待认证信息进行认证 以得到是否通过的认证结果。 信息认证流程即是预设的用于对待认证信息进行 认证的流程信息, 根据认证对象判断结果从预设信息认证流程中选择相对应的 流程, 以完成对待认证信息的认证。 [0087] The information to be authenticated is authenticated according to the preset information authentication process and the judgment result of the authentication object to obtain the authentication result of whether it passes. The information authentication process is the preset process information used to authenticate the information to be authenticated, and the corresponding process is selected from the preset information authentication process according to the judgment result of the authentication object to complete the authentication of the information to be authenticated.
[0088] 其他发明实施例中, 如图 4所示, 所述信息认证单元 150包括子单元: 认证请求 信息发送单元 151、 接口认证信息获取单元 152和认证结果获取单元 153。 [0088] In other embodiments of the invention, as shown in FIG. 4, the information authentication unit 150 includes subunits: an authentication request information sending unit 151, an interface authentication information obtaining unit 152, and an authentication result obtaining unit 153.
[0089] 认证请求信息发送单元 151, 用于根据预设信息认证流程及所述认证对象判断 结果向对应的信息认证接口发送与待认证信息相对应的认证请求信息。 [0089] The authentication request information sending unit 151 is configured to send authentication request information corresponding to the information to be authenticated to the corresponding information authentication interface according to the preset information authentication process and the authentication object judgment result.
[0090] 根据所述信息认证流程及所述认证对象判断结果向对应的信息认证接口发送与 待认证信息相对应的认证请求信息。 具体的, 预设信息认证流程中包含企业信 息认证接口、 个体信息认证接口及代理人信息认证接口, 企业信息认证接口可 以是工商局网站的企业信息查询接口, 个体信息认证接口可以是工商局网站的 个体信息查询接口, 代理人信息认证接口可以是公安机关的身份信息查询接口 。 根据认证对象判断结果即可从预设的信息认证流程中获取对应的信息认证接 口, 并通过所对应的信息认证接口发送与待认证信息相对应的认证请求信息。 [0090] According to the information authentication process and the judgment result of the authentication object, the authentication request information corresponding to the information to be authenticated is sent to the corresponding information authentication interface. Specifically, the preset information authentication process includes an enterprise information authentication interface, an individual information authentication interface, and an agent information authentication interface. The enterprise information authentication interface can be the enterprise information query interface of the Industrial and Commercial Bureau website, and the individual information authentication interface can be the Industrial and Commercial Bureau website. The individual information query interface and the agent information authentication interface can be the identity information query interface of the public security organ. According to the judgment result of the authentication object, the corresponding information authentication interface can be obtained from the preset information authentication process, and the authentication request information corresponding to the information to be authenticated can be sent through the corresponding information authentication interface.
[0091] 接口认证信息获取单元 152, 用于获取所述信息认证接口根据所述认证请求信 息反馈的接口认证信息。 [0091] The interface authentication information obtaining unit 152 is configured to obtain interface authentication information fed back by the information authentication interface according to the authentication request information.
[0092] 获取所述信息认证接口根据所述认证请求信息反馈的接口认证信息。 信息认证 接口接收认证请求信息后即可反馈对应的接口认证信息, 其中, 企业信息认证 接口对应反馈企业接口认证信息, 个体信息认证接口对应反馈个体接口认证信 息, 代理人信息认证接口对应反馈代理人接口认证信息。 [0092] Obtain interface authentication information fed back by the information authentication interface according to the authentication request information. The information authentication interface can feedback the corresponding interface authentication information after receiving the authentication request information. Among them, the enterprise information authentication interface corresponds to feedback enterprise interface authentication information, the individual information authentication interface corresponds to feedback individual interface authentication information, and the agent information authentication interface corresponds to feedback agent Interface authentication information.
[0093] 认证结果获取单元 153, 用于根据所述接口认证信息对所述待认证信息进行认 证以得到认证结果。 [0093] The authentication result obtaining unit 153 is configured to authenticate the information to be authenticated according to the interface authentication information to obtain an authentication result.
[0094] 根据所述接口认证信息对所述待认证信息进行认证以得到认证结果。 具体的, 若接口认证信息与待认证信息一致, 则认证结果为通过, 若接口认证信息与待 认证信息不一致, 则认证结果为不通过。 [0094] Authenticating the information to be authenticated according to the interface authentication information to obtain an authentication result. Specifically, if the interface authentication information is consistent with the information to be authenticated, the authentication result is passed, and if the interface authentication information is inconsistent with the information to be authenticated, the authentication result is failed.
[0095] 服务接口测试单元 160, 用于若所述认证结果为通过, 获取预设工具库中与所 述配置文件相对应的开通工具并通过所述开通工具测试相对应的服务接口以将 所述服务接口的返回信息作为测试结果。 [0095] The service interface testing unit 160 is configured to, if the authentication result is passed, obtain the The activation tool corresponding to the configuration file is used to test the corresponding service interface through the activation tool to use the return information of the service interface as the test result.
[0096] 若认证结果为通过, 获取预设工具库中与所述配置文件相对应的开通工具, 通 过开通工具测试相对应的服务接口以将所述服务接口的返回信息作为测试结果 。 具体的, 预设工具库中包含了多个开通工具, 通过使用开通工具即可用于对 相应的服务接口进行测试, 获取服务接口所反馈的返回信息即可完成对相应的 服务接口进行测试。 [0096] If the authentication result is passed, obtain the activation tool corresponding to the configuration file in the preset tool library, and test the corresponding service interface through the activation tool to use the return information of the service interface as the test result. Specifically, the preset tool library contains multiple activation tools, which can be used to test the corresponding service interface by using the activation tool, and the corresponding service interface can be tested by obtaining the return information fed back by the service interface.
[0097] 其他发明实施例中, 如图 5所示, 所述服务接口测试单元 160包括子单元: 开通 工具获取单元 161和测试结果获取单元 162。 [0097] In other embodiments of the invention, as shown in FIG. 5, the service interface testing unit 160 includes sub-units: an activation tool acquisition unit 161 and a test result acquisition unit 162.
[0098] 开通工具获取单元 161, 用于根据所述配置文件中的开通工具编号获取预设工 具库中与所述开通工具编号相对应的目标开通工具。 具体的, 配置文件中还包 括开通工具编号, 预设工具库中的每一个开通工具均对应一个工具编号, 通过 开通工具编号与每一个开通工具的工具编号进行匹配, 即可从预设工具库中获 取与开通工具编号相对应的目标开通工具。 [0098] The activation tool obtaining unit 161 is configured to obtain the target activation tool corresponding to the activation tool number in the preset tool library according to the activation tool number in the configuration file. Specifically, the configuration file also includes the activation tool number. Each activation tool in the preset tool library corresponds to a tool number. By matching the activation tool number with the tool number of each activation tool, the preset tool library can be selected To obtain the target activation tool corresponding to the activation tool number.
[0099] 测试结果获取单元 162, 用于执行所述目标开通工具以测试相对应的服务接口 并将所述服务接口所反馈的返回信息作为测试结果。 [0099] The test result acquisition unit 162 is configured to execute the target activation tool to test the corresponding service interface and use the return information fed back by the service interface as the test result.
[0100] 执行所述目标开通工具以测试相对应的服务接口并获取服务接口所反馈的返回 信息。 执行所述开通工具对相应服务接口进行测试, 即可获取服务接口所反馈 的返回信息, 具体的, 若服务接口测试成功, 则可接收到该服务接口所反馈的“P ass”这一返回信息; 若服务接口测试失败, 贝呵接受到该服务接口所反馈的“faile d”这一返回信息。 [0100] The target activation tool is executed to test the corresponding service interface and obtain the return information fed back by the service interface. Executing the activation tool to test the corresponding service interface, you can obtain the return information fed back by the service interface. Specifically, if the service interface test is successful, you can receive the return information "P ass" fed back by the service interface. ; If the service interface test fails, Behe receives the "faile d" returned message from the service interface.
[0101] 其他发明实施例中, 如图 6所示, 所述自动化测试装置 100还包括子单元: 服务 接口清空单元 170。 [0101] In other embodiments of the invention, as shown in FIG. 6, the automated testing device 100 further includes a subunit: a service interface clearing unit 170.
[0102] 服务接口清空单元 170, 用于通过预设的接口清空工具将与所述开通工具相对 应的服务接口进行清空。 [0102] The service interface clearing unit 170 is configured to clear the service interface corresponding to the activation tool through a preset interface clearing tool.
[0103] 通过预设的接口清空工具将与所述开通工具相对应的服务接口进行清空。 预设 接口清空工具即是用于对已测试的服务接口中的信息进行清空的工具, 通过接 口清空工具将与开通工具相对应的服务接口进行清空以后, 可重复使用预设配 置文件对已进行测试的应用程序中的服务接口进行再次测试。 [0103] The service interface corresponding to the activation tool is cleared through a preset interface clearing tool. The default interface clearing tool is a tool used to clear the information in the tested service interface. After the interface clearing tool clears the service interface corresponding to the activation tool, the preset configuration can be reused. The configuration file retests the service interface in the application that has been tested.
[0104] 通过注册信息及登录信息进行注册登录测试并通过后获取用户所反馈的测试信 息, 对测试信息中认证对象信息进行判断并获取配置文件中与认证对象判断结 果对应的待认证信息, 通过信息认证流程结合认证对象判断结果对待认证信息 进行认证, 并在认证通过后工具库中与所述配置文件相对应的开通工具对服务 接口进行测试以得到测试结果。 通过上述自动化测试方法对应用程序进行测试 并获取测试结果, 提高了测试过程中的成功率, 大幅增加了测试效率, 在实际 应用过程中取得了良好的技术效果。 [0104] Perform the registration login test through the registration information and login information and obtain the test information fed back by the user after passing, determine the authentication object information in the test information and obtain the information to be authenticated corresponding to the authentication object judgment result in the configuration file, pass The information authentication process is combined with the judgment result of the authentication object to authenticate the information to be authenticated, and after the authentication is passed, the activation tool corresponding to the configuration file in the tool library is tested to obtain the test result. Through the above-mentioned automated testing method to test the application program and obtain the test result, the success rate in the test process is improved, the test efficiency is greatly increased, and good technical effects are achieved in the actual application process.
[0105] 上述自动化测试装置可以实现为计算机程序的形式, 该计算机程序可以在如图 7所示的计算机设备上运行。 [0105] The above-mentioned automated test device may be implemented in the form of a computer program, and the computer program may run on a computer device as shown in FIG. 7.
[0106] 请参阅图 7 , 图 7是本发明实施例提供的计算机设备的示意性框图。 [0106] Please refer to FIG. 7. FIG. 7 is a schematic block diagram of a computer device according to an embodiment of the present invention.
[0107] 参阅图 7, 该计算机设备 500包括通过系统总线 501连接的处理器 502、 存储器和 网络接口 505, 其中, 存储器可以包括非易失性存储介质 503和内存储器 504。 [0107] Referring to FIG. 7, the computer device 500 includes a processor 502, a memory, and a network interface 505 connected through a system bus 501, where the memory may include a non-volatile storage medium 503 and an internal memory 504.
[0108] 该非易失性存储介质 503可存储操作系统 5031和计算机程序 5032。 该计算机程 序 5032被执行时, 可使得处理器 502执行自动化测试方法。 [0108] The non-volatile storage medium 503 can store an operating system 5031 and a computer program 5032. When the computer program 5032 is executed, the processor 502 can execute the automated test method.
[0109] 该处理器 502用于提供计算和控制能力, 支撑整个计算机设备 500的运行。 [0109] The processor 502 is used to provide computing and control capabilities, and supports the operation of the entire computer device 500.
[0110] 该内存储器 504为非易失性存储介质 503中的计算机程序 5032的运行提供环境, 该计算机程序 5032被处理器 502执行时, 可使得处理器 502执行自动化测试方法 [0110] The internal memory 504 provides an environment for the operation of the computer program 5032 in the non-volatile storage medium 503. When the computer program 5032 is executed by the processor 502, the processor 502 can execute an automated test method.
[0111] 该网络接口 505用于进行网络通信, 如提供数据信息的传输等。 本领域技术人 员可以理解, 图 7中示出的结构, 仅仅是与本发明方案相关的部分结构的框图, 并不构成对本发明方案所应用于其上的计算机设备 500的限定, 具体的计算机设 备 500可以包括比图中所示更多或更少的部件, 或者组合某些部件, 或者具有不 同的部件布置。 [0111] The network interface 505 is used for network communication, such as providing data information transmission. Those skilled in the art can understand that the structure shown in FIG. 7 is only a block diagram of part of the structure related to the solution of the present invention, and does not constitute a limitation on the computer device 500 to which the solution of the present invention is applied. The specific computer device 500 may include more or fewer components than shown in the figure, or combine certain components, or have a different component arrangement.
[0112] 其中, 所述处理器 502用于运行存储在存储器中的计算机程序 5032, 以实现上 述任意实施例所述的自动化测试方法的步骤。 [0112] Wherein, the processor 502 is configured to run a computer program 5032 stored in the memory, so as to implement the steps of the automated test method described in any of the foregoing embodiments.
[0113] 本领域技术人员可以理解, 图 7中示出的计算机设备的实施例并不构成对计算 机设备具体构成的限定, 在其他实施例中, 计算机设备可以包括比图示更多或 更少的部件, 或者组合某些部件, 或者不同的部件布置。 例如, 在一些实施例 中, 计算机设备可以仅包括存储器及处理器, 在这样的实施例中, 存储器及处 理器的结构及功能与图 7所示实施例一致, 在此不再赘述。 [0113] Those skilled in the art can understand that the embodiment of the computer device shown in FIG. 7 does not constitute a limitation on the specific configuration of the computer device. In other embodiments, the computer device may include more or Fewer parts, or a combination of some parts, or a different arrangement of parts. For example, in some embodiments, the computer device may only include a memory and a processor. In such an embodiment, the structures and functions of the memory and the processor are consistent with the embodiment shown in FIG. 7, and details are not described herein again.
[0114] 应当理解, 在本发明实施例中, 处理器 502可以是中央处理单元 (Central [0114] It should be understood that, in the embodiment of the present invention, the processor 502 may be a central processing unit (Central
Processing Unit, CPU) , 该处理器 502还可以是其他通用处理器、 数字信号处理 器 (Digital Signal Processor, DSP)、 专用集成电路 (Application Specific Integrated Circuit, ASIC)、 现成可编程门阵列 (Field- Programmable Gate Array, FPGA)或 者其他可编程逻辑器件、 分立门或者晶体管逻辑器件、 分立硬件组件等。 其中 , 通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。 Processing Unit, CPU), the processor 502 can also be other general-purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), ready-made programmable gate arrays (Field- Programmable Gate Array, FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. Among them, the general-purpose processor may be a microprocessor or the processor may also be any conventional processor.
[0115] 在本发明的另一实施例中提供计算机可读存储介质。 该计算机可读存储介质可 以为非易失性的计算机可读存储介质。 该计算机可读存储介质存储有计算机程 序, 其中计算机程序被处理器执行时实现上述任意实施例所述的自动化测试方 法的步骤。 [0115] In another embodiment of the present invention, a computer-readable storage medium is provided. The computer-readable storage medium may be a non-volatile computer-readable storage medium. The computer-readable storage medium stores a computer program, where the computer program implements the steps of the automated test method described in any of the foregoing embodiments when the computer program is executed by the processor.
[0116] 所属领域的技术人员可以清楚地了解到, 为了描述的方便和简洁, 上述描述的 设备、 装置和单元的具体工作过程, 可以参考前述方法实施例中的对应过程, 在此不再赘述。 本领域普通技术人员可以意识到, 结合本文中所公开的实施例 描述的各示例的单元及算法步骤, 能够以电子硬件、 计算机软件或者二者的结 合来实现, 为了清楚地说明硬件和软件的可互换性, 在上述说明中已经按照功 能一般性地描述了各示例的组成及步骤。 这些功能究竟以硬件还是软件方式来 执行取决于技术方案的特定应用和设计约束条件。 专业技术人员可以对每个特 定的应用来使用不同方法来实现所描述的功能, 但是这种实现不应认为超出本 发明的范围。 [0116] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the above-described equipment, device, and unit can refer to the corresponding process in the foregoing method embodiment, which will not be repeated here. . A person of ordinary skill in the art may realize that, in combination with the units and algorithm steps of the examples described in the embodiments disclosed herein, they can be implemented by electronic hardware, computer software, or a combination of both, in order to clearly illustrate the hardware and software Interchangeability. In the above description, the composition and steps of each example have been generally described in accordance with the function. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians can use different methods for each specific application to realize the described functions, but this realization should not be considered as going beyond the scope of the present invention.
[0117] 在本发明所提供的几个实施例中, 应该理解到, 所揭露的设备、 装置和方法, 可以通过其它的方式实现。 例如, 以上所描述的装置实施例仅仅是示意性的, 例如, 所述单元的划分, 仅仅为逻辑功能划分, 实际实现时可以有另外的划分 方式, 也可以将具有相同功能的单元集合成一个单元, 例如多个单元或组件可 以结合或者可以集成到另一个系统, 或一些特征可以忽略, 或不执行。 另外, 所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口、 装置或单元的间接耦合或通信连接, 也可以是电的, 机械的或其它的形式连接 [0117] In the several embodiments provided by the present invention, it should be understood that the disclosed equipment, apparatus, and method may be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods, or units with the same function may be combined into one. Units, for example, multiple units or components can be combined or integrated into another system, or some features can be omitted or not implemented. In addition, the displayed or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, The indirect coupling or communication connection of the device or unit can also be electrical, mechanical or other forms of connection
[0118] 所述作为分离部件说明的单元可以是或者也可以不是物理上分开的, 作为单元 显示的部件可以是或者也可以不是物理单元, 即可以位于一个地方, 或者也可 以分布到多个网络单元上。 可以根据实际的需要选择其中的部分或者全部单元 来实现本发明实施例方案的目的。 [0118] The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed to multiple networks Unit. Some or all of the units may be selected according to actual needs to achieve the objectives of the solutions of the embodiments of the present invention.
[0119] 另外, 在本发明各个实施例中的各功能单元可以集成在一个处理单元中, 也可 以是各个单元单独物理存在, 也可以是两个或两个以上单元集成在一个单元中 。 上述集成的单元既可以采用硬件的形式实现, 也可以采用软件功能单元的形 式实现。 [0119] In addition, the functional units in the various embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit. The above-mentioned integrated unit can be implemented in the form of hardware or software functional unit.
[0120] 所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用 时, 可以存储在一个计算机可读存储介质中。 基于这样的理解, 本发明的技术 方案本质上或者说对现有技术做出贡献的部分, 或者该技术方案的全部或部分 可以以软件产品的形式体现出来, 该计算机软件产品存储在一个计算机可读存 储介质中, 包括若干指令用以使得一台计算机设备 (可以是个人计算机, 服务器 , 或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。 而前述 的计算机可读存储介质包括: U盘、 移动硬盘、 只读存储器 (ROM, Read-Only Memory)、 磁碟或者光盘等各种可以存储程序代码的介质。 [0120] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the existing technology, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a computer. The read storage medium includes a number of instructions to enable a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned computer-readable storage medium includes: U disk, mobile hard disk, Read-Only Memory (ROM, Read-Only Memory), magnetic disk or optical disk and other media that can store program codes.
[0121] 以上所述, 仅为本发明的具体实施方式, 但本发明的保护范围并不局限于此, 任何熟悉本技术领域的技术人员在本发明揭露的技术范围内, 可轻易想到各种 等效的修改或替换, 这些修改或替换都应涵盖在本发明的保护范围之内。 因此 , 本发明的保护范围应以权利要求的保护范围为准。 [0121] The above are only specific embodiments of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art can easily think of various types within the technical scope disclosed by the present invention. Equivalent modifications or replacements shall be covered within the protection scope of the present invention. Therefore, the protection scope of the present invention should be subject to the protection scope of the claims.

Claims

权利要求书 Claims
[权利要求 i] 一种自动化测试方法, 其特征在于, 包括: [Claim i] An automated test method, characterized in that it comprises:
根据预设的配置文件中的注册信息及登录信息进行注册登录测试以得 到注册登录测试结果; Perform a registration and login test according to the registration information and login information in the preset configuration file to obtain the registration and login test results;
若所述注册登录测试结果为通过, 将所述注册登录测试结果发送至用 户并接收所述用户根据所述注册登录测试结果反馈的测试信息; 根据预设的认证判断规则对所述测试信息中的认证对象信息进行判断 以得到认证对象判断结果; If the registration log-in test result is passed, send the registration log-in test result to the user and receive the test information fed back by the user according to the registration log-in test result; check the test information according to a preset authentication judgment rule To obtain the judgment result of the authentication object;
获取所述配置文件中与所述认证对象判断结果相对应的待认证信息; 根据预设的信息认证流程及所述认证对象判断结果对所述待认证信息 进行认证以得到是否通过的认证结果; Obtain the information to be authenticated corresponding to the judgment result of the authentication object in the configuration file; authenticate the information to be authenticated according to the preset information authentication process and the judgment result of the authentication object to obtain the authentication result of passing or not;
若所述认证结果为通过, 获取预设工具库中与所述配置文件相对应的 开通工具并通过所述开通工具测试相对应的服务接口以将所述服务接 口的返回信息作为测试结果。 If the authentication result is passed, obtain the provisioning tool corresponding to the configuration file in the preset tool library and pass the provisioning tool to test the corresponding service interface to use the return information of the service interface as the test result.
[权利要求 2] 根据权利要求 1所述的自动化测试方法, 其特征在于, 所述根据预设 的认证判断规则对所述测试信息中的认证对象信息进行判断以得到认 证对象判断结果, 包括: [Claim 2] The automated test method according to claim 1, wherein the judging the authentication object information in the test information according to a preset authentication judgment rule to obtain the authentication object judgment result comprises:
根据预设的认证判断规则对所述认证对象信息中的目标认证对象是否 为企业进行判断以得到目标对象判断结果; Judging whether the target authentication object in the authentication object information is an enterprise according to a preset authentication judgment rule to obtain the judgment result of the target object;
根据预设的认证判断规则对所述认证对象信息中是否包含代理人进行 判断以得到代理人判断结果; Judging whether an agent is included in the authentication object information according to a preset authentication judgment rule to obtain an agent judgment result;
将所述目标对象判断结果及所述代理人判断结果进行整合以得到认证 对象判断结果。 The judgment result of the target object and the judgment result of the agent are integrated to obtain the judgment result of the authentication object.
[权利要求 3] 根据权利要求 1所述的自动化测试方法, 其特征在于, 所述根据预设 的信息认证流程及所述认证对象判断结果对所述待认证信息进行认证 以得到是否通过的认证结果, 包括: [Claim 3] The automated testing method according to claim 1, wherein the information to be authenticated is authenticated according to a preset information authentication process and the judgment result of the authentication object to obtain whether the authentication is passed or not. The results include:
根据所述信息认证流程及所述认证对象判断结果向对应的信息认证接 口发送与待认证信息相对应的认证请求信息; 获取所述信息认证接口根据所述认证请求信息反馈的接口认证信息; 根据所述接口认证信息对所述待认证信息进行认证以得到认证结果。 Sending authentication request information corresponding to the information to be authenticated to the corresponding information authentication interface according to the information authentication process and the judgment result of the authentication object; Obtaining interface authentication information fed back by the information authentication interface according to the authentication request information; and authenticating the information to be authenticated according to the interface authentication information to obtain an authentication result.
[权利要求 4] 根据权利要求 1所述的自动化测试方法, 其特征在于, 所述获取预设 工具库中与所述配置文件相对应的开通工具并通过所述开通工具测试 相对应的服务接口以将所述服务接口的返回信息作为测试结果, 包括 根据所述配置文件中的开通工具编号获取预设工具库中与所述开通工 具编号相对应的目标开通工具; [Claim 4] The automated testing method according to claim 1, characterized in that said obtaining the activation tool corresponding to the configuration file in the preset tool library and testing the corresponding service interface through the activation tool Taking the return information of the service interface as the test result, including obtaining the target activation tool corresponding to the activation tool number in the preset tool library according to the activation tool number in the configuration file;
执行所述目标开通工具以测试相对应的服务接口并将所述服务接口所 反馈的返回信息作为测试结果。 Execute the target activation tool to test the corresponding service interface and use the return information fed back by the service interface as the test result.
[权利要求 5] 根据权利要求 1所述的自动化测试方法, 其特征在于, 所述获取预设 工具库中与所述配置文件相对应的开通工具并通过所述开通工具测试 相对应的服务接口以将所述服务接口的返回信息作为测试结果之后, 还包括: [Claim 5] The automated testing method according to claim 1, characterized in that said obtaining the activation tool corresponding to the configuration file in the preset tool library and testing the corresponding service interface through the activation tool After taking the return information of the service interface as the test result, it also includes:
通过预设的接口清空工具将与所述开通工具相对应的服务接口进行清 空。 The service interface corresponding to the activation tool is cleared through the preset interface clearing tool.
[权利要求 6] 一种自动化测试装置, 其特征在于, 包括: [Claim 6] An automated test device, characterized in that it comprises:
注册登录测试单元, 用于根据预设的配置文件中的注册信息及登录信 息进行注册登录测试以得到注册登录测试结果; 注册登录测试结果发送单元, 用于若所述注册登录测试结果为通过, 将所述注册登录测试结果发送至用户并接收所述用户根据所述注册登 录测试结果反馈的测试信息; The registration login test unit is used to perform a registration login test according to the registration information and login information in the preset configuration file to obtain the registration login test result; the registration login test result sending unit is used to if the registration login test result is passed, Sending the registration login test result to the user and receiving the test information fed back by the user according to the registration login test result;
认证对象判断单元, 用于根据预设的认证判断规则对所述测试信息中 的认证对象信息进行判断以得到认证对象判断结果; The authentication object judgment unit is configured to judge the authentication object information in the test information according to the preset authentication judgment rule to obtain the authentication object judgment result;
待认证信息获取单元, 用于获取所述配置文件中与所述认证对象判断 结果相对应的待认证彳習息; An information obtaining unit to be authenticated, configured to obtain information to be authenticated corresponding to the judgment result of the authentication object in the configuration file;
信息认证单元, 用于根据预设的信息认证流程及所述认证对象判断结 果对所述待认证信息进行认证以得到是否通过的认证结果; 服务接口测试单元, 用于若所述认证结果为通过, 获取预设工具库中 与所述配置文件相对应的开通工具并通过所述开通工具测试相对应的 服务接口以将所述服务接口的返回信息作为测试结果。 An information authentication unit, configured to authenticate the information to be authenticated according to a preset information authentication process and the judgment result of the authentication object to obtain the authentication result of whether it passes; The service interface testing unit is configured to, if the authentication result is passed, obtain the activation tool corresponding to the configuration file in the preset tool library, and pass the activation tool to test the corresponding service interface to check the service interface Information is returned as the test result.
[权利要求 7] 根据权利要求 6所述的自动化测试装置, 其特征在于, 所述认证对象 判断单元, 包括: [Claim 7] The automated test device according to claim 6, wherein the authentication object judgment unit comprises:
目标认证对象判断单元, 用于根据预设的认证判断规则对所述认证对 象信息中的目标认证对象是否为企业进行判断以得到目标对象判断结 果; The target authentication object judgment unit is configured to judge whether the target authentication object in the authentication object information is an enterprise according to a preset authentication judgment rule to obtain a target object judgment result;
代理人判断单元, 用于根据预设的认证判断规则对所述认证对象信息 中是否包含代理人进行判断以得到代理人判断结果; An agent judgment unit, configured to judge whether the authentication object information includes an agent according to a preset authentication judgment rule to obtain an agent judgment result;
判断结果获取单元, 用于将所述目标对象判断结果及所述代理人判断 结果进行整合以得到认证对象判断结果。 The judgment result obtaining unit is configured to integrate the target object judgment result and the agent judgment result to obtain the authentication object judgment result.
[权利要求 8] 根据权利要求 6所述的自动化测试装置, 其特征在于, 所述信息认证 单元, 包括: [Claim 8] The automated test device according to claim 6, wherein the information authentication unit comprises:
认证请求信息发送单元, 用于根据预设信息认证流程及所述认证对象 判断结果向对应的信息认证接口发送与待认证信息相对应的认证请求 信息; An authentication request information sending unit, configured to send authentication request information corresponding to the information to be authenticated to the corresponding information authentication interface according to the preset information authentication process and the judgment result of the authentication object;
接口认证信息获取单元, 用于获取所述信息认证接口根据所述认证请 求信息反馈的接口认证信息; An interface authentication information obtaining unit, configured to obtain interface authentication information fed back by the information authentication interface according to the authentication request information;
认证结果获取单元, 用于根据所述接口认证信息对所述待认证信息进 行认证以得到认证结果。 The authentication result obtaining unit is configured to authenticate the information to be authenticated according to the interface authentication information to obtain an authentication result.
[权利要求 9] 根据权利要求 6所述的自动化测试装置, 其特征在于, 所述服务接口 测试单元, 包括: [Claim 9] The automated test device according to claim 6, wherein the service interface test unit comprises:
开通工具获取单元, 用于根据所述配置文件中的开通工具编号获取预 设工具库中与所述开通工具编号相对应的目标开通工具; The activation tool obtaining unit is configured to obtain the target activation tool corresponding to the activation tool number in the preset tool library according to the activation tool number in the configuration file;
测试结果获取单元, 用于执行所述目标开通工具以测试相对应的服务 接口并将所述服务接口所反馈的返回信息作为测试结果。 The test result obtaining unit is configured to execute the target activation tool to test the corresponding service interface and use the return information fed back by the service interface as the test result.
[权利要求 10] 根据权利要求 6所述的自动化测试装置, 其特征在于, 所述装置还包 括: [Claim 10] The automated test device according to claim 6, wherein the device also includes Include:
服务接口清空单元, 用于通过预设的接口清空工具将与所述开通工具 相对应的服务接口进行清空。 The service interface clearing unit is used to clear the service interface corresponding to the activation tool through a preset interface clearing tool.
[权利要求 11] 一种计算机设备, 包括存储器、 处理器以及存储在所述存储器中并可 在所述处理器上运行的计算机可读指令, 其特征在于, 所述处理器执 行所述计算机可读指令时实现如下步骤: [Claim 11] A computer device, comprising a memory, a processor, and computer readable instructions stored in the memory and running on the processor, wherein the processor executes the computer The following steps are implemented when reading instructions:
根据预设的配置文件中的注册信息及登录信息进行注册登录测试以得 到注册登录测试结果; Perform a registration and login test according to the registration information and login information in the preset configuration file to obtain the registration and login test results;
若所述注册登录测试结果为通过, 将所述注册登录测试结果发送至用 户并接收所述用户根据所述注册登录测试结果反馈的测试信息; 根据预设的认证判断规则对所述测试信息中的认证对象信息进行判断 以得到认证对象判断结果; If the registration log-in test result is passed, send the registration log-in test result to the user and receive the test information fed back by the user according to the registration log-in test result; check the test information according to a preset authentication judgment rule To obtain the judgment result of the authentication object;
获取所述配置文件中与所述认证对象判断结果相对应的待认证信息; 根据预设的信息认证流程及所述认证对象判断结果对所述待认证信息 进行认证以得到是否通过的认证结果; Obtain the information to be authenticated corresponding to the judgment result of the authentication object in the configuration file; authenticate the information to be authenticated according to the preset information authentication process and the judgment result of the authentication object to obtain the authentication result of passing or not;
若所述认证结果为通过, 获取预设工具库中与所述配置文件相对应的 开通工具并通过所述开通工具测试相对应的服务接口以将所述服务接 口的返回信息作为测试结果。 If the authentication result is passed, obtain the provisioning tool corresponding to the configuration file in the preset tool library and pass the provisioning tool to test the corresponding service interface to use the return information of the service interface as the test result.
[权利要求 12] 根据权利要求 11所述的计算机设备, 其特征在于, 所述处理器执行所 述计算机可读指令时还实现如下步骤: [Claim 12] The computer device of claim 11, wherein the processor further implements the following steps when executing the computer-readable instructions:
根据预设的认证判断规则对所述认证对象信息中的目标认证对象是否 为企业进行判断以得到目标对象判断结果; Judging whether the target authentication object in the authentication object information is an enterprise according to a preset authentication judgment rule to obtain the judgment result of the target object;
根据预设的认证判断规则对所述认证对象信息中是否包含代理人进行 判断以得到代理人判断结果; Judging whether an agent is included in the authentication object information according to a preset authentication judgment rule to obtain an agent judgment result;
将所述目标对象判断结果及所述代理人判断结果进行整合以得到认证 对象判断结果。 The judgment result of the target object and the judgment result of the agent are integrated to obtain the judgment result of the authentication object.
[权利要求 13] 根据权利要求 11所述的计算机设备, 其特征在于, 所述处理器执行所 述计算机可读指令时还实现如下步骤: 根据所述信息认证流程及所述认证对象判断结果向对应的信息认证接 口发送与待认证信息相对应的认证请求信息; [Claim 13] The computer device of claim 11, wherein the processor further implements the following steps when executing the computer readable instruction: Sending authentication request information corresponding to the information to be authenticated to the corresponding information authentication interface according to the information authentication process and the judgment result of the authentication object;
获取所述信息认证接口根据所述认证请求信息反馈的接口认证信息; 根据所述接口认证信息对所述待认证信息进行认证以得到认证结果。 Obtaining interface authentication information fed back by the information authentication interface according to the authentication request information; and authenticating the information to be authenticated according to the interface authentication information to obtain an authentication result.
[权利要求 14] 根据权利要求 11所述的计算机设备, 其特征在于, 所述处理器执行所 述计算机可读指令时还实现如下步骤: [Claim 14] The computer device of claim 11, wherein the processor further implements the following steps when executing the computer-readable instructions:
根据所述配置文件中的开通工具编号获取预设工具库中与所述开通工 具编号相对应的目标开通工具; Obtaining the target activation tool corresponding to the activation tool number in the preset tool library according to the activation tool number in the configuration file;
执行所述目标开通工具以测试相对应的服务接口并将所述服务接口所 反馈的返回信息作为测试结果。 Execute the target activation tool to test the corresponding service interface and use the return information fed back by the service interface as the test result.
[权利要求 15] 根据权利要求 11所述的计算机设备, 其特征在于, 所述处理器执行所 述计算机可读指令时还实现如下步骤: [Claim 15] The computer device according to claim 11, wherein the processor further implements the following steps when executing the computer readable instruction:
通过预设的接口清空工具将与所述开通工具相对应的服务接口进行清 空。 The service interface corresponding to the activation tool is cleared through the preset interface clearing tool.
[权利要求 16] —种计算机可读存储介质, 所述计算机非易失性可读存储介质存储有 计算机可读指令, 其特征在于, 所述计算机可读指令被处理器执行时 实现如下步骤: [Claim 16] A computer-readable storage medium, wherein the computer non-volatile readable storage medium stores computer-readable instructions, characterized in that, when the computer-readable instructions are executed by a processor, the following steps are implemented:
根据预设的配置文件中的注册信息及登录信息进行注册登录测试以得 到注册登录测试结果; Perform a registration and login test according to the registration information and login information in the preset configuration file to obtain the registration and login test results;
若所述注册登录测试结果为通过, 将所述注册登录测试结果发送至用 户并接收所述用户根据所述注册登录测试结果反馈的测试信息; 根据预设的认证判断规则对所述测试信息中的认证对象信息进行判断 以得到认证对象判断结果; If the registration log-in test result is passed, send the registration log-in test result to the user and receive the test information fed back by the user according to the registration log-in test result; check the test information according to a preset authentication judgment rule To obtain the judgment result of the authentication object;
获取所述配置文件中与所述认证对象判断结果相对应的待认证信息; 根据预设的信息认证流程及所述认证对象判断结果对所述待认证信息 进行认证以得到是否通过的认证结果; Obtain the information to be authenticated corresponding to the judgment result of the authentication object in the configuration file; authenticate the information to be authenticated according to the preset information authentication process and the judgment result of the authentication object to obtain the authentication result of passing or not;
若所述认证结果为通过, 获取预设工具库中与所述配置文件相对应的 开通工具并通过所述开通工具测试相对应的服务接口以将所述服务接 口的返回信息作为测试结果。 If the authentication result is passed, obtain the activation tool corresponding to the configuration file in the preset tool library and pass the activation tool to test the corresponding service interface to connect the service The information returned by the port is used as the test result.
[权利要求 17] 根据权利要求 16所述的计算机可读存储介质, 其特征在于, 所述计算 机可读指令被处理器执行时还实现如下步骤: [Claim 17] The computer-readable storage medium of claim 16, wherein the computer-readable instructions further implement the following steps when the computer-readable instructions are executed by the processor:
根据预设的认证判断规则对所述认证对象信息中的目标认证对象是否 为企业进行判断以得到目标对象判断结果; Judging whether the target authentication object in the authentication object information is an enterprise according to a preset authentication judgment rule to obtain the judgment result of the target object;
根据预设的认证判断规则对所述认证对象信息中是否包含代理人进行 判断以得到代理人判断结果; Judging whether an agent is included in the authentication object information according to a preset authentication judgment rule to obtain an agent judgment result;
将所述目标对象判断结果及所述代理人判断结果进行整合以得到认证 对象判断结果。 The judgment result of the target object and the judgment result of the agent are integrated to obtain the judgment result of the authentication object.
[权利要求 18] 根据权利要求 16所述的计算机可读存储介质, 其特征在于, 所述计算 机可读指令被处理器执行时还实现如下步骤: [Claim 18] The computer-readable storage medium of claim 16, wherein the computer-readable instructions further implement the following steps when being executed by the processor:
根据所述信息认证流程及所述认证对象判断结果向对应的信息认证接 口发送与待认证信息相对应的认证请求信息; Sending the authentication request information corresponding to the information to be authenticated to the corresponding information authentication interface according to the information authentication process and the judgment result of the authentication object;
获取所述信息认证接口根据所述认证请求信息反馈的接口认证信息; 根据所述接口认证信息对所述待认证信息进行认证以得到认证结果。 Obtaining interface authentication information fed back by the information authentication interface according to the authentication request information; and authenticating the information to be authenticated according to the interface authentication information to obtain an authentication result.
[权利要求 19] 根据权利要求 16所述的计算机可读存储介质, 其特征在于, 所述计算 机可读指令被处理器执行时还实现如下步骤: [Claim 19] The computer-readable storage medium of claim 16, wherein the computer-readable instructions further implement the following steps when being executed by a processor:
根据所述配置文件中的开通工具编号获取预设工具库中与所述开通工 具编号相对应的目标开通工具; Obtaining the target activation tool corresponding to the activation tool number in the preset tool library according to the activation tool number in the configuration file;
执行所述目标开通工具以测试相对应的服务接口并将所述服务接口所 反馈的返回信息作为测试结果。 Execute the target activation tool to test the corresponding service interface and use the return information fed back by the service interface as the test result.
[权利要求 20] 根据权利要求 16所述的计算机可读存储介质, 其特征在于, 所述计算 机可读指令被处理器执行时还实现如下步骤: [Claim 20] The computer-readable storage medium of claim 16, wherein the computer-readable instructions further implement the following steps when the computer-readable instructions are executed by the processor:
通过预设的接口清空工具将与所述开通工具相对应的服务接口进行清 空。 The service interface corresponding to the activation tool is cleared through the preset interface clearing tool.
PCT/CN2019/122451 2019-04-15 2019-12-02 Automatic test method and apparatus, computer device and storage medium WO2020211391A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910300607.4 2019-04-15
CN201910300607.4A CN110175111A (en) 2019-04-15 2019-04-15 Automated testing method, device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
WO2020211391A1 true WO2020211391A1 (en) 2020-10-22

Family

ID=67689545

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/122451 WO2020211391A1 (en) 2019-04-15 2019-12-02 Automatic test method and apparatus, computer device and storage medium

Country Status (2)

Country Link
CN (1) CN110175111A (en)
WO (1) WO2020211391A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110175111A (en) * 2019-04-15 2019-08-27 深圳壹账通智能科技有限公司 Automated testing method, device, computer equipment and storage medium
CN110532151A (en) * 2019-08-30 2019-12-03 浪潮商用机器有限公司 A kind of automatic operation method of monitoring instrument, device, equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2008101981A1 (en) * 2007-02-23 2008-08-28 Telefonaktiebolaget Lm Ericsson (Publ) A method and a system for dynamic probe authentication for test and monitoring of software
CN104133772A (en) * 2014-08-13 2014-11-05 广东电网公司信息中心 Automatic test data generation method
CN108763070A (en) * 2018-05-16 2018-11-06 北京金山云网络技术有限公司 Generation method, device and the electronic equipment of test data
CN110175111A (en) * 2019-04-15 2019-08-27 深圳壹账通智能科技有限公司 Automated testing method, device, computer equipment and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2008101981A1 (en) * 2007-02-23 2008-08-28 Telefonaktiebolaget Lm Ericsson (Publ) A method and a system for dynamic probe authentication for test and monitoring of software
CN104133772A (en) * 2014-08-13 2014-11-05 广东电网公司信息中心 Automatic test data generation method
CN108763070A (en) * 2018-05-16 2018-11-06 北京金山云网络技术有限公司 Generation method, device and the electronic equipment of test data
CN110175111A (en) * 2019-04-15 2019-08-27 深圳壹账通智能科技有限公司 Automated testing method, device, computer equipment and storage medium

Also Published As

Publication number Publication date
CN110175111A (en) 2019-08-27

Similar Documents

Publication Publication Date Title
TWI780047B (en) Identity authentication method, device and system
KR102039316B1 (en) Method and device for authentication using dynamic passwords
US9525684B1 (en) Device-specific tokens for authentication
EP2196933B1 (en) Server-to-server integrity checking
US8701199B1 (en) Establishing a trusted session from a non-web client using adaptive authentication
WO2016165536A1 (en) Identity verification method and device
US8869258B2 (en) Facilitating token request troubleshooting
WO2020181841A1 (en) Method for automatically testing horizontal over-permission vulnerabilities and related device
CN109922035B (en) Password resetting method, request terminal and verification terminal
US20100100950A1 (en) Context-based adaptive authentication for data and services access in a network
EP3211825B1 (en) Trusted terminal verification method and apparatus
WO2021139314A1 (en) Operating system initialization method and system, computer device, and storage medium
US8191123B2 (en) Provisioning a network appliance
US20090113528A1 (en) Techniques for authentication via network connections
WO2020000758A1 (en) Server acceptance method and apparatus, computer device, and storage medium
TWI712888B (en) Authentication system, ethernet ssd, and method for authenticating critical operations on solid-state drives
WO2020211391A1 (en) Automatic test method and apparatus, computer device and storage medium
US8677446B2 (en) Centrally managed impersonation
CN108156169A (en) Account login validation method, system and computer readable storage medium
CN111585954A (en) Authentication method, authentication device, computer equipment and storage medium
US11784994B2 (en) Management device, management system, and non-transitory computer readable medium
WO2009140911A1 (en) Method for interactive authentication
US20230306103A1 (en) Pre-registration of authentication devices
TWI661332B (en) Method for remotely authorizing a user to log on a computer system
CN107172082B (en) File sharing method and system

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 19924684

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 08.12.2021)

122 Ep: pct application non-entry in european phase

Ref document number: 19924684

Country of ref document: EP

Kind code of ref document: A1