CN116166528A - Automatic testing method and device for user information card system function and electronic equipment - Google Patents

Automatic testing method and device for user information card system function and electronic equipment Download PDF

Info

Publication number
CN116166528A
CN116166528A CN202211551299.0A CN202211551299A CN116166528A CN 116166528 A CN116166528 A CN 116166528A CN 202211551299 A CN202211551299 A CN 202211551299A CN 116166528 A CN116166528 A CN 116166528A
Authority
CN
China
Prior art keywords
card
test case
electronic card
electronic
order
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
CN202211551299.0A
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.)
Multipoint Shenzhen Digital Technology Co ltd
Original Assignee
Multipoint Shenzhen Digital Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Multipoint Shenzhen Digital Technology Co ltd filed Critical Multipoint Shenzhen Digital Technology Co ltd
Priority to CN202211551299.0A priority Critical patent/CN116166528A/en
Publication of CN116166528A publication Critical patent/CN116166528A/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/3684Test management for test design, e.g. generating new test cases
    • 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
    • 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/3692Test management for test results analysis
    • GPHYSICS
    • G08SIGNALLING
    • G08BSIGNALLING OR CALLING SYSTEMS; ORDER TELEGRAPHS; ALARM SYSTEMS
    • G08B21/00Alarms responsive to a single specified undesired or abnormal condition and not otherwise provided for
    • G08B21/18Status alarms
    • G08B21/182Level alarms, e.g. alarms responsive to variables exceeding a threshold

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • General Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Emergency Management (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

The embodiment of the invention discloses an automatic testing method and device for a user information card system function and electronic equipment. One embodiment of the method comprises the following steps: executing the electronic card test case to generate an electronic card test case execution result; executing the entity card test case to generate an entity card test case execution result; determining whether an execution result of the electronic card test case meets a first alarm condition; controlling the associated alarm equipment to alarm in response to determining that the execution result of the electronic card test case meets a first alarm condition; determining whether the execution result of the entity card test case meets a second alarm condition; and controlling the associated alarm equipment to alarm in response to determining that the entity card test case execution result meets the second alarm condition. The embodiment shortens the test time and reduces abnormal user information card outflow.

Description

Automatic testing method and device for user information card system function and electronic equipment
Technical Field
The embodiment of the disclosure relates to the technical field of computers, in particular to an automatic testing method and device for a user information card system function and electronic equipment.
Background
User information cards generally refer to cards used by users for value transfer (e.g., user shopping cards), including electronic cards and physical cards. Before issuing the user information card, in order to ensure the normal use of the user information card system function, the stability of the user information card system function needs to be tested, and the method generally adopted is as follows: and (5) manually testing.
However, the following technical problems generally exist in the above manner:
firstly, manual testing is inaccurate, testing time is long, and abnormal user information cards are easy to flow out;
secondly, the testing mode is single, the function test is incomplete, and abnormal user information cards are easy to flow out.
The above information disclosed in this background section is only for enhancement of understanding of the background of the inventive concept and, therefore, may contain information that does not form the prior art that is already known to those of ordinary skill in the art in this country.
Disclosure of Invention
The disclosure is in part intended to introduce concepts in a simplified form that are further described below in the detailed description. The disclosure is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used to limit the scope of the claimed subject matter.
Some embodiments of the present disclosure provide an automated testing method, apparatus, electronic device, and computer readable medium for user information card system functions to address one or more of the technical problems mentioned in the background section above.
In a first aspect, some embodiments of the present disclosure provide an automated testing method for a user information card system function, the method comprising: acquiring an electronic card test case corresponding to the electronic card test environment according to the electronic card test environment corresponding to the user information card system; acquiring an entity card test case corresponding to the entity card test environment according to the entity card test environment corresponding to the user information card system; executing the electronic card test case to generate an execution result of the electronic card test case; executing the entity card test case to generate an entity card test case execution result; determining whether the execution result of the electronic card test case meets a first alarm condition, wherein the first alarm condition is as follows: the executing result of the electronic card test case represents the abnormal function of the electronic card system; controlling the associated alarm equipment to alarm in response to determining that the execution result of the electronic card test case meets a first alarm condition; determining whether the execution result of the entity card test case meets a second alarm condition, wherein the second alarm condition is as follows: the entity card test case execution result represents the abnormal function of the entity card system; and controlling the associated alarm equipment to alarm in response to determining that the execution result of the entity card test case meets a second alarm condition.
In a second aspect, some embodiments of the present disclosure provide an automated testing apparatus for user information card system functionality, the apparatus comprising: the first acquisition unit is configured to acquire an electronic card test case corresponding to the electronic card test environment according to the electronic card test environment corresponding to the user information card system; the second acquisition unit is configured to acquire an entity card test case corresponding to the entity card test environment according to the entity card test environment corresponding to the user information card system; the first execution unit is configured to execute the electronic card test case so as to generate an execution result of the electronic card test case; the second execution unit is configured to execute the entity card test case so as to generate an entity card test case execution result; the first determining unit is configured to determine whether the execution result of the electronic card test case meets a first alarm condition, wherein the first alarm condition is as follows: the executing result of the electronic card test case represents the abnormal function of the electronic card system; the first alarm unit is configured to control the associated alarm equipment to alarm in response to determining that the execution result of the electronic card test case meets a first alarm condition; the second determining unit is configured to determine whether the execution result of the physical card test case meets a second alarm condition, wherein the second alarm condition is as follows: the entity card test case execution result represents the abnormal function of the entity card system; and the second alarm unit is configured to control the associated alarm equipment to alarm in response to determining that the execution result of the entity card test case meets a second alarm condition.
In a third aspect, some embodiments of the present disclosure provide an electronic device comprising: one or more processors; a storage device having one or more programs stored thereon, which when executed by one or more processors causes the one or more processors to implement the method described in any of the implementations of the first aspect above.
In a fourth aspect, some embodiments of the present disclosure provide a computer readable medium having a computer program stored thereon, wherein the program, when executed by a processor, implements the method described in any of the implementations of the first aspect above.
The above embodiments of the present disclosure have the following advantageous effects: by the automatic testing method for the functions of the user information card system, testing time is shortened, and abnormal user information card outflow is reduced. Specifically, the reason why the abnormal user information card flows out easily is that: the manual test is inaccurate and the test time is long. Based on this, the automatic test method for the functions of the user information card system according to some embodiments of the present disclosure first obtains, according to the electronic card test environment corresponding to the user information card system, the electronic card test case corresponding to the electronic card test environment. Here, the electronic card test case is acquired for subsequent execution. And secondly, acquiring an entity card test case corresponding to the entity card test environment according to the entity card test environment corresponding to the user information card system. Here, the physical card test case is acquired for subsequent execution. And then executing the electronic card test case to generate an execution result of the electronic card test case. The intelligent machine or the server process executes the electronic card test case to test the electronic card system function of the user information card system, and replaces manual operation, so that the test time of the electronic card system function is shortened, and the human resources required by the test are saved. And then executing the entity card test case to generate an entity card test case execution result. The intelligent machine or the server process executes the physical card test case to test the physical card system function of the user information card system, and replaces manual operation, thereby shortening the test time of the physical card system function and saving the human resources required by the test. And then, determining whether the execution result of the electronic card test case meets a first alarm condition. Wherein, the first alarm condition is: the execution result of the electronic card test case represents the abnormal function of the electronic card system. And controlling the associated alarm equipment to alarm in response to determining that the execution result of the electronic card test case meets the first alarm condition. And determining whether the function of the electronic card system is abnormal according to the execution result of the electronic card test case, and controlling the associated alarm equipment to alarm when the function is abnormal, so that related personnel can repair and adjust the electronic card system according to the reason of the abnormality. And finally, determining whether the execution result of the entity card test case meets a second alarm condition. Wherein, the second alarm condition is: the entity card test case execution result characterizes the entity card system function abnormality. And controlling the associated alarm equipment to alarm in response to determining that the execution result of the entity card test case meets a second alarm condition. Here, whether the function of the entity card system is abnormal or not is determined according to the execution result of the entity card test case, and the related alarm equipment is controlled to alarm when the function is abnormal, so that related personnel can repair and adjust the entity card system according to the reason of the abnormality. The whole process automatically tests the electronic card system function and the entity card system function of the user information card system, replaces manual testing, shortens testing time and reduces abnormal user information card outflow.
Drawings
The above and other features, advantages, and aspects of embodiments of the present disclosure will become more apparent by reference to the following detailed description when taken in conjunction with the accompanying drawings. The same or similar reference numbers will be used throughout the drawings to refer to the same or like elements. It should be understood that the figures are schematic and that elements and components are not necessarily drawn to scale.
FIG. 1 is a flow chart of some embodiments of an automated test method for user information card system functionality according to the present disclosure;
FIG. 2 is a schematic structural view of some embodiments of an automated testing apparatus for user information card system functionality according to the present disclosure;
fig. 3 is a schematic structural diagram of an electronic device suitable for use in implementing some embodiments of the present disclosure.
Detailed Description
Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete. It should be understood that the drawings and embodiments of the present disclosure are for illustration purposes only and are not intended to limit the scope of the present disclosure.
It should be noted that, for convenience of description, only the portion related to the invention 0 is shown in the drawings. Embodiments of the present disclosure and features of embodiments may be combined with each other without conflict.
It should be noted that the terms "first," "second," and the like in this disclosure are merely used to distinguish between different devices, modules, or units and are not used to define an order or interdependence of functions performed by the devices, modules, or units.
It should be noted that references to "one", "a plurality" and "a plurality" in this disclosure are intended to be illustrative rather than limiting, and those of ordinary skill in the art will appreciate that "one or more" is intended to be understood as "one or more" unless the context clearly indicates otherwise.
The names of messages or information interacted between the various devices in the embodiments of the present disclosure are for illustrative purposes only and are not intended to limit the scope of such messages or information.
The present disclosure will be described in detail below with reference to the accompanying drawings in conjunction with embodiments.
Fig. 1 is a flow chart of some embodiments of an automated test method for user information card system functionality according to the present disclosure. A flow 100 of some embodiments of an automated test method for user information card system functionality according to the present disclosure is shown. The automatic test method for the functions of the user information card system comprises the following steps:
Step 101, according to the electronic card testing environment corresponding to the user information card system, obtaining the electronic card testing case corresponding to the electronic card testing environment.
In some embodiments, an execution body (e.g., a server) of the automatic test method for the functions of the user information card system may obtain, according to an electronic card test environment corresponding to the user information card system, an electronic card test case corresponding to the electronic card test environment from the terminal device by means of wired connection or wireless connection. Wherein the user information card system may refer to a user prepaid card management system. The electronic card test environment may refer to an environment in which the user information card system tests the electronic card. That is, the user information card system may be a system that manages a user prepaid card. The user prepaid card may be a user purchase card with the functions of paying, refunding, binding personal information. The user prepaid card may include an electronic card and a physical card. The electronic card test case may refer to a test case that performs an automated test on an electronic card. The electronic card test case may include: examples of tests include card purchase, card consumption, card refund, and card withdrawal.
Step 102, according to the physical card testing environment corresponding to the user information card system, obtaining the physical card testing case corresponding to the physical card testing environment.
In some embodiments, the executing body may obtain, according to an entity card test environment corresponding to the user information card system, an entity card test case corresponding to the entity card test environment from the terminal device by means of wired connection or wireless connection. The physical card test environment may refer to an environment in which the user information card system tests the physical card. The physical card test case may refer to a test case that performs an automated test on a physical card. The physical card test case may include: the method comprises the steps of binding the entity card, consuming the entity card, refunding the entity card, unbinding the entity card and other test cases.
Step 103, executing the electronic card test case to generate an execution result of the electronic card test case.
In some embodiments, the execution body may execute the electronic card test case to generate an electronic card test case execution result. If the electronic card test case is successfully executed, indicating that the electronic card system is normal in function, the execution main body can generate an electronic card test case execution result representing that the electronic card system is normal in function; if the electronic card test case fails to execute, indicating that the electronic card system is abnormal in function, the executing body can generate an electronic card test case execution result representing the abnormal function of the electronic card system.
In practice, the execution body may execute the electronic card test case by:
first, using preset account number to log in the user information card system. A user information card system may be logged in using a preset account number. The preset account number is a user account number which is registered in advance and is used for logging in the user information card system so as to automatically test the function of the electronic card system of the user information card system.
And secondly, calling a card list query interface of the user information card system to query the electronic sub-card information set corresponding to the preset account. The card list query interface of the user information card system can be called to query the electronic sub-card information set corresponding to the preset account. The electronic sub-card information may include an electronic sub-card name. I.e. querying information of the electronic sub-card associated with the preset account.
And thirdly, sending a card opening request to the user information card system according to the electronic sub-card information set to obtain a card opening request result. That is, the electronic sub-card information set is transmitted to the user information card system. And after receiving the electronic sub-card information set, the user information card system carries out asset deduction processing of pre-recharging the preset account, and if the deduction is successful, a card opening request result showing that the card opening is successful is obtained.
And fourthly, responding to the card opening request result to represent the success of card opening, generating a card opening success result, and recording the electronic card information of the electronic card corresponding to the electronic card test case. The successful card opening result represents that the electronic card corresponding to the electronic card test case is successfully opened. In practice, when the card opening request result represents that the card opening is successful, the electronic card opening function is indicated to be normal. At this time, the electronic card information of the electronic card which is successfully opened and corresponds to the electronic card test case is recorded for subsequent use. And when the card opening request result represents card opening failure, indicating that the electronic card test case fails to execute. At this time, the card opening request result representing the card opening failure is recorded, and then the execution of the follow-up process of the electronic card test case is stopped.
And fifthly, calling an item information adding interface of the user information card system, and adding preset item information into the item blank order to generate an item order. Wherein the item information adding interface may be an interface to add item information to an item order. The preset item information may be preset item information. For example, the preset item information may be a preset item code and an item number.
And step six, calling an order submitting interface, and sending an order submitting request corresponding to the article order to an associated order server to obtain an order submitting request result. Wherein the order submitting interface is an interface in the user information card system for submitting an order of the article. Here, the associated order server may refer to a server communicatively connected to the user information card system.
And seventh, responding to the order submitting request result to represent the success of order submitting, generating an electronic card order circulation success result, and recording the order information of the article order. Wherein the electronic card order successful transfer result characterizes the electronic card successful transfer of the item order. In practice, when the order submitting request result indicates that the order submitting is successful, the executing body may generate an electronic card order circulation success result and record order information of the article order with circulation success. And when the order submitting request results represent the failure of order submitting, indicating that the order circulation function of the electronic card system is abnormal. The execution body can determine the execution failure of the electronic card test case, record information representing the order submission failure, and then stop the subsequent process of executing the electronic card test case.
And eighth step, according to the order information of the article order, sending an order cancel request to the order server to obtain an order cancel request result. The order information of the item order may be order information of the item order in which the circulation is successful. An order cancellation request may refer to a request to cancel an order for the item.
And ninth, responding to the order cancellation request result to represent that the order cancellation is successful, and inquiring the electronic card order cancellation result corresponding to the electronic card.
And tenth, responding to the electronic card order cancellation result to represent that the object order corresponding to the electronic card is successfully cancelled, and generating an electronic card order cancellation success result. In practice, when the electronic card order cancellation result indicates that the article order corresponding to the electronic card is successfully cancelled, the electronic card order cancellation function is normal. At this time, the execution body may generate a result that the electronic card order is canceled successfully, and continue to execute the subsequent process of the electronic card test case. And when the electronic card order cancellation result represents that the electronic card corresponding article order cancellation fails, indicating that the electronic card order cancellation function is abnormal. At this time, the executing body may record the result of the electronic card order cancellation failure, and stop the subsequent process of executing the electronic card test case.
Eleventh, determining whether the electronic card meets the card withdrawal condition according to the electronic card information of the electronic card. The card withdrawal condition may be: the electronic card is not frozen. The electronic card information contains information about whether the electronic card is frozen.
And twelfth, in response to determining that the electronic card meets the card withdrawal condition, initiating a card withdrawal request to a user information card system to obtain a card withdrawal request result. In practice, when the electronic card meets the card withdrawal condition, the executing body may initiate a card withdrawal request to the user information card system to obtain a card withdrawal request result; and when the electronic card does not meet the card withdrawing condition, indicating that the electronic card case fails to execute. At this time, the execution body may record a result indicating that the electronic card use case fails to be executed.
And thirteenth, responding to the card withdrawal request result to represent the success of card withdrawal, and generating an electronic card test case execution result representing the success of the electronic card test case execution. In practice, when the card withdrawal request result indicates that card withdrawal is successful, the execution body can confirm that the electronic card test case is successfully executed and generate an electronic card test case execution result indicating that the electronic card test case is successfully executed. When the card withdrawal request result represents a card withdrawal failure, the execution body can confirm the execution failure of the electronic card test case and record the result representing the execution failure of the electronic card case.
Step 104, executing the above-mentioned physical card test case to generate the execution result of the physical card test case.
In some embodiments, the execution body may execute the physical card test case to generate a physical card test case execution result.
In practice, the execution body may execute the physical card test case by:
first, using preset account number to log in the user information card system. The preset account number is a user account number which is registered in advance and is used for logging in the user information card system so as to automatically test the function of the electronic card system of the user information card system.
And step two, according to the card number and the card secret information of the preset entity card, sending a card binding request to the user information card system to obtain a card binding request result. Here, the card number and the card secret information may be an account number and a login password of the set physical card. Here, the binding card request may refer to binding information of the physical card with information of the user.
And thirdly, responding to the binding request result to represent the success of the binding, generating a successful binding result, and recording the entity card information of the entity card corresponding to the entity card test case. The successful binding result characterizes that the physical card corresponding to the physical card test case is successful. In practice, when the binding result indicates that the binding is successful, the entity card system indicates that the binding function is normal. At this time, the entity card information of the entity card which is successfully bound with the corresponding entity card test case is recorded for subsequent use. And when the binding card request result represents the binding card failure, indicating that the entity card test case fails to execute. At this time, the binding card request result representing the failure of binding card is recorded, and then the execution of the follow-up process of the entity card test case is stopped.
And step four, calling an article information adding interface of the user information card system to add preset article information into the article blank order to generate an article order. Wherein the item information adding interface may be an interface to add item information to an item order. The preset item information may be preset item information. For example, the preset item information may be a preset item code and an item number.
And fifthly, calling an order submitting interface, and sending an order submitting request corresponding to the article order to an associated order server to obtain an order submitting request result. Wherein the order submitting interface is an interface in the user information card system for submitting an order of the article. Here, the associated order server may refer to a server communicatively connected to the user information card system.
And sixthly, responding to the order submitting request result to represent that the order is submitted successfully, generating an entity card order circulation successful result, and recording order information of the article order. Wherein the physical card order successful transfer result characterizes the physical card successful transfer of the article order. In practice, when the order submitting request result indicates that the order submitting is successful, the executing body may generate a physical card order circulation success result, and record order information of the article order with circulation success. And when the order submitting request results represent the failure of order submitting, indicating that the order circulation function of the entity card system is abnormal. The execution body can determine that the entity card test case fails to execute, record information representing that the order is submitted to fail, and then stop the subsequent process of executing the entity card test case.
And seventhly, sending an order cancellation request to the order server according to the order information of the article order to obtain an order cancellation request result. The order information of the item order may be order information of the item order in which the circulation is successful. An order cancellation request may refer to a request to cancel an order for the item.
And eighth, responding to the order cancellation request result to represent that the order cancellation is successful, and inquiring the order cancellation result of the entity card corresponding to the entity card.
And ninth, responding to the entity card order cancellation result to represent that the object order corresponding to the entity card is successfully cancelled, and generating an entity card order cancellation success result. In practice, when the above-mentioned entity card order cancellation result indicates that the object order corresponding to the entity card is successfully cancelled, it indicates that the entity card order cancellation function is normal. At this time, the execution body may generate a result that the order of the physical card is canceled successfully, and continue to execute the subsequent process of the physical card test case. And when the entity card order cancellation result indicates that the object order cancellation corresponding to the entity card fails, indicating that the entity card order cancellation function is abnormal. At this time, the executing body may record the result of the cancellation failure of the physical card order, and stop the subsequent process of executing the physical card test case.
And tenth, sending an entity card unbinding request to the user information card system according to the entity card information of the entity card to obtain an unbinding request result. Here, the entity card unbinding request may refer to unbinding information of the entity card from information of the user.
And eleventh step, the unbinding success is represented by the unbinding request result, and the entity card test case execution result representing the successful execution of the entity card test case is generated. In practice, when the unbinding request result indicates that unbinding is successful, the execution body can confirm that the entity card test case is successfully executed, and generate an entity card test case execution result indicating that the entity card test case is successfully executed. When the unbinding request results indicate unbinding failure, the execution main body can confirm that the entity card test case fails to be executed, and record the result indicating that the entity card case fails to be executed.
The relevant content in the first step to the eleventh step is taken as an invention point of the present disclosure, and solves the second technical problem mentioned in the background art, namely that the user information card easy to cause abnormality flows out. ". Factors that easily cause abnormal user information card outflow are often as follows: the test mode is single, and the function test is incomplete. If the above factors are solved, the effect of reducing abnormal user information card outflow can be achieved. In order to achieve the effect, firstly, a card binding request is sent to the user information card system according to the card number and the card secret information of the preset entity card, and a card binding request result is obtained. Therefore, the binding card test can be carried out on the entity card so as to test the binding card function of the entity card. And then, calling an order submitting interface, and sending an order submitting request corresponding to the article order to an associated order server to obtain an order submitting request result. Thus, the physical card can be subjected to an item purchase test. Then, according to the order information of the article order, an order cancellation request is sent to the order server, and an order cancellation request result is obtained; and responding to the order cancellation request result to represent that the order cancellation is successful, and inquiring the order cancellation result of the entity card corresponding to the entity card. Thus, the refund function of the physical card can be tested. Finally, according to the entity card information of the entity card, sending an entity card unbinding request to a user information card system to obtain an unbinding request result; and responding to the unbinding request result to represent unbinding success, and generating an entity card test case execution result representing successful execution of the entity card test case. Therefore, the unbinding test can be carried out on the entity card so as to test the unbinding function of the entity card. Therefore, the function test can be performed from multiple angles, and abnormal user information card outflow is reduced.
Step 105, determining whether the execution result of the electronic card test case meets a first alarm condition.
In some embodiments, the executing body may determine whether the executing result of the electronic card test case meets the first alarm condition. Wherein, the first alarm condition is: the execution result of the electronic card test case represents the abnormal function of the electronic card system. When the electronic card test case is successfully executed, indicating that the electronic card system is normal in function, and enabling an execution result of the electronic card test case not to meet a first alarm condition; when the electronic card test case fails to be executed, the electronic card system is indicated to be abnormal in function, and the execution result of the electronic card test case meets the first alarm condition.
And step 106, controlling the associated alarm equipment to alarm in response to the fact that the execution result of the electronic card test case meets the first alarm condition.
In some embodiments, the executing entity may control the associated alarm device to alarm in response to determining that the electronic card test case execution result meets the first alarm condition. Here, the associated alarm device may be a communicatively connected alarm. When the execution result of the electronic card test case meets the first alarm condition, namely the electronic card system has abnormal functions, the execution main body can control the associated alarm equipment to alarm. For example, the abnormal result of the electronic card function is displayed on the screen of the electronic device, so that related personnel can know the abnormal result and timely maintain and adjust the electronic card system.
Step 107, determining whether the execution result of the entity card test case meets the second alarm condition.
In some embodiments, the executing body may determine whether the entity card test case execution result satisfies the second alarm condition. Wherein, the second alarm condition is: the entity card test case execution result characterizes the entity card system function abnormality. When the entity card test case is successfully executed, indicating that the entity card system is normal in function, and enabling an execution result of the entity card test case not to meet a second alarm condition; when the electronic card test case fails to be executed, the entity card system is indicated to be abnormal in function, and the execution result of the entity card test case meets a second alarm condition.
And step 108, controlling the associated alarm equipment to alarm in response to determining that the execution result of the entity card test case meets the second alarm condition.
In some embodiments, the executing entity may control the associated alarm device to alarm in response to determining that the entity card test case execution result satisfies the second alarm condition. Here, the associated alarm device may be a communicatively connected alarm. When the execution result of the test case of the entity card meets the second alarm condition, namely that the function of the system of the entity card is abnormal, the execution main body can control the associated alarm equipment to alarm. For example, the abnormal result of the function of the physical card is displayed on the screen of the electronic device, so that related personnel can know the abnormal result and timely maintain and adjust the physical card system.
The above embodiments of the present disclosure have the following advantageous effects: by the automatic testing method for the functions of the user information card system, testing time is shortened, and abnormal user information card outflow is reduced.
With further reference to fig. 2, as an implementation of the method shown in the above figures, the present disclosure provides embodiments of an automated test equipment for user information card system functions, which correspond to those method embodiments shown in fig. 1, which are particularly applicable to various electronic devices.
As shown in fig. 2, an automated test equipment 200 for user information card system functions of some embodiments includes: the first acquisition unit 201, the second acquisition unit 202, the first execution unit 203, the second execution unit 204, the first determination unit 205, the first alarm unit 206, the second determination unit 207, and the second alarm unit 208. The first obtaining unit 201 is configured to obtain an electronic card test case corresponding to the electronic card test environment according to the electronic card test environment corresponding to the user information card system; a second obtaining unit 202, configured to obtain an entity card test case corresponding to the entity card test environment according to the entity card test environment corresponding to the user information card system; a first execution unit 203 configured to execute the electronic card test case to generate an execution result of the electronic card test case; a second execution unit 204 configured to execute the physical card test case to generate an execution result of the physical card test case; a first determining unit 205, configured to determine whether the execution result of the electronic card test case meets a first alarm condition, where the first alarm condition is: the executing result of the electronic card test case represents the abnormal function of the electronic card system; a first alarm unit 206 configured to control an associated alarm device to alarm in response to determining that the execution result of the electronic card test case meets a first alarm condition; a second determining unit 207, configured to determine whether the execution result of the physical card test case meets a second alarm condition, where the second alarm condition is: the entity card test case execution result represents the abnormal function of the entity card system; and a second alarm unit 208, configured to control the associated alarm device to alarm in response to determining that the execution result of the physical card test case meets a second alarm condition.
It will be appreciated that the elements described in the automated test equipment 200 for subscriber information card system functions correspond to the individual steps in the method described with reference to fig. 1. Thus, the operations, features and advantages described above with respect to the method are equally applicable to the automated test equipment 200 for user information card system functions and the units contained therein, and are not described herein.
Referring now to fig. 3, a schematic diagram of an electronic device (e.g., server) 300 suitable for use in implementing some embodiments of the present disclosure is shown. The electronic devices in some embodiments of the present disclosure may include, but are not limited to, mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), car terminals (e.g., car navigation terminals), and the like, as well as stationary terminals such as digital TVs, desktop computers, and the like. The electronic device shown in fig. 3 is merely an example and should not impose any limitations on the functionality and scope of use of embodiments of the present disclosure.
As shown in fig. 3, the electronic device 300 may include a processing means (e.g., a central processing unit, a graphics processor, etc.) 301 that may perform various suitable actions and processes in accordance with a program stored in a Read Only Memory (ROM) 302 or a program loaded from a storage means 308 into a Random Access Memory (RAM) 303. In the RAM303, various programs and data required for the operation of the electronic apparatus 300 are also stored. The processing device 301, the ROM302, and the RAM303 are connected to each other via a bus 304. An input/output (I/O) interface 305 is also connected to bus 304.
In general, the following devices may be connected to the I/O interface 305: input devices 306 including, for example, a touch screen, touchpad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; an output device 307 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage 308 including, for example, magnetic tape, hard disk, etc.; and communication means 309. The communication means 309 may allow the electronic device 300 to communicate with other devices wirelessly or by wire to exchange data. While fig. 3 shows an electronic device 300 having various means, it is to be understood that not all of the illustrated means are required to be implemented or provided. More or fewer devices may be implemented or provided instead. Each block shown in fig. 3 may represent one device or a plurality of devices as needed.
In particular, according to some embodiments of the present disclosure, the processes described above with reference to flowcharts may be implemented as computer software programs. For example, some embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method shown in the flow chart. In such embodiments, the computer program may be downloaded and installed from a network via communications device 309, or from storage device 308, or from ROM 302. The above-described functions defined in the methods of some embodiments of the present disclosure are performed when the computer program is executed by the processing means 301.
It should be noted that, the computer readable medium described in some embodiments of the present disclosure may be a computer readable signal medium or a computer readable storage medium, or any combination of the two. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples of the computer-readable storage medium may include, but are not limited to: 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 or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage
A component, a magnetic memory device, or any suitable combination of the preceding. In some embodiments 5 of the present disclosure, the computer readable storage medium may be any tangible medium that can contain, or store a program,
the program may be used by or in conjunction with an instruction execution system, apparatus, or device. In some embodiments of the present disclosure, however, the computer-readable signal medium may comprise a propagated data signal with a computer-readable program embodied therein, either in baseband or as part of a carrier wave
And (5) code. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic signal 0, optical signals, or any suitable combination of the preceding. The computer readable signal medium may also be
Any computer readable medium, other than a computer readable storage medium, can be transmitted, propagated, or transmitted a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium
Transmission using any suitable medium, including but not limited to: electrical wires, fiber optic cables, RF (radio frequency), etc. 5, or any suitable combination of the foregoing.
In some embodiments, the client, server may communicate using any currently known or future developed network protocol, such as HTTP (Hyper Text Transfer Protocol ), and may communicate with digital data in any form or medium
A communication (e.g., a communication network) interconnect. Examples of communication networks include a local area network ("LAN"), a 0 wide area network ("WAN"), the internet (e.g., the internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed networks.
The computer readable medium may be contained in the electronic device; or may exist alone without being incorporated into the electronic device. The computer readable medium carries a
One or more programs that, when executed by the electronic device, cause 5 the electronic device to: acquiring the user information card system according to the electronic card test environment corresponding to the user information card system
The electronic card test case corresponds to the electronic card test environment; acquiring an entity card test case corresponding to the entity card test environment according to the entity card test environment corresponding to the user information card system; executing the electronic card test case to generate an execution result of the electronic card test case; on execution
The entity card test case is used for generating an entity card test case execution result; determining whether the execution result of the electronic 0 card test case meets a first alarm condition, wherein the first alarm condition is as follows: the executing result of the electronic card test case represents the abnormal function of the electronic card system; controlling the associated alarm equipment to alarm in response to determining that the execution result of the electronic card test case meets a first alarm condition; determining whether the execution result of the entity card test case meets a second alarm condition, wherein the second alarm condition is as follows: the entity card test case execution result represents the abnormal function of the entity card system; and controlling the associated alarm equipment to alarm in response to determining that the execution result of the entity card test case meets a second alarm condition.
Computer program code for carrying out operations for some embodiments of the present disclosure may be written in 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. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer (for example, through the Internet using an Internet service provider).
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in some embodiments of the present disclosure may be implemented by means of software, or may be implemented by means of hardware. The described units may also be provided in a processor, for example, described as: a processor includes a first acquisition unit, a second acquisition unit, a first execution unit, a second execution unit, a first determination unit, a first alarm unit, a second determination unit, and a second alarm unit. The names of the units are not limited in some cases, for example, the first obtaining unit may be further described as "obtaining the electronic card testing environment according to the electronic card testing environment corresponding to the user information card system
And a unit of a corresponding electronic card test case.
The functions described above herein may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), systems On Chip (SOCs), complex Programmable Logic Devices (CPLDs)
Etc.
The foregoing description is only of the preferred embodiments of the present disclosure and description of the principles of the technology being employed. It should be understood by those skilled in the art that the scope of the invention in the embodiments of the present disclosure is not limited to the specific combination of the above technical features, and should also be construed as including
The cover is made of the technical characteristics or the equivalents thereof without departing from the inventive concept
Other technical schemes formed by arbitrary combination of rows. Such as the features described above and embodiments of the present disclosure
The technical proposal disclosed in the above is (but not limited to) formed by mutually replacing technical features with similar functions.

Claims (8)

1. An automated testing method for user information card system functions, comprising:
acquiring an electronic card test case corresponding to an electronic card test environment according to the electronic card test environment corresponding to a user information card system;
acquiring an entity card test case corresponding to an entity card test environment according to the entity card test environment corresponding to the user information card system;
executing the electronic card test case to generate an electronic card test case execution result;
executing the entity card test case to generate an entity card test case execution result;
determining whether the execution result of the electronic card test case meets a first alarm condition, wherein the first alarm condition is as follows: the executing result of the electronic card test case represents the abnormal function of the electronic card system;
controlling the associated alarm equipment to alarm in response to determining that the execution result of the electronic card test case meets a first alarm condition;
Determining whether the execution result of the entity card test case meets a second alarm condition, wherein the second alarm condition is as follows: the entity card test case execution result represents the abnormal function of the entity card system;
and controlling the associated alarm equipment to alarm in response to determining that the execution result of the entity card test case meets a second alarm condition.
2. The method of claim 1, wherein the executing the electronic card test case comprises:
logging in a user information card system by using a preset account;
invoking a card list query interface of the user information card system to query an electronic sub-card information set corresponding to the preset account;
sending a card opening request to the user information card system according to the electronic sub-card information set to obtain a card opening request result;
and responding to the card opening request result to represent the card opening success, generating a card opening success result, and recording the electronic card information of the electronic card corresponding to the electronic card test case, wherein the card opening success result represents the card opening success of the electronic card corresponding to the electronic card test case.
3. The method of claim 2, wherein the executing the electronic card test case further comprises:
Invoking an article information adding interface of the user information card system, and adding preset article information into an article blank order to generate an article order;
calling an order submitting interface, and sending an order submitting request corresponding to the article order to an associated order server to obtain an order submitting request result;
and responding to the order submitting request result to represent that the order submitting is successful, generating an electronic card order circulation successful result, and recording order information of the article order, wherein the electronic card order circulation successful result represents that the electronic card successfully circulates the article order.
4. The method of claim 3, wherein the executing the electronic card test case further comprises:
according to the order information of the article order, an order cancellation request is sent to the order server, and an order cancellation request result is obtained;
responding to the order cancellation request result to represent that the order cancellation is successful, and inquiring an electronic card order cancellation result corresponding to the electronic card;
and responding to the electronic card order cancellation result to represent successful cancellation of the article order corresponding to the electronic card, and generating an electronic card order cancellation success result.
5. The method of claim 4, wherein the executing the electronic card test case further comprises:
determining whether the electronic card accords with a card withdrawing condition according to the electronic card information of the electronic card;
responding to the fact that the electronic card accords with the card withdrawing condition, initiating a card withdrawing request to a user information card system, and obtaining a card withdrawing request result;
and responding to the card withdrawal request result to represent successful card withdrawal, and generating an electronic card test case execution result representing successful execution of the electronic card test case.
6. An automated testing apparatus for prepaid card system functions, comprising:
the first acquisition unit is configured to acquire an electronic card test case corresponding to an electronic card test environment according to the electronic card test environment corresponding to the user information card system;
the second acquisition unit is configured to acquire an entity card test case corresponding to the entity card test environment according to the entity card test environment corresponding to the user information card system;
the first execution unit is configured to execute the electronic card test case so as to generate an electronic card test case execution result;
the second execution unit is configured to execute the entity card test case so as to generate an entity card test case execution result;
The first determining unit is configured to determine whether the execution result of the electronic card test case meets a first alarm condition, wherein the first alarm condition is that: the executing result of the electronic card test case represents the abnormal function of the electronic card system;
the first alarm unit is configured to control the associated alarm equipment to alarm in response to determining that the execution result of the electronic card test case meets a first alarm condition;
the second determining unit is configured to determine whether the execution result of the physical card test case meets a second alarm condition, wherein the second alarm condition is that: the entity card test case execution result represents the abnormal function of the entity card system;
and the second alarm unit is configured to control the associated alarm equipment to alarm in response to determining that the execution result of the physical card test case meets a second alarm condition.
7. An electronic device, comprising:
one or more processors;
a storage device having one or more programs stored thereon;
when executed by the one or more processors, causes the one or more processors to implement the method of any of claims 1-5.
8. A computer readable medium having stored thereon a computer program, wherein the program when executed by a processor implements the method of any of claims 1-5.
CN202211551299.0A 2022-12-05 2022-12-05 Automatic testing method and device for user information card system function and electronic equipment Pending CN116166528A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211551299.0A CN116166528A (en) 2022-12-05 2022-12-05 Automatic testing method and device for user information card system function and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211551299.0A CN116166528A (en) 2022-12-05 2022-12-05 Automatic testing method and device for user information card system function and electronic equipment

Publications (1)

Publication Number Publication Date
CN116166528A true CN116166528A (en) 2023-05-26

Family

ID=86417189

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211551299.0A Pending CN116166528A (en) 2022-12-05 2022-12-05 Automatic testing method and device for user information card system function and electronic equipment

Country Status (1)

Country Link
CN (1) CN116166528A (en)

Similar Documents

Publication Publication Date Title
CN111679990B (en) Test data generation method and device, readable medium and electronic equipment
CN112597047A (en) Test method, test device, electronic equipment and computer readable medium
CN111555940A (en) Client test method and device, electronic equipment and computer readable storage medium
CN113741755A (en) Information processing method and device, terminal and storage medium
CN110781373A (en) List updating method and device, readable medium and electronic equipment
CN113741756A (en) Information processing method, device, terminal and storage medium
CN114154958A (en) Information processing method, device, electronic equipment and storage medium
US20230385080A1 (en) Method and apparatus for presenting information on lock screen interface, terminal, and storage medium
CN112559898B (en) Item information sending method, item information sending device, electronic equipment and computer readable medium
CN111460432B (en) On-line document authority control method, device, equipment and computer readable medium
CN111596992B (en) Navigation bar display method and device and electronic equipment
CN112884376A (en) Work order processing method and device, electronic equipment and computer readable storage medium
CN115600964A (en) Voice approval method and device and related equipment
CN116166528A (en) Automatic testing method and device for user information card system function and electronic equipment
CN113079085A (en) Business service interaction method, business service interaction device, business service interaction equipment and storage medium
CN112184406A (en) Data processing method, system, electronic device and computer readable storage medium
CN112306858A (en) Test method and device and electronic equipment
CN113704079A (en) Interface testing method and device based on Protobuf
CN111209739A (en) Electronic form, electronic device, storage medium, and electronic form verification method
CN115374320B (en) Text matching method and device, electronic equipment and computer medium
CN117132245B (en) Method, device, equipment and readable medium for reorganizing online article acquisition business process
CN112668194B (en) Automatic driving scene library information display method, device and equipment based on page
CN115774986B (en) Highway quality evaluation table generation method, electronic device, and computer-readable medium
CN112929162B (en) Password management method and system, electronic equipment and readable storage medium
CN113220293B (en) Page display method, page display device, electronic equipment and computer readable medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination