[go: up one dir, main page]

CN106354628A - Payment app test method and device thereof - Google Patents

Payment app test method and device thereof Download PDF

Info

Publication number
CN106354628A
CN106354628A CN201610665805.7A CN201610665805A CN106354628A CN 106354628 A CN106354628 A CN 106354628A CN 201610665805 A CN201610665805 A CN 201610665805A CN 106354628 A CN106354628 A CN 106354628A
Authority
CN
China
Prior art keywords
payment
tested
test
channel
result
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201610665805.7A
Other languages
Chinese (zh)
Inventor
陈鹏飞
舒真才
郑凯旋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Millet Payment Technology Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201610665805.7A priority Critical patent/CN106354628A/en
Publication of CN106354628A publication Critical patent/CN106354628A/en
Pending legal-status Critical Current

Links

Classifications

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

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

本公开是关于支付应用的测试方法及装置。该方法包括:接收与待测试支付应用中的待测试支付渠道相应的测试环境信息;接收测试指令;执行所述待测试支付渠道对应的支付测试用例,以模拟用户根据所述预设账户信息在所述待测试支付应用中执行所述所有可操作步骤;根据当前支付结果和所述测试用例对应的基准测试结果是否一致,确定所述待测试支付渠道是否存在故障。该技术方案,可以自动测试待测试支付渠道是否存在故障,使测试人员避免了需要手动地测试该待测试支付渠道,减少了人力资源的消耗,同时这种自动化测试方式也可以有效地缩短测试时长,提高测试结果的准确率和效率。

The present disclosure relates to a testing method and device for a payment application. The method includes: receiving the test environment information corresponding to the payment channel to be tested in the payment application to be tested; receiving test instructions; executing the payment test case corresponding to the payment channel to be tested, so as to simulate the user according to the preset account information in the Perform all the operational steps in the payment application to be tested; determine whether there is a fault in the payment channel to be tested according to whether the current payment result is consistent with the benchmark test result corresponding to the test case. This technical solution can automatically test whether there is a fault in the payment channel to be tested, so that the tester avoids the need to manually test the payment channel to be tested, reduces the consumption of human resources, and this automated test method can also effectively shorten the test time. , improve the accuracy and efficiency of test results.

Description

支付应用的测试方法及装置Method and device for testing payment application

技术领域technical field

本公开涉及测试技术领域,尤其涉及支付应用的测试方法及装置。The present disclosure relates to the technical field of testing, in particular to a testing method and device for payment applications.

背景技术Background technique

目前,在开发完一个能够完成各种支付功能的应用之后,在将该应用发布之前,都需要对该应用进行测试,以确定其各项支付功能是否正常,从而避免后期给用户带来很大不便,但相关技术中的测试都是人工地对银行卡、支付宝、微信等各种支付渠道和充值、消费、提现、转账等各种支付产品进行测试,这样大大地浪费了人力资源,整体的测试时间也比较长,且不同支付渠道所需测试的内容及用例大体相同,因而会导致很多无用功。At present, after developing an application that can complete various payment functions, before releasing the application, it is necessary to test the application to determine whether its various payment functions are normal, so as to avoid causing great inconvenience to users in the later stage. Inconvenient, but the tests in related technologies are all manually tested on various payment channels such as bank cards, Alipay, WeChat, and various payment products such as recharge, consumption, cash withdrawal, and transfer, which greatly wastes human resources. The test time is also relatively long, and the content and use cases required to be tested by different payment channels are roughly the same, which will lead to a lot of useless work.

发明内容Contents of the invention

本公开实施例提供了支付应用的测试方法及装置。所述技术方案如下:Embodiments of the present disclosure provide a testing method and device for a payment application. Described technical scheme is as follows:

根据本公开实施例的第一方面,提供了一种支付应用的测试方法,包括:According to the first aspect of the embodiments of the present disclosure, a payment application testing method is provided, including:

接收与待测试支付应用中的待测试支付渠道相应的测试环境信息,其中,所述测试环境信息包括:预设账户信息和所述待测试支付渠道对应的支付测试用例,且所述支付测试用例用于记录根据所述预设账户信息在所述待测试支付应用中可执行的与所述待测试支付渠道相关的所有可操作步骤;Receive test environment information corresponding to the payment channel to be tested in the payment application to be tested, wherein the test environment information includes: preset account information and a payment test case corresponding to the payment channel to be tested, and the payment test case For recording all operational steps related to the payment channel to be tested that can be executed in the payment application to be tested according to the preset account information;

接收测试指令;Receive test instructions;

执行所述待测试支付渠道对应的支付测试用例,以模拟用户根据所述预设账户信息在所述待测试支付应用中执行所述所有可操作步骤;Executing the payment test case corresponding to the payment channel to be tested to simulate the user performing all the operational steps in the payment application to be tested according to the preset account information;

根据当前支付结果和所述测试用例对应的基准测试结果是否一致,确定所述待测试支付渠道是否存在故障。According to whether the current payment result is consistent with the benchmark test result corresponding to the test case, it is determined whether there is a fault in the payment channel to be tested.

在一个实施例中,所述根据当前支付结果和所述测试用例对应的基准测试结果是否一致,确定所述待测试支付渠道是否存在故障,包括:In one embodiment, determining whether there is a fault in the payment channel to be tested according to whether the current payment result is consistent with the benchmark test result corresponding to the test case includes:

当所述当前支付结果与所述基准测试结果相一致时,确定所述待测试支付渠道不存在故障。When the current payment result is consistent with the benchmark test result, it is determined that there is no fault in the payment channel to be tested.

在一个实施例中,所述根据当前支付结果和所述测试用例对应的基准测试结果是否一致,确定所述待测试支付渠道是否存在故障,包括:In one embodiment, determining whether there is a fault in the payment channel to be tested according to whether the current payment result is consistent with the benchmark test result corresponding to the test case includes:

当所述当前支付结果与所述基准测试结果不一致时,确定待测试支付方式存在故障;When the current payment result is inconsistent with the benchmark test result, it is determined that there is a fault in the payment method to be tested;

提示故障信息。Prompt fault information.

在一个实施例中,所述方法还包括:In one embodiment, the method also includes:

在满足预设执行条件时,重新执行所述支付测试用例或者执行根据所述当前支付结果修改的所述支付测试用例,直至所述支付测试用例的当前支付结果与所述基准测试结果相一致时,确定所述待测试支付渠道不存在故障,When the preset execution condition is met, re-execute the payment test case or execute the payment test case modified according to the current payment result until the current payment result of the payment test case is consistent with the benchmark test result , to determine that there is no fault in the payment channel to be tested,

其中,所述预设执行条件包括以下至少一项条件:Wherein, the preset execution conditions include at least one of the following conditions:

监测到所述支付测试用例或者所述待测试支付渠道对应的程序被修改;It is monitored that the payment test case or the program corresponding to the payment channel to be tested is modified;

接收到对所述待测试支付渠道重新进行测试的测试指令;receiving a test instruction to re-test the payment channel to be tested;

当前时间达到重新测试所述待测试支付渠道的预设测试时间。The current time reaches the preset test time for retesting the payment channel to be tested.

在一个实施例中,所述方法还包括:In one embodiment, the method also includes:

在向所述待测试支付应用中添加新的支付渠道后,接收与所述新的支付渠道相应的测试环境信息。After adding a new payment channel to the payment application to be tested, receiving test environment information corresponding to the new payment channel.

在一个实施例中,所述方法还包括:In one embodiment, the method also includes:

在向所述待测试支付应用中添加新的支付产品后,接收所述新的支付产品在各待测试支付渠道下的测试环境信息;After adding a new payment product to the payment application to be tested, receiving the test environment information of the new payment product under each payment channel to be tested;

获取与所述新的支付产品相应的基准测试结果。Obtain benchmark results corresponding to the new payment product.

根据本公开实施例的第二方面,还提供一种支付应用的测试装置,包括:According to the second aspect of the embodiments of the present disclosure, there is also provided a payment application testing device, including:

部署模块,用于接收与待测试支付应用中的待测试支付渠道相应的测试环境信息,其中,所述测试环境信息包括:预设账户信息和所述待测试支付渠道对应的支付测试用例,且所述支付测试用例用于记录根据所述预设账户信息在所述待测试支付应用中可执行的与所述待测试支付渠道相关的所有可操作步骤;A deployment module, configured to receive test environment information corresponding to a payment channel to be tested in a payment application to be tested, wherein the test environment information includes: preset account information and a payment test case corresponding to the payment channel to be tested, and The payment test case is used to record all operable steps related to the payment channel to be tested that can be executed in the payment application to be tested according to the preset account information;

控制模块,用于接收测试指令,执行所述待测试支付渠道对应的支付测试用例,以模拟用户根据所述预设账户信息在所述待测试支付应用中执行所述所有可操作步骤;A control module, configured to receive a test instruction, and execute a payment test case corresponding to the payment channel to be tested, so as to simulate the user performing all the operational steps in the payment application to be tested according to the preset account information;

验证模块,用于根据当前支付结果和所述测试用例对应的基准测试结果是否一致,确定所述待测试支付渠道是否存在故障。The verification module is configured to determine whether there is a fault in the payment channel to be tested according to whether the current payment result is consistent with the benchmark test result corresponding to the test case.

在一个实施例中,所述验证模块包括:In one embodiment, the verification module includes:

第一确定子模块,用于当所述当前支付结果与所述基准测试结果相一致时,确定所述待测试支付渠道不存在故障。The first determining submodule is configured to determine that there is no fault in the payment channel to be tested when the current payment result is consistent with the benchmark test result.

在一个实施例中,所述验证模块包括:In one embodiment, the verification module includes:

第二确定子模块,用于当所述当前支付结果与所述基准测试结果不一致时,确定所述待测试支付渠道存在故障;The second determining submodule is used to determine that there is a fault in the payment channel to be tested when the current payment result is inconsistent with the benchmark test result;

提示子模块,用于提示故障信息。Prompt sub-module, used to prompt fault information.

在一个实施例中,所述装置还包括:In one embodiment, the device also includes:

执行模块,用于在满足预设执行条件时,重新执行所述支付测试用例或者执行根据所述当前支付结果修改的所述支付测试用例,直至所述支付测试用例的当前支付结果与所述基准测试结果相一致时,确定所述待测试支付渠道不存在故障,An execution module, configured to re-execute the payment test case or execute the payment test case modified according to the current payment result when the preset execution condition is satisfied, until the current payment result of the payment test case is consistent with the benchmark When the test results are consistent, it is determined that there is no fault in the payment channel to be tested,

其中,所述预设执行条件包括以下至少一项条件:Wherein, the preset execution conditions include at least one of the following conditions:

监测到所述支付测试用例或者所述待测试支付渠道对应的程序被修改;It is monitored that the payment test case or the program corresponding to the payment channel to be tested is modified;

接收到对所述待测试支付渠道重新进行测试的测试指令;receiving a test instruction to re-test the payment channel to be tested;

当前时间达到重新测试所述待测试支付渠道的预设测试时间。The current time reaches the preset test time for retesting the payment channel to be tested.

在一个实施例中,所述装置还包括:In one embodiment, the device also includes:

第一接收模块,用于在向所述待测试支付应用中添加新的支付渠道后,接收与所述新的支付渠道相应的测试环境信息。The first receiving module is configured to receive test environment information corresponding to the new payment channel after adding the new payment channel to the payment application to be tested.

在一个实施例中,所述装置还包括:In one embodiment, the device also includes:

第二接收模块,用于在向所述待测试支付应用中添加新的支付产品后,接收所述新的支付产品在各待测试支付渠道下的测试环境信息;The second receiving module is configured to receive the test environment information of the new payment product under each payment channel to be tested after adding the new payment product to the payment application to be tested;

获取模块,用于获取与所述新的支付产品相应的基准测试结果。An acquisition module, configured to acquire benchmark test results corresponding to the new payment product.

根据本公开实施例的第三方面,提供了一种支付应用的测试装置,包括:According to a third aspect of the embodiments of the present disclosure, a payment application testing device is provided, including:

处理器;processor;

用于存储处理器可执行指令的存储器;memory for storing processor-executable instructions;

其中,所述处理器被配置为:Wherein, the processor is configured as:

接收与待测试支付应用中的待测试支付渠道相应的测试环境信息,其中,所述测试环境信息包括:预设账户信息和所述待测试支付渠道对应的支付测试用例,且所述支付测试用例用于记录根据所述预设账户信息在所述待测试支付应用中可执行的与所述待测试支付渠道相关的所有可操作步骤;Receive test environment information corresponding to the payment channel to be tested in the payment application to be tested, wherein the test environment information includes: preset account information and a payment test case corresponding to the payment channel to be tested, and the payment test case For recording all operational steps related to the payment channel to be tested that can be executed in the payment application to be tested according to the preset account information;

接收测试指令;Receive test instructions;

执行所述待测试支付渠道对应的支付测试用例,以模拟用户根据所述预设账户信息在所述待测试支付应用中执行所述所有可操作步骤;Executing the payment test case corresponding to the payment channel to be tested to simulate the user performing all the operational steps in the payment application to be tested according to the preset account information;

根据当前支付结果和所述测试用例对应的基准测试结果是否一致,确定所述待测试支付渠道是否存在故障。According to whether the current payment result is consistent with the benchmark test result corresponding to the test case, it is determined whether there is a fault in the payment channel to be tested.

本公开的实施例提供的技术方案可以包括以下有益效果:The technical solutions provided by the embodiments of the present disclosure may include the following beneficial effects:

在接收与待测试支付应用中的待测试支付渠道相应的测试环境信息之后,若接收到测试指令,可以自动执行该支付测试用例,并根据该支付测试用例实际的当前支付结果和该支付测试用例对应的基准测试结果是否一致,可以准确确定该待测试支付渠道是否存在故障,而这种自动测试待测试支付渠道是否存在故障测试方法,使测试人员避免了需要手动地测试该待测试支付渠道,减少了人力资源的消耗,同时这种自动化测试方式也可以有效地缩短测试时长,提高测试结果的准确率和效率。After receiving the test environment information corresponding to the payment channel to be tested in the payment application to be tested, if a test instruction is received, the payment test case can be automatically executed, and according to the actual current payment result of the payment test case and the payment test case Whether the corresponding benchmark test results are consistent can accurately determine whether there is a fault in the payment channel to be tested, and this automatic test method for testing whether there is a fault in the payment channel to be tested enables testers to avoid the need to manually test the payment channel to be tested. It reduces the consumption of human resources, and at the same time, this automated testing method can also effectively shorten the test duration and improve the accuracy and efficiency of test results.

本公开的实施例提供的技术方案,应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本公开。The technical solutions provided by the embodiments of the present disclosure, it should be understood that the above general description and the following detailed description are only exemplary and explanatory, and cannot limit the present disclosure.

附图说明Description of drawings

此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本公开的实施例,并与说明书一起用于解释本公开的原理。The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description serve to explain the principles of the disclosure.

图1是根据一示例性实施例示出的一种支付应用的测试方法的流程图。Fig. 1 is a flowchart showing a method for testing a payment application according to an exemplary embodiment.

图2A是根据一示例性实施例示出的另一种支付应用的测试方法的流程图。Fig. 2A is a flow chart showing another payment application testing method according to an exemplary embodiment.

图2B是根据一示例性实施例示出的又一种支付应用的测试方法的流程图。Fig. 2B is a flow chart showing another method for testing a payment application according to an exemplary embodiment.

图3是根据一示例性实施例示出的一种支付应用的测试装置的框图。Fig. 3 is a block diagram showing a test device for a payment application according to an exemplary embodiment.

图4是根据一示例性实施例示出的另一种支付应用的测试装置的框图。Fig. 4 is a block diagram of another payment application testing device according to an exemplary embodiment.

图5是根据一示例性实施例示出的又一种支付应用的测试装置的框图。Fig. 5 is a block diagram of another payment application testing device according to an exemplary embodiment.

图6是根据一示例性实施例示出的再一种支付应用的测试装置的框图。Fig. 6 is a block diagram of another payment application testing device according to an exemplary embodiment.

图7是根据一示例性实施例示出的再一种支付应用的测试装置的框图。Fig. 7 is a block diagram of another payment application testing device according to an exemplary embodiment.

图8是根据一示例性实施例示出的再一种支付应用的测试装置的框图。Fig. 8 is a block diagram of another payment application testing device according to an exemplary embodiment.

图9是根据一示例性实施例示出的适用于支付应用的测试装置的框图。Fig. 9 is a block diagram showing a test device suitable for payment applications according to an exemplary embodiment.

具体实施方式detailed description

这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本公开相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本公开的一些方面相一致的装置和方法的例子。Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numerals in different drawings refer to the same or similar elements unless otherwise indicated. The implementations described in the following exemplary examples do not represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatuses and methods consistent with aspects of the present disclosure as recited in the appended claims.

目前,在开发完一个能够完成各种支付功能的应用之后,在将该应用发布之前,都需要对该应用进行测试,以确定其各项支付功能是否正常,从而避免后期给用户带来很大不便,但相关技术中的测试都是人工地对银行卡、支付宝、微信等各种支付渠道和充值、消费、提现、转账等各种支付产品进行测试,这样大大地浪费了人力资源,整体的测试时间也比较长,且不同支付渠道所需测试的内容及用例大体相同,因而会导致很多无用功。At present, after developing an application that can complete various payment functions, before releasing the application, it is necessary to test the application to determine whether its various payment functions are normal, so as to avoid causing great inconvenience to users in the later stage. Inconvenient, but the tests in related technologies are all manually tested on various payment channels such as bank cards, Alipay, WeChat, and various payment products such as recharge, consumption, cash withdrawal, and transfer, which greatly wastes human resources. The test time is also relatively long, and the content and use cases required to be tested by different payment channels are roughly the same, which will lead to a lot of useless work.

为了解决上述技术问题,本公开实施例提供了一种支付应用的测试方法,该方法可用于支付应用的测试程序、系统或装置中,如图1所示,该方法包括步骤S101至步骤S104:In order to solve the above technical problems, an embodiment of the present disclosure provides a payment application testing method, which can be used in a payment application testing program, system or device, as shown in Figure 1, the method includes steps S101 to S104:

在步骤S101中,接收与待测试支付应用中的待测试支付渠道相应的测试环境信息,其中,测试环境信息包括:预设账户信息和待测试支付渠道对应的支付测试用例,且支付测试用例用于记录根据预设账户信息在待测试支付应用中可执行的与待测试支付渠道相关的所有可操作步骤。In step S101, the test environment information corresponding to the payment channel to be tested in the payment application to be tested is received, wherein the test environment information includes: the default account information and the payment test case corresponding to the payment channel to be tested, and the payment test case uses To record all operational steps related to the payment channel to be tested that can be executed in the payment application to be tested according to the preset account information.

待测试支付应用可以是开发出的具有支付功能的任何应用程序,而待测试支付渠道可以是微信支付渠道、支付宝支付渠道、银行卡支付渠道或者亲密付支付渠道等各种支付渠道。The payment application to be tested can be any application developed with payment functions, and the payment channel to be tested can be various payment channels such as WeChat payment channel, Alipay payment channel, bank card payment channel or intimate payment payment channel.

其次,预设账户信息可以是模拟出的用于登陆该待测试支付应用的若干个登陆账户信息,模拟出的该登陆账户信息对应的用户的联系方式信息,以及模拟出的与该登陆账户信息相绑定的支付宝账户、银行卡账户、微信账户、公交卡账户等各种能够使该待测试支付应用完成支付功能的支付账户。Secondly, the preset account information can be simulated login account information for logging into the payment application to be tested, the simulated contact information of the user corresponding to the login account information, and the simulated login account information. Binding Alipay account, bank card account, WeChat account, bus card account and other payment accounts that enable the payment application under test to complete the payment function.

另外,支付测试用例是用于测试待测试支付渠道是否故障的自动化测试脚本,而为了使支付测试用例能够对该待测试支付渠道进行全面的自动化测试,该支付测试用例的覆盖范围应该尽可能的多,例如:该支付测试用例可以包括:打开并登陆该待测试支付应用,进而在待测试支付渠道下针对消费、转账、充值等各种已有的支付产品完成支付操作的步骤,当然,该支付测试用例还可以包括在同一待测试支付渠道下使用不同的银行卡等不同支付账户完成对上述已有支付产品的支付操作步骤。In addition, the payment test case is an automated test script for testing whether the payment channel to be tested is faulty, and in order to enable the payment test case to perform a comprehensive automated test on the payment channel to be tested, the coverage of the payment test case should be as large as possible For example, the payment test case may include: opening and logging into the payment application to be tested, and then completing the payment operation steps for various existing payment products such as consumption, transfer, and recharge under the payment channel to be tested. Of course, the The payment test case may also include using different payment accounts such as different bank cards to complete the payment operation steps for the above-mentioned existing payment products under the same payment channel to be tested.

最后,测试环境信息包括但不限于预设账户信息和待测试支付渠道对应的支付测试用例,例如:还可以包括准备数据库(其中,准备数据库的具体步骤可以是:删除之前使用DDL(Data Definition Language数据定义语言)创建的用于存储各种历史数据的数据存储表,使用DDL重新创建用于存储测试环境信息的新的存储表,并使用DML(DataManipulation Language数据操控语言)将该测试环境信息加载至已创建的新的存储表中等),甚至还包括:用于模拟向用户发送反馈信息的程序,如用于模拟银行向用户发送转账信息或者模拟银行向用户发送所支付的资金的程序,或者是用于模拟运营商向用户发送充值额度的程序等。Finally, the test environment information includes but is not limited to the default account information and the payment test case corresponding to the payment channel to be tested, for example: it can also include preparing the database (wherein, the specific steps of preparing the database can be: use DDL (Data Definition Language) before deleting Data Definition Language) to create a data storage table for storing various historical data, use DDL to recreate a new storage table for storing test environment information, and use DML (Data Manipulation Language Data Manipulation Language) to load the test environment information to the created new storage table, etc.), and even include: a program for simulating sending feedback information to the user, such as a program for simulating the bank sending the transfer information to the user or simulating the bank sending the paid funds to the user, or It is a program for simulating the operator sending the recharge amount to the user, etc.

在步骤S102中,接收测试指令。In step S102, a test instruction is received.

在步骤S103中,执行待测试支付渠道对应的支付测试用例,以模拟用户根据预设账户信息在待测试支付应用中执行所有可操作步骤。In step S103, the payment test case corresponding to the payment channel to be tested is executed to simulate the user performing all operational steps in the payment application to be tested according to preset account information.

在接收到测试指令时,通过执行该待测试支付渠道对应的支付测试用例,可以模拟用户根据该预设账户信息在待测试应用上执行与该待测试支付方式相应的所有可操作步骤,即模拟用户在该待测试应用中通过该待测试支付渠道完成消费、转账、充值等一系列支付操作。When the test instruction is received, by executing the payment test case corresponding to the payment channel to be tested, it can be simulated that the user performs all the operational steps corresponding to the payment method to be tested on the application to be tested according to the preset account information, that is, the simulation In the application to be tested, the user completes a series of payment operations such as consumption, transfer, and recharge through the payment channel to be tested.

在步骤S104中,根据当前支付结果和测试用例对应的基准测试结果是否一致,确定待测试支付渠道是否存在故障。In step S104, according to whether the current payment result is consistent with the benchmark test result corresponding to the test case, it is determined whether there is a fault in the payment channel to be tested.

根据该支付测试用例实际的当前支付结果和该支付测试用例对应的基准测试结果是否一致,可以准确确定该待测试支付渠道是否存在故障,而这种自动测试待测试支付渠道是否存在故障测试方法,使测试人员避免了需要手动地测试该待测试支付渠道,减少了人力资源的消耗,同时这种自动化测试方式也可以有效地缩短测试时长,提高测试结果的准确率和效率。According to whether the actual current payment result of the payment test case is consistent with the benchmark test result corresponding to the payment test case, it can be accurately determined whether there is a fault in the payment channel to be tested, and this automatic test method for testing whether there is a fault in the payment channel to be tested, It avoids the need for testers to manually test the payment channel to be tested, reducing the consumption of human resources. At the same time, this automated testing method can also effectively shorten the test duration and improve the accuracy and efficiency of test results.

另外,由于测试人员最后根据支付结果与基准测试结果是否一致就能够确定出待测试支付渠道是否存在故障,而不需要查看支付操作的中间环节,因而,使得本公开的测试逻辑更加简单,测试效率更高。In addition, because testers can finally determine whether there is a fault in the payment channel to be tested according to whether the payment result is consistent with the benchmark test result, there is no need to check the intermediate link of the payment operation. Therefore, the test logic of the present disclosure is simpler and the test efficiency is improved. higher.

在一个实施例中,上述图1中的步骤S104可被执行为:In one embodiment, the above step S104 in FIG. 1 may be executed as:

当当前支付结果与基准测试结果相一致时,确定待测试支付渠道不存在故障。When the current payment result is consistent with the benchmark test result, it is determined that there is no fault in the payment channel to be tested.

当该当前支付结果与基准测试结果相一致时,说明自动化测试结果与预期的基准测试结果相同,因而,可以自动确定待测试支付渠道不存在故障,即该待测试应用中待测试支付渠道对应程序、所使用的端口等各种信息均无误。When the current payment result is consistent with the benchmark test result, it means that the automated test result is the same as the expected benchmark test result. Therefore, it can be automatically determined that there is no fault in the payment channel to be tested, that is, the corresponding program of the payment channel to be tested in the application to be tested , the port used and other information are correct.

在一个实施例中,上述图1中的步骤S104还可被执行为:In one embodiment, the above step S104 in FIG. 1 can also be executed as:

当当前支付结果与基准测试结果不一致时,确定待测试支付渠道存在故障。When the current payment result is inconsistent with the benchmark test result, it is determined that there is a fault in the payment channel to be tested.

该支付测试用例的当前支付结果与基准测试结果不一致表示该支付测试用例的当前支付结果与预期的基准测试结果不同,例如:当支付测试用例为登陆该待测试应用,搜索A产品,选中B价格的A产品,并使用支付宝支付渠道中的XX银行账户购买该A产品时,基准测试结果就是使用支付宝成功购买了A产品,且支付宝和XX银行分别会反馈一条消费B元的信息,因而,在XX银行账户中的余额不小于B元的基础上,如果支付测试用例的自动化测试结果(即当前支付结果)为无法成功购买该B价格的A产品,或者未收到模拟出的支付宝程序或者XX银行支付程序反馈的消费B元的信息,则说明该支付测试用例的当前支付结果与该基准测试结果不一致。The current payment result of the payment test case is inconsistent with the benchmark test result, which means that the current payment result of the payment test case is different from the expected benchmark test result, for example: when the payment test case is to log in to the application to be tested, search for product A, select price B When using the XX bank account in the Alipay payment channel to purchase the A product, the benchmark test result is that the A product is successfully purchased using Alipay, and Alipay and XX bank will each feed back a consumption of B yuan. Therefore, in On the basis that the balance in the XX bank account is not less than B yuan, if the automated test result of the payment test case (that is, the current payment result) is that the product A at the price B cannot be successfully purchased, or the simulated Alipay program or XX has not been received The information of spending B yuan fed back by the bank payment program indicates that the current payment result of the payment test case is inconsistent with the benchmark test result.

提示故障信息,其中,故障信息可以包括当前支付结果,还可以包括正确的支付结果即基准测试结果。Fault information is prompted, wherein the fault information may include the current payment result, and may also include the correct payment result, that is, the benchmark test result.

当该当前支付结果与预期的基准测试结果不一致时,说明该支付测试用例编写的有问题或者是待测试支付渠道对应的程序本身就有问题因而导致了无法正常地在待测试支付渠道下正确地完成支付,所以,通过提示故障信息可以提示测试人员根据该当前支付结果对该支付测试用例或者该待测试支付渠道对应的程序进行修改。When the current payment result is inconsistent with the expected benchmark test result, it means that there is a problem with the preparation of the payment test case or the program corresponding to the payment channel to be tested has a problem, which leads to the failure to correctly process the payment channel under the test. The payment is completed. Therefore, by prompting the fault information, the tester can be prompted to modify the payment test case or the program corresponding to the payment channel to be tested according to the current payment result.

另外,在提示故障信息时,可以将提示故障信息以日志的形式进行提示,从而方便测试人员通过查看错误日志,分析出问题,即分析出是支付测试用例错误,还是待测试支付渠道对应的程序错误,还是待测试应用中的其他部分的程序错误,而后两种错误是重点要分析的错误,涉及到该待测试应用本身的错误。In addition, when prompting the fault information, the prompt fault information can be prompted in the form of logs, so that it is convenient for testers to analyze the problem by viewing the error log, that is, to analyze whether it is an error in the payment test case or the program corresponding to the payment channel to be tested Errors, or program errors in other parts of the application to be tested, and the latter two types of errors are the errors to be analyzed mainly, and relate to the errors of the application to be tested itself.

在一个实施例中,方法还包括:In one embodiment, the method also includes:

在满足预设执行条件时,重新执行支付测试用例或者执行根据当前支付结果修改的支付测试用例,直至支付测试用例的当前支付结果与基准测试结果相一致时,确定待测试支付渠道不存在故障,When the preset execution conditions are met, re-execute the payment test case or execute the payment test case modified according to the current payment result until the current payment result of the payment test case is consistent with the benchmark test result, and determine that there is no fault in the payment channel to be tested.

其中,预设执行条件包括以下至少一项条件:Among them, the preset execution conditions include at least one of the following conditions:

监测到支付测试用例或者待测试支付渠道对应的程序被修改。It is monitored that the payment test case or the program corresponding to the payment channel to be tested is modified.

接收到对待测试支付渠道重新进行测试的测试指令。Received a test order to retest the payment channel to be tested.

当前时间达到重新测试待测试支付渠道的预设测试时间。The current time reaches the preset test time for retesting the payment channel to be tested.

在满足上述至少一项条件时,说明需要重新对待测试支付渠道进行测试,因而,可以重新执行该支付测试用例或者重新执行测试人员根据该当前支付结果修改的支付测试用例,直至该支付测试用例的当前支付结果与基准测试结果相一致时,可以确定待测试支付渠道不存在故障,以停止对该待测试支付渠道进行重新测试,不再重新执行该支付测试用例或者修改后的支付测试用例。When at least one of the above conditions is met, it means that the payment channel to be tested needs to be tested again. Therefore, the payment test case can be re-executed or the payment test case modified by the tester according to the current payment result can be re-executed until the payment test case is completed. When the current payment result is consistent with the benchmark test result, it can be determined that there is no fault in the payment channel to be tested, so as to stop retesting the payment channel to be tested, and not re-execute the payment test case or the modified payment test case.

如图2A所示,在一个实施例中,上述图1所示的方法还可包括:As shown in Figure 2A, in one embodiment, the above-mentioned method shown in Figure 1 may further include:

在步骤S201中,在向待测试支付应用中添加新的支付渠道后,接收与新的支付渠道相应的测试环境信息。In step S201, after a new payment channel is added to the payment application to be tested, test environment information corresponding to the new payment channel is received.

在向待测试支付应用中添加新的支付渠道后,通过接收与该新的支付渠道相应的测试环境信息,可以通过支付待测试应用中已有的支付产品来对该新的支付渠道进行自动测试。After adding a new payment channel to the payment application to be tested, by receiving the test environment information corresponding to the new payment channel, the new payment channel can be automatically tested by paying for existing payment products in the application to be tested .

其次,与该新的支付渠道相应的测试环境信息可以包括:该新的支付渠道需要使用的新的账户信息和新的支付测试用例,其中,该新的支付测试用例用于记录根据该预设账户信息和/或新的账户信息在该待测试支付应用中可执行的与新的测试支付渠道相关的所有可操作步骤,例如:如果新的测试渠道为XX银行卡且已有的支付产品为充值业务,则新的账户信息就应该是模拟出的一个XX银行卡的卡号,新的支付测试用例就可以记录着使用该XX银行卡的卡号支付该待测试支付应用中的充值产品的操作步骤。Secondly, the test environment information corresponding to the new payment channel may include: new account information and a new payment test case that the new payment channel needs to use, wherein the new payment test case is used to record Account information and/or all operable steps related to the new test payment channel that can be performed in the payment application to be tested by the new account information, for example: if the new test channel is XX bank card and the existing payment product is For recharge business, the new account information should be a simulated XX bank card number, and the new payment test case can record the operation steps of using the XX bank card number to pay for the recharge product in the payment application to be tested .

另外,即便由于不同支付渠道的支付步骤之间存在差异而导致在添加新的支付渠道时,需要重新部署新的测试环境信息,但由于不同支付渠道的支付步骤之间可能还有相同的一些步骤,因而,在测试人员重新部署新的测试环境信息中的新的测试用例时,可以借鉴之前已有的支付测试用例,并根据两种支付渠道之间的差异支付步骤对已有的测试用例进行适应性修改,就可以得到与新增的支付渠道相适配的新的测试用例,从而增强测试用例的兼容性和可扩展性,并减少测试人员的操作和工作复杂度,例如:In addition, even if there is a difference between the payment steps of different payment channels, it is necessary to redeploy new test environment information when adding a new payment channel, but because there may be some same steps between the payment steps of different payment channels , therefore, when testers redeploy new test cases in the new test environment information, they can learn from the existing payment test cases, and carry out the existing test cases according to the difference payment steps between the two payment channels Adaptive modification, you can get new test cases that are compatible with the newly added payment channels, thereby enhancing the compatibility and scalability of test cases, and reducing the complexity of testers' operations and work, for example:

在对相同的支付产品(如充值、消费等)分别使用支付宝和微信两种支付渠道支付时,由于两者的支付操作过程中前面的所有操作步骤都是相同的、而差异仅限于最后选择支付宝支付渠道还是微信支付渠道,因而,支付宝支付渠道对应的测试用例和微信支付渠道的测试用例之间的差异仅限于最后的支付步骤(即:是选择支付宝支付渠道还是微信支付渠道,以及在选择不同的支付渠道之后的一系列操作),因而,这两种支付渠道对应的测试用例就可以相互借鉴并稍作适应性调整即可,从而使得测试人员无需完全重新编写测试用例,这也增强了测试用例的兼容性和可扩展性,并减少测试人员的操作和工作复杂度。When using Alipay and WeChat to pay for the same payment product (such as recharge, consumption, etc.), since all the previous operation steps in the payment operation process of the two are the same, the difference is limited to the final choice of Alipay The payment channel is still the WeChat payment channel. Therefore, the difference between the test cases corresponding to the Alipay payment channel and the WeChat payment channel is limited to the final payment step (that is, whether to choose the Alipay payment channel or the WeChat payment channel, and when choosing different A series of operations after the payment channel), therefore, the test cases corresponding to the two payment channels can learn from each other and make a slight adaptive adjustment, so that the tester does not need to completely rewrite the test case, which also enhances the test Compatibility and scalability of use cases, and reduce the operation and work complexity of testers.

如图2B所示,在一个实施例中,上述图1所示的方法还可包括:As shown in Figure 2B, in one embodiment, the above-mentioned method shown in Figure 1 may further include:

在步骤S202中,在向待测试支付应用中添加新的支付产品后,接收新的支付产品在各待测试支付渠道下的测试环境信息。In step S202, after a new payment product is added to the payment application to be tested, the test environment information of the new payment product under each payment channel to be tested is received.

新的支付产品可以是充值、消费、提现或者转账等各种支付产品,且消费是指在待测试应用中购买各种产品(其中,所能购买的产品包括:商品、车票等各种物品)的支付操作或者是发红包的操作。New payment products can be various payment products such as recharge, consumption, cash withdrawal or transfer, and consumption refers to the purchase of various products in the application to be tested (among them, the products that can be purchased include: commodities, tickets and other items) The payment operation or the operation of sending red envelopes.

在步骤S203中,获取与新的支付产品相应的基准测试结果。In step S203, the benchmark test results corresponding to the new payment product are acquired.

在向待测试支付应用中添加新的支付产品后,通过接收该新的支付产品在各待测试支付渠道下的测试环境信息并获取与新的支付产品相应的基准测试结果,可以根据该新的支付产品在各待测试支付渠道下的测试环境信息对该新的支付产品就行自动化测试,并通过与新的支付产品相应的基准测试结果验证该新的支付产品是否故障。After adding a new payment product to the payment application to be tested, by receiving the test environment information of the new payment product under each payment channel to be tested and obtaining the benchmark test results corresponding to the new payment product, according to the new The test environment information of the payment product under each payment channel to be tested is used for automated testing of the new payment product, and the benchmark test results corresponding to the new payment product are used to verify whether the new payment product is faulty.

其中,新的支付产品在各待测试支付渠道下的测试环境信息可以包括:用于对该新的支付产品在各待测试支付渠道下进行支付测试的新的支付测试用例。Wherein, the test environment information of the new payment product under each payment channel to be tested may include: a new payment test case for performing a payment test on the new payment product under each payment channel to be tested.

另外,测试人员在部署该新的支付测试用例,如果新的支付产品与该待测试支付应用中原有的支付产品之间的支付步骤相差不多,也可根据新的支付产品与该待测试支付应用中原有的支付产品之间的差异支付步骤,对已有的支付测试用例进行适应性修改,从而使得测试人员无需完全重新编写测试用例,以增强测试用例的兼容性和可扩展性,并减少测试人员的操作和工作复杂度。In addition, testers are deploying the new payment test case. If the payment steps between the new payment product and the original payment product in the payment application to be tested are similar, they can also The difference payment steps between the original payment products, adaptive modification of the existing payment test cases, so that the testers do not need to completely rewrite the test cases, to enhance the compatibility and scalability of the test cases, and reduce the test Operation and work complexity of personnel.

另外,由于充值、消费、提现和转账等不同支付产品的资金流动状况不同,如资金流动有正/有负,出现资金流动的账户的类型是不同的,甚至出现资金流动的账户的数目也是不同的,例如:当待测试支付渠道为XX银行的借记卡快捷支付渠道时,在使用XX银行的借记卡为SIM卡A进行充值时,XX银行的借记卡中的资金流动为负,该待测试支付应用中与该借记卡对应的用户余额M中的资金流动为正,扣款步骤完成,接收到借记卡和用户余额M的资金变动情况,紧接着用户余额M的资金流动为负,运营商商户的资金余额流动为正,同时向运营商发起充值请求,运营商响应,完成充值步骤,因而,会再次接收到用户余额M和运营商商户的资金变动情况;而当使用XX银行下的借记卡为模拟出的另一用户在该待测试支付应用中的用户账户N转账时,借记卡中的资金流动为负,用户余额M中的资金流动为正,接收到银行卡和用户余额M的资金变动情况,完成了扣款步骤,紧接着用户余额M的资金流动为负,用户账户N的资金余额流动为正,完成转账步骤,因而,会再次接收到用户余额M和用户余额N的资金变动情况,所以,测试人员在部署基准测试结果时可以根据该新的支付产品下预设账户信息中的资金流动状态制定,当然,在根据该新的支付产品下预设账户信息中的资金流动状态制定完基准测试结果后,为了确保该基准测试结果的准确性和可信性,还可以进一步地人工验证该基准测试结果是否正确,并在验证正确后,才将其用作基准测试结果,以验证该新的支付产品是否故障。In addition, due to the different fund flow status of different payment products such as recharge, consumption, cash withdrawal and transfer, such as positive/negative fund flow, the types of accounts with fund flow are different, and even the number of accounts with fund flow is also different. For example: when the payment channel to be tested is the debit card fast payment channel of XX bank, when the debit card of XX bank is used to recharge SIM card A, the capital flow in the debit card of XX bank is negative, The fund flow in the user balance M corresponding to the debit card in the payment application to be tested is positive, the deduction step is completed, and the fund changes of the debit card and the user balance M are received, and then the fund flow of the user balance M is received negative, the operator’s merchant’s capital balance flow is positive, and at the same time initiates a recharge request to the operator, and the operator responds and completes the recharge step. Therefore, it will receive the user’s balance M and the operator’s capital change again; and when using When the debit card under XX Bank transfers money to the user account N in the payment application to be tested by another simulated user, the capital flow in the debit card is negative, and the capital flow in the user balance M is positive. The fund change of the bank card and user balance M has completed the deduction step, and then the fund flow of the user balance M is negative, and the fund balance flow of the user account N is positive, and the transfer step is completed. Therefore, the user balance will be received again The fund changes of M and user balance N, so when deploying the benchmark test results, testers can formulate according to the fund flow status in the preset account information under the new payment product. After the fund flow status in the account information has been established, in order to ensure the accuracy and credibility of the benchmark test results, it is also possible to further manually verify whether the benchmark test results are correct, and only after the verification is correct will the It is used as a benchmark result to verify that the new payment product is not malfunctioning.

最后,基准测试结果可以使用json((JavaScript Object Notation,是一种轻量级的数据交换格式),yaml(Yet Another Markup Language,另一种标记语言),xml(Extensible Markup Language,可扩展标记语言)等标记语言来描述,以方便兼容更多系统。Finally, the benchmark test results can use json ((JavaScript Object Notation, a lightweight data exchange format), yaml (Yet Another Markup Language, another markup language), xml (Extensible Markup Language, Extensible Markup Language ) and other markup languages to facilitate compatibility with more systems.

对应本公开实施例提供的上述支付应用的测试方法,本公开实施例还提供一种支付应用的测试装置,如图3所示,该装置包括:Corresponding to the above-mentioned payment application testing method provided by the embodiment of the present disclosure, the embodiment of the present disclosure also provides a payment application testing device, as shown in FIG. 3 , the device includes:

部署模块301,被配置为接收与待测试支付应用中的待测试支付渠道相应的测试环境信息,其中,测试环境信息包括:预设账户信息和待测试支付渠道对应的支付测试用例,且支付测试用例被配置为记录根据预设账户信息在待测试支付应用中可执行的与待测试支付渠道相关的所有可操作步骤。The deployment module 301 is configured to receive test environment information corresponding to the payment channel to be tested in the payment application to be tested, wherein the test environment information includes: default account information and payment test cases corresponding to the payment channel to be tested, and the payment test The use case is configured to record all operational steps related to the payment channel to be tested that can be executed in the payment application to be tested according to the preset account information.

控制模块302,被配置为接收测试指令,执行待测试支付渠道对应的支付测试用例,以模拟用户根据预设账户信息在待测试支付应用中执行所有可操作步骤。The control module 302 is configured to receive a test instruction and execute a payment test case corresponding to the payment channel to be tested, so as to simulate the user performing all operational steps in the payment application to be tested according to preset account information.

验证模块303,被配置为根据当前支付结果和测试用例对应的基准测试结果是否一致,确定待测试支付渠道是否存在故障。The verification module 303 is configured to determine whether there is a fault in the payment channel to be tested according to whether the current payment result is consistent with the benchmark test result corresponding to the test case.

根据该支付测试用例实际的当前支付结果和该支付测试用例对应的基准测试结果是否一致,可以准确确定该待测试支付渠道是否存在故障,而这种自动测试待测试支付渠道是否存在故障测试方法,使测试人员避免了需要手动地测试该待测试支付渠道,减少了人力资源的消耗,同时这种自动化测试方式也可以有效地缩短测试时长,提高测试结果的准确率和效率。According to whether the actual current payment result of the payment test case is consistent with the benchmark test result corresponding to the payment test case, it can be accurately determined whether there is a fault in the payment channel to be tested, and this automatic test method for testing whether there is a fault in the payment channel to be tested, It avoids the need for testers to manually test the payment channel to be tested, reducing the consumption of human resources. At the same time, this automated testing method can also effectively shorten the test duration and improve the accuracy and efficiency of test results.

如图4所示,在一个实施例中,上述图3所示的验证模块303可以包括:As shown in FIG. 4, in one embodiment, the above verification module 303 shown in FIG. 3 may include:

第一确定子模块3031,被配置为当当前支付结果与基准测试结果相一致时,确定待测试支付渠道不存在故障。The first determination sub-module 3031 is configured to determine that there is no fault in the payment channel to be tested when the current payment result is consistent with the benchmark test result.

当该当前支付结果与基准测试结果相一致时,说明自动化测试结果与预期的基准测试结果相同,因而,可以自动确定待测试支付渠道不存在故障,即该待测试应用中待测试支付渠道对应程序、所使用的端口等各种信息均无误。When the current payment result is consistent with the benchmark test result, it means that the automated test result is the same as the expected benchmark test result. Therefore, it can be automatically determined that there is no fault in the payment channel to be tested, that is, the corresponding program of the payment channel to be tested in the application to be tested , the port used and other information are correct.

如图5所示,在一个实施例中,上述图3所示的验证模块303可以包括:As shown in FIG. 5, in one embodiment, the above verification module 303 shown in FIG. 3 may include:

第二确定子模块3032,被配置为当当前支付结果与基准测试结果不一致时,确定待测试支付渠道存在故障。The second determination sub-module 3032 is configured to determine that there is a fault in the payment channel to be tested when the current payment result is inconsistent with the benchmark test result.

提示子模块3033,被配置为提示故障信息。The prompting submodule 3033 is configured to prompt fault information.

当该当前支付结果与预期的基准测试结果不一致时,说明该支付测试用例编写的有问题或者是待测试支付渠道对应的程序本身就有问题因而导致了无法正常地在待测试支付渠道下正确地完成支付,所以,通过提示故障信息可以提示测试人员根据该当前支付结果对该支付测试用例或者该待测试支付渠道对应的程序进行修改。When the current payment result is inconsistent with the expected benchmark test result, it means that there is a problem with the preparation of the payment test case or the program corresponding to the payment channel to be tested has a problem, which leads to the failure to correctly process the payment channel under the test. The payment is completed. Therefore, by prompting the fault information, the tester can be prompted to modify the payment test case or the program corresponding to the payment channel to be tested according to the current payment result.

如图6所示,在一个实施例中,上述图3所示的装置还可包括:As shown in Figure 6, in one embodiment, the device shown in Figure 3 above may further include:

执行模块601,被配置为在满足预设执行条件时,重新执行支付测试用例或者执行根据当前支付结果修改的支付测试用例,直至支付测试用例的当前支付结果与基准测试结果相一致时,确定待测试支付渠道不存在故障,The execution module 601 is configured to re-execute the payment test case or execute the payment test case modified according to the current payment result when the preset execution condition is met, until the current payment result of the payment test case is consistent with the benchmark test result, determine The test payment channel is not faulty,

其中,预设执行条件包括以下至少一项条件:Among them, the preset execution conditions include at least one of the following conditions:

监测到支付测试用例或者待测试支付渠道对应的程序被修改。It is monitored that the payment test case or the program corresponding to the payment channel to be tested is modified.

接收到对待测试支付渠道重新进行测试的测试指令。Received a test order to retest the payment channel to be tested.

当前时间达到重新测试待测试支付渠道的预设测试时间。The current time reaches the preset test time for retesting the payment channel to be tested.

在满足上述至少一项条件时,说明需要重新对待测试支付渠道进行测试,因而,可以重新执行该支付测试用例或者重新执行测试人员根据该当前支付结果修改的支付测试用例,直至该支付测试用例的当前支付结果与基准测试结果相一致时,可以确定待测试支付渠道不存在故障,以停止对该待测试支付渠道进行重新测试,不再重新执行该支付测试用户或者修改后的支付测试用例。When at least one of the above conditions is met, it means that the payment channel to be tested needs to be tested again. Therefore, the payment test case can be re-executed or the payment test case modified by the tester according to the current payment result can be re-executed until the payment test case is completed. When the current payment result is consistent with the benchmark test result, it can be determined that there is no fault in the payment channel to be tested, so as to stop retesting the payment channel to be tested, and not re-execute the payment test user or the modified payment test case.

如图7所示,在一个实施例中,上述图3所示的装置还可包括:As shown in Figure 7, in one embodiment, the device shown in Figure 3 above may further include:

第一接收模块701,被配置为在向待测试支付应用中添加新的支付渠道后,接收与新的支付渠道相应的测试环境信息。The first receiving module 701 is configured to receive test environment information corresponding to the new payment channel after adding the new payment channel to the payment application to be tested.

在向待测试支付应用中添加新的支付渠道后,通过接收与该新的支付渠道相应的测试环境信息,可以通过支付待测试应用中已有的支付产品来对该新的支付渠道进行自动测试。After adding a new payment channel to the payment application to be tested, by receiving the test environment information corresponding to the new payment channel, the new payment channel can be automatically tested by paying for existing payment products in the application to be tested .

如图8所示,在一个实施例中,上述图3所示的装置还可包括:As shown in Figure 8, in one embodiment, the device shown in Figure 3 above may further include:

第二接收模块801,被配置为在向待测试支付应用中添加新的支付产品后,接收新的支付产品在各待测试支付渠道下的测试环境信息。The second receiving module 801 is configured to receive the test environment information of the new payment product under each payment channel to be tested after adding the new payment product to the payment application to be tested.

获取模块802,被配置为获取与新的支付产品相应的基准测试结果。The obtaining module 802 is configured to obtain benchmark test results corresponding to the new payment product.

在向待测试支付应用中添加新的支付产品后,通过接收该新的支付产品在各待测试支付渠道下的测试环境信息,获取与新的支付产品相应的基准测试结果,可以对该新的支付产品就行自动化测试,以验证该新的支付产品是否故障。After adding a new payment product to the payment application to be tested, by receiving the test environment information of the new payment product under each payment channel to be tested, and obtaining the benchmark test results corresponding to the new payment product, the new payment product can be Payment products are automated tests to verify whether the new payment product is faulty.

根据本公开实施例的第三方面,提供一种支付应用的测试装置,包括:According to a third aspect of the embodiments of the present disclosure, a payment application testing device is provided, including:

处理器;processor;

用于存储处理器可执行指令的存储器;memory for storing processor-executable instructions;

其中,处理器被配置为:where the processor is configured as:

接收与待测试支付应用中的待测试支付渠道相应的测试环境信息,其中,所述测试环境信息包括:预设账户信息和所述待测试支付渠道对应的支付测试用例,且所述支付测试用例用于记录根据所述预设账户信息在所述待测试支付应用中可执行的与所述待测试支付渠道相关的所有可操作步骤;Receive test environment information corresponding to the payment channel to be tested in the payment application to be tested, wherein the test environment information includes: preset account information and a payment test case corresponding to the payment channel to be tested, and the payment test case For recording all operational steps related to the payment channel to be tested that can be executed in the payment application to be tested according to the preset account information;

接收测试指令;Receive test instructions;

执行所述待测试支付渠道对应的支付测试用例,以模拟用户根据所述预设账户信息在所述待测试支付应用中执行所述所有可操作步骤;Executing the payment test case corresponding to the payment channel to be tested to simulate the user performing all the operational steps in the payment application to be tested according to the preset account information;

根据当前支付结果和所述测试用例对应的基准测试结果是否一致,确定所述待测试支付渠道是否存在故障。According to whether the current payment result is consistent with the benchmark test result corresponding to the test case, it is determined whether there is a fault in the payment channel to be tested.

上述处理器还可被配置为:The processors described above can also be configured to:

所述根据当前支付结果和所述测试用例对应的基准测试结果是否一致,确定所述待测试支付渠道是否存在故障,包括:According to whether the current payment result is consistent with the benchmark test result corresponding to the test case, determining whether there is a fault in the payment channel to be tested includes:

当所述当前支付结果与所述基准测试结果相一致时,确定所述待测试支付渠道不存在故障。When the current payment result is consistent with the benchmark test result, it is determined that there is no fault in the payment channel to be tested.

上述处理器还可被配置为:The processors described above can also be configured to:

所述根据当前支付结果和所述测试用例对应的基准测试结果是否一致,确定所述待测试支付渠道是否存在故障,包括:According to whether the current payment result is consistent with the benchmark test result corresponding to the test case, determining whether there is a fault in the payment channel to be tested includes:

当所述当前支付结果与所述基准测试结果不一致时,确定待测试支付方式存在故障;When the current payment result is inconsistent with the benchmark test result, it is determined that there is a fault in the payment method to be tested;

提示故障信息。Prompt fault information.

上述处理器还可被配置为:The processors described above can also be configured to:

所述方法还包括:The method also includes:

在满足预设执行条件时,重新执行所述支付测试用例或者执行根据所述当前支付结果修改的所述支付测试用例,直至所述支付测试用例的当前支付结果与所述基准测试结果相一致时,确定所述待测试支付渠道不存在故障,When the preset execution condition is met, re-execute the payment test case or execute the payment test case modified according to the current payment result until the current payment result of the payment test case is consistent with the benchmark test result , to determine that there is no fault in the payment channel to be tested,

其中,所述预设执行条件包括以下至少一项条件:Wherein, the preset execution conditions include at least one of the following conditions:

监测到所述支付测试用例或者所述待测试支付渠道对应的程序被修改;It is monitored that the payment test case or the program corresponding to the payment channel to be tested is modified;

接收到对所述待测试支付渠道重新进行测试的测试指令;receiving a test instruction to re-test the payment channel to be tested;

当前时间达到重新测试所述待测试支付渠道的预设测试时间。The current time reaches the preset test time for retesting the payment channel to be tested.

上述处理器还可被配置为:The processors described above can also be configured to:

所述方法还包括:The method also includes:

在向所述待测试支付应用中添加新的支付渠道后,接收与所述新的支付渠道相应的测试环境信息。After adding a new payment channel to the payment application to be tested, receiving test environment information corresponding to the new payment channel.

上述处理器还可被配置为:The processors described above can also be configured to:

所述方法还包括:The method also includes:

在向所述待测试支付应用中添加新的支付产品后,接收所述新的支付产品在各待测试支付渠道下的测试环境信息;After adding a new payment product to the payment application to be tested, receiving the test environment information of the new payment product under each payment channel to be tested;

获取与所述新的支付产品相应的基准测试结果。Obtain benchmark results corresponding to the new payment product.

图9是根据一示例性实施例示出的一种用于支付应用的测试装置900的框图,该装置适用于终端设备。例如,装置900可以是移动电话,计算机,数字广播终端,消息收发设备,游戏控制台,平板设备,医疗设备,健身设备,个用户数字助理等。Fig. 9 is a block diagram showing a test device 900 for a payment application according to an exemplary embodiment, and the device is suitable for a terminal device. For example, the apparatus 900 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, and the like.

参照图9,装置900可以包括以下一个或至少两个组件:处理组件902,存储器904,电源组件906,多媒体组件908,音频组件910,输入/输出(I/O)接口912,传感器组件914,以及通信组件916。9, device 900 may include one or at least two of the following components: processing component 902, memory 904, power supply component 906, multimedia component 908, audio component 910, input/output (I/O) interface 912, sensor component 914, and communication component 916 .

处理组件902通常控制装置900的整体操作,诸如与显示,电话呼叫,数据通信,相机操作和记录操作相关联的操作。处理组件902可以包括一个或至少两个处理器920来执行指令,以完成上述的方法的全部或部分步骤。此外,处理组件902可以包括一个或至少两个模块,便于处理组件902和其他组件之间的交互。例如,处理组件902可以包括多媒体模块,以方便多媒体组件908和处理组件902之间的交互。The processing component 902 generally controls the overall operations of the device 900, such as those associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 902 may include one or at least two processors 920 to execute instructions to complete all or part of the steps of the above method. Additionally, the processing component 902 may include one or at least two modules to facilitate interaction between the processing component 902 and other components. For example, processing component 902 may include a multimedia module to facilitate interaction between multimedia component 908 and processing component 902 .

存储器904被配置为存储各种类型的数据以支持在装置900的操作。这些数据的示例包括用于在装置900上操作的任何存储对象或方法的指令,联系用户数据,电话簿数据,消息,图片,视频等。存储器904可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器(SRAM),电可擦除可编程只读存储器(EEPROM),可擦除可编程只读存储器(EPROM),可编程只读存储器(PROM),只读存储器(ROM),磁存储器,快闪存储器,磁盘或光盘。The memory 904 is configured to store various types of data to support operations at the device 900 . Examples of such data include instructions for any stored objects or methods operating on device 900, contact user data, phonebook data, messages, pictures, videos, and the like. The memory 904 can be implemented by any type of volatile or non-volatile memory device or their combination, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable Programmable Read Only Memory (EPROM), Programmable Read Only Memory (PROM), Read Only Memory (ROM), Magnetic Memory, Flash Memory, Magnetic or Optical Disk.

电源组件906为装置900的各种组件提供电源。电源组件906可以包括电源管理系统,一个或至少两个电源,及其他与为装置900生成、管理和分配电源相关联的组件。The power supply component 906 provides power to various components of the device 900 . Power supply components 906 may include a power management system, one or at least two power supplies, and other components associated with generating, managing, and distributing power to device 900 .

多媒体组件908包括在所述装置900和用户之间的提供一个输出接口的屏幕。在一些实施例中,屏幕可以包括液晶显示器(LCD)和触摸面板(TP)。如果屏幕包括触摸面板,屏幕可以被实现为触摸屏,以接收来自用户的输入信号。触摸面板包括一个或至少两个触摸传感器以感测触摸、滑动和触摸面板上的手势。所述触摸传感器可以不仅感测触摸或滑动动作的边界,而且还检测与所述触摸或滑动操作相关的持续时间和压力。在一些实施例中,多媒体组件908包括一个前置摄像头和/或后置摄像头。当装置900处于操作模式,如拍摄模式或视频模式时,前置摄像头和/或后置摄像头可以接收外部的多媒体数据。每个前置摄像头和后置摄像头可以是一个固定的光学透镜系统或具有焦距和光学变焦能力。The multimedia component 908 includes a screen that provides an output interface between the device 900 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user. The touch panel includes one or at least two touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense a boundary of a touch or swipe action, but also detect duration and pressure associated with the touch or swipe action. In some embodiments, the multimedia component 908 includes a front camera and/or a rear camera. When the device 900 is in an operation mode, such as a shooting mode or a video mode, the front camera and/or the rear camera can receive external multimedia data. Each front camera and rear camera can be a fixed optical lens system or have focal length and optical zoom capability.

音频组件910被配置为输出和/或输入音频信号。例如,音频组件910包括一个麦克风(MIC),当装置900处于操作模式,如呼叫模式、记录模式和语音识别模式时,麦克风被配置为接收外部音频信号。所接收的音频信号可以被进一步存储在存储器904或经由通信组件916发送。在一些实施例中,音频组件910还包括一个扬声器,用于输出音频信号。The audio component 910 is configured to output and/or input audio signals. For example, the audio component 910 includes a microphone (MIC) configured to receive external audio signals when the device 900 is in operation modes, such as call mode, recording mode and voice recognition mode. Received audio signals may be further stored in memory 904 or sent via communication component 916 . In some embodiments, the audio component 910 also includes a speaker for outputting audio signals.

I/O接口912为处理组件902和外围接口模块之间提供接口,上述外围接口模块可以是键盘,点击轮,按钮等。这些按钮可包括但不限于:主页按钮、音量按钮、启动按钮和锁定按钮。The I/O interface 912 provides an interface between the processing component 902 and a peripheral interface module. The peripheral interface module may be a keyboard, a click wheel, a button, and the like. These buttons may include, but are not limited to: a home button, volume buttons, start button, and lock button.

传感器组件914包括一个或至少两个传感器,用于为装置900提供各个方面的状态评估。例如,传感器组件914可以检测到装置900的打开/关闭状态,组件的相对定位,例如所述组件为装置900的显示器和小键盘,传感器组件914还可以检测装置900或装置900一个组件的位置改变,用户与装置900接触的存在或不存在,装置900方位或加速/减速和装置900的温度变化。传感器组件914可以包括接近传感器,被配置用来在没有任何的物理接触时检测附近物体的存在。传感器组件914还可以包括光传感器,如CMOS或CCD图像传感器,用于在成像应用中使用。在一些实施例中,该传感器组件914还可以包括加速度传感器,陀螺仪传感器,磁传感器,压力传感器或温度传感器。Sensor assembly 914 includes one or at least two sensors for providing various aspects of status assessment for device 900 . For example, the sensor component 914 can detect the open/closed state of the device 900, the relative positioning of components, such as the display and keypad of the device 900, and the sensor component 914 can also detect a change in the position of the device 900 or a component of the device 900 , the presence or absence of user contact with the device 900 , the device 900 orientation or acceleration/deceleration and the temperature change of the device 900 . Sensor assembly 914 may include a proximity sensor configured to detect the presence of nearby objects in the absence of any physical contact. Sensor assembly 914 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor component 914 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor or a temperature sensor.

通信组件916被配置为便于装置900和其他设备之间有线或无线方式的通信。装置900可以接入基于通信标准的无线网络,如WiFi,2G或3G,或它们的组合。在一个示例性实施例中,通信组件916经由广播信道接收来自外部广播管理系统的广播信号或广播相关信息。在一个示例性实施例中,所述通信组件916还包括近场通信(NFC)模块,以促进短程通信。例如,在NFC模块可基于射频识别(RFID)技术,红外数据协会(IrDA)技术,超宽带(UWB)技术,蓝牙(BT)技术和其他技术来实现。The communication component 916 is configured to facilitate wired or wireless communication between the apparatus 900 and other devices. The device 900 can access wireless networks based on communication standards, such as WiFi, 2G or 3G, or a combination thereof. In one exemplary embodiment, the communication component 916 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 916 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, Infrared Data Association (IrDA) technology, Ultra Wide Band (UWB) technology, Bluetooth (BT) technology and other technologies.

在示例性实施例中,装置900可以被一个或至少两个应用专用集成电路(ASIC)、数字信号处理器(DSP)、数字信号处理设备(DSPD)、可编程逻辑器件(PLD)、现场可编程门阵列(FPGA)、控制器、微控制器、微处理器或其他电子组件实现,用于执行上述方法。In an exemplary embodiment, apparatus 900 may be implemented by one or at least two Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable A programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic component implementation for performing the methods described above.

在示例性实施例中,还提供了一种包括指令的非临时性计算机可读存储介质,例如包括指令的存储器904,上述指令可由装置900的处理器920执行以完成上述方法。例如,所述非临时性计算机可读存储介质可以是ROM、随机存取存储器(RAM)、CD-ROM、磁带、软盘和光数据存储设备等。In an exemplary embodiment, there is also provided a non-transitory computer-readable storage medium including instructions, such as the memory 904 including instructions, which can be executed by the processor 920 of the device 900 to implement the above method. For example, the non-transitory computer readable storage medium may be ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, and the like.

一种非临时性计算机可读存储介质,当所述存储介质中的指令由上述装置900的处理器执行时,使得上述装置900能够执行一种支付应用的测试方法,包括:A non-transitory computer-readable storage medium, when the instructions in the storage medium are executed by the processor of the above-mentioned device 900, the above-mentioned device 900 can execute a method for testing a payment application, including:

接收与待测试支付应用中的待测试支付渠道相应的测试环境信息,其中,所述测试环境信息包括:预设账户信息和所述待测试支付渠道对应的支付测试用例,且所述支付测试用例用于记录根据所述预设账户信息在所述待测试支付应用中可执行的与所述待测试支付渠道相关的所有可操作步骤;Receive test environment information corresponding to the payment channel to be tested in the payment application to be tested, wherein the test environment information includes: preset account information and a payment test case corresponding to the payment channel to be tested, and the payment test case For recording all operational steps related to the payment channel to be tested that can be executed in the payment application to be tested according to the preset account information;

接收测试指令;Receive test instructions;

执行所述待测试支付渠道对应的支付测试用例,以模拟用户根据所述预设账户信息在所述待测试支付应用中执行所述所有可操作步骤;Executing the payment test case corresponding to the payment channel to be tested to simulate the user performing all the operational steps in the payment application to be tested according to the preset account information;

根据当前支付结果和所述测试用例对应的基准测试结果是否一致,确定所述待测试支付渠道是否存在故障。According to whether the current payment result is consistent with the benchmark test result corresponding to the test case, it is determined whether there is a fault in the payment channel to be tested.

在一个实施例中,所述根据当前支付结果和所述测试用例对应的基准测试结果是否一致,确定所述待测试支付渠道是否存在故障,包括:In one embodiment, determining whether there is a fault in the payment channel to be tested according to whether the current payment result is consistent with the benchmark test result corresponding to the test case includes:

当所述当前支付结果与所述基准测试结果相一致时,确定所述待测试支付渠道不存在故障。When the current payment result is consistent with the benchmark test result, it is determined that there is no fault in the payment channel to be tested.

在一个实施例中,所述根据当前支付结果和所述测试用例对应的基准测试结果是否一致,确定所述待测试支付渠道是否存在故障,包括:In one embodiment, determining whether there is a fault in the payment channel to be tested according to whether the current payment result is consistent with the benchmark test result corresponding to the test case includes:

当所述当前支付结果与所述基准测试结果不一致时,确定待测试支付方式存在故障;When the current payment result is inconsistent with the benchmark test result, it is determined that there is a fault in the payment method to be tested;

提示故障信息。Prompt fault information.

在一个实施例中,所述方法还包括:In one embodiment, the method also includes:

在满足预设执行条件时,重新执行所述支付测试用例或者执行根据所述当前支付结果修改的所述支付测试用例,直至所述支付测试用例的当前支付结果与所述基准测试结果相一致时,确定所述待测试支付渠道不存在故障,When the preset execution condition is met, re-execute the payment test case or execute the payment test case modified according to the current payment result until the current payment result of the payment test case is consistent with the benchmark test result , to determine that there is no fault in the payment channel to be tested,

其中,所述预设执行条件包括以下至少一项条件:Wherein, the preset execution conditions include at least one of the following conditions:

监测到所述支付测试用例或者所述待测试支付渠道对应的程序被修改;It is monitored that the payment test case or the program corresponding to the payment channel to be tested is modified;

接收到对所述待测试支付渠道重新进行测试的测试指令;receiving a test instruction to re-test the payment channel to be tested;

当前时间达到重新测试所述待测试支付渠道的预设测试时间。The current time reaches the preset test time for retesting the payment channel to be tested.

在一个实施例中,所述方法还包括:In one embodiment, the method also includes:

在向所述待测试支付应用中添加新的支付渠道后,接收与所述新的支付渠道相应的测试环境信息。After adding a new payment channel to the payment application to be tested, receiving test environment information corresponding to the new payment channel.

在一个实施例中,所述方法还包括:In one embodiment, the method also includes:

在向所述待测试支付应用中添加新的支付产品后,接收所述新的支付产品在各待测试支付渠道下的测试环境信息;After adding a new payment product to the payment application to be tested, receiving the test environment information of the new payment product under each payment channel to be tested;

获取与所述新的支付产品相应的基准测试结果。Obtain benchmark results corresponding to the new payment product.

本领域技术用户员在考虑说明书及实践这里公开的公开后,将容易想到本公开的其它实施方案。本申请旨在涵盖本公开的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本公开的一般性原理并包括本公开未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本公开的真正范围和精神由下面的权利要求指出。Other embodiments of the present disclosure will be readily apparent to users skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any modification, use or adaptation of the present disclosure, and these modifications, uses or adaptations follow the general principles of the present disclosure and include common knowledge or conventional technical means in the technical field not disclosed in the present disclosure . The specification and examples are to be considered exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.

应当理解的是,本公开并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。本公开的范围仅由所附的权利要求来限制。It should be understood that the present disclosure is not limited to the precise constructions which have been described above and shown in the drawings, and various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (13)

1.一种支付应用的测试方法,其特征在于,包括:1. A method for testing a payment application, comprising: 接收与待测试支付应用中的待测试支付渠道相应的测试环境信息,其中,所述测试环境信息包括:预设账户信息和所述待测试支付渠道对应的支付测试用例,且所述支付测试用例用于记录根据所述预设账户信息在所述待测试支付应用中可执行的与所述待测试支付渠道相关的所有可操作步骤;Receive test environment information corresponding to the payment channel to be tested in the payment application to be tested, wherein the test environment information includes: preset account information and a payment test case corresponding to the payment channel to be tested, and the payment test case For recording all operational steps related to the payment channel to be tested that can be executed in the payment application to be tested according to the preset account information; 接收测试指令;Receive test instructions; 执行所述待测试支付渠道对应的支付测试用例,以模拟用户根据所述预设账户信息在所述待测试支付应用中执行所述所有可操作步骤;Executing the payment test case corresponding to the payment channel to be tested to simulate the user performing all the operational steps in the payment application to be tested according to the preset account information; 根据当前支付结果和所述测试用例对应的基准测试结果是否一致,确定所述待测试支付渠道是否存在故障。According to whether the current payment result is consistent with the benchmark test result corresponding to the test case, it is determined whether there is a fault in the payment channel to be tested. 2.根据权利要求1所述的方法,其特征在于,2. The method of claim 1, wherein, 所述根据当前支付结果和所述测试用例对应的基准测试结果是否一致,确定所述待测试支付渠道是否存在故障,包括:According to whether the current payment result is consistent with the benchmark test result corresponding to the test case, determining whether there is a fault in the payment channel to be tested includes: 当所述当前支付结果与所述基准测试结果相一致时,确定所述待测试支付渠道不存在故障。When the current payment result is consistent with the benchmark test result, it is determined that there is no fault in the payment channel to be tested. 3.根据权利要求1或2所述的方法,其特征在于,3. The method according to claim 1 or 2, characterized in that, 所述根据当前支付结果和所述测试用例对应的基准测试结果是否一致,确定所述待测试支付渠道是否存在故障,包括:According to whether the current payment result is consistent with the benchmark test result corresponding to the test case, determining whether there is a fault in the payment channel to be tested includes: 当所述当前支付结果与所述基准测试结果不一致时,确定待测试支付方式存在故障;When the current payment result is inconsistent with the benchmark test result, it is determined that there is a fault in the payment method to be tested; 提示故障信息。Prompt fault information. 4.根据权利要求1所述的方法,其特征在于,所述方法还包括:4. The method according to claim 1, wherein the method further comprises: 在满足预设执行条件时,重新执行所述支付测试用例或者执行根据所述当前支付结果修改的所述支付测试用例,直至所述支付测试用例的当前支付结果与所述基准测试结果相一致时,确定所述待测试支付渠道不存在故障,When the preset execution condition is met, re-execute the payment test case or execute the payment test case modified according to the current payment result until the current payment result of the payment test case is consistent with the benchmark test result , to determine that there is no fault in the payment channel to be tested, 其中,所述预设执行条件包括以下至少一项条件:Wherein, the preset execution conditions include at least one of the following conditions: 监测到所述支付测试用例或者所述待测试支付渠道对应的程序被修改;It is monitored that the payment test case or the program corresponding to the payment channel to be tested is modified; 接收到对所述待测试支付渠道重新进行测试的测试指令;receiving a test instruction to re-test the payment channel to be tested; 当前时间达到重新测试所述待测试支付渠道的预设测试时间。The current time reaches the preset test time for retesting the payment channel to be tested. 5.根据权利要求1所述的方法,其特征在于,所述方法还包括:5. The method according to claim 1, wherein the method further comprises: 在向所述待测试支付应用中添加新的支付渠道后,接收与所述新的支付渠道相应的测试环境信息。After adding a new payment channel to the payment application to be tested, receiving test environment information corresponding to the new payment channel. 6.根据权利要求1所述的方法,其特征在于,所述方法还包括:6. The method according to claim 1, further comprising: 在向所述待测试支付应用中添加新的支付产品后,接收所述新的支付产品在各待测试支付渠道下的测试环境信息;After adding a new payment product to the payment application to be tested, receiving the test environment information of the new payment product under each payment channel to be tested; 获取与所述新的支付产品相应的基准测试结果。Obtain benchmark results corresponding to the new payment product. 7.一种支付应用的测试装置,其特征在于,包括:7. A test device for payment application, comprising: 部署模块,用于接收与待测试支付应用中的待测试支付渠道相应的测试环境信息,其中,所述测试环境信息包括:预设账户信息和所述待测试支付渠道对应的支付测试用例,且所述支付测试用例用于记录根据所述预设账户信息在所述待测试支付应用中可执行的与所述待测试支付渠道相关的所有可操作步骤;A deployment module, configured to receive test environment information corresponding to a payment channel to be tested in a payment application to be tested, wherein the test environment information includes: preset account information and a payment test case corresponding to the payment channel to be tested, and The payment test case is used to record all operable steps related to the payment channel to be tested that can be executed in the payment application to be tested according to the preset account information; 控制模块,用于接收测试指令,执行所述待测试支付渠道对应的支付测试用例,以模拟用户根据所述预设账户信息在所述待测试支付应用中执行所述所有可操作步骤;A control module, configured to receive a test instruction, and execute a payment test case corresponding to the payment channel to be tested, so as to simulate the user performing all the operational steps in the payment application to be tested according to the preset account information; 验证模块,用于根据当前支付结果和所述测试用例对应的基准测试结果是否一致,确定所述待测试支付渠道是否存在故障。The verification module is configured to determine whether there is a fault in the payment channel to be tested according to whether the current payment result is consistent with the benchmark test result corresponding to the test case. 8.根据权利要求7所述的装置,其特征在于,8. The device of claim 7, wherein: 所述验证模块包括:The verification module includes: 第一确定子模块,用于当所述当前支付结果与所述基准测试结果相一致时,确定所述待测试支付渠道不存在故障。The first determination submodule is configured to determine that there is no fault in the payment channel to be tested when the current payment result is consistent with the benchmark test result. 9.根据权利要求7或8所述的装置,其特征在于,9. Apparatus according to claim 7 or 8, characterized in that 所述验证模块包括:The verification module includes: 第二确定子模块,用于当所述当前支付结果与所述基准测试结果不一致时,确定所述待测试支付渠道存在故障;The second determining submodule is used to determine that there is a fault in the payment channel to be tested when the current payment result is inconsistent with the benchmark test result; 提示子模块,用于提示故障信息。Prompt sub-module, used to prompt fault information. 10.根据权利要求7所述的装置,其特征在于,所述装置还包括:10. The device according to claim 7, further comprising: 执行模块,用于在满足预设执行条件时,重新执行所述支付测试用例或者执行根据所述当前支付结果修改的所述支付测试用例,直至所述支付测试用例的当前支付结果与所述基准测试结果相一致时,确定所述待测试支付渠道不存在故障,An execution module, configured to re-execute the payment test case or execute the payment test case modified according to the current payment result when the preset execution condition is satisfied, until the current payment result of the payment test case is consistent with the benchmark When the test results are consistent, it is determined that there is no fault in the payment channel to be tested, 其中,所述预设执行条件包括以下至少一项条件:Wherein, the preset execution conditions include at least one of the following conditions: 监测到所述支付测试用例或者所述待测试支付渠道对应的程序被修改;It is monitored that the payment test case or the program corresponding to the payment channel to be tested is modified; 接收到对所述待测试支付渠道重新进行测试的测试指令;receiving a test instruction to re-test the payment channel to be tested; 当前时间达到重新测试所述待测试支付渠道的预设测试时间。The current time reaches the preset test time for retesting the payment channel to be tested. 11.根据权利要求7所述的装置,其特征在于,所述装置还包括:11. The device according to claim 7, further comprising: 第一接收模块,用于在向所述待测试支付应用中添加新的支付渠道后,接收与所述新的支付渠道相应的测试环境信息。The first receiving module is configured to receive test environment information corresponding to the new payment channel after adding the new payment channel to the payment application to be tested. 12.根据权利要求7所述的装置,其特征在于,所述装置还包括:12. The device according to claim 7, further comprising: 第二接收模块,用于在向所述待测试支付应用中添加新的支付产品后,接收所述新的支付产品在各待测试支付渠道下的测试环境信息;The second receiving module is configured to receive the test environment information of the new payment product under each payment channel to be tested after adding the new payment product to the payment application to be tested; 获取模块,用于获取与所述新的支付产品相应的基准测试结果。An acquisition module, configured to acquire benchmark test results corresponding to the new payment product. 13.一种支付应用的测试装置,其特征在于,包括:13. A test device for a payment application, comprising: 处理器;processor; 用于存储处理器可执行指令的存储器;memory for storing processor-executable instructions; 其中,所述处理器被配置为:Wherein, the processor is configured as: 接收与待测试支付应用中的待测试支付渠道相应的测试环境信息,其中,所述测试环境信息包括:预设账户信息和所述待测试支付渠道对应的支付测试用例,且所述支付测试用例用于记录根据所述预设账户信息在所述待测试支付应用中可执行的与所述待测试支付渠道相关的所有可操作步骤;Receive the test environment information corresponding to the payment channel to be tested in the payment application to be tested, wherein the test environment information includes: preset account information and the payment test case corresponding to the payment channel to be tested, and the payment test case It is used to record all operable steps related to the payment channel to be tested that can be executed in the payment application to be tested according to the preset account information; 接收测试指令;Receive test instructions; 执行所述待测试支付渠道对应的支付测试用例,以模拟用户根据所述预设账户信息在所述待测试支付应用中执行所述所有可操作步骤;Executing the payment test case corresponding to the payment channel to be tested to simulate the user performing all the operational steps in the payment application to be tested according to the preset account information; 根据当前支付结果和所述测试用例对应的基准测试结果是否一致,确定所述待测试支付渠道是否存在故障。According to whether the current payment result is consistent with the benchmark test result corresponding to the test case, it is determined whether there is a fault in the payment channel to be tested.
CN201610665805.7A 2016-08-12 2016-08-12 Payment app test method and device thereof Pending CN106354628A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610665805.7A CN106354628A (en) 2016-08-12 2016-08-12 Payment app test method and device thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610665805.7A CN106354628A (en) 2016-08-12 2016-08-12 Payment app test method and device thereof

Publications (1)

Publication Number Publication Date
CN106354628A true CN106354628A (en) 2017-01-25

Family

ID=57844424

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610665805.7A Pending CN106354628A (en) 2016-08-12 2016-08-12 Payment app test method and device thereof

Country Status (1)

Country Link
CN (1) CN106354628A (en)

Cited By (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106897216A (en) * 2017-02-13 2017-06-27 北京趣拿软件科技有限公司 The method and apparatus of test software
CN107291618A (en) * 2017-06-20 2017-10-24 广东欧珀移动通信有限公司 Application memory method, device and terminal device
CN107403309A (en) * 2017-08-11 2017-11-28 中国银行股份有限公司 A kind of testing time method for customizing and device
CN108174376A (en) * 2017-12-28 2018-06-15 飞天诚信科技股份有限公司 A kind of method and system for preventing interference
CN108305055A (en) * 2017-10-20 2018-07-20 掌合天下(北京)信息技术有限公司 Pay test method and device
CN108665251A (en) * 2018-05-11 2018-10-16 阿里巴巴集团控股有限公司 A kind of processing method and processing device that channel of disbursement restores
CN108881585A (en) * 2018-05-08 2018-11-23 北京五八信息技术有限公司 Built-in application program test processing method, device, electronic equipment and storage medium
CN108959102A (en) * 2018-07-27 2018-12-07 百度在线网络技术(北京)有限公司 Method and apparatus for generating test data, test application to be tested
CN109902004A (en) * 2019-02-18 2019-06-18 深圳壹账通智能科技有限公司 A kind of test method and device of application program link channel
CN110348984A (en) * 2019-05-27 2019-10-18 平安银行股份有限公司 Credit card information automation input method and relevant device under different transaction channels
CN111367821A (en) * 2020-05-22 2020-07-03 支付宝(杭州)信息技术有限公司 Software testing method and system
CN112418835A (en) * 2019-08-21 2021-02-26 腾讯科技(深圳)有限公司 Method and related device for testing online bank payment process
CN113360387A (en) * 2021-06-18 2021-09-07 深圳银兴科技开发有限公司 Bank payment and settlement simulator
CN113849403A (en) * 2021-09-23 2021-12-28 平安普惠企业管理有限公司 YAML configuration-based flow testing method, device and equipment
CN114201410A (en) * 2021-12-28 2022-03-18 中国工商银行股份有限公司 Method, device, equipment, medium for monitoring the degree of execution of test cases
CN114626839A (en) * 2022-03-15 2022-06-14 携程旅游网络技术(上海)有限公司 Payment channel monitoring method and system, electronic equipment and storage medium
CN114661619A (en) * 2022-04-26 2022-06-24 中国工商银行股份有限公司 Test method, test device, computer equipment and storage medium
CN119201751A (en) * 2024-11-25 2024-12-27 杭州乒乓智能技术有限公司 Payment channel testing method, device, computer equipment and readable storage medium

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1744054A (en) * 2004-08-31 2006-03-08 中国银联股份有限公司 An automated test auxiliary system and corresponding software automatic test method
CN101211437A (en) * 2006-12-31 2008-07-02 阿里巴巴公司 Electronic payment failure testing method, device and electronic payment system
CN101308556A (en) * 2007-05-15 2008-11-19 阿里巴巴集团控股有限公司 System and method for online charging test
CN104182335A (en) * 2014-05-09 2014-12-03 中国光大银行 Software testing method and device
CN104461902A (en) * 2014-12-23 2015-03-25 东信和平科技股份有限公司 Financial payment test platform, method and system
US20150113511A1 (en) * 2005-06-10 2015-04-23 Wapp Tech Corp. Systems including network simulation for mobile application development
CN104794049A (en) * 2014-01-20 2015-07-22 腾讯科技(深圳)有限公司 Application program test method and device
CN105589802A (en) * 2014-10-23 2016-05-18 阿里巴巴集团控股有限公司 Software test method and apparatus
CN105741093A (en) * 2016-01-25 2016-07-06 网易(杭州)网络有限公司 Payment method, device and system of mobile application
CN105761079A (en) * 2016-02-02 2016-07-13 四川长虹电器股份有限公司 Payment configuration method and system supporting multiple channels

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1744054A (en) * 2004-08-31 2006-03-08 中国银联股份有限公司 An automated test auxiliary system and corresponding software automatic test method
US20150113511A1 (en) * 2005-06-10 2015-04-23 Wapp Tech Corp. Systems including network simulation for mobile application development
CN101211437A (en) * 2006-12-31 2008-07-02 阿里巴巴公司 Electronic payment failure testing method, device and electronic payment system
CN101308556A (en) * 2007-05-15 2008-11-19 阿里巴巴集团控股有限公司 System and method for online charging test
CN104794049A (en) * 2014-01-20 2015-07-22 腾讯科技(深圳)有限公司 Application program test method and device
CN104182335A (en) * 2014-05-09 2014-12-03 中国光大银行 Software testing method and device
CN105589802A (en) * 2014-10-23 2016-05-18 阿里巴巴集团控股有限公司 Software test method and apparatus
CN104461902A (en) * 2014-12-23 2015-03-25 东信和平科技股份有限公司 Financial payment test platform, method and system
CN105741093A (en) * 2016-01-25 2016-07-06 网易(杭州)网络有限公司 Payment method, device and system of mobile application
CN105761079A (en) * 2016-02-02 2016-07-13 四川长虹电器股份有限公司 Payment configuration method and system supporting multiple channels

Cited By (25)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106897216A (en) * 2017-02-13 2017-06-27 北京趣拿软件科技有限公司 The method and apparatus of test software
CN107291618A (en) * 2017-06-20 2017-10-24 广东欧珀移动通信有限公司 Application memory method, device and terminal device
CN107403309A (en) * 2017-08-11 2017-11-28 中国银行股份有限公司 A kind of testing time method for customizing and device
CN108305055A (en) * 2017-10-20 2018-07-20 掌合天下(北京)信息技术有限公司 Pay test method and device
CN108174376A (en) * 2017-12-28 2018-06-15 飞天诚信科技股份有限公司 A kind of method and system for preventing interference
CN108174376B (en) * 2017-12-28 2021-01-01 飞天诚信科技股份有限公司 A method and system for preventing interference
CN108881585B (en) * 2018-05-08 2020-11-10 北京五八信息技术有限公司 Built-in application program test processing method and device, electronic equipment and storage medium
CN108881585A (en) * 2018-05-08 2018-11-23 北京五八信息技术有限公司 Built-in application program test processing method, device, electronic equipment and storage medium
CN108665251A (en) * 2018-05-11 2018-10-16 阿里巴巴集团控股有限公司 A kind of processing method and processing device that channel of disbursement restores
CN108959102B (en) * 2018-07-27 2020-01-17 百度在线网络技术(北京)有限公司 Method and device for generating test data and testing application to be tested
CN108959102A (en) * 2018-07-27 2018-12-07 百度在线网络技术(北京)有限公司 Method and apparatus for generating test data, test application to be tested
CN109902004B (en) * 2019-02-18 2022-09-30 深圳壹账通智能科技有限公司 Method and device for testing application program link channel
CN109902004A (en) * 2019-02-18 2019-06-18 深圳壹账通智能科技有限公司 A kind of test method and device of application program link channel
CN110348984A (en) * 2019-05-27 2019-10-18 平安银行股份有限公司 Credit card information automation input method and relevant device under different transaction channels
CN110348984B (en) * 2019-05-27 2024-03-29 平安银行股份有限公司 Automatic credit card data input method and related equipment under different transaction channels
CN112418835A (en) * 2019-08-21 2021-02-26 腾讯科技(深圳)有限公司 Method and related device for testing online bank payment process
CN112418835B (en) * 2019-08-21 2024-08-06 腾讯科技(深圳)有限公司 Method and related device for testing online banking payment process
CN111367821A (en) * 2020-05-22 2020-07-03 支付宝(杭州)信息技术有限公司 Software testing method and system
CN113360387A (en) * 2021-06-18 2021-09-07 深圳银兴科技开发有限公司 Bank payment and settlement simulator
CN113849403A (en) * 2021-09-23 2021-12-28 平安普惠企业管理有限公司 YAML configuration-based flow testing method, device and equipment
CN114201410A (en) * 2021-12-28 2022-03-18 中国工商银行股份有限公司 Method, device, equipment, medium for monitoring the degree of execution of test cases
CN114626839A (en) * 2022-03-15 2022-06-14 携程旅游网络技术(上海)有限公司 Payment channel monitoring method and system, electronic equipment and storage medium
CN114661619A (en) * 2022-04-26 2022-06-24 中国工商银行股份有限公司 Test method, test device, computer equipment and storage medium
CN114661619B (en) * 2022-04-26 2025-04-22 中国工商银行股份有限公司 Test method, device, computer equipment and storage medium
CN119201751A (en) * 2024-11-25 2024-12-27 杭州乒乓智能技术有限公司 Payment channel testing method, device, computer equipment and readable storage medium

Similar Documents

Publication Publication Date Title
CN106354628A (en) Payment app test method and device thereof
US10055204B2 (en) Generating communication firmware and a program plug-in based on product information and a program template
CN110941942A (en) Method, device and system for checking circuit schematic diagram
CN110334007A (en) Function interface call verification method and device, electronic equipment and storage medium
US20200341617A1 (en) Program Orchestration Method and Electronic Device
EP3285219A1 (en) Resource transfer method and apparatus, computer program and recording medium
CN106294158A (en) Terminal test method, Apparatus and system
CN106157027B (en) Payment method, device and system
CN115408277B (en) Interface testing method and device
CN104317699A (en) Application program verifying method and device
CN110119354A (en) Method for testing software, device and electronic equipment based on Test cases technology
CN107562500A (en) Debugging apparatus, method and apparatus
CN115757135A (en) Test environment deployment method, apparatus, storage medium, and program product
CN106209471A (en) Fault feedback method and device
CN114217800A (en) Page generation method and device, electronic equipment and storage medium
CN104991857B (en) Trace debug method and device
CN110851370A (en) Program testing method and device, storage medium
KR20180043146A (en) Method and device for processing card application data
CN107544818A (en) The loading method and device of system software
CN109684112A (en) Program file operation method, device, terminal and storage medium
CN104765686B (en) The method and device of test application program
CN119377030A (en) System-on-chip verification method, device, electronic device and readable storage medium
CN108153540A (en) Method, apparatus, terminal and the storage medium of system upgrade
CN114356307A (en) Service interaction method and device, electronic equipment and storage medium
CN106156667A (en) Open card method for writing data, Apparatus and system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20180816

Address after: 100176 Beijing Beijing economic and Technological Development Zone, Chuang Chuang fourteen Street 99, 33 D Building 2 level 2243 (centralized office area)

Applicant after: Beijing millet Payment Technology Co., Ltd.

Address before: 100085 Huarun Qingcai Street 68, Haidian District, Beijing, two stage, 9 floor, 01 rooms.

Applicant before: BEIJING XIAOMI MOBILE SOFTWARE Co.,Ltd.

RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20170125