CN111427790A - Test method, test device, terminal equipment and storage medium - Google Patents

Test method, test device, terminal equipment and storage medium Download PDF

Info

Publication number
CN111427790A
CN111427790A CN202010224572.3A CN202010224572A CN111427790A CN 111427790 A CN111427790 A CN 111427790A CN 202010224572 A CN202010224572 A CN 202010224572A CN 111427790 A CN111427790 A CN 111427790A
Authority
CN
China
Prior art keywords
test
case
financial
scene
information
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
CN202010224572.3A
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.)
China Construction Bank Corp
Original Assignee
China Construction Bank Corp
CCB Finetech 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 China Construction Bank Corp, CCB Finetech Co Ltd filed Critical China Construction Bank Corp
Priority to CN202010224572.3A priority Critical patent/CN111427790A/en
Publication of CN111427790A publication Critical patent/CN111427790A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • 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)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses a test method, a test device, terminal equipment and a storage medium. The method comprises the following steps: displaying a test interface of the marine product after monitoring a test instruction; acquiring test parameters selected by a user on the test interface; determining a test case based on the test parameters and the case library; and executing the test case to determine a test result. By the method, the test efficiency of the offshore project can be effectively improved based on the test parameters and the case library.

Description

Test method, test device, terminal equipment and storage medium
Technical Field
The embodiment of the invention relates to the technical field of computers, in particular to a testing method, a testing device, terminal equipment and a storage medium.
Background
With the development of financial science and technology and the implementation of new specifications of personal accounts, people have higher and higher requirements on the convenience of bank financial services, and the demand for embedding bank services into common APP is increased. In order to promote the construction of a financial ecosystem of a commercial bank, the influence of a third-party platform and the financial science and technology strength of the commercial bank are fully utilized, the advantages of the two parties are integrated, the purpose of jointly obtaining customers is achieved, and the business demand of business bank account for business to come out is increasing day by day.
With the continuous development of business bank account maritime projects, the maritime projects have the characteristics of short development period, high service availability requirement and innovation of business functions in integration, and the requirements on the test quality and the efficiency of the maritime projects are higher and higher. Due to the access of the third-party platform system, the traditional financial function is no longer applicable only based on the test mode of the internal system of the commercial bank, and meanwhile, the business assembly test of the commercial bank background system depends on the establishment and development of the third-party platform function, so that the test efficiency is greatly influenced. Therefore, how to improve the testing efficiency of the offshore project is a technical problem to be solved urgently at present.
Disclosure of Invention
In order to solve the technical problems, the invention provides a testing method, a testing device, terminal equipment and a storage medium, so that the testing efficiency of a maritime project is improved.
In a first aspect, an embodiment of the present invention provides a testing method, including:
displaying a test interface of the marine product after monitoring a test instruction;
acquiring test parameters selected by a user on the test interface;
determining a test case based on the test parameters and the case library;
and executing the test case to determine a test result.
Further, the test parameters include marine product information and financial scenario information.
Further, the obtaining of the test parameters selected by the user in the test interface includes:
acquiring the information of the sea products selected by the user on the sea account sub-page of the test page;
and acquiring financial scene information selected by the user on a financial scene sub-page of the test interface.
Further, the financial scenario information includes one of:
financial scenario information for at least one financial scenario;
financial scenario information supporting one financial scenario for at least two marine products.
Further, when a test case is determined based on financial scenario information in the test parameters and the financial scenario information corresponds to at least two financial scenarios, a case corresponding to each financial scenario is determined according to a test sequence of the financial scenario information, and the test case is determined based on the test sequence and the cases corresponding to the financial scenarios.
Further, when a test case is determined based on financial scenario information in the test parameters, and the financial scenario information corresponds to one financial scenario supporting at least two marine products, a case corresponding to each marine product and the financial scenario is determined, and the test case is determined based on the case corresponding to each marine product and the financial scenario.
Further, the determining a test case based on the test parameters and the case base includes one of the following:
extracting a test case template corresponding to the financial scene information in the test parameters from a case library, and determining a test case based on the test case module;
extracting standard cases corresponding to financial scene information and marine product information in the test parameters from a case library, and determining test cases based on the standard cases;
and extracting the identification information corresponding to the user and the sharing case of the financial scene information and the offshore product information in the test parameters from a case library, and determining the test case based on the sharing case.
In a second aspect, an embodiment of the present invention provides a testing apparatus, including:
the display module is used for displaying a test interface of the marine product after monitoring the test instruction;
the selection module is used for acquiring the test parameters selected by the user on the test interface;
the test case determining module is used for determining a test case based on the test parameters and the case base;
and the test result determining module is used for executing the test case and determining the test result.
In a third aspect, an embodiment of the present invention provides a terminal device, including:
one or more processors;
storage means for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement a method according to an embodiment of the present invention.
In a fourth aspect, the embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, and the computer program, when executed by a processor, implements the method according to the embodiment of the present invention.
The embodiment of the invention provides a testing method, a testing device, terminal equipment and a storage medium, and the technical scheme is that after a testing instruction is monitored, a testing interface of marine products is displayed; secondly, acquiring test parameters selected by a user on the test interface; then determining a test case based on the test parameters and the case library; and finally, executing the test case and determining a test result. By utilizing the technical scheme, the test efficiency of the offshore project can be effectively improved based on the test parameters and the case library.
Drawings
Fig. 1 is a schematic flow chart of a testing method according to an embodiment of the present invention;
fig. 2 is a schematic flow chart of a testing method according to a second embodiment of the present invention;
fig. 3 is a schematic structural diagram of a testing apparatus according to a third embodiment of the present invention;
fig. 4 is a schematic structural diagram of a terminal device according to a fourth embodiment of the present invention;
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Before discussing exemplary embodiments in more detail, it should be noted that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although a flowchart may describe the operations (or steps) as a sequential process, many of the operations can be performed in parallel, concurrently or simultaneously. In addition, the order of the operations may be re-arranged. The process may be terminated when its operations are completed, but may have additional steps not included in the figure. The processes may correspond to methods, functions, procedures, subroutines, and the like. In addition, the embodiments and features of the embodiments in the present invention may be combined with each other without conflict.
The term "include" and variations thereof as used herein are intended to be open-ended, i.e., "including but not limited to". The term "based on" is "based, at least in part, on". The term "one embodiment" means "at least one embodiment".
Example one
Fig. 1 is a schematic flow chart of a testing method according to an embodiment of the present invention, which is applicable to improving the testing efficiency of a marine product. The method may be performed by a testing apparatus, which may be implemented by software and/or hardware, and is typically integrated on a terminal device. The terminal device in this embodiment may be a mobile phone, a personal digital assistant, a computer, or the like.
As shown in fig. 1, an embodiment of the present invention provides a testing method, including the following steps:
and S110, displaying a test interface of the marine product after monitoring the test instruction.
The test instruction may be considered an instruction that triggers the test to be performed. The triggering means of the test instruction is not limited, and the test method provided by the application can be applied to an application program for performing a marine product test. The test instruction can be obtained by triggering a set control in the application program operated by the user, for example, after the user logs in the application program, the test instruction is triggered, namely, the test instruction is triggered by logging in the control; or the user triggers the test instruction after starting the application program, namely the control is started to trigger the test instruction.
The invention can test the sea products in the sea scene of the account. The product of the commercial bank is output to the third party platform for use when the account is taken out of the sea, and the influence of the third party platform and the financial science and technology strength of the commercial bank are applied to achieve product popularization. The marine product may be a product that was brought to the third party platform when the account was taken at sea. A marine product may be composed of multiple financial scenarios. A financial scenario is a specific financial service scenario, such as a balance inquiry, and generally one scenario corresponds to a set of H5 pages.
The test interface can be a man-machine interaction interface for realizing the test of the offshore products. All seafood products can be included in the test interface for selection by the user.
After the test instruction is monitored, the step can directly display a test page of the marine product to obtain the test parameters selected by the user, so that the test of the marine product is realized.
And S120, obtaining the test parameters selected by the user on the test interface.
The test parameters can be selected by the user operating the corresponding control in the test interface, and the user can select the test parameters from the test interface based on the content of the required test. If the test interface can comprise all the offshore product catalog menus, the user selects the test parameters by selecting the menu of the offshore product to be tested; as another example, the test interface macro may include a menu of functions for all financial scenarios, and the user may select the test parameters by selecting the menu for the financial scenario to be tested.
Further, the test parameters include marine product information and financial scenario information.
The marine product information may be understood as information identifying a marine product. Financial scenario information may be understood as information identifying a financial scenario. In testing a marine product, the test parameters may include marine product information and financial scenario information. During the test, can be based on according to the marine product screening financial scene to determine marine product information and financial scene information, also can screen out marine product based on financial scene, thereby determine marine product information and financial scene information.
Further, the financial scenario information includes one of:
financial scenario information for at least one financial scenario;
financial scenario information supporting one financial scenario for at least two marine products.
The financial scene information comprises information of a single financial scene; information for a plurality of custom financial scenarios may also be included; information supporting the same financial scenario for at least two of the marine products may also be included. The financial scenario information includes different contents and can correspond to different testing methods, for example, when the financial scenario information includes information of a single financial scenario, a case, such as a standard case, a testing case module or a sharing case, can be determined based on the financial scenario information, so as to determine the testing case for testing; if the financial scenario information comprises information of a plurality of user-defined financial scenarios, determining a test case based on a case corresponding to each financial scenario to perform a test; and when the financial scene information comprises a financial scene supporting at least two marine products, determining a test case based on a case corresponding to the financial scene of each marine product to perform a test.
And S130, determining a test case based on the test parameters and the case library.
The case base may be a pre-stored case required for the test. The case base can include a test case template, a standard case and a shared case. The test case may be a case for performing a test generated based on test parameters of a test desired by a user.
After determining the test parameters, the step may match cases corresponding to the test parameters from the case library, and then determine the test cases based on the cases. Different means for determining the case correspond to different means for determining the test case.
Illustratively, extracting corresponding standard cases from the standard case set based on the test parameters; extracting corresponding sharing cases from the user test case set; and extracting the corresponding test case template from the case template set. Wherein, the standard case set stores a plurality of standard cases corresponding to the test parameters. The user test case set stores a plurality of sharing cases corresponding to the test parameters and/or the user identifications. The shared case is a test case determined by the user or the rest of the users in history. The case template set comprises test case templates corresponding to a plurality of test parameters.
And S140, executing the test case and determining a test result.
And after the test case is determined, executing the test case, and determining an execution result as a test result.
The embodiment of the invention provides a test method, which comprises the steps of firstly, monitoring a test instruction, and displaying a test interface of a marine product; secondly, acquiring test parameters selected by a user on the test interface; then determining a test case based on the test parameters and the case library; and finally, executing the test case and determining a test result. By utilizing the technical scheme, the test efficiency of the offshore project can be effectively improved based on the test parameters and the case library.
Further, when a test case is determined based on financial scenario information in the test parameters, and the financial scenario information corresponds to at least two financial scenarios, determining the test case based on the test parameters and a case library includes: and determining a case corresponding to each financial scene according to the testing sequence of the financial scene information from a case library, and determining a testing case based on the testing sequence and the cases corresponding to the financial scenes.
The test sequence can be understood as the execution sequence of the case corresponding to each financial scenario. The cases in the case base can be correspondingly stored based on financial scenes, and the case corresponding to each financial scene can be determined based on financial scene identification information in the financial scene information. The financial scenario identification information may be used to identify a financial scenario. After the cases corresponding to the financial scene information are determined, the cases can be arranged based on the test sequence, the arranged cases can be directly used as test cases, or the arranged cases can be modified by a user, and then the modified cases are used as test cases. The cases can be standard cases, shared cases or test case templates. When the case is the test case template, the field to be replaced in the test case template can be replaced to obtain the case corresponding to each financial scene. Different test case templates may have different fields to be replaced, and are not limited herein.
Further, when a test case is determined based on financial scenario information in the test parameters, and the financial scenario information corresponds to a financial scenario supporting at least two products in the open sea, determining the test case based on the test parameters and a case base includes: and determining a case corresponding to each sea product and the financial scene from a case library, and determining a test case based on the case corresponding to each sea product and the financial scene.
When the financial scenario information includes a financial scenario supporting at least two marine products, a corresponding case may be determined based on each marine product and the financial scenario, and then a test case under the test scenario may be obtained based on the determined case.
Example two
Fig. 2 is a schematic flow chart of a testing method according to a second embodiment of the present invention, which is embodied on the basis of the first embodiment. In this embodiment, the obtaining of the test parameter selected by the user in the test interface specifically includes:
acquiring the information of the sea products selected by the user on the sea account sub-page of the test page;
and acquiring financial scene information selected by the user on a financial scene sub-page of the test interface.
Further, the determining a test case based on the test parameters and the case base includes one of the following:
extracting a test case template corresponding to the financial scene information in the test parameters from a case library, and determining a test case based on the test case module;
extracting standard cases corresponding to financial scene information and marine product information in the test parameters from a case library, and determining test cases based on the standard cases;
and extracting the identification information corresponding to the user and the sharing case of the financial scene information and the offshore product information in the test parameters from a case library, and determining the test case based on the sharing case.
Please refer to the first embodiment for details of the present embodiment.
As shown in fig. 2, a testing method provided in an embodiment of the present invention includes the following steps:
s210, displaying a testing interface of the marine product after monitoring the testing instruction.
And S220, acquiring the information of the sea products selected by the user on the sea account sub-page of the test page.
When the test parameters are selected, the step can be used for selecting the information of the marine products based on the marine account subpage. The sea account sub-page may contain all of the sea products. The sea account subpage may be a subpage of the test page.
And S230, acquiring financial scene information selected by the user on a financial scene sub-page of the test interface.
When the test parameters are selected, the financial scene information can be selected based on the financial scene sub-page in the step. The financial scenario sub-page may contain all financial scenarios. The financial scenario sub-page may be a sub-page of a test page. In one embodiment, the financial scenario sub-page may be a sub-page triggered based on the selected seafood after the seafood information is selected by the user from the seafood account sub-page, and all financial scenarios included in the seafood are included in the sub-page.
S240, extracting a test case template corresponding to the financial scene information in the test parameters from a case library, and determining a test case based on the test case module; or, extracting standard cases corresponding to the financial scene information and the marine product information in the test parameters from a case library, and determining the test cases based on the standard cases; or, extracting the identification information corresponding to the user and the sharing case of the financial scene information and the offshore product information in the test parameters from the case library, and determining the test case based on the sharing case.
When determining a test case based on test parameters and a case base, the method can be divided into three situations, namely, based on financial scene information, screening a test case template from the case base, determining the test case template, and then replacing a field to be replaced to obtain the test case. The field for replacing the field to be replaced can be determined based on an actual test scenario, which is not limited herein; screening a corresponding standard case from a case base based on financial scene information and marine product information, and determining the standard case, wherein the standard case can be directly determined as a test case or determined as a test case after the standard case is determined; based on the identification information, the financial scene information and the information of the marine products, a case library is screened to obtain shared cases, and after the shared cases are determined, the shared cases can be determined as test cases or the shared cases modified by users can be determined as test cases. The identification information of the user may be information identifying the user.
And S250, executing the test case and determining a test result.
The following is an exemplary description of embodiments of the invention:
the test method provided by the invention can be regarded as a custom service integration test method based on H5. The invention mainly discusses a custom service integration test tool based on the H5 page mode sea-going function.
In order to improve a business test mode based on the H5 mode sea-going function, a business integration test method which is flexible and can be configured in a user-defined mode is needed, a financial application entrance of a third-party APP system is integrated, the process of customizing business test scenes from different angles such as a third-party APP, a financial sea-going scene, a third-party APP + financial sea-going scene and the like is supported, end-to-end test from the third-party APP to a back-end service component of a commercial bank is started by one key, and test efficiency is improved. The third party APP and the products coming out of the sea have a corresponding relation. The invention can select the corresponding offshore product to test based on the corresponding relation.
The sea mode of the H5 page is that the third party accesses the commercial bank system by adopting the page mode. By calling a page access calling mode defined in a Software Development Kit (SDK), skipping to a commercial bank product service page through a third-party APP can be realized, and after financial service is completed, elements required by the third party are returned to the page for the third party to store. Among them, the SDK is generally a set of development tools used by some software engineers to build application software for a specific software package, software framework, hardware platform, operating system, and the like.
The open bank H5 page-based sea pattern is an important approach for a third-party APP newly introduced by a commercial bank in the last two years to access the financial function of the commercial bank. The offshore function test based on the mode mainly comprises two test modes: firstly, testing is carried out aiming at a single APP development simulation test packet; and secondly, after the background service functions are communicated, a third-party APP of the binding equipment is used for initiating service joint test in the test sandbox environment.
Although the existing open bank H5 page-based business test for the sea function can basically meet the business requirements, the existing open bank H5 page-based business test for the sea function has the following defects:
the method for developing and simulating the third-party app package requires additional development of technicians for the partners, and meanwhile, when the method is popularized to other third partners in a sea scene with similar functions, the method cannot be reused;
the sandbox environment and the third party are used for joint test, the test progress depends on the development and test progress of the third party, and the test period is uncontrollable;
when the same financial scene is in the sea, the reuse of the test case can not be realized;
when multiple partners share the same financial function, if the H5 page element and the like are updated, the multiple partners need to be used for initiating the test.
The invention provides an integrated test tool overall solution model for solving the technical problems, and the model consists of a business operation layer, a test method layer, a case design layer, a case execution layer and a data storage layer. Through the mutual cooperation of the five modes, the complete test life cycle of financial function selection, test method definition, test case design, test case execution and the like is supported.
The main service test operation of the user can be simplified as the following steps:
(1) the tested marine products were selected. After logging in, the user can automatically display all the catalogs of the products from the sea integrated in the testing tool for the user to select.
(2) After the user selects the test products in the sea, the user can select a test method (namely, select financial scenes) and support three modes of selecting single-scene test, self-defined scene serial test (namely, serial test of the financial scenes according to the test sequence) and multi-product one-scene one-key test.
(3) And generating a test case according to the scene, supporting the extraction of a default test case template according to the financial scene, extracting the existing test case from the standard case area according to the marine products and the financial scene to be used as a template, screening other user sharing cases according to the user, the marine products and the financial scene to be used as a template, and modifying the templates to be used as the test case.
(4) And executing the test case according to the test mode, and automatically performing the test result marking.
The data storage layer is a foundation stone of the whole integrated test tool solution and can be divided into a safety information area, a public information area, a user information area and a standard case area according to storage contents. The safety information area is mainly used for storing product ID and relevant safety sensitive information required by commercial banks and used for product authentication, such as appKey and appSecKey; the public information area is mainly used for storing data and incidence relations of the marine products, the marine financial scenes and the like, and comprises contents such as a full product catalog, the marine financial scenes supported by each product, scenes, test case templates and the like; the user information area is mainly used for storing personalized data which mainly comprises users, the user-defined test case set of a certain scene of a certain marine product comprises a case number, a case description, an execution state, test request data, a test response result, whether the test case set is shared or not and the like, and the user-defined financial scene serial flow information comprises a stream program number, and the serial number and the state of each scene case in the process; the standard case area mainly stores standard case sets extracted from user test case sets according to the offshore financial scenes and product dimensions, comprises serial numbers, test request data, reference response results and the like, and is a test case asset library for offshore business tests.
The business operation layer is mainly responsible for interaction between the testing tool and the user, and provides a friendly testing interface for testers to select a third-party platform APP and a testing business scene to be tested. For each test scene, the background automatically stores the test cases of each tester (based on the identification information storage of the user) so as to share and reuse the test cases, the user can initiate the test after subsequent simple modification, simultaneously, the testers can be familiar with the test of each scene, and the test efficiency is greatly improved.
The functions supported by the service operation layer mainly include:
(1) screening and displaying all the catalogs of the products from the sea integrated in the tool;
(2) displaying all financial scene function menus supported in the product according to the products in the sea;
(3) screening all the lists of the products which support the scene according to the scene;
(4) customizing an integration test method;
(5) the test cases are compiled according to scenes, and three modes of new generation, and new test cases are generated by extracting from a standard case library or a user sharing case to form a user test case library.
(6) Automatic testing and presentation of test trips.
Because the existing business scenes of business banks are rich, the financial scenes have atomicity and have front-back dependency, such as short message verification code sending and short message verification code content verification. In order to facilitate the test of a user and further increase the test flexibility and the test selectivity, a test method layer in the tool provides three types of test methods including single-scene test, self-defined-scene serial test and multi-product one-scene one-key test, and the user selects a subsequent test method of a test case as required.
(1) Supporting single scenario testing, i.e. determining test cases based on financial scenario information supporting a financial scenario
The single-scene testing method is the basis of the integrated testing tool, is suitable for connectivity testing and business function testing of a single financial scene, and does not need to consider the context of the scene during testing.
(2) Supporting the user-defined scene concatenation test, i.e. supporting the financial scene information determination test case of at least two financial scenes
The user-defined scene serial connection test is that based on a single scene test, financial scenes with service association exist, namely, the scenes have a front-back dependency relationship, if the front transaction is not tested, the next scene cannot be tested, and related financial scenes are connected in series, so that the method is suitable for complex service scenes. A client using the test method can customize the test sequence, test case and execution interrupt processing flow of the scene to be assembled, and can also multiplex the existing test scene flow of other users or the user at the earlier stage. The newly customized scene flow information of the user can also become a test asset. The user can set an interrupt processing flow, namely a processing flow after the operation fails, as required.
According to the method, the repeated operation of the user can be reduced by designing the test scene flow in a customized manner by the user, the operation experience of the user is optimized, and the convenience and the flexibility of the test are improved.
(3) One-key test supporting multiple products in same scene
The method for testing multiple products in the same scene is suitable for scenes with certain financial functions in multiple products in the sea, and the situations of multiple products can be influenced after the scenes are modified. The method can reduce repeated operation, simplify the test flow, and support the user to use the same scene test case to carry out batch test on a plurality of products in the same scene.
The case design layer has different case design steps according to three types of test methods, namely single-scene test, custom-scene serial test, multi-product one-scene one-key test and the like.
(1) During single scene testing
After a user selects a test scene, generating a test case in three ways, namely generating a new test case according to a test case template of a financial scene; automatically extracting matched existing test cases from the standard case area according to the marine products and the financial scene; and thirdly, screening and extracting matched test case data from the user case information according to the user, the marine products and the financial scenes, and displaying the test case data to the user for selection and use.
The specific implementation process is as follows:
during the first test, the system automatically supports the generation of a new test case after extracting a test case template from a public information area according to a financial scene according to a product and financial scene; or pulling the standard test case and the test data from the standard case area, and displaying the standard test case and the test data to the user; or screening out shared test cases and descriptions of other users in the system from the user case information area according to the users, the products in the sea and the financial scenes. The user can select to use the newly generated case, the standard case or the shared case as a test data template, and the test case data generated by the current user is automatically cached in the tool background after selection. The tester can modify and store the data of the current test case according to the business logic requirements of specific tests, select whether to share the data with other users, and automatically store the current case in the user test case set in the user information area after selecting and storing.
During subsequent testing, the system preferentially displays the existing test case set in the current user scene, and simultaneously displays the shared cases and descriptions of other existing users in the system for the user to select as a test case compiling template. After the test template is determined, the tool background automatically caches the current test data test case, and simultaneously supports updating the modified test data into a user test case set.
(2) During the series test of the user-defined scene
The system automatically displays the user scene flow of the current user, displays each piece of financial scene information in the flow after the user selects, and performs a case testing journey. And selecting or setting corresponding case data according to a single scene mode aiming at each financial scene, and submitting and saving the case data.
After the case testing and compiling of each financial scene are completed, the system automatically stores the testing scene, the scene serial flow program number, the content of each scene case, the testing state and other information into the corresponding user scene flow information and the user case set. During the test of the post-positioned scene, the automatic reading of the content in the user case set of the pre-positioned scene is supported, and the execution result of the pre-positioned scene is displayed to the user for selection as the input element of the post-positioned transaction.
(3) Supporting one-key test of multiple products in the same scene, namely supporting financial scene information of one financial scene of at least two products in the sea, and determining test cases
After the user selects the scene to be tested, the system automatically displays all products comprising the scene, and after the user selects the product set to be tested, the system automatically reads the standard case data and the user case set to match out the test case data applicable to the scene for the user to select or modify, and finally generates the test case. And automatically generating scene concatenation by the product set tested according to the requirement, and storing the scene concatenation into corresponding user scene flow information and user case set.
The case execution layer supports three test execution methods of single-scene case execution, scene serial flow case execution and one-key test of multiple products in the same scene, and supports automatic trace-leaving and sharing of the test process. The single context case execution means that only the test case with the context specified by the user is executed after the user specifies the scene; the scene concatenation case execution means that case contents and case execution sequences of all scenes in a user concatenation flow are automatically read, and case concatenation execution is completed after one-key submission; the one-key test of multiple products in the same scene refers to one-key test of the same financial service scene in multiple marine products.
(1) Single context execution
When the case with single context is selected to be executed, the following operations are automatically completed after the user submits the case: product security authentication, namely initializing security information through a commercial bank open bank platform; initializing common parameters of the H5 page, such as organizations, channels and the like; obtaining private parameters from the test case; after the parameters are obtained, information such as a spliced product number, a scene number and the like forms an H5 page access address; accessing a commercial bank background system, calling the H5 page of the financial service, automatically filling the page with test data, supporting the modification of the page test data, and submitting a data test after the completion.
(2) Scene concatenation case execution
When a scene concatenation case is selected to be executed, after a user submits a concatenation case execution application, background inquiry is carried out on user scene flow information, scene flow is returned to concatenate each scene information and case information description, and a test journey of the concatenated case is displayed; after selecting an execution case, a user initiates a service test of the scene according to a single context, displays a test result of the case after the test is finished, and updates the test result in the user case set and the execution state in the user scene flow information; and after the user confirms, executing the next scene, and if the scene needs to use the data returned by the last scene, automatically filling the scene into the H5 page of the case, and executing the scene test until all the nodes are processed.
(3) Multi-product same-scene one-key execution
When the multi-product one-scene one-key test is selected to be executed, after a user selects a standard test case of the financial scene, background inquiry is carried out on user scene flow information, a scene flow is returned to connect scene information and case information description in series, and a test journey of the connected cases is displayed; and after the test is finished, updating the test result in the user case set and the execution state in the user scene flow information, and executing the next case until all cases are executed. If a certain scene is executed with errors, uninterrupted processing is supported, and all cases are uniformly displayed after being executed.
The invention is based on the self-defined service integration test method model of H5, integrates all H5 page products of the commercial bank open platform in a single test tool, and can realize centralized test; supporting scene concatenation case execution: aiming at the same product, the financial test scene flow needing to be tested can be selected in a self-defined mode, a plurality of scene cases under the product can be executed in a one-key mode, the problem of low efficiency in one-by-one scene test is solved, the user operation flow is simplified, and the test automation is realized; when the scene concatenation case is executed, breakpoint retransmission is supported. When a certain scene tests and reports errors, the method supports the user to carry out breakpoint retransmission after the problem is repaired. After the user modifies the test data, the user can resubmit or select to continue execution until the whole process is tested successfully; the method supports one-key test of multiple product cases in the same scene, and can realize one-key test when multiple products are influenced by modification of a certain test scene. The method supports the user to use the same case to carry out batch test on the same scene of a plurality of products, reduces repeated operation and simplifies the test flow; when the multi-product case is tested in one key in the same scene, the method supports uninterrupted execution after error reporting. After the scene test of a certain product fails, the execution result is automatically stored without error processing, and the test scene of the post-product is continuously executed. And uniformly displaying the test results of all cases after the flow execution is finished.
The test method provided by the invention has the following advantages: the tool has strong expansibility, integrates function tests of all third-party platforms with commercial bank cooperation, and supports automatic addition of the catalogs of the products at sea. Aiming at the test of a newly added third-party platform APP, repeated development is not needed, and the test can be directly brought into the existing tool framework; and the case compiling and automatic execution of the user-defined test scene serial flow are supported, and effective test assets can be formed. The tool supports a user to self-define and select a plurality of financial scenes for serial connection testing, and the customized design can reduce repeated operation of the user, optimize the operation experience of the user and improve the convenience and flexibility of the testing; the reusability of the test cases is enhanced, and test assets can be effectively formed. The method realizes sharing and multiplexing of test data of the same financial scene among different users, and can also customize private cases according to specific user differentiation; the test data are isolated while the cases are shared; the design of users, products coming out of the sea and financial scenes is introduced, so that when multiple users test one product at the same time, test cases in the same scene can be shared among different products, and the repeated input of the users during testing is reduced.
The embodiment of the invention provides a test method, which embodies the operation of selecting test parameters and determining test cases, enriches the test means for testing the offshore products and improves the test efficiency of the offshore products.
EXAMPLE III
Fig. 3 is a schematic structural diagram of a testing apparatus according to a third embodiment of the present invention, which is applicable to a situation of improving the testing efficiency of a marine product, wherein the apparatus may be implemented by software and/or hardware and is generally integrated on a terminal device.
As shown in fig. 3, the apparatus includes:
the display module 31 is used for displaying a test interface of the marine product after monitoring the test instruction;
a selecting module 32, configured to obtain a test parameter selected by a user in the test interface;
the test case determining module 33 is configured to determine a test case based on the test parameters and the case library;
and the test result determining module 34 is used for executing the test case and determining the test result.
In this embodiment, the device firstly monitors a test instruction through the display module 31 and then displays a test interface of the seafood; secondly, acquiring the test parameters selected by the user on the test interface through a selection module 32; then, determining a test case based on the test parameters and the case base through a test case determining module 33; finally, the test case is executed by the test result determining module 34 to determine the test result.
The embodiment provides a testing device, and the testing efficiency of the offshore project can be effectively improved by utilizing the testing device based on the testing parameters and the case library.
Further, the test parameters include marine product information and financial scenario information.
Further, the selecting module 32 is specifically configured to:
acquiring the information of the sea products selected by the user on the sea account sub-page of the test page;
and acquiring financial scene information selected by the user on a financial scene sub-page of the test interface.
Further, the financial scenario information includes one of:
financial scenario information for at least one financial scenario;
financial scenario information supporting one financial scenario for at least two marine products.
Further, when the test case is determined based on the financial scenario information in the test parameters, and the financial scenario information corresponds to at least two financial scenarios, the test case determining module 33 is specifically configured to: and determining a case corresponding to each financial scene according to the testing sequence of the financial scene information from a case library, and determining a testing case based on the testing sequence and the cases corresponding to the financial scenes.
Further, when the test case is determined based on the financial scenario information in the test parameters, and the financial scenario information corresponds to a financial scenario supporting at least two products in the open sea, the test case determining module 33 is specifically configured to: and determining a case corresponding to each sea product and the financial scene from a case library, and determining a test case based on the case corresponding to each sea product and the financial scene.
Further, the test case determining module 33 specifically includes one of the following:
extracting a test case template corresponding to the financial scene information in the test parameters from a case library, and determining a test case based on the test case module;
extracting standard cases corresponding to financial scene information and marine product information in the test parameters from a case library, and determining test cases based on the standard cases;
and extracting the identification information corresponding to the user and the sharing case of the financial scene information and the offshore product information in the test parameters from a case library, and determining the test case based on the sharing case.
Example four
Fig. 4 is a schematic structural diagram of a terminal device according to a fourth embodiment of the present invention, and as shown in fig. 4, the fourth embodiment of the present invention provides a terminal device including: one or more processors 41 and storage 42; the processor 41 in the terminal device may be one or more, and one processor 41 is taken as an example in fig. 4; storage 42 is used to store one or more programs; the one or more programs are executed by the one or more processors 41 such that the one or more processors 41 implement a testing method according to any one of the embodiments of the present invention.
The terminal device may further include: an input device 43, an output device 44 and a communication device 45, the communication device 45 is used for realizing the external communication of the terminal equipment. The communication device 45 is connected to one or more processors 41.
The processor 41, the storage device 42, the input device 43, the output device 44 and the communication device 45 in the terminal equipment may be connected by a bus or other means, and the connection by the bus is exemplified in fig. 4.
The storage device 42 in the terminal device is used as a computer-readable storage medium for storing one or more programs, which may be software programs, computer-executable programs, and modules, such as program instructions/modules corresponding to the testing method provided in one or two embodiments of the present invention (for example, the modules in the testing device shown in fig. 3 include the display module 31, the selection module 32, the test case determination module 33, and the test result determination module 34). The processor 41 executes various functional applications and data processing of the terminal device by executing software programs, instructions and modules stored in the storage device 42, that is, implements the test method in the above-described method embodiment.
The storage device 42 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of the terminal device, and the like. Further, the storage 42 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some examples, storage 42 may further include memory located remotely from processor 41, which may be connected to the device over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input means 43 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the terminal device. The output device 44 may include a display device such as a display screen.
And, when the one or more programs included in the above-mentioned terminal device are executed by the one or more processors 41, the programs perform the following operations:
displaying a test interface of the marine product after monitoring a test instruction;
acquiring test parameters selected by a user on the test interface;
determining a test case based on the test parameters and the case library;
and executing the test case to determine a test result.
EXAMPLE five
An embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, where the computer program is used, when executed by a processor, to execute the testing method provided by the present invention, and the method includes:
displaying a test interface of the marine product after monitoring a test instruction;
acquiring test parameters selected by a user on the test interface;
determining a test case based on the test parameters and the case library;
and executing the test case to determine a test result.
Optionally, the program, when executed by the processor, may be further configured to perform a testing method provided by any of the embodiments of the invention.
Computer storage media for embodiments of the invention may employ any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a Read Only Memory (ROM), an Erasable Programmable Read Only Memory (EPROM), a flash Memory, an optical fiber, a portable CD-ROM, an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. A computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take a variety of forms, including, but not limited to: an electromagnetic signal, an optical signal, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, Radio Frequency (RF), etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including AN object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (10)

1. A method of testing, comprising:
displaying a test interface of the marine product after monitoring a test instruction;
acquiring test parameters selected by a user on the test interface;
determining a test case based on the test parameters and the case library;
and executing the test case to determine a test result.
2. The method of claim 1, wherein the test parameters include marine product information and financial scenario information.
3. The method of claim 2, wherein the obtaining of the test parameters selected by the user in the test interface comprises:
acquiring the information of the sea products selected by the user on the sea account sub-page of the test page;
and acquiring financial scene information selected by the user on a financial scene sub-page of the test interface.
4. The method of claim 2, wherein the financial context information comprises one of:
financial scenario information for at least one financial scenario;
financial scenario information supporting one financial scenario for at least two marine products.
5. The method of claim 4, wherein when determining a test case based on financial scenario information in the test parameters, and the financial scenario information corresponds to at least two financial scenarios, determining a test case based on the test parameters and a case base comprises: and determining a case corresponding to each financial scene according to the testing sequence of the financial scene information from a case library, and determining a testing case based on the testing sequence and the cases corresponding to the financial scenes.
6. The method of claim 4, wherein when determining a test case based on financial scenario information in the test parameters, the financial scenario information corresponding to a financial scenario supporting at least two marine products, determining a test case based on the test parameters and a case library comprises: and determining a case corresponding to each sea product and the financial scene from a case library, and determining a test case based on the case corresponding to each sea product and the financial scene.
7. The method of claim 1, wherein determining a test case based on the test parameters and a case base comprises one of:
extracting a test case template corresponding to the financial scene information in the test parameters from a case library, and determining a test case based on the test case module;
extracting standard cases corresponding to financial scene information and marine product information in the test parameters from a case library, and determining test cases based on the standard cases;
and extracting the identification information corresponding to the user and the sharing case of the financial scene information and the offshore product information in the test parameters from a case library, and determining the test case based on the sharing case.
8. A test apparatus, comprising:
the display module is used for displaying a test interface of the marine product after monitoring the test instruction;
the selection module is used for acquiring the test parameters selected by the user on the test interface;
the test case determining module is used for determining a test case based on the test parameters and the case base;
and the test result determining module is used for executing the test case and determining the test result.
9. A terminal device, comprising:
one or more processors;
storage means for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement the method of any one of claims 1-7.
10. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1-7.
CN202010224572.3A 2020-03-26 2020-03-26 Test method, test device, terminal equipment and storage medium Pending CN111427790A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010224572.3A CN111427790A (en) 2020-03-26 2020-03-26 Test method, test device, terminal equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010224572.3A CN111427790A (en) 2020-03-26 2020-03-26 Test method, test device, terminal equipment and storage medium

Publications (1)

Publication Number Publication Date
CN111427790A true CN111427790A (en) 2020-07-17

Family

ID=71548872

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010224572.3A Pending CN111427790A (en) 2020-03-26 2020-03-26 Test method, test device, terminal equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111427790A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112069083A (en) * 2020-11-12 2020-12-11 深圳开源互联网安全技术有限公司 Test case design method and device and storage medium
CN112948236A (en) * 2021-01-28 2021-06-11 杉德银卡通信息服务有限公司 Breakpoint configuration method, system and device for white box test
CN114398289A (en) * 2022-01-20 2022-04-26 中国联合网络通信集团有限公司 Service test method, device, equipment and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106021090A (en) * 2016-05-04 2016-10-12 上海瀚银信息技术有限公司 Software interface test system and method
CN108710569A (en) * 2018-05-09 2018-10-26 深圳壹账通智能科技有限公司 Test cases generation method, data creation method, device, equipment and medium
CN108763085A (en) * 2018-05-31 2018-11-06 平安科技(深圳)有限公司 On-line debugging device, method and the computer readable storage medium of test cases
CN109614319A (en) * 2018-11-14 2019-04-12 金色熊猫有限公司 Automated testing method, device, electronic equipment and computer-readable medium
WO2019085079A1 (en) * 2017-10-31 2019-05-09 平安科技(深圳)有限公司 Interface test method and apparatus, computer device and storage medium
CN109815147A (en) * 2019-01-21 2019-05-28 深圳乐信软件技术有限公司 Test cases generation method, device, server and medium
CN110334005A (en) * 2019-05-24 2019-10-15 平安普惠企业管理有限公司 Graphic data base screening technique and device, storage medium, electronic equipment

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106021090A (en) * 2016-05-04 2016-10-12 上海瀚银信息技术有限公司 Software interface test system and method
WO2019085079A1 (en) * 2017-10-31 2019-05-09 平安科技(深圳)有限公司 Interface test method and apparatus, computer device and storage medium
CN108710569A (en) * 2018-05-09 2018-10-26 深圳壹账通智能科技有限公司 Test cases generation method, data creation method, device, equipment and medium
CN108763085A (en) * 2018-05-31 2018-11-06 平安科技(深圳)有限公司 On-line debugging device, method and the computer readable storage medium of test cases
CN109614319A (en) * 2018-11-14 2019-04-12 金色熊猫有限公司 Automated testing method, device, electronic equipment and computer-readable medium
CN109815147A (en) * 2019-01-21 2019-05-28 深圳乐信软件技术有限公司 Test cases generation method, device, server and medium
CN110334005A (en) * 2019-05-24 2019-10-15 平安普惠企业管理有限公司 Graphic data base screening technique and device, storage medium, electronic equipment

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112069083A (en) * 2020-11-12 2020-12-11 深圳开源互联网安全技术有限公司 Test case design method and device and storage medium
CN112948236A (en) * 2021-01-28 2021-06-11 杉德银卡通信息服务有限公司 Breakpoint configuration method, system and device for white box test
CN114398289A (en) * 2022-01-20 2022-04-26 中国联合网络通信集团有限公司 Service test method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
CN108346028B (en) Business approval processing method, device and system
CN107861870B (en) Interface test and test data generation method, device, terminal and storage medium
CN111427790A (en) Test method, test device, terminal equipment and storage medium
US20180321922A1 (en) Bot creation with workflow development system
CN108920135B (en) User-defined service generation method and device, computer equipment and storage medium
US20120233588A1 (en) Blended service creation, test, and deployment environment for multiple service endpoints
JP2008176793A (en) Software test system, method, and computer-readable recording medium having program stored for executing this method
CN112015654A (en) Method and apparatus for testing
US20210303801A1 (en) Systems and methods for conversation modeling
CN113138927B (en) Software function test method and device
CN113706022A (en) Business process execution method and device, storage medium and electronic equipment
CN106126425B (en) Function traversal method and system based on Android automated test frame
CN113282444A (en) Visualization method and device for business process debugging
CN108628733A (en) The test method and device of batch service processing operation
CN112988600A (en) Service scene testing method and device, electronic equipment and storage medium
US20230333827A1 (en) Generating automations via natural language processing
CN113791984B (en) Automatic interface testing method and device
CN115695520A (en) Data processing system, method and related device
CN113051173B (en) Method, device, computer equipment and storage medium for arranging and executing test flow
CN112765038B (en) Distributed cluster software testing method, device, equipment and storage medium
CN114296833A (en) Business interface component configuration method and device, equipment and medium thereof
CN106844186B (en) Offline test method of application and terminal equipment
CN113609014A (en) Interface field checking method and device, storage medium and electronic equipment
CN114936152A (en) Application testing method and device
CN113377385A (en) Client automatic deployment method and device

Legal Events

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

Effective date of registration: 20220921

Address after: 25 Financial Street, Xicheng District, Beijing 100033

Applicant after: CHINA CONSTRUCTION BANK Corp.

Address before: 25 Financial Street, Xicheng District, Beijing 100033

Applicant before: CHINA CONSTRUCTION BANK Corp.

Applicant before: Jianxin Financial Science and Technology Co.,Ltd.

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

Application publication date: 20200717