WO2020211391A1 - 自动化测试方法、装置、计算机设备及存储介质 - Google Patents

自动化测试方法、装置、计算机设备及存储介质 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
English (en)
French (fr)
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/zh

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.

Landscapes

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

Abstract

本申请实施例适用于计算机技术领域,提供了自动化测试方法、装置、计算机设备及存储介质。方法包括:根据注册信息及登录信息进行注册登录测试并通过后获取用户所反馈的测试信息,对测试信息中认证对象信息进行判断并获取配置文件中与认证对象判断结果对应的待认证信息,通过信息认证流程结合认证对象判断结果对待认证信息进行认证,并在认证通过后通过工具库中与所述配置文件相对应的开通工具对服务接口进行测试以得到测试结果。本发明基于自动化测试工具技术,提高了测试过程中的成功率且大幅增加了测试效率。

Description

说明书 发明名称: 自动化测试方法、 装置、 计算机设备及存储介质
[0001] 本申请申明享有 2019年 04月 15日递交的申请号为 201910300607.4、 名称为“自动 化测试方法、 装置、 计算机设备及存储介质”中国专利申请的优先权, 该中国专 利申请的整体内容以参考的方式结合在本申请中。
技术领域
[0002] 本申请属于计算机技术领域, 特别是涉及一种自动化测试方法、 装置、 计算机 设备及存储介质。
背景技术
[0003] 在对软件进行测试的过程中, 不同的用户类型需对应采用相应的测试流程。 由 于用户类型的不同所需使用的测试数据也不相同, 传统的测试方法中需根据多 个用户类型配置多份测试数据, 并从多份测试数据中手动选择与用户类型相匹 配的测试数据。 实际使用过程中经常容易导致因用户类型与所需的测试数据不 匹配导致测试失败的问题, 从而降低了测试的效率。 因此现有的技术方法存在 软件测试效率不高的问题。
发明概述
技术问题
[0004] 有鉴于此, 本申请实施例提供了一种自动化测试方法、 装置、 计算机设备及存 储介质, 旨在解决现有技术方法中测试方法所存在的测试效率不高的问题。 问题的解决方案
技术解决方案
[0005] 为解决上述技术问题, 本申请实施例采用的技术方案是:
[0006] 第一方面, 提供了一种自动化测试方法, 其包括:
[0007] 根据预设的配置文件中的注册信息及登录信息进行注册登录测试以得到注册登 录测试结果;
[0008] 若所述注册登录测试结果为通过, 将所述注册登录测试结果发送至用户并接收 所述用户根据所述注册登录测试结果反馈的测试信息; [0009] 根据预设的认证判断规则对所述测试信息中的认证对象信息进行判断以得到认 证对象判断结果;
[0010] 获取所述配置文件中与所述认证对象判断结果相对应的待认证信息;
[0011] 根据预设的信息认证流程及所述认证对象判断结果对所述待认证信息进行认证 以得到是否通过的认证结果;
[0012] 若所述认证结果为通过, 获取预设工具库中与所述配置文件相对应的开通工具 并通过所述开通工具测试相对应的服务接口以将所述服务接口的返回信息作为 测试结果。
[0013] 第二方面, 提供了一种自动化测试装置, 其包括:
[0014] 注册登录测试单元, 用于根据预设的配置文件中的注册信息及登录信息进行注 册登录测试以得到注册登录测试结果;
[0015] 注册登录测试结果发送单元, 用于若所述注册登录测试结果为通过, 将所述注 册登录测试结果发送至用户并接收所述用户根据所述注册登录测试结果反馈的 测试信息;
[0016] 认证对象判断单元, 用于根据预设的认证判断规则对所述测试信息中的认证对 象信息进行判断以得到认证对象判断结果;
[0017] 待认证信息获取单元, 用于获取所述配置文件中与所述认证对象判断结果相对 应的待认证信息;
[0018] 信息认证单元, 用于根据预设的信息认证流程及所述认证对象判断结果对所述 待认证信息进行认证以得到是否通过的认证结果;
[0019] 服务接口测试单元, 用于若所述认证结果为通过, 获取预设工具库中与所述配 置文件相对应的开通工具并通过所述开通工具测试相对应的服务接口以将所述 服务接口的返回信息作为测试结果。
[0020] 第三方面, 提供了一种计算机设备, 包括存储器、 处理器以及存储在所述存储 器中并可在所述处理器上运行的计算机可读指令, 所述处理器执行所述计算机 可读指令时实现上述第一方面所述的自动化测试方法。
[0021] 第四方面, 提供了一种计算机可读存储介质, 所述计算机可读存储介质存储有 计算机可读指令, 所述计算机可读指令被处理器执行时实现上述第一方面所述 的自动化测试方法。
[0022] 本申请的一个或多个实施例的细节在下面的附图和描述中提出。 本申请的其它 特征、 目的和优点将从说明书、 附图以及权利要求书变得明显。
发明的有益效果
对附图的简要说明
附图说明
[0023] 图 1为本发明实施例提供的自动化测试方法的流程示意图;
[0024] 图 2为本发明实施例提供的自动化测试装置的示意性框图;
[0025] 图 3为本发明实施例提供的自动化测试装置的子单元示意性框图;
[0026] 图 4为本发明实施例提供的自动化测试装置的另一子单元示意性框图;
[0027] 图 5为本发明实施例提供的自动化测试装置的另一子单元示意性框图;
[0028] 图 6为本发明实施例提供的自动化测试装置的另一示意性框图;
[0029] 图 7为本发明实施例提供的计算机设备的示意性框图。
发明实施例
本发明的实施方式
[0030] 请参阅图 1, 图 1是本发明实施例提供的自动化测试方法的流程示意图。 该自动 化测试方法应用于用户终端中, 该方法通过安装于用户终端中的应用软件进行 执行, 用户终端即是用于执行自动化测试方法以获取测试结果的终端设备, 例 如台式电脑、 笔记本电脑、 平板电脑或手机等。
[0031] 如图 1所示, 该方法包括步骤 S110至 S160。
[0032] S110、 根据预设的配置文件中的注册信息及登录信息进行注册登录测试以得到 注册登录测试结果。
[0033] 获取预设配置文件中的注册信息及登录信息, 根据所述注册信息及登录信息进 行注册登录测试并得到注册登录测试结果。 在对所需测试的应用程序进行测试 的流程中, 包含对账号进行注册测试及登录测试, 也即是测试的第一步即是获 取注册信息进行注册并获取登录信息进行进行登录以完成对应用程序的第一步 测试, 完成第一步测试即可得到相应的测试结果, 也即是得到注册登录测试结 果。 配置文件即是用户预先配置于用户终端中以用于对应用程序进行多方位测 试的文件信息, 配置文件中包括注册信息、 登录信息等, 配置文件可在多次测 试过程中进行重复使用。 注册信息中包含对账号进行注册所需的信息, 例如注 册账号信息及注册密码等信息; 登录信息中包含对账号进行登录所需的信息, 例如登录账号信息及登录密码等信息。
[0034] S120、 若所述注册登录测试结果为通过, 将所述注册登录测试结果发送至用户 并接收所述用户根据所述注册登录测试结果反馈的测试信息。
[0035] 若注册登录测试结果为通过, 向用户发送该注册登录测试结果, 并接收用户根 据所述注册登录测试结果反馈的测试信息。 若用户接收到的注册登录测试结果 , 则用户可提交测试信息以对用户终端中的应用程序进行下一步测试。 具体的 , 测试信息中包括认证对象信息, 认证对象信息即是用户所提交的需进行认证 测试的认证对象。
[0036] S130、 根据预设的认证判断规则对所述测试信息中的认证对象信息进行判断以 得到认证对象判断结果。
[0037] 根据预设的认证判断规则对所述测试信息中的认证对象信息进行判断以得到认 证对象判断结果。 预设的认证判断规则即是用于对测试信息中的认证对象信息 进行判断的规则信息, 具体的, 认证判断规则包括对目标认证对象进行判断的 规则信息以及对认证对象信息中的是否包含代理人进行判断的规则信息。 其中 , 目标认证对象可以是企业, 还可以是个体, 不同的目标认证对象适用不同的 认证流程, 若认证对象信息中包含代理人, 则还需加入对代理人进行认证的流 程。
[0038] 在一实施例中, 步骤 S130包括子步骤 S131、 S132和 S133。
[0039] S131、 根据预设的认证判断规则对所述认证对象信息中的目标认证对象是否为 企业进行判断以得到目标对象判断结果。
[0040] 根据预设的认证判断规则对所述认证对象信息中的目标认证对象是否为企业进 行判断以得到目标对象判断结果。 具体的, 目标认证对象可以是企业, 还可以 是个体, 则可对目标认证对象是否为企业进行判断以得到目标对象判断结果。
[0041] S132、 根据预设的认证判断规则对所述认证对象信息中是否包含代理人进行判 断以得到代理人判断结果。
[0042] 根据预设的认证判断规则对所述认证对象信息中是否包含代理人进行判断以得 到代理人判断结果。 认证对象信息中可包含代理人, 也可不包含代理人, 因此 需对认证对象信息中是否包含代理人进行判断, 以得到代理人判断结果。
[0043] S133、 将所述目标对象判断结果及所述代理人判断结果进行整合以得到认证对 象判断结果。
[0044] 将所得到的目标对象判断结果及代理人判断结果进行整合, 即可最终得到认证 对象判断结果, 根据所得到的认证对象判断结果即可进行下一步测试操作。
[0045] S140、 获取所述配置文件中与所述认证对象判断结果相对应的待认证信息。
[0046] 获取所述配置文件中与所述认证对象判断结果相对应的待认证信息。 具体的, 配置文件中还包括企业三证合一号、 企业法人信息、 个体工商户法人信息、 代 理人身份证号及代理人手机号等需进行认证的具体信息, 通过所得到的认证对 象判断结果即可获取配置文件中对应的信息作为待认证信息。
[0047] 例如, 认证对象判断结果为目标认证对象为企业且认证对象信息中包含代理人 , 则从配置文件中对应获取企业三证合一号、 企业法人信息、 代理人身份证号 及代理人手机号作为待认证信息。
[0048] S150、 根据预设的信息认证流程及所述认证对象判断结果对所述待认证信息进 行认证以得到是否通过的认证结果。
[0049] 根据预设的信息认证流程及所述认证对象判断结果对所述待认证信息进行认证 以得到是否通过的认证结果。 信息认证流程即是预设的用于对待认证信息进行 认证的流程信息, 根据认证对象判断结果从预设信息认证流程中选择相对应的 流程, 以完成对待认证信息的认证。
[0050] 在一实施例中, 步骤 S150包括子步骤 S151、 S152和 S153。
[0051] S151、 根据所述信息认证流程及所述认证对象判断结果向对应的信息认证接口 发送与待认证信息相对应的认证请求信息。
[0052] 根据所述信息认证流程及所述认证对象判断结果向对应的信息认证接口发送与 待认证信息相对应的认证请求信息。 具体的, 预设信息认证流程中包含企业信 息认证接口、 个体信息认证接口及代理人信息认证接口, 企业信息认证接口可 以是工商局网站的企业信息查询接口, 个体信息认证接口可以是工商局网站的 个体信息查询接口, 代理人信息认证接口可以是公安机关的身份信息查询接口 。 根据认证对象判断结果即可从预设的信息认证流程中获取对应的信息认证接 口, 并通过所对应的信息认证接口发送与待认证信息相对应的认证请求信息。
[0053] 例如, 认证对象判断结果为目标认证对象为企业且认证对象信息中包含代理人 , 待认证信息中包括企业三证合一号、 企业法人信息、 代理人身份证号及代理 人手机号作为待认证信息, 则向企业信息认证接口发送待认证信息中与企业相 关的认证请求信息, 向代理人信息认证接口发送待认证信息中与代理人相关的 认证请求信息。
[0054] S152、 获取所述信息认证接口根据所述认证请求信息反馈的接口认证信息。
[0055] 获取所述信息认证接口根据所述认证请求信息反馈的接口认证信息。 信息认证 接口接收认证请求信息后即可反馈对应的接口认证信息, 其中, 企业信息认证 接口对应反馈企业接口认证信息, 个体信息认证接口对应反馈个体接口认证信 息, 代理人信息认证接口对应反馈代理人接口认证信息。
[0056] S 153、 根据所述接口认证信息对所述待认证信息进行认证以得到认证结果。
[0057] 根据所述接口认证信息对所述待认证信息进行认证以得到认证结果。 具体的, 若接口认证信息与待认证信息一致, 则认证结果为通过, 若接口认证信息与待 认证信息不一致, 则认证结果为不通过。
[0058] S160、 若所述认证结果为通过, 获取预设工具库中与所述配置文件相对应的开 通工具并通过所述开通工具测试相对应的服务接口以将所述服务接口的返回信 息作为测试结果。
[0059] 若认证结果为通过, 获取预设工具库中与所述配置文件相对应的开通工具, 通 过开通工具测试相对应的服务接口以将所述服务接口的返回信息作为测试结果 。 具体的, 预设工具库中包含了多个开通工具, 通过使用开通工具即可用于对 相应的服务接口进行测试, 获取服务接口所反馈的返回信息即可完成对相应的 服务接口进行测试。
[0060] 在一实施例中, 步骤 S160包括子步骤 S161和 S162。
[0061] S161、 根据所述配置文件中的开通工具编号获取预设工具库中与所述开通工具 编号相对应的目标开通工具。
[0062] 根据所述配置文件中的开通工具编号获取预设工具库中与所述开通工具编号相 对应的目标开通工具。 具体的, 配置文件中还包括开通工具编号, 预设工具库 中的每一个开通工具均对应一个工具编号, 通过开通工具编号与每一个开通工 具的工具编号进行匹配, 即可从预设工具库中获取与开通工具编号相对应的目 标开通工具。
[0063] S162、 执行所述目标开通工具以测试相对应的服务接口并将所述服务接口所反 馈的返回信息作为测试结果。
[0064] 执行所述目标开通工具以测试相对应的服务接口并获取服务接口所反馈的返回 信息。 执行所述开通工具对相应服务接口进行测试, 即可获取服务接口所反馈 的返回信息, 具体的, 若服务接口测试成功, 则可接收到该服务接口所反馈的“p ass”这一返回信息; 若服务接口测试失败, 贝呵接受到该服务接口所反馈的“faile d”这一返回信息。
[0065] 在一实施例中, 步骤 S160之后还包括步骤 S170。
[0066] S170、 通过预设的接口清空工具将与所述开通工具相对应的服务接口进行清空
[0067] 通过预设的接口清空工具将与所述开通工具相对应的服务接口进行清空。 预设 接口清空工具即是用于对已测试的服务接口中的信息进行清空的工具, 通过接 口清空工具将与开通工具相对应的服务接口进行清空以后, 可重复使用预设配 置文件对已进行测试的应用程序中的服务接口进行再次测试。
[0068] 通过注册信息及登录信息进行注册登录测试并通过后获取用户所反馈的测试信 息, 对测试信息中认证对象信息进行判断并获取配置文件中与认证对象判断结 果对应的待认证信息, 通过信息认证流程结合认证对象判断结果对待认证信息 进行认证, 并在认证通过后工具库中与所述配置文件相对应的开通工具对服务 接口进行测试以得到测试结果。 通过上述自动化测试方法对应用程序进行测试 并获取测试结果, 提高了测试过程中的成功率, 大幅增加了测试效率, 在实际 应用过程中取得了良好的技术效果。
[0069] 本发明实施例还提供一种自动化测试装置, 该自动化测试装置用于执行前述自 动化测试方法的任一实施例。 具体地, 请参阅图 6 , 图 6是本发明实施例提供的 自动化测试装置的示意性框图。 该自动化测试装置可以配置于台式电脑、 笔记 本电脑、 平板电脑或手机等用户终端中。
[0070] 如图 2所示, 自动化测试装置 100包括注册登录测试单元 110、 注册登录测试结 果发送单元 120、 认证对象判断单元 130、 待认证信息获取单元 140、 信息认证单 元 150和接口测试单元 160。
[0071] 注册登录测试单元 110, 用于注册登录测试单元, 用于根据预设的配置文件中 的注册信息及登录信息进行注册登录测试以得到注册登录测试结果。
[0072] 获取预设配置文件中的注册信息及登录信息, 根据所述注册信息及登录信息进 行注册登录测试并得到注册登录测试结果。 在对所需测试的应用程序进行测试 的流程中, 包含对账号进行注册测试及登录测试, 也即是测试的第一步即是获 取注册信息进行注册并获取登录信息进行进行登录以完成对应用程序的第一步 测试, 完成第一步测试即可得到相应的测试结果, 也即是得到注册登录测试结 果。 配置文件即是用户预先配置于用户终端中以用于对应用程序进行多方位测 试的文件信息, 配置文件中包括注册信息、 登录信息等, 配置文件可在多次测 试过程中进行重复使用。
[0073] 注册登录测试结果发送单元 120, 用于若所述注册登录测试结果为通过, 将所 述注册登录测试结果发送至用户并接收所述用户根据所述注册登录测试结果反 馈的测试信息。
[0074] 若注册登录测试结果为通过, 向用户发送该注册登录测试结果, 并接收用户根 据所述注册登录测试结果反馈的测试信息。 若用户接收到的注册登录测试结果 , 则用户可提交测试信息以对用户终端中的应用程序进行下一步测试。 具体的 , 测试信息中包括认证对象信息, 认证对象信息即是用户所提交的需进行认证 测试的认证对象。
[0075] 认证对象判断单元 130, 用于根据预设的认证判断规则对所述测试信息中的认 证对象信息进行判断以得到认证对象判断结果。
[0076] 根据预设的认证判断规则对所述测试信息中的认证对象信息进行判断以得到认 证对象判断结果。 预设的认证判断规则即是用于对测试信息中的认证对象信息 进行判断的规则信息, 具体的, 认证判断规则包括对目标认证对象进行判断的 规则信息以及对认证对象信息中的是否包含代理人进行判断的规则信息。 其中 , 目标认证对象可以是企业, 还可以是个体, 不同的目标认证对象适用不同的 认证流程, 若认证对象信息中包含代理人, 则还需加入对代理人进行认证的流 程。
[0077] 其他发明实施例中, 如图 3所示, 所述认证对象判断单元 130包括子单元: 目标 认证对象判断单元 131、 代理人判断单元 132和判断结果获取单元 133。
[0078] 目标认证对象判断单元 131, 用于根据预设的认证判断规则对所述认证对象信 息中的目标认证对象是否为企业进行判断以得到目标对象判断结果。
[0079] 根据预设的认证判断规则对所述认证对象信息中的目标认证对象是否为企业进 行判断以得到目标对象判断结果。 具体的, 目标认证对象可以是企业, 还可以 是个体, 则可对目标认证对象是否为企业进行判断以得到目标对象判断结果。
[0080] 代理人判断单元 132, 用于根据预设的认证判断规则对所述认证对象信息中是 否包含代理人进行判断以得到代理人判断结果。
[0081] 根据预设的认证判断规则对所述认证对象信息中是否包含代理人进行判断以得 到代理人判断结果。 认证对象信息中可包含代理人, 也可不包含代理人, 因此 需对认证对象信息中是否包含代理人进行判断, 以得到代理人判断结果。
[0082] 判断结果获取单元 133 , 用于将所述目标对象判断结果及所述代理人判断结果 进行整合以得到认证对象判断结果。
[0083] 将所得到的目标对象判断结果及代理人判断结果进行整合, 即可最终得到认证 对象判断结果, 根据所得到的认证对象判断结果即可进行下一步测试操作。
[0084] 待认证信息获取单元 140, 用于获取所述配置文件中与所述认证对象判断结果 相对应的待认证信息。
[0085] 获取所述配置文件中与所述认证对象判断结果相对应的待认证信息。 具体的, 配置文件中还包括企业三证合一号、 企业法人信息、 个体工商户法人信息、 代 理人身份证号及代理人手机号等需进行认证的具体信息, 通过所得到的认证对 象判断结果即可获取配置文件中对应的信息作为待认证信息。
[0086] 信息认证单元 150, 用于根据预设的信息认证流程及所述认证对象判断结果对 所述待认证信息进行认证以得到是否通过的认证结果。
[0087] 根据预设的信息认证流程及所述认证对象判断结果对所述待认证信息进行认证 以得到是否通过的认证结果。 信息认证流程即是预设的用于对待认证信息进行 认证的流程信息, 根据认证对象判断结果从预设信息认证流程中选择相对应的 流程, 以完成对待认证信息的认证。
[0088] 其他发明实施例中, 如图 4所示, 所述信息认证单元 150包括子单元: 认证请求 信息发送单元 151、 接口认证信息获取单元 152和认证结果获取单元 153。
[0089] 认证请求信息发送单元 151, 用于根据预设信息认证流程及所述认证对象判断 结果向对应的信息认证接口发送与待认证信息相对应的认证请求信息。
[0090] 根据所述信息认证流程及所述认证对象判断结果向对应的信息认证接口发送与 待认证信息相对应的认证请求信息。 具体的, 预设信息认证流程中包含企业信 息认证接口、 个体信息认证接口及代理人信息认证接口, 企业信息认证接口可 以是工商局网站的企业信息查询接口, 个体信息认证接口可以是工商局网站的 个体信息查询接口, 代理人信息认证接口可以是公安机关的身份信息查询接口 。 根据认证对象判断结果即可从预设的信息认证流程中获取对应的信息认证接 口, 并通过所对应的信息认证接口发送与待认证信息相对应的认证请求信息。
[0091] 接口认证信息获取单元 152, 用于获取所述信息认证接口根据所述认证请求信 息反馈的接口认证信息。
[0092] 获取所述信息认证接口根据所述认证请求信息反馈的接口认证信息。 信息认证 接口接收认证请求信息后即可反馈对应的接口认证信息, 其中, 企业信息认证 接口对应反馈企业接口认证信息, 个体信息认证接口对应反馈个体接口认证信 息, 代理人信息认证接口对应反馈代理人接口认证信息。
[0093] 认证结果获取单元 153, 用于根据所述接口认证信息对所述待认证信息进行认 证以得到认证结果。
[0094] 根据所述接口认证信息对所述待认证信息进行认证以得到认证结果。 具体的, 若接口认证信息与待认证信息一致, 则认证结果为通过, 若接口认证信息与待 认证信息不一致, 则认证结果为不通过。
[0095] 服务接口测试单元 160, 用于若所述认证结果为通过, 获取预设工具库中与所 述配置文件相对应的开通工具并通过所述开通工具测试相对应的服务接口以将 所述服务接口的返回信息作为测试结果。
[0096] 若认证结果为通过, 获取预设工具库中与所述配置文件相对应的开通工具, 通 过开通工具测试相对应的服务接口以将所述服务接口的返回信息作为测试结果 。 具体的, 预设工具库中包含了多个开通工具, 通过使用开通工具即可用于对 相应的服务接口进行测试, 获取服务接口所反馈的返回信息即可完成对相应的 服务接口进行测试。
[0097] 其他发明实施例中, 如图 5所示, 所述服务接口测试单元 160包括子单元: 开通 工具获取单元 161和测试结果获取单元 162。
[0098] 开通工具获取单元 161, 用于根据所述配置文件中的开通工具编号获取预设工 具库中与所述开通工具编号相对应的目标开通工具。 具体的, 配置文件中还包 括开通工具编号, 预设工具库中的每一个开通工具均对应一个工具编号, 通过 开通工具编号与每一个开通工具的工具编号进行匹配, 即可从预设工具库中获 取与开通工具编号相对应的目标开通工具。
[0099] 测试结果获取单元 162, 用于执行所述目标开通工具以测试相对应的服务接口 并将所述服务接口所反馈的返回信息作为测试结果。
[0100] 执行所述目标开通工具以测试相对应的服务接口并获取服务接口所反馈的返回 信息。 执行所述开通工具对相应服务接口进行测试, 即可获取服务接口所反馈 的返回信息, 具体的, 若服务接口测试成功, 则可接收到该服务接口所反馈的“P ass”这一返回信息; 若服务接口测试失败, 贝呵接受到该服务接口所反馈的“faile d”这一返回信息。
[0101] 其他发明实施例中, 如图 6所示, 所述自动化测试装置 100还包括子单元: 服务 接口清空单元 170。
[0102] 服务接口清空单元 170, 用于通过预设的接口清空工具将与所述开通工具相对 应的服务接口进行清空。
[0103] 通过预设的接口清空工具将与所述开通工具相对应的服务接口进行清空。 预设 接口清空工具即是用于对已测试的服务接口中的信息进行清空的工具, 通过接 口清空工具将与开通工具相对应的服务接口进行清空以后, 可重复使用预设配 置文件对已进行测试的应用程序中的服务接口进行再次测试。
[0104] 通过注册信息及登录信息进行注册登录测试并通过后获取用户所反馈的测试信 息, 对测试信息中认证对象信息进行判断并获取配置文件中与认证对象判断结 果对应的待认证信息, 通过信息认证流程结合认证对象判断结果对待认证信息 进行认证, 并在认证通过后工具库中与所述配置文件相对应的开通工具对服务 接口进行测试以得到测试结果。 通过上述自动化测试方法对应用程序进行测试 并获取测试结果, 提高了测试过程中的成功率, 大幅增加了测试效率, 在实际 应用过程中取得了良好的技术效果。
[0105] 上述自动化测试装置可以实现为计算机程序的形式, 该计算机程序可以在如图 7所示的计算机设备上运行。
[0106] 请参阅图 7 , 图 7是本发明实施例提供的计算机设备的示意性框图。
[0107] 参阅图 7, 该计算机设备 500包括通过***总线 501连接的处理器 502、 存储器和 网络接口 505, 其中, 存储器可以包括非易失性存储介质 503和内存储器 504。
[0108] 该非易失性存储介质 503可存储操作*** 5031和计算机程序 5032。 该计算机程 序 5032被执行时, 可使得处理器 502执行自动化测试方法。
[0109] 该处理器 502用于提供计算和控制能力, 支撑整个计算机设备 500的运行。
[0110] 该内存储器 504为非易失性存储介质 503中的计算机程序 5032的运行提供环境, 该计算机程序 5032被处理器 502执行时, 可使得处理器 502执行自动化测试方法
[0111] 该网络接口 505用于进行网络通信, 如提供数据信息的传输等。 本领域技术人 员可以理解, 图 7中示出的结构, 仅仅是与本发明方案相关的部分结构的框图, 并不构成对本发明方案所应用于其上的计算机设备 500的限定, 具体的计算机设 备 500可以包括比图中所示更多或更少的部件, 或者组合某些部件, 或者具有不 同的部件布置。
[0112] 其中, 所述处理器 502用于运行存储在存储器中的计算机程序 5032, 以实现上 述任意实施例所述的自动化测试方法的步骤。
[0113] 本领域技术人员可以理解, 图 7中示出的计算机设备的实施例并不构成对计算 机设备具体构成的限定, 在其他实施例中, 计算机设备可以包括比图示更多或 更少的部件, 或者组合某些部件, 或者不同的部件布置。 例如, 在一些实施例 中, 计算机设备可以仅包括存储器及处理器, 在这样的实施例中, 存储器及处 理器的结构及功能与图 7所示实施例一致, 在此不再赘述。
[0114] 应当理解, 在本发明实施例中, 处理器 502可以是中央处理单元 (Central
Processing Unit, CPU) , 该处理器 502还可以是其他通用处理器、 数字信号处理 器 (Digital Signal Processor, DSP)、 专用集成电路 (Application Specific Integrated Circuit, ASIC)、 现成可编程门阵列 (Field- Programmable Gate Array, FPGA)或 者其他可编程逻辑器件、 分立门或者晶体管逻辑器件、 分立硬件组件等。 其中 , 通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。
[0115] 在本发明的另一实施例中提供计算机可读存储介质。 该计算机可读存储介质可 以为非易失性的计算机可读存储介质。 该计算机可读存储介质存储有计算机程 序, 其中计算机程序被处理器执行时实现上述任意实施例所述的自动化测试方 法的步骤。
[0116] 所属领域的技术人员可以清楚地了解到, 为了描述的方便和简洁, 上述描述的 设备、 装置和单元的具体工作过程, 可以参考前述方法实施例中的对应过程, 在此不再赘述。 本领域普通技术人员可以意识到, 结合本文中所公开的实施例 描述的各示例的单元及算法步骤, 能够以电子硬件、 计算机软件或者二者的结 合来实现, 为了清楚地说明硬件和软件的可互换性, 在上述说明中已经按照功 能一般性地描述了各示例的组成及步骤。 这些功能究竟以硬件还是软件方式来 执行取决于技术方案的特定应用和设计约束条件。 专业技术人员可以对每个特 定的应用来使用不同方法来实现所描述的功能, 但是这种实现不应认为超出本 发明的范围。
[0117] 在本发明所提供的几个实施例中, 应该理解到, 所揭露的设备、 装置和方法, 可以通过其它的方式实现。 例如, 以上所描述的装置实施例仅仅是示意性的, 例如, 所述单元的划分, 仅仅为逻辑功能划分, 实际实现时可以有另外的划分 方式, 也可以将具有相同功能的单元集合成一个单元, 例如多个单元或组件可 以结合或者可以集成到另一个***, 或一些特征可以忽略, 或不执行。 另外, 所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口、 装置或单元的间接耦合或通信连接, 也可以是电的, 机械的或其它的形式连接
[0118] 所述作为分离部件说明的单元可以是或者也可以不是物理上分开的, 作为单元 显示的部件可以是或者也可以不是物理单元, 即可以位于一个地方, 或者也可 以分布到多个网络单元上。 可以根据实际的需要选择其中的部分或者全部单元 来实现本发明实施例方案的目的。
[0119] 另外, 在本发明各个实施例中的各功能单元可以集成在一个处理单元中, 也可 以是各个单元单独物理存在, 也可以是两个或两个以上单元集成在一个单元中 。 上述集成的单元既可以采用硬件的形式实现, 也可以采用软件功能单元的形 式实现。
[0120] 所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用 时, 可以存储在一个计算机可读存储介质中。 基于这样的理解, 本发明的技术 方案本质上或者说对现有技术做出贡献的部分, 或者该技术方案的全部或部分 可以以软件产品的形式体现出来, 该计算机软件产品存储在一个计算机可读存 储介质中, 包括若干指令用以使得一台计算机设备 (可以是个人计算机, 服务器 , 或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。 而前述 的计算机可读存储介质包括: U盘、 移动硬盘、 只读存储器 (ROM, Read-Only Memory)、 磁碟或者光盘等各种可以存储程序代码的介质。
[0121] 以上所述, 仅为本发明的具体实施方式, 但本发明的保护范围并不局限于此, 任何熟悉本技术领域的技术人员在本发明揭露的技术范围内, 可轻易想到各种 等效的修改或替换, 这些修改或替换都应涵盖在本发明的保护范围之内。 因此 , 本发明的保护范围应以权利要求的保护范围为准。

Claims

权利要求书
[权利要求 i] 一种自动化测试方法, 其特征在于, 包括:
根据预设的配置文件中的注册信息及登录信息进行注册登录测试以得 到注册登录测试结果;
若所述注册登录测试结果为通过, 将所述注册登录测试结果发送至用 户并接收所述用户根据所述注册登录测试结果反馈的测试信息; 根据预设的认证判断规则对所述测试信息中的认证对象信息进行判断 以得到认证对象判断结果;
获取所述配置文件中与所述认证对象判断结果相对应的待认证信息; 根据预设的信息认证流程及所述认证对象判断结果对所述待认证信息 进行认证以得到是否通过的认证结果;
若所述认证结果为通过, 获取预设工具库中与所述配置文件相对应的 开通工具并通过所述开通工具测试相对应的服务接口以将所述服务接 口的返回信息作为测试结果。
[权利要求 2] 根据权利要求 1所述的自动化测试方法, 其特征在于, 所述根据预设 的认证判断规则对所述测试信息中的认证对象信息进行判断以得到认 证对象判断结果, 包括:
根据预设的认证判断规则对所述认证对象信息中的目标认证对象是否 为企业进行判断以得到目标对象判断结果;
根据预设的认证判断规则对所述认证对象信息中是否包含代理人进行 判断以得到代理人判断结果;
将所述目标对象判断结果及所述代理人判断结果进行整合以得到认证 对象判断结果。
[权利要求 3] 根据权利要求 1所述的自动化测试方法, 其特征在于, 所述根据预设 的信息认证流程及所述认证对象判断结果对所述待认证信息进行认证 以得到是否通过的认证结果, 包括:
根据所述信息认证流程及所述认证对象判断结果向对应的信息认证接 口发送与待认证信息相对应的认证请求信息; 获取所述信息认证接口根据所述认证请求信息反馈的接口认证信息; 根据所述接口认证信息对所述待认证信息进行认证以得到认证结果。
[权利要求 4] 根据权利要求 1所述的自动化测试方法, 其特征在于, 所述获取预设 工具库中与所述配置文件相对应的开通工具并通过所述开通工具测试 相对应的服务接口以将所述服务接口的返回信息作为测试结果, 包括 根据所述配置文件中的开通工具编号获取预设工具库中与所述开通工 具编号相对应的目标开通工具;
执行所述目标开通工具以测试相对应的服务接口并将所述服务接口所 反馈的返回信息作为测试结果。
[权利要求 5] 根据权利要求 1所述的自动化测试方法, 其特征在于, 所述获取预设 工具库中与所述配置文件相对应的开通工具并通过所述开通工具测试 相对应的服务接口以将所述服务接口的返回信息作为测试结果之后, 还包括:
通过预设的接口清空工具将与所述开通工具相对应的服务接口进行清 空。
[权利要求 6] 一种自动化测试装置, 其特征在于, 包括:
注册登录测试单元, 用于根据预设的配置文件中的注册信息及登录信 息进行注册登录测试以得到注册登录测试结果; 注册登录测试结果发送单元, 用于若所述注册登录测试结果为通过, 将所述注册登录测试结果发送至用户并接收所述用户根据所述注册登 录测试结果反馈的测试信息;
认证对象判断单元, 用于根据预设的认证判断规则对所述测试信息中 的认证对象信息进行判断以得到认证对象判断结果;
待认证信息获取单元, 用于获取所述配置文件中与所述认证对象判断 结果相对应的待认证彳習息;
信息认证单元, 用于根据预设的信息认证流程及所述认证对象判断结 果对所述待认证信息进行认证以得到是否通过的认证结果; 服务接口测试单元, 用于若所述认证结果为通过, 获取预设工具库中 与所述配置文件相对应的开通工具并通过所述开通工具测试相对应的 服务接口以将所述服务接口的返回信息作为测试结果。
[权利要求 7] 根据权利要求 6所述的自动化测试装置, 其特征在于, 所述认证对象 判断单元, 包括:
目标认证对象判断单元, 用于根据预设的认证判断规则对所述认证对 象信息中的目标认证对象是否为企业进行判断以得到目标对象判断结 果;
代理人判断单元, 用于根据预设的认证判断规则对所述认证对象信息 中是否包含代理人进行判断以得到代理人判断结果;
判断结果获取单元, 用于将所述目标对象判断结果及所述代理人判断 结果进行整合以得到认证对象判断结果。
[权利要求 8] 根据权利要求 6所述的自动化测试装置, 其特征在于, 所述信息认证 单元, 包括:
认证请求信息发送单元, 用于根据预设信息认证流程及所述认证对象 判断结果向对应的信息认证接口发送与待认证信息相对应的认证请求 信息;
接口认证信息获取单元, 用于获取所述信息认证接口根据所述认证请 求信息反馈的接口认证信息;
认证结果获取单元, 用于根据所述接口认证信息对所述待认证信息进 行认证以得到认证结果。
[权利要求 9] 根据权利要求 6所述的自动化测试装置, 其特征在于, 所述服务接口 测试单元, 包括:
开通工具获取单元, 用于根据所述配置文件中的开通工具编号获取预 设工具库中与所述开通工具编号相对应的目标开通工具;
测试结果获取单元, 用于执行所述目标开通工具以测试相对应的服务 接口并将所述服务接口所反馈的返回信息作为测试结果。
[权利要求 10] 根据权利要求 6所述的自动化测试装置, 其特征在于, 所述装置还包 括:
服务接口清空单元, 用于通过预设的接口清空工具将与所述开通工具 相对应的服务接口进行清空。
[权利要求 11] 一种计算机设备, 包括存储器、 处理器以及存储在所述存储器中并可 在所述处理器上运行的计算机可读指令, 其特征在于, 所述处理器执 行所述计算机可读指令时实现如下步骤:
根据预设的配置文件中的注册信息及登录信息进行注册登录测试以得 到注册登录测试结果;
若所述注册登录测试结果为通过, 将所述注册登录测试结果发送至用 户并接收所述用户根据所述注册登录测试结果反馈的测试信息; 根据预设的认证判断规则对所述测试信息中的认证对象信息进行判断 以得到认证对象判断结果;
获取所述配置文件中与所述认证对象判断结果相对应的待认证信息; 根据预设的信息认证流程及所述认证对象判断结果对所述待认证信息 进行认证以得到是否通过的认证结果;
若所述认证结果为通过, 获取预设工具库中与所述配置文件相对应的 开通工具并通过所述开通工具测试相对应的服务接口以将所述服务接 口的返回信息作为测试结果。
[权利要求 12] 根据权利要求 11所述的计算机设备, 其特征在于, 所述处理器执行所 述计算机可读指令时还实现如下步骤:
根据预设的认证判断规则对所述认证对象信息中的目标认证对象是否 为企业进行判断以得到目标对象判断结果;
根据预设的认证判断规则对所述认证对象信息中是否包含代理人进行 判断以得到代理人判断结果;
将所述目标对象判断结果及所述代理人判断结果进行整合以得到认证 对象判断结果。
[权利要求 13] 根据权利要求 11所述的计算机设备, 其特征在于, 所述处理器执行所 述计算机可读指令时还实现如下步骤: 根据所述信息认证流程及所述认证对象判断结果向对应的信息认证接 口发送与待认证信息相对应的认证请求信息;
获取所述信息认证接口根据所述认证请求信息反馈的接口认证信息; 根据所述接口认证信息对所述待认证信息进行认证以得到认证结果。
[权利要求 14] 根据权利要求 11所述的计算机设备, 其特征在于, 所述处理器执行所 述计算机可读指令时还实现如下步骤:
根据所述配置文件中的开通工具编号获取预设工具库中与所述开通工 具编号相对应的目标开通工具;
执行所述目标开通工具以测试相对应的服务接口并将所述服务接口所 反馈的返回信息作为测试结果。
[权利要求 15] 根据权利要求 11所述的计算机设备, 其特征在于, 所述处理器执行所 述计算机可读指令时还实现如下步骤:
通过预设的接口清空工具将与所述开通工具相对应的服务接口进行清 空。
[权利要求 16] —种计算机可读存储介质, 所述计算机非易失性可读存储介质存储有 计算机可读指令, 其特征在于, 所述计算机可读指令被处理器执行时 实现如下步骤:
根据预设的配置文件中的注册信息及登录信息进行注册登录测试以得 到注册登录测试结果;
若所述注册登录测试结果为通过, 将所述注册登录测试结果发送至用 户并接收所述用户根据所述注册登录测试结果反馈的测试信息; 根据预设的认证判断规则对所述测试信息中的认证对象信息进行判断 以得到认证对象判断结果;
获取所述配置文件中与所述认证对象判断结果相对应的待认证信息; 根据预设的信息认证流程及所述认证对象判断结果对所述待认证信息 进行认证以得到是否通过的认证结果;
若所述认证结果为通过, 获取预设工具库中与所述配置文件相对应的 开通工具并通过所述开通工具测试相对应的服务接口以将所述服务接 口的返回信息作为测试结果。
[权利要求 17] 根据权利要求 16所述的计算机可读存储介质, 其特征在于, 所述计算 机可读指令被处理器执行时还实现如下步骤:
根据预设的认证判断规则对所述认证对象信息中的目标认证对象是否 为企业进行判断以得到目标对象判断结果;
根据预设的认证判断规则对所述认证对象信息中是否包含代理人进行 判断以得到代理人判断结果;
将所述目标对象判断结果及所述代理人判断结果进行整合以得到认证 对象判断结果。
[权利要求 18] 根据权利要求 16所述的计算机可读存储介质, 其特征在于, 所述计算 机可读指令被处理器执行时还实现如下步骤:
根据所述信息认证流程及所述认证对象判断结果向对应的信息认证接 口发送与待认证信息相对应的认证请求信息;
获取所述信息认证接口根据所述认证请求信息反馈的接口认证信息; 根据所述接口认证信息对所述待认证信息进行认证以得到认证结果。
[权利要求 19] 根据权利要求 16所述的计算机可读存储介质, 其特征在于, 所述计算 机可读指令被处理器执行时还实现如下步骤:
根据所述配置文件中的开通工具编号获取预设工具库中与所述开通工 具编号相对应的目标开通工具;
执行所述目标开通工具以测试相对应的服务接口并将所述服务接口所 反馈的返回信息作为测试结果。
[权利要求 20] 根据权利要求 16所述的计算机可读存储介质, 其特征在于, 所述计算 机可读指令被处理器执行时还实现如下步骤:
通过预设的接口清空工具将与所述开通工具相对应的服务接口进行清 空。
PCT/CN2019/122451 2019-04-15 2019-12-02 自动化测试方法、装置、计算机设备及存储介质 WO2020211391A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910300607.4A CN110175111A (zh) 2019-04-15 2019-04-15 自动化测试方法、装置、计算机设备及存储介质
CN201910300607.4 2019-04-15

Publications (1)

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

Family

ID=67689545

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/122451 WO2020211391A1 (zh) 2019-04-15 2019-12-02 自动化测试方法、装置、计算机设备及存储介质

Country Status (2)

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

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110175111A (zh) * 2019-04-15 2019-08-27 深圳壹账通智能科技有限公司 自动化测试方法、装置、计算机设备及存储介质
CN110532151A (zh) * 2019-08-30 2019-12-03 浪潮商用机器有限公司 一种监测工具的自动运行方法、装置、设备及存储介质

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 (zh) * 2014-08-13 2014-11-05 广东电网公司信息中心 一种自动生成测试数据的方法
CN108763070A (zh) * 2018-05-16 2018-11-06 北京金山云网络技术有限公司 测试数据的生成方法、装置及电子设备
CN110175111A (zh) * 2019-04-15 2019-08-27 深圳壹账通智能科技有限公司 自动化测试方法、装置、计算机设备及存储介质

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 (zh) * 2014-08-13 2014-11-05 广东电网公司信息中心 一种自动生成测试数据的方法
CN108763070A (zh) * 2018-05-16 2018-11-06 北京金山云网络技术有限公司 测试数据的生成方法、装置及电子设备
CN110175111A (zh) * 2019-04-15 2019-08-27 深圳壹账通智能科技有限公司 自动化测试方法、装置、计算机设备及存储介质

Also Published As

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

Similar Documents

Publication Publication Date Title
TWI780047B (zh) 身份認證方法、裝置和系統
US9525684B1 (en) Device-specific tokens for authentication
US20210294890A1 (en) Methods, mediums, and systems for establishing and using security questions
CA2923431C (en) Network connection automation
WO2016062002A1 (zh) 连接管理方法及装置、电子设备
US8701199B1 (en) Establishing a trusted session from a non-web client using adaptive authentication
WO2016165536A1 (zh) 一种身份验证方法和设备
CN109922035B (zh) 密码重置的方法、请求端和校验端
US8856892B2 (en) Interactive authentication
US20100100950A1 (en) Context-based adaptive authentication for data and services access in a network
US8191123B2 (en) Provisioning a network appliance
US20110225641A1 (en) Token Request Troubleshooting
US20090113528A1 (en) Techniques for authentication via network connections
WO2016062204A1 (zh) 一种可信终端验证方法、装置
CN111880852B (zh) 操作***初始化方法、***、计算机设备及存储介质
CN112055017B (zh) 单一账号多应用统一登录方法、装置及计算机设备
WO2020211391A1 (zh) 自动化测试方法、装置、计算机设备及存储介质
KR20180027323A (ko) 솔리드 스테이트 드라이브들에 대한 중요 동작들을 인증하기 위한 시스템 및 방법
TWI296477B (en) Single logon method on a server system and a server system with single logon functionality
CN108156169A (zh) 账号登录验证方法、***及计算机可读存储介质
CN111585954A (zh) 鉴权方法、装置、计算机设备及存储介质
US20110239275A1 (en) Centrally Managed Impersonation
US20230306103A1 (en) Pre-registration of authentication devices
TW202404315A (zh) 用於在雲端服務的多個服務提供者存在之情況下進行單一登入(sso)重定向的系統及方法
TWI661332B (zh) 遠端授權以登入電腦系統的方法

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