CN106713058B - Test method, device and system based on cloud card resources - Google Patents

Test method, device and system based on cloud card resources Download PDF

Info

Publication number
CN106713058B
CN106713058B CN201510781412.8A CN201510781412A CN106713058B CN 106713058 B CN106713058 B CN 106713058B CN 201510781412 A CN201510781412 A CN 201510781412A CN 106713058 B CN106713058 B CN 106713058B
Authority
CN
China
Prior art keywords
card
test
resource
resource information
test resource
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.)
Active
Application number
CN201510781412.8A
Other languages
Chinese (zh)
Other versions
CN106713058A (en
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 Mobile Communications Group Co Ltd
Original Assignee
China Mobile Communications Group 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 Mobile Communications Group Co Ltd filed Critical China Mobile Communications Group Co Ltd
Priority to CN201510781412.8A priority Critical patent/CN106713058B/en
Publication of CN106713058A publication Critical patent/CN106713058A/en
Application granted granted Critical
Publication of CN106713058B publication Critical patent/CN106713058B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention provides a method, equipment and a system based on cloud card resources, wherein the method comprises the following steps: the method comprises the steps that a server obtains N card test resource information from a terminal connected with the server and stores the N card test resource information to a card test resource library, wherein N is a positive integer; detecting whether an indication of logging in a card application test platform exists; when the indication of logging in the card application test platform is detected, scheduling and displaying the N card test resource information from the card test resource library; receiving an instruction for selecting a target card test resource from the N card test resource information; and responding to the instruction, and calling the target card test resource to carry out card application test.

Description

Test method, device and system based on cloud card resources
Technical Field
The invention relates to the technical field of user cards, in particular to a test method, equipment and a system based on cloud card resources.
Background
At present, after a card application developer completes development of one card application, the card application developer first needs to acquire nfcumsim card resources of all card suppliers, and then tests in a mode of connecting a card reader and an NFC USIM card locally by using a PC. However, for a common card application developer, it is difficult to acquire NFC USIM cards of all card suppliers, and it is difficult for the card application developer to acquire the latest version information currently issued because the NFC USIM card product is also in the process of upgrading all the time. Therefore, a common card application developer is difficult to acquire all NFC USIM card resources issued by an operator to perform compatibility test, so that the compatibility of card application cannot be guaranteed.
Disclosure of Invention
In view of this, embodiments of the present invention provide a method, an apparatus, and a system for testing based on cloud card resources to solve the above problems in the prior art.
In order to achieve the above purpose, the technical solution of the embodiment of the present invention is realized as follows:
in a first aspect, an embodiment of the present invention provides a cloud card resource-based testing method, which is applied to a server, and the method includes:
acquiring N card test resource information, and storing the N card test resource information into a card test resource library, wherein N is a positive integer;
detecting whether an indication of logging in a card application test platform exists;
when the indication of logging in the card application test platform is detected, scheduling and displaying the N card test resource information from the card test resource library;
receiving an instruction for selecting a target card test resource from the N card test resource information;
and responding to the instruction, and calling the target card test resource to carry out card application test.
In the foregoing solution, when it is detected that there is an instruction to log in a card application test platform, scheduling and displaying the acquired card test resource information from the card test resource library, includes:
when the indication of logging in the card application test platform is detected, the card application test service module in the server acquires card test resource information from the card test resource library in the card resource management integrated module;
the card application test service module controls the display of the card test resource information.
In the above scheme, the method further comprises: the card resource management integrated module in the server manages the N card test resource information stored in the card test resource library in at least one mode of the following modes: state management, resource scheduling management and resource expansion management.
In a second aspect, an embodiment of the present invention further provides a test method based on cloud card resources, which is applied to a terminal, and the method includes:
configuring N card test resource information of N cards managed by the card test resource information management system, wherein N is a positive integer;
and sending the N card test resource information to a server connected with the server, so that the server schedules the N card test resource information, and performs card application test by using a target card test resource selected from the N card test resource information.
In the foregoing solution, the configuring N card test resource information of N cards managed by the configuration self includes:
detecting whether the states of the card reader and the card are normal or not;
when the states of the card reader and the card are detected to be normal, configuring the card test resource information corresponding to the card as a normal response value;
when the states of the card reader and the card are detected to be abnormal, trying to reconnect the card reader and the card until the states of the card reader and the card are detected to be normal, and adjusting card test resource information corresponding to the card to be available for card resources;
and when the states of the card reader and the card are still detected to be abnormal after the operation of reconnecting the card reader and the card is tried, canceling the management of the card test resource information corresponding to the card, and feeding back the card test resource information corresponding to the card to a server connected with the server as that the card resource is unavailable.
In the foregoing solution, the configuring N test resource information of N cards managed by the configuration self includes:
detecting whether a newly added card is connected to the terminal through a card reader;
when detecting that a newly added card is connected to the terminal through a card reader, configuring card test resource information corresponding to the newly added card, and feeding back the card test resource information corresponding to the newly added card to a server connected with the server.
In the above scheme, the terminal is a PC or a dedicated card resource manager.
In a third aspect, an embodiment of the present invention further provides a server, where the server includes a card resource management integrated module and a card application test service module;
the card resource management integrated module is used for acquiring N pieces of card test resource information and storing the N pieces of card test resource information into a card test resource library, wherein N is a positive integer;
the card application test service module is used for detecting whether an instruction for logging in the card application test platform exists; when the indication of logging in the card application test platform is detected, scheduling and displaying the N card test resource information from the card test resource library; receiving an instruction for selecting a target card test resource from the N card test resource information; and responding to the instruction, and calling the target card test resource to carry out card application test.
In the above scheme, the card application test service module includes an acquisition unit and a display control unit;
the acquisition unit is used for acquiring card test resource information from the card test resource library in the card resource management integrated module by the card application test service module in the server when the instruction for logging in the card application test platform is detected;
and the display control unit is used for controlling the display of the card test resource information.
In the above solution, the card resource management integrated module is further configured to manage the N card test resource information stored in the card test resource library in at least one of the following manners: state management, resource scheduling management and resource expansion management.
In a fourth aspect, an embodiment of the present invention further provides a terminal, where the terminal includes N card resource management modules;
the N card resource management modules are used for configuring card test resource information of N cards managed by the N card resource management modules, and N is a positive integer; and sending the N card test resource information to a server connected with the server, so that the server schedules the N card test resource information, and performs card application test by using a target card test resource selected from the N card test resource information.
In the above scheme, the N card resource management modules include a first detection unit, a first configuration unit, an adjustment unit, and a cancellation unit;
the first detection unit is used for detecting whether the states of the card reader and the card are normal or not;
the first configuration unit is used for configuring the card test resource information corresponding to the card as a normal response value when the states of the card reader and the card are detected to be normal;
the adjusting unit is used for trying to reconnect the card reader and the card when the states of the card reader and the card are detected to be abnormal, and adjusting the card testing resource information corresponding to the card to be available for card resources until the states of the card reader and the card are detected to be normal;
the cancellation unit is configured to cancel management of card test resource information corresponding to the card when it is still detected that the states of the card reader and the card are abnormal after an operation of reconnecting the card reader and the card is attempted, and feed back, to a server connected to the cancellation unit, that the card test resource information corresponding to the card is unavailable as a card resource.
In the above solution, the N card resource management modules further include a second detection unit and a second configuration unit;
the second detection unit is used for detecting whether a newly added card is connected to the terminal through a card reader;
and the second configuration unit is used for configuring card test resource information corresponding to the newly added card when detecting that the newly added card is connected to the terminal through the card reader, and feeding back the card test resource information corresponding to the newly added card to a server connected with the second configuration unit.
In the above scheme, the terminal is a PC or a dedicated card resource manager.
In a fifth aspect, an embodiment of the present invention further provides a test system based on cloud card resources, where the system includes a server and a terminal; wherein the content of the first and second substances,
the server is used for acquiring N card test resource information and storing the N card test resource information to a card test resource library, wherein N is a positive integer; detecting whether an indication of logging in a card application test platform exists; when the indication of logging in the card application test platform is detected, scheduling and displaying the N card test resource information from the card test resource library; receiving an instruction for selecting a target card test resource from the N card test resource information; calling the target card test resource to perform card application test in response to the instruction;
the terminal is used for configuring N card test resource information of N cards managed by the terminal, wherein N is a positive integer; and sending the N card test resource information to a server connected with the server, so that the server schedules the N card test resource information, and performs card application test by using a target card test resource selected from the N card test resource information.
In the embodiment of the invention, a server acquires N card test resource information from a terminal connected with the server and stores the N card test resource information into a card test resource library, wherein N is a positive integer; detecting whether an indication of logging in a card application test platform exists; when the indication of logging in the card application test platform is detected, scheduling and displaying the N card test resource information from the card test resource library; receiving an instruction for selecting a target card test resource from the N card test resource information; and responding to the instruction, and calling the target card test resource to carry out card application test. Therefore, online NFC USIM card testing resources can be provided for an application developer through an NFC USIM card online testing resource library established at the cloud end, so that compatibility testing of card application is realized, the compatibility of the card application is effectively guaranteed, and card services can be smoothly developed.
Drawings
FIG. 1 is a system architecture diagram of a conventional offline card application test;
fig. 2 is a first schematic flow chart of a testing method based on cloud card resources according to an embodiment of the present invention;
fig. 3 is a schematic flow chart of a test method based on cloud card resources according to an embodiment of the present invention;
fig. 4a is a schematic flow chart of a testing method based on cloud card resources according to an embodiment of the present invention;
FIG. 4b is a schematic diagram of a workflow of a server for status management according to an embodiment of the present invention;
FIG. 4c is a schematic diagram of a workflow of a server performing resource scheduling management according to an embodiment of the present invention;
FIG. 4d is a schematic diagram of a workflow of a server performing resource expansion management according to an embodiment of the present invention;
fig. 5a is a schematic flow chart of a testing method based on cloud card resources in the embodiment of the present invention;
fig. 5b is a schematic diagram of a workflow of configuring card test resource information by a terminal in a card resource state management manner according to an embodiment of the present invention;
fig. 5c is a schematic view of a work flow of configuring card test resource information by a terminal in a card resource expansion management manner according to an embodiment of the present invention;
FIG. 6 is a schematic diagram of a server according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of a terminal according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of a component of a test system based on cloud card resources according to an embodiment of the present invention;
FIG. 9 is a diagram of a PC-based cloud NFC card test resource library architecture according to the present invention;
fig. 10 is a schematic view of a testing process of the PC-based cloud NFC card resource according to the present invention;
FIG. 11a is a diagram of a cloud NFC card test resource library architecture in accordance with the present invention based on a specialized card resource manager approach;
FIG. 11b is a diagram illustrating a first design manner in which a card reader is connected to a dedicated card resource manager according to an embodiment of the present invention;
FIG. 11c is a diagram illustrating a second design mode of connecting the card reader to the dedicated card resource manager according to the embodiment of the invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and specific embodiments.
Currently, most of test modes for NFC card application compatibility adopt an offline mode, that is, after each card application developer obtains card resources, the card application developer performs a test according to the offline mode shown in fig. 1. In this offline mode, after a card application developer completes development of one card application, the card application developer first needs to acquire NFC USIM cards of all card suppliers, and then locally connects a card reader and the NFC USIM cards by using a PC to perform testing. However, for a common card application developer, it is difficult to acquire NFC USIM cards of all card suppliers, and it is difficult for the card application developer to acquire the latest version information currently issued because the NFC USIM card product is also in the process of upgrading all the time.
In order to solve the above problems, in the embodiment of the present invention, a server obtains N card test resource information from a terminal connected to the server, and stores the N card test resource information in a card test resource library, where N is a positive integer; detecting whether an indication of logging in a card application test platform exists; when the indication of logging in the card application test platform is detected, scheduling and displaying the N card test resource information from the card test resource library; receiving an instruction for selecting a target card test resource from the N card test resource information; and responding to the instruction, and calling the target card test resource to carry out card application test.
Example one
Fig. 2 is a schematic flow chart of a testing method based on cloud card resources according to an embodiment of the present invention, which is applied to a server, and as shown in fig. 2, the testing method based on cloud card resources according to the embodiment of the present invention includes:
step 201: acquiring N card test resource information, and storing the N card test resource information into a card test resource library, wherein N is a positive integer;
here, before the embodiment of the present invention implements a test based on cloud card resources, a server is first installed in the cloud, and a universal card reader is connected to a terminal such as a PC or a dedicated resource manager through a USB port or a dedicated interface, and card connection is performed through the card reader; and then, the server and the terminal are wirelessly or physically connected through the Internet or other modes.
Specifically, after the connection between the server and the terminal is realized, the server obtains, from the terminal, N card test resource information corresponding to N cards managed by the terminal itself.
Step 202: detecting whether an indication of logging in a card application test platform exists;
here, when a user needs to perform a card application test on a certain test card, the user logs in a card application test platform on a server. Of course, the server may periodically or periodically detect whether there is an indication to log into the card application test platform.
Step 203: when the indication of logging in the card application test platform is detected, scheduling and displaying the N card test resource information from the card test resource library;
here, when the server detects that there is an indication to log in the card application test platform, that is, after the user logs in the card application test platform on the server, the server may directly retrieve all card test resource information from the card test resource library, and display the card test resource information to the user. In practical application, the server can display the card test resource information to a user through a display interface for the user to select.
Step 204: receiving an instruction for selecting a target card test resource from the N card test resource information;
specifically, the user performs a selection operation in a touch screen or keyboard input manner according to the card application test requirement, and selects a card test resource required by the user from all card test resource information displayed by the server. At this time, the server may receive an instruction to select a target card test resource from the N card test resource information, thereby obtaining the target card test resource.
Step 205: and responding to the instruction, and calling the target card test resource to carry out card application test.
Here, after the server responds to the instruction for selecting the target card test resource from the N card test resource information, the server performs the card application test by calling the target card test resource. After the test is finished, the test result can be fed back to the user or directly displayed to the user through a display interface.
According to the cloud card resource-based testing method, the server obtains N pieces of card testing resource information and stores the N pieces of card testing resource information to the card testing resource library; detecting whether an indication of logging in a card application test platform exists; when the indication of logging in the card application test platform is detected, scheduling and displaying the N card test resource information from the card test resource library; receiving an instruction for selecting a target card test resource from the N card test resource information; and responding to the instruction, and calling the target card test resource to carry out card application test. Therefore, online NFC USIM card testing resources can be provided for an application developer through an NFC USIM card online testing resource library established at the cloud end, so that compatibility testing of card application is realized, the compatibility of the card application is effectively guaranteed, and card services can be smoothly developed.
Example two
Fig. 3 is a schematic flow diagram of a second testing method based on cloud card resources according to an embodiment of the present invention, which is applied to a server, and as shown in fig. 3, the testing method based on cloud card resources according to the embodiment of the present invention includes:
step 201: acquiring N card test resource information, and storing the N card test resource information into a card test resource library, wherein N is a positive integer;
step 202: detecting whether an indication of logging in a card application test platform exists;
step 2031: when the indication of logging in the card application test platform is detected, the card application test service module in the server acquires card test resource information from the card test resource library in the card resource management integrated module;
here, the server includes a card application test service module and a card resource management integration module. And after the server acquires the N card test resource information from the terminal connected with the server, the N card test resource information is stored in a card test resource library through the card resource management integrated module.
The card resource management integrated module can be used for managing N card test resource information of a stored value card test resource library; the card application test service module mainly provides card application test services for users, displays available card test resource information, and further displays and manages test results.
Step 2032: the card application test service module controls the display of the card test resource information;
step 204: receiving an instruction for selecting a target card test resource from the N card test resource information;
step 205: and responding to the instruction, and calling the target card test resource to carry out card application test.
According to the cloud card resource-based testing method, the server obtains N pieces of card testing resource information and stores the N pieces of card testing resource information to the card testing resource library; detecting whether an indication of logging in a card application test platform exists; when the indication of logging in the card application test platform is detected, the card application test service module in the server acquires card test resource information from the card test resource library in the card resource management integrated module; the card application test service module controls the display of the card test resource information; receiving an instruction for selecting a target card test resource from the N card test resource information; and responding to the instruction, and calling the target card test resource to carry out card application test. Therefore, online NFC USIM card testing resources can be provided for an application developer through an NFC USIM card online testing resource library established at the cloud end, so that compatibility testing of card application is realized, the compatibility of the card application is effectively guaranteed, and card services can be smoothly developed.
EXAMPLE III
Fig. 4a is a schematic flow chart of a third testing method based on cloud card resources according to an embodiment of the present invention, which is applied to a server, and as shown in fig. 4a, the testing method based on cloud card resources according to the embodiment of the present invention includes:
step 201: acquiring N card test resource information, and storing the N card test resource information into a card test resource library, wherein N is a positive integer;
step 401: the card resource management integrated module in the server manages N card test resource information stored in the card test resource library;
the card resource management integrated module in the server manages the N card test resource information stored in the card test resource library in at least one of the following modes: state management, resource scheduling management and resource expansion management.
Here, a workflow of the card resource management integrated module in the server performing state management on the N card test resource information stored in the card test resource library is shown in fig. 4b, and specifically includes:
step 1a, periodically detecting whether the connection state of a card resource management module in a terminal connected with the terminal is normal, for example, detecting whether the connection state is normal by sending a message to the card resource management module in the terminal through a web service and the like;
step 1b, if the card resource management module returns a normal response value, indicating that the card resource management module is normally connected, the card resource management integrated module determines that the card test resource information corresponding to the card acquired by the card resource management integrated module is available for resources;
step 1c, if the card resource management module responds abnormally or does not respond, the card resource management module tries to reconnect, if the connection is still unsuccessful, warning information needs to be sent to inform an administrator; and simultaneously, the management of the card test resource information corresponding to the card resource management module is cancelled.
Here, for the card resource management integrated module in the server to perform resource scheduling management on the N card test resource information stored in the card test resource library, since the card resource management integrated module is connected with the plurality of card resource management modules, it can manage the card resources according to different dimensions, for example, manage the card resources according to the dimensions of the card suppliers to which the cards belong, and ensure that the user can normally call the cards to perform testing. Wherein, the resource scheduling management comprises the following resource scheduling mechanisms:
resource scheduling mechanism 1: if the card resource comprehensive management module receives the information that the card resource management module returns the abnormal A1 card, the priority of the A2 card is improved, and the card resource comprehensive management module can be normally tested under the condition that a user wants to use the card resource of the manufacturer A to test.
Resource scheduling mechanism 2: when a card is selected by a user for testing, the resource should be locked. And after the test is finished, unlocking the resource and bringing the resource into the resource queue.
Resource scheduling management 3: and regularly detecting whether the initial condition of the card is changed or not, and sending out a warning message if the initial condition is changed (note: if the card meets an abnormity in the test process, the initial state of the card can be changed, and the test condition of a subsequent user can be influenced). The method specifically comprises two detection methods: as an example of the detection method 1, an Application Protocol Data Unit (APDU) (e.g., get data command) is sent to the card at regular time every day (preferably during a test idle period, e.g., at a certain time every morning) to obtain information such as an installation Application and a remaining space on the card, and initial conditions of the card are checked; the detection method includes, for example, 2, performing detection at irregular time, that is, monitoring the idle and non-idle states of the card, detecting the card when the card is found to be idle, sending an APDU (e.g., get data instruction) to the card to obtain information such as installation application and remaining space on the card, and checking whether the initial condition of the card changes.
Resource scheduling management 4: when the initial condition of a certain card is found to be changed, the comprehensive management module can try to recover the card state, and the card can be continuously incorporated into the resource management queue after the recovery is successful. Firstly, the information such as the installation application and the residual space on the card acquired by the APDU (such as a get data instruction) is analyzed, the degree of damage to the initial condition of the card is checked, and then whether the relevant program can be called for recovery or not is judged. Such as: and if the card only has more NFC card applications, the application deletion program can be called to delete the redundant applications. Such as: if the authority or the key information on the card is damaged, the original condition of the card cannot be recovered, the original condition of the card is deleted from the management queue, and an administrator is prompted to perform manual intervention.
In practical application, based on the above four resource scheduling mechanisms, a workflow of the card resource management integrated module in the server performing resource scheduling management on the N card test resource information stored in the card test resource library may be as shown in fig. 4c, and specifically includes:
step 1: and managing the cards in a classified mode according to the card resource information fed back by the card resource management module.
Step 2: and providing the cards of different classifications for a user to test according to a certain sequence.
And step 3: when a certain card is abnormal, the same classified card can be called for the user to test.
And 4, step 4: and returning the newly added or abnormal card resource information.
And 5: adjusting the card resource information and its card classification.
Here, a workflow of the card resource management integration module in the server performing resource expansion management on the N card test resource information stored in the card test resource library is shown in fig. 4d, and specifically includes:
step 2 a: when a new card resource management module is added, the card resource management integrated module is firstly connected with the new card resource management module;
and step 2 b: after the connection is successful, card test resource information on the new card resource management module is obtained;
and step 2 c: and configuring and recording the card test resource information.
Step 202: detecting whether an indication of logging in a card application test platform exists;
step 203: when the indication of logging in the card application test platform is detected, scheduling and displaying the N card test resource information from the card test resource library;
step 204: receiving an instruction for selecting a target card test resource from the N card test resource information;
step 205: and responding to the instruction, and calling the target card test resource to carry out card application test.
According to the cloud card resource-based testing method, the server obtains N pieces of card testing resource information and stores the N pieces of card testing resource information to the card testing resource library; the card resource management integrated module in the server manages N card test resource information stored in the card test resource library; detecting whether an indication of logging in a card application test platform exists; when the indication of logging in the card application test platform is detected, scheduling and displaying the N card test resource information from the card test resource library; receiving an instruction for selecting a target card test resource from the N card test resource information; and responding to the instruction, and calling the target card test resource to carry out card application test. Therefore, online NFC USIM card testing resources can be provided for an application developer through an NFC USIM card online testing resource library established at the cloud end, so that compatibility testing of card application is realized, the compatibility of the card application is effectively guaranteed, and card services can be smoothly developed.
Example four
Fig. 5a is a schematic flow chart of a fourth testing method based on cloud card resources according to an embodiment of the present invention, which is applied to a terminal, and as shown in fig. 5a, the testing method based on cloud card resources according to the embodiment of the present invention includes:
step 501: configuring N card test resource information of N cards managed by the card test resource information management system, wherein N is a positive integer;
specifically, the terminal configures N card test resource information of N cards managed by the terminal through a card resource management module corresponding to the N cards included in the terminal.
Here, the manner in which the card resource management module in the terminal configures the N card test resource information of the N cards managed by the card resource management module includes: card resource state management and card resource expansion management.
A working flow of the card resource management module configuring N card test resource information managed by the terminal in a card resource state management manner is shown in fig. 5b, and specifically includes:
step 5011 b: detecting whether the states of the card reader and the card are normal or not;
step 5012 b: when the states of the card reader and the card are detected to be normal, configuring the card test resource information corresponding to the card as a normal response value;
step 5013 b: when the states of the card reader and the card are detected to be abnormal, trying to reconnect the card reader and the card until the states of the card reader and the card are detected to be normal, and adjusting card test resource information corresponding to the card to be available for card resources;
step 5014 b: and when the states of the card reader and the card are still detected to be abnormal after the operation of reconnecting the card reader and the card is tried, canceling the management of the card test resource information corresponding to the card, and feeding back the card test resource information corresponding to the card to a server connected with the server as that the card resource is unavailable.
A working flow of the card resource management module configuring N card test resource information managed by the terminal in a card resource expansion management manner is shown in fig. 5c, and specifically includes:
step 5011 c: detecting whether a newly added card is connected to the terminal through a card reader;
step 5012 c: when detecting that a newly added card is connected to the terminal through a card reader, configuring card test resource information corresponding to the newly added card, and feeding back the card test resource information corresponding to the newly added card to a server connected with the server.
Step 502: and sending the N card test resource information to a server connected with the server, so that the server schedules the N card test resource information, and performs card application test by using a target card test resource selected from the N card test resource information.
According to the cloud card resource-based testing method, the terminal configures N card testing resource information of N cards managed by the terminal; and sending the N card test resource information to a server connected with the server, so that the server schedules the N card test resource information, and performs card application test by using a target card test resource selected from the N card test resource information. Therefore, online NFC USIM card testing resources can be provided for an application developer through an NFC USIM card online testing resource library established at the cloud end, so that compatibility testing of card application is realized, the compatibility of the card application is effectively guaranteed, and card services can be smoothly developed.
Of course, the terminal according to any one of the first to fourth embodiments of the present invention may be a PC, or may be a dedicated card resource manager.
EXAMPLE five
Fig. 6 is a schematic structural diagram of a server according to an embodiment of the present invention, and as shown in fig. 6, the server 60 includes a card resource management integration module 601 and a card application test service module 602;
the card resource management integrated module 601 is configured to obtain N card test resource information, store the N card test resource information in a card test resource library, where N is a positive integer;
the card application test service module 602 is configured to detect whether there is an instruction to log in a card application test platform; when the indication of logging in the card application test platform is detected, scheduling and displaying the N card test resource information from the card test resource library; receiving an instruction for selecting a target card test resource from the N card test resource information; and responding to the instruction, and calling the target card test resource to carry out card application test.
In one embodiment, as shown in fig. 6, the card application test service module 602 includes an acquisition unit 6021 and a presentation control unit 6022;
the obtaining unit 6021 is configured to, when it is detected that there is an instruction to log in a card application test platform, obtain card test resource information from the card test resource library in the card resource management integrated module by the card application test service module in the server;
the display control unit 6022 is configured to control display of the card test resource information.
In an embodiment, the card resource management integration module 601 is further configured to manage the information of the N card test resources stored in the card test resource library in at least one of the following manners: state management, resource scheduling management and resource expansion management.
In practical application, each module for forming the server and the units included in each module in the embodiment of the present invention may be implemented by a processor in the server, or may be implemented by a specific logic circuit; for example, in practical applications, the application can be implemented by a Central Processing Unit (CPU), a Microprocessor (MPU), a Digital Signal Processor (DSP), or a Field Programmable Gate Array (FPGA) located in the server.
Here, it should be noted that: the description of the server embodiment is similar to the description of the method, and has the same beneficial effects as any one of the first to third embodiments of the method, and therefore, the description thereof is omitted. For technical details that are not disclosed in the server embodiment of the present invention, those skilled in the art should refer to the descriptions of the first to third embodiments of the method of the present invention to understand that, for the sake of brevity, detailed descriptions are omitted here.
EXAMPLE six
Fig. 7 is a schematic structural diagram of a terminal according to an embodiment of the present invention, and as shown in fig. 7, the terminal 70 includes N card resource management modules 701;
the N card resource management modules 701 are configured to configure card test resource information of N cards managed by the card resource management modules, where N is a positive integer; and sending the N card test resource information to a server connected with the server, so that the server schedules the N card test resource information, and performs card application test by using a target card test resource selected from the N card test resource information.
Here, the terminal is a PC or a dedicated card resource manager.
In an embodiment, as shown in fig. 7, the N card resource management modules 701 include a first detecting unit 7011, a first configuring unit 7012, an adjusting unit 7013, and a canceling unit 7014;
the first detecting unit 7011 is configured to detect whether the states of the card reader and the card are normal;
the first configuration unit 7012 is configured to configure the card test resource information corresponding to the card as a normal response value when the states of the card reader and the card are detected to be normal;
the adjusting unit 7013 is configured to try to reconnect the card reader and the card when the states of the card reader and the card are detected to be abnormal, and adjust the card test resource information corresponding to the card to be available card resources until the states of the card reader and the card are detected to be normal;
the canceling unit 7014 is configured to cancel management of card test resource information corresponding to the card when it is still detected that the states of the card reader and the card are abnormal after an operation of reconnecting the card reader and the card is attempted, and feed back, to a server connected to the canceling unit, that the card test resource information corresponding to the card is unavailable as a card resource.
In an embodiment, as shown in fig. 7, the N card resource management modules 701 further includes a second detecting unit 7015 and a second configuring unit 7016;
the second detecting unit 7015 is configured to detect whether a newly added card is connected to the terminal through a card reader;
the second configuration unit 7016 is configured to, when it is detected that a newly added card is connected to the terminal through the card reader, configure card test resource information corresponding to the newly added card, and feed back the card test resource information corresponding to the newly added card to a server connected to the second configuration unit.
In practical applications, each module for forming the terminal and the units included in each module in the embodiment of the present invention may be implemented by a processor in the terminal, or may be implemented by a specific logic circuit; for example, in practical applications, the terminal may be implemented by a Central Processing Unit (CPU), a Microprocessor (MPU), a Digital Signal Processor (DSP), or a Field Programmable Gate Array (FPGA) located in the terminal.
Here, it should be noted that: the description of the terminal embodiment is similar to the description of the method, and has the same beneficial effects as the fourth method embodiment, and therefore, the description is omitted. For technical details that are not disclosed in the terminal embodiment of the present invention, those skilled in the art should refer to the description of the fourth embodiment of the method of the present invention to understand that, for brevity, detailed description is omitted here.
EXAMPLE seven
Fig. 8 is a schematic structural diagram illustrating a composition of a test system based on cloud card resources according to an embodiment of the present invention, as shown in fig. 8, the test system based on cloud card resources includes a server 81 and a terminal 82; wherein the content of the first and second substances,
the server 81 is configured to obtain N card test resource information, store the N card test resource information in a card test resource library, where N is a positive integer; detecting whether an indication of logging in a card application test platform exists; when the indication of logging in the card application test platform is detected, scheduling and displaying the N card test resource information from the card test resource library; receiving an instruction for selecting a target card test resource from the N card test resource information; calling the target card test resource to perform card application test in response to the instruction;
the terminal 82 is configured to configure N card test resource information of N cards managed by the terminal, where N is a positive integer; and sending the N card test resource information to a server connected with the server, so that the server schedules the N card test resource information, and performs card application test by using a target card test resource selected from the N card test resource information.
In practical applications, the specific structures and descriptions of the server 81 and the terminal 82 according to the embodiment of the present invention may be similar to the structures corresponding to fig. 6 and fig. 7 in the foregoing embodiment, and are not described again here.
The embodiment of the invention is explained by taking a practical application scene as an example as follows:
the application scene relates to the testing of cloud card resources based on a PC (serving as a terminal) and a server. The architecture diagram of the cloud NFC card test resource library corresponding to the application scenario based on the PC mode is shown in fig. 9, and the establishment method of the cloud NFC card test resource library is as follows:
firstly, the cloud is provided with a server 60a, and an NFC card resource comprehensive management module 601a and an NFC card application test service module 602a are integrated on the server, so as to provide a test capability of NFC card application for a user and manage a test result.
Next, the PC 70a is equipped with a card reader driver, and is connected to a card reader through a USB port, and an NFC card is inserted into the card reader. To manage the connected card resources, a card resource management module 701a is integrated into each PC, as shown in fig. 9.
And finally, the server is connected with the PC through the Internet or other modes, and card test resource information on the server is acquired and managed through the card resource comprehensive management module. The server may be connected to a plurality of PCs 70a as shown in fig. 9.
For the application scenario, a test flow of the cloud NFC card resource is shown in fig. 10, and a specific work flow is as follows:
step 1: the card resource management module 701a configures and records NFC card test resource information managed by the card resource management module.
Step 2: the card resource management integrated module 601a acquires the NFC card test resource information from each card resource management module 701a, and records and manages the NFC card test resource information.
And step 3: the user logs in the NFC card application test platform on the server 60 a.
And 4, step 4: the NFC card application test service module 602a obtains NFC card test resource information from the card resource management integration module 601 a.
And 5: the card resource management integration module 601a returns NFC card test resource information to the NFC card application test service module 602 a.
Step 6: the NFC card application test service module 602a presents the NFC card test resource information to the user.
And 7: and selecting the NFC card test resource by the user for testing.
And 8: the NFC card application test service module 602a calls an NFC card test resource selected by a user to perform a test;
and step 9: and returning and displaying the test result to the user.
The embodiment of the present invention is explained by taking another practical application scenario as an example as follows:
the application scene relates to the test of cloud card resources realized based on a special card resource manager (as a terminal) and a server. Fig. 11a shows an architecture diagram of a cloud NFC card test resource library corresponding to the application scenario and based on the dedicated card resource manager.
For the special card resource manager related to the scene, the special card resource manager is a hardware device specially used for USIM card resource management, and can be implemented in other ways such as embedded, and the functional requirements are as follows:
1) having the capability of connecting to external devices (e.g. servers, etc.)
The optional functions are as follows: the connection can be carried out in a wired network cable or wireless network mode;
optional functions: the connection is performed by a wired mode (such as a USB port and a serial port) and the like.
2) Card connection state management capability
When a USIM card is inserted into a card reader (whether a universal card reader or a special card reader), the special card resource manager has the capability of judging whether the card state is normal or not.
3) Feedback capability of USIM card connection state
When the card state is abnormal, the special card resource manager can transmit the message to the external equipment.
4) Ability to connect card reader
Regarding the design idea of connecting the card reader, there are the following two ways:
mode 1: the current universal card reader is connected through the USB port, as shown in FIG. 11 b. The special card resource manager needs to support a USB protocol, and is provided with a plurality of USB ports for connecting a universal card reader, and the card reader can be plugged and unplugged. The special card resource manager needs to be prefabricated with the drivers of the current card readers of most models, and when the special card resource manager is connected with the card readers of new models, the drivers of the card readers of new models can be installed through other equipment such as a PC (personal computer).
Mode 2: the dedicated card reader is connected through a dedicated interface, as shown in FIG. 11 c. The special interface (such as a serial port and the like) of the special card resource manager is connected with the special card reader, under the condition, the manager and the card reader are both special embedded devices, and the connection mode of the manager and the card reader can be a plug-in type or a welding type. This way, stability between the dedicated card resource manager and the dedicated card reader is guaranteed.
Here, it should be noted that, in the application scenario, the test flow of the cloud NFC card resource based on the dedicated card resource manager is similar to the test flow chart 10 of the cloud NFC card resource based on the PC, and details are not repeated here.
The foregoing is merely an example of the embodiments of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the embodiments of the present invention, and these modifications and decorations should also be regarded as the protection scope of the embodiments of the present invention.

Claims (15)

1. A testing method based on cloud card resources is applied to a server, and is characterized by comprising the following steps:
acquiring N card test resource information of N cards, and storing the N card test resource information into a card test resource library, wherein N is a positive integer, and the card test resource information is information for performing card application test;
detecting whether an indication of logging in a card application test platform exists;
when the indication of logging in the card application test platform is detected, scheduling and displaying the N card test resource information from the card test resource library;
receiving an instruction for selecting a target card test resource from the N card test resource information;
and responding to the instruction, and calling the target card test resource to carry out card application test.
2. The method of claim 1, wherein said scheduling and presenting the obtained card test resource information from the card test resource library upon detecting an indication of presence of a logged card application test platform comprises:
when the indication of logging in the card application test platform is detected, the card application test service module in the server acquires card test resource information from the card test resource library in the card resource management integrated module;
the card application test service module controls the display of the card test resource information.
3. The method according to claim 1 or 2, characterized in that the method further comprises: the card resource management integrated module in the server manages the N card test resource information stored in the card test resource library in at least one mode of the following modes: state management, resource scheduling management and resource expansion management.
4. A testing method based on cloud card resources is applied to a terminal, and is characterized in that the method comprises the following steps:
configuring N card test resource information of N cards managed by the card resource status information or the card resource expansion information, wherein N is a positive integer;
and sending the N card test resource information to a server connected with the server, so that the server schedules the N card test resource information, and performs card application test by using a target card test resource selected from the N card test resource information.
5. The method of claim 4, wherein the configuring N card test resource information of N cards managed by the card through the card resource status information comprises:
detecting whether the states of the card reader and the card are normal or not;
when the states of the card reader and the card are detected to be normal, configuring the card test resource information corresponding to the card as a normal response value;
when the states of the card reader and the card are detected to be abnormal, trying to reconnect the card reader and the card until the states of the card reader and the card are detected to be normal, and adjusting card test resource information corresponding to the card to be available for card resources;
and when the states of the card reader and the card are still detected to be abnormal after the operation of reconnecting the card reader and the card is tried, canceling the management of the card test resource information corresponding to the card, and feeding back the card test resource information corresponding to the card to a server connected with the server as that the card resource is unavailable.
6. The method of claim 4, wherein the configuring N test resource information of N cards managed by the card resource extension information includes:
detecting whether a newly added card is connected to the terminal through a card reader;
when detecting that a newly added card is connected to the terminal through a card reader, configuring card test resource information corresponding to the newly added card, and feeding back the card test resource information corresponding to the newly added card to a server connected with the server.
7. The method according to any of claims 4 to 6, wherein the terminal is a PC or a dedicated card resource manager.
8. A server, characterized in that the server comprises a card resource management integration module and a card application test service module;
the card resource management integrated module is used for acquiring N card test resource information of N cards and storing the N card test resource information into a card test resource library, wherein N is a positive integer, and the card test resource information is information for performing card application test;
the card application test service module is used for detecting whether an instruction for logging in the card application test platform exists; when the indication of logging in the card application test platform is detected, scheduling and displaying the N card test resource information from the card test resource library; receiving an instruction for selecting a target card test resource from the N card test resource information; and responding to the instruction, and calling the target card test resource to carry out card application test.
9. The server according to claim 8, wherein the card application test service module includes an acquisition unit and a presentation control unit;
the acquisition unit is used for acquiring card test resource information from the card test resource library in the card resource management integrated module by the card application test service module in the server when the instruction for logging in the card application test platform is detected;
and the display control unit is used for controlling the display of the card test resource information.
10. The server according to claim 8 or 9,
the card resource management integrated module is further configured to manage the N card test resource information stored in the card test resource library in at least one of the following manners: state management, resource scheduling management and resource expansion management.
11. A terminal is characterized in that the terminal comprises N card resource management modules;
the N card resource management modules are used for configuring card test resource information of N cards managed by the N card resource management modules through card resource state information or card resource expansion information, wherein N is a positive integer; and sending the N card test resource information to a server connected with the server, so that the server schedules the N card test resource information, and performs card application test by using a target card test resource selected from the N card test resource information.
12. The terminal according to claim 11, wherein the N card resource management modules include a first detection unit, a first configuration unit, an adjustment unit, and a cancellation unit;
the first detection unit is used for detecting whether the states of the card reader and the card are normal or not;
the first configuration unit is used for configuring the card test resource information corresponding to the card as a normal response value when the states of the card reader and the card are detected to be normal;
the adjusting unit is used for trying to reconnect the card reader and the card when the states of the card reader and the card are detected to be abnormal, and adjusting the card testing resource information corresponding to the card to be available for card resources until the states of the card reader and the card are detected to be normal;
the cancellation unit is configured to cancel management of card test resource information corresponding to the card when it is still detected that the states of the card reader and the card are abnormal after an operation of reconnecting the card reader and the card is attempted, and feed back, to a server connected to the cancellation unit, that the card test resource information corresponding to the card is unavailable as a card resource.
13. The terminal according to claim 11, wherein the N card resource management modules further comprise a second detection unit and a second configuration unit;
the second detection unit is used for detecting whether a newly added card is connected to the terminal through a card reader;
and the second configuration unit is used for configuring card test resource information corresponding to the newly added card when detecting that the newly added card is connected to the terminal through the card reader, and feeding back the card test resource information corresponding to the newly added card to a server connected with the second configuration unit.
14. A terminal according to any of claims 11 to 13, wherein the terminal is a PC or a dedicated card resource manager.
15. A test system based on cloud card resources is characterized by comprising a server and a terminal; wherein the content of the first and second substances,
the server is used for acquiring N card test resource information of N cards and storing the N card test resource information into a card test resource library, wherein N is a positive integer, and the card test resource information is information for performing card application test; detecting whether an indication of logging in a card application test platform exists; when the indication of logging in the card application test platform is detected, scheduling and displaying the N card test resource information from the card test resource library; receiving an instruction for selecting a target card test resource from the N card test resource information; calling the target card test resource to perform card application test in response to the instruction;
the terminal is used for configuring N card test resource information of N cards managed by the terminal through card resource state information or card resource expansion information, wherein N is a positive integer; and sending the N card test resource information to a server connected with the server, so that the server schedules the N card test resource information, and performs card application test by using a target card test resource selected from the N card test resource information.
CN201510781412.8A 2015-11-13 2015-11-13 Test method, device and system based on cloud card resources Active CN106713058B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510781412.8A CN106713058B (en) 2015-11-13 2015-11-13 Test method, device and system based on cloud card resources

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510781412.8A CN106713058B (en) 2015-11-13 2015-11-13 Test method, device and system based on cloud card resources

Publications (2)

Publication Number Publication Date
CN106713058A CN106713058A (en) 2017-05-24
CN106713058B true CN106713058B (en) 2020-01-24

Family

ID=58930872

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510781412.8A Active CN106713058B (en) 2015-11-13 2015-11-13 Test method, device and system based on cloud card resources

Country Status (1)

Country Link
CN (1) CN106713058B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110730472B (en) * 2019-09-18 2023-01-13 深圳市优克联新技术有限公司 Communication certificate state detection method and server

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014071465A1 (en) * 2012-11-12 2014-05-15 C2 Systems Limited A system, method, computer program and data signal for the registration, monitoring and control of machines and devices
CN104967667A (en) * 2015-05-27 2015-10-07 国家计算机网络与信息安全管理中心 Software stability test remote monitoring system based on cloud service
CN104995646A (en) * 2012-12-26 2015-10-21 新韩信用卡株式会社 Method for controlling financial chip of payment device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014071465A1 (en) * 2012-11-12 2014-05-15 C2 Systems Limited A system, method, computer program and data signal for the registration, monitoring and control of machines and devices
CN104995646A (en) * 2012-12-26 2015-10-21 新韩信用卡株式会社 Method for controlling financial chip of payment device
CN104967667A (en) * 2015-05-27 2015-10-07 国家计算机网络与信息安全管理中心 Software stability test remote monitoring system based on cloud service

Also Published As

Publication number Publication date
CN106713058A (en) 2017-05-24

Similar Documents

Publication Publication Date Title
US11683671B2 (en) System, method, apparatus, and computer program product for providing mobile device support services
JP6668314B2 (en) System, method, apparatus, and computer program product for providing mobile device support services
US10863022B2 (en) Using automatically collected device problem information to route and guide users' requests
US9585033B2 (en) System and method for enhanced diagnostics on mobile communication devices
US20120047292A1 (en) Monitoring System, Device Server, Host Computer, Monitoring Method, and Storage Medium
CN111008026B (en) Cluster management method, device and system
CN105224441B (en) Virtual machine information acquisition device, method and virtual machine information maintaining method and system
CN111061448A (en) Log information display method and device, electronic equipment and storage medium
CN107766068B (en) Application system patch installation method and device, computer equipment and storage medium
CN106713058B (en) Test method, device and system based on cloud card resources
JP2010128707A (en) Electronic apparatus, server, and method of controlling the same
US20130165099A1 (en) Enhanced System and Method for Custom Programming of Large Groups of Phones Without Requiring Additional Equipment
EP3055759A1 (en) Remote support of a device
CN113641524B (en) Reset method, device and equipment for single board starting overtime and readable storage medium
CN111641526A (en) Automatic deployment architecture, method, terminal device and computer readable medium of cloud computing data center

Legal Events

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