CN111858333A - Copyright management system interface test method and device based on real data - Google Patents

Copyright management system interface test method and device based on real data Download PDF

Info

Publication number
CN111858333A
CN111858333A CN202010691534.9A CN202010691534A CN111858333A CN 111858333 A CN111858333 A CN 111858333A CN 202010691534 A CN202010691534 A CN 202010691534A CN 111858333 A CN111858333 A CN 111858333A
Authority
CN
China
Prior art keywords
data
user data
test case
test
type
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
CN202010691534.9A
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.)
Seerof Information Technology Shanghai Co ltd
Original Assignee
Seerof Information Technology Shanghai 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 Seerof Information Technology Shanghai Co ltd filed Critical Seerof Information Technology Shanghai Co ltd
Priority to CN202010691534.9A priority Critical patent/CN111858333A/en
Publication of CN111858333A publication Critical patent/CN111858333A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites
    • 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

Landscapes

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

Abstract

The application discloses a copyright management system interface testing method and device based on real data. The method comprises the following steps: updating the latest user data in an online server of a copyright management system to a database of a local server, comprising: user data of a first data type; calling user data of a first data type through a first type basic test case in a defined test case list to generate a second test case, wherein the test case list comprises various types of basic test cases and data types of test data required by each type of basic test case, including the first type basic test case, and the data type of the test data required by the first type basic test case is the first data type; and running the second test case to obtain a test result. The method and the device solve the technical problems that in the interface testing method in the related technology, the on-line data cannot be synchronized in time and the real data of the user cannot be used for testing, so that the interface testing accuracy is low.

Description

Copyright management system interface test method and device based on real data
Technical Field
The present application relates to the field of interface testing, and in particular, to a method and an apparatus for testing an interface of a copyright management system based on real data.
Background
At present, the existing interface automation test technology is implemented by running the same interface automation test case at regular time, and the test data source has the following three ways, one way is: the test cases are fixed, so that the same test data are used when the test cases are operated every time, the test data cannot be updated in time, and the test is single; the second method comprises the following steps: the method has the advantages that the virtual data with correct format is automatically generated through codes, so that one set of data can be used for one-time service flow test, and random data can also be automatically generated by each test case; the third method comprises the following steps: external data is introduced, the test framework can be connected with an external csv file or an sql database by the method, and the test case calls data in the external file. The existing automatic interface test methods all have the following problems: only can test whether the software interface is normal, cannot test whether the online data is synchronous and normal, and cannot test the real data of the user in time, and each test case is executed only once, which leads to lower accuracy of interface test.
In view of the above problems, no effective solution has been proposed.
Disclosure of Invention
The embodiment of the application provides a copyright management system interface test method and device based on real data, and the method and device at least solve the technical problem that interface test accuracy is low due to the fact that online data cannot be synchronized timely and the user real data cannot be used for testing in an interface test method in the related technology.
According to an aspect of an embodiment of the present application, there is provided a method for testing an interface of a rights management system based on real data, including:
updating the latest user data in an online server of a copyright management system to a database of a local server, wherein the user data in the database of the local server comprises: user data of a first data type;
calling user data of the first data type through a first type basic test case in a defined test case list to generate a second test case, wherein the test case list comprises basic test cases of various types and data types of test data required by the basic test cases of each type, the basic test cases of various types comprise the first type basic test case, and the data types of the test data required by the first type basic test case are the first data type;
And running the second test case to obtain a test result.
According to another aspect of the embodiments of the present application, there is also provided a device for testing an interface of a copyright management system based on real data, including:
an updating unit, configured to update latest user data in an online server of a copyright management system to a database of a local server, where the user data in the database of the local server includes: user data of a first data type;
the generating unit is used for calling the user data of the first data type through a first type basic test case in a defined test case list to generate a second test case, wherein the test case list comprises basic test cases of various types and data types of test data required by the basic test cases of each type, the basic test cases of various types comprise the first type basic test case, and the data type of the test data required by the first type basic test case is the first data type;
and the test unit is used for operating the second test case to obtain a test result.
According to another aspect of the embodiments of the present application, there is also provided a storage medium including a stored program which, when executed, performs the above-described method.
According to another aspect of the embodiments of the present application, there is also provided an electronic device, including a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor executes the above method through the computer program.
In the embodiment of the application, the latest user data in the online server is updated to the database of the local server in time, the real user data is called according to the basic test case to generate the new test data as the interface test case of the online data, and the newly generated interface test case is operated to perform the interface test, so that the technical problem of low interface test accuracy caused by the fact that the online data cannot be synchronized in time and the real user data cannot be used for testing in the interface test method in the related technology can be solved, and the technical effect of improving the interface test accuracy is achieved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the application and together with the description serve to explain the application and not to limit the application. In the drawings:
FIG. 1 is a schematic diagram of a hardware environment of a method for real data based interface testing of a rights management system according to an embodiment of the application;
FIG. 2 is a flow chart of an alternative method for real data based interface testing of a rights management system according to an embodiment of the present application;
FIG. 3 is a schematic diagram of an alternative real data based interface test apparatus for copyright management system according to an embodiment of the present application; and the number of the first and second groups,
fig. 4 is a block diagram of a terminal according to an embodiment of the present application.
Detailed Description
In order to make the technical solutions better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only partial embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and claims of this application and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the application described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
For ease of understanding, the terms appearing in the present application are explained below:
interface testing: a test of an interface between components of a test system. The interface test is mainly used for detecting interaction points between external systems and between internal subsystems. The key point of the test is to check the exchange, transmission and control management process of data, the mutual logic dependency relationship between systems and the like.
A database: is an organized, sharable, uniformly managed collection of large amounts of data that is stored long term within a computer.
According to an aspect of the embodiments of the present application, an embodiment of a method for testing an interface of a rights management system based on real data is provided.
Alternatively, in this embodiment, the method for testing the copyright management system interface based on the real data may be applied to a hardware environment formed by the terminal set 101 and the server 103 as shown in fig. 1. As shown in fig. 1, the server 103 is connected to the terminal set 101 through a network, which may be used to manage each terminal, and the network includes but is not limited to: the terminal set 101 is not limited to a set of terminals such as a PC, a mobile phone, and a tablet computer.
The copyright management system interface test method based on the real data can be executed by the terminal, can be executed by the server, and can also be executed by the server and the terminal together. The terminal executing the method for testing the copyright management system interface based on the real data according to the embodiment of the present application may also be executed by a client installed thereon.
Fig. 2 is a flowchart of an alternative method for testing an interface of a real data-based copyright management system according to an embodiment of the present application, and as shown in fig. 2, the method may include the following steps:
step S202, updating the latest user data in the online server of the copyright management system to the database of the local server, wherein the user data in the database of the local server comprises: user data of a first data type;
step S204, calling the user data of the first data type through a first type basic test case in a defined test case list to generate a second test case, wherein the test case list comprises basic test cases of various types and data types of test data required by the basic test cases of each type, the basic test cases of various types comprise the first type basic test case, and the data type of the test data required by the first type basic test case is the first data type;
And step S206, operating the second test case to obtain a test result.
Through the steps, the latest user data in the online server is updated to the database of the local server in time, the real user data is called according to the basic test case to generate the new test data as the interface test case of the online data, and the newly generated interface test case is operated to carry out interface test, so that the technical problem of low interface test accuracy caused by the fact that the online data cannot be synchronized in time and the real user data cannot be used for testing in the interface test method in the related technology can be solved, and the technical effect of improving the interface test accuracy is achieved.
In step S202, a large amount of user data is stored in the online server of the copyright management system, and the online server supports real-time data update, that is, the latest user data is stored in the online server of the copyright management system. The local server is used for running the interface test case to test the interface, and the database in the local server can store the test data required by the interface test case.
Optionally, a timing test task may be set in the local server, before the interface test case is run, the timing test task is automatically run through a script to download the latest user data from the online server of the copyright management system, and the downloaded latest user data is updated to the database of the local server, so as to ensure that the test data in the database of the local server is the latest and real user data, and further solve the problem that the data in the database of the local server cannot be updated in time.
Optionally, after downloading the latest user data from the latest user data in the online server through a script automatic operation timing task, the embodiment of the present application may further perform a confidence measure on the downloaded latest user data, if the downloaded latest user data is trusted, update the downloaded latest user data into the database of the local server, and if the downloaded latest user data is not trusted, discard the downloaded latest user data, and download the latest user data from the online database again. Wherein the confidence metrics may include, but are not limited to, at least one of: judging whether the data type of the downloaded latest user data belongs to the existing data type in the database of the local server, judging whether the quantity of the downloaded latest user data exceeds a preset quantity, and judging whether the generation time of the downloaded latest user data is earlier than a preset time. The predetermined data and the predetermined time may be set and adjusted according to actual requirements, and are not specifically limited herein. By carrying out credibility measurement on the user data downloaded from the online server, the credibility of the user data can be guaranteed, so that the local server is not threatened by safety, the safety performance of the local server is improved, and the safety of the interface test process of the local server can be further guaranteed.
Optionally, after updating the latest user data in the online server of the copyright management system into the database of the local server, the embodiment of the present application may further divide the user data in the database of the local server into user data of a plurality of data types according to a predetermined classification method, where the plurality of data types include: the first data type. The first data type is a generic term, i.e. any data type, and does not refer to a specific data type.
Optionally, the dividing the user data in the database of the local server into user data of a plurality of data types according to a predetermined classification method includes: dividing user data in a database of the local server into user data of a plurality of client projects; the user data for each customer item is divided into a plurality of data types of user data.
It should be noted that the database of the local server may store user data of a plurality of client projects, where each client may correspond to one or more projects, and the user data of each client project may be divided into a plurality of data types, for example, in the database of the local server, all device information under the standard project of the client a may be divided into types of "authorized unregistered", "authorized registered", "unauthorized", and the like. Each data type under each customer project can comprise a plurality of user data, and when interface test is needed, part of the user data can be randomly selected from the user data to be used as test data of an interface test case. According to the embodiment of the application, the user data downloaded to the database of the local server are classified, and the part of the user data is randomly extracted to serve as the test data, so that the problem that the copyright management system has requirements on the data type and the format can be solved.
In the step S204, the present application may define a test case list according to the basic test cases, where the test case list may include, but is not limited to, various types of basic test cases and data types of test data required by each type of basic test case, where the various types of basic test cases include a first type of basic test case, and the data type of the test data required by the first type of basic test case is the first data type. The first type of basic test case is also a generic term, that is, any type of basic test case, and does not refer to a specific type of basic test case.
The user data of the first data type is called through the first type basic test case in the well defined test case list to generate a second test case, the second test case is an interface test case which takes real and latest user data in the online server as test data, the problem that the real user data cannot be used in interface test can be solved, and the effect of improving the accuracy of the interface test is achieved.
In step S206, a new interface test case, i.e., a second test case, generated based on the latest and real user data is run, so that the purpose of accurately testing the interface can be achieved. Optionally, after the second test case is run to obtain the test result, the embodiment of the application may further include: comparing a test result obtained by operating the second test case with a test result obtained by operating the first type basic test case to obtain a comparison result, wherein the test data of the second test case is the user data of the first type, and the test data of the first type basic test case is any one of the following: the first type basic test case comprises fixed data, data randomly generated by the first type basic test case and data in a preset database; and if the comparison result indicates that the difference degree between the test result obtained by operating the second test case and the test result obtained by operating the first type basic test case is greater than a preset threshold value, downloading the latest user data from the online server again, and regenerating a new interface test case based on the latest user data, namely generating a new second test case for interface test. It should be noted that the predetermined threshold may be set or adjusted according to actual requirements, and is not specifically limited herein. According to the embodiment of the application, the test result of the interface test based on the latest and real user data is compared with the test result of the interface test based on the fixed data or other randomly generated user data, the accuracy of the interface test based on the latest and real user data is judged according to the difference degree of the two test results, if the accuracy of the interface test based on the latest and real user data is judged to be low, the interface test is carried out again after the user data on the line is adjusted, and the effect of further improving the accuracy of the interface test can be achieved.
The following will explain the present application in detail by using a specific example, which is an authorized unregistered authentication interface test of a standard item in a copyright management system, and specifically includes the following processes:
(1) preparing an interface automation basic test case with functions of registration, authentication, activation and the like;
(2) downloading a formal server database of the current copyright management system through a script running timing task; the Linux environment can use: a crontab command is used for constructing a timing task;
(3) automatically updating to a local test server through a command;
(4) screening out standard projects, traversing all equipment information under all the standard projects, and classifying the equipment information according to a predetermined classification method, wherein the types of the equipment information are authorized and unregistered, authorized and registered, unauthorized and the like;
(5) randomly extracting 5 pieces of equipment information from the equipment type classification of authorized unregistered;
(6) then, automatically generating a standard item authorized unregistered authentication interface automatic test case based on real data according to the equipment type data of 'standard item authorized unregistered authentication interface test' in the defined test case list of the basic test case
(7) And running the newly generated test case to obtain a corresponding test result.
The innovations in this application include, but are not limited to, the following:
(1) automatically downloading the latest online user data before executing the test case: the method comprises the steps of automatically downloading and pulling data in a formal server database to the local, and updating new data into a local test server database through a command, wherein the data of the test server is consistent with online data.
(2) Randomly extracting and classifying user data: firstly, defining a data classification method according to the data type used in a test case, then traversing data in each client project of a database, classifying the data of each project according to the data classification method, and then randomly selecting data in each type of data.
(3) Automatically generating an interface automation test case based on online real data under the dimension of a customer project: and automatically calling the screened test data from the defined test case list to generate an interface automatic test case based on the on-line real data.
The copyright management system interface test method based on the real data has the following main advantages that:
(1) By regularly pulling the latest data of the formal server of the system every day, the data can be updated in time and the test data is ensured to be the on-line real data;
(2) the problem that the copyright management system has high requirements on the test data type can be solved through data classification under each project;
(3) the automatically generated interface test case contains data of each real customer project, so that the test is more comprehensive, the coverage rate of the test case is higher, the use condition of a real user can be effectively simulated, the problem is found out in advance, and the condition that the user cannot use the product is reduced.
(4) The interface test method of the equipment copyright control system based on the real data only needs to modify the basic test case when modifying the test case, thereby reducing the maintenance cost of the test case.
(5) The method for carrying out automatic testing at regular time every day can save the testing labor cost.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present application is not limited by the order of acts described, as some steps may occur in other orders or concurrently depending on the application. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required in this application.
Through the above description of the embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but the former is a better implementation mode in many cases. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present application.
According to another aspect of the embodiments of the present application, there is also provided an actual data-based interface testing apparatus for a copyright management system, which is used for implementing the actual data-based interface testing method for the copyright management system.
Fig. 3 is a schematic diagram of an alternative real data-based interface testing apparatus for a copyright management system according to an embodiment of the present application, and as shown in fig. 3, the apparatus may include:
an updating unit 302, configured to update the latest user data in the online server of the copyright management system to a database of a local server, where the user data in the database of the local server includes: user data of a first data type;
A generating unit 304, configured to invoke the user data of the first data type through a first type basic test case in a defined test case list to generate a second test case, where the test case list includes basic test cases of various types and data types of test data required by the basic test case of each type, the basic test cases of various types include the first type basic test case, and the data type of the test data required by the first type basic test case is the first data type;
and the test unit 306 is configured to run the second test case to obtain a test result.
It should be noted that the updating unit 302 in this embodiment may be configured to execute the step S202 in this embodiment, the generating unit 304 in this embodiment may be configured to execute the step S204 in this embodiment, and the testing unit 306 in this embodiment may be configured to execute the step S206 in this embodiment.
It should be noted here that the modules described above are the same as the examples and application scenarios implemented by the corresponding steps, but are not limited to the disclosure of the above embodiments. It should be noted that the modules described above as a part of the apparatus may operate in a hardware environment as shown in fig. 1, and may be implemented by software or hardware.
Through the module, the latest user data in the online server is updated to the database of the local server in time, real user data is called according to the basic test case to generate new test data as an interface test case of the online data, and the newly generated interface test case is operated to carry out interface test.
Optionally, the apparatus further comprises: the system comprises a classification unit and a processing unit, wherein the classification unit is used for dividing user data in a database of a local server into a plurality of data types according to a preset classification method after updating the latest user data in an online server of a copyright management system into the database of the local server, and the data types comprise: the first data type.
Optionally, the classification unit includes: the first classification module is used for dividing the user data in the database of the local server into user data of a plurality of client projects; and the second classification module is used for dividing the user data of each customer item into user data of a plurality of data types.
Optionally, the updating unit 302 includes: the downloading module is used for automatically running a timing task through a script to download the latest user data from the latest user data in the online server; and the updating module is used for updating the downloaded latest user data to the database of the local server.
Optionally, the updating unit 302 further includes: a measurement module, configured to perform a confidence measurement on the downloaded latest user data after downloading the latest user data from the latest user data in the online server through a script automatic running timing task, and if the downloaded latest user data is trusted, update the downloaded latest user data into a database of the local server, where the confidence measurement includes at least one of: judging whether the data type of the downloaded latest user data belongs to the data type existing in the database of the local server, judging whether the quantity of the downloaded latest user data exceeds a preset quantity, and judging whether the generation time of the downloaded latest user data is earlier than a preset time.
Optionally, the apparatus further comprises: a comparing unit, configured to compare, after the second test case is run to obtain a test result, the test result obtained by running the second test case with the test result obtained by running the first type basic test case to obtain a comparison result, where test data of the second test case is the first type of user data, and test data of the first type basic test case is any one of: the first type basic test case comprises fixed data, data randomly generated by the first type basic test case and data in a preset database; and if the comparison result indicates that the difference degree between the test result obtained by operating the second test case and the test result obtained by operating the first type basic test case is greater than a preset threshold value, regenerating a new second test case for testing.
It should be noted here that the modules described above are the same as the examples and application scenarios implemented by the corresponding steps, but are not limited to the disclosure of the above embodiments. It should be noted that the modules described above as a part of the apparatus may be operated in a hardware environment as shown in fig. 1, and may be implemented by software, or may be implemented by hardware, where the hardware environment includes a network environment.
According to another aspect of the embodiments of the present application, there is also provided a server or a terminal for implementing the method for testing an interface of a rights management system based on real data.
Fig. 4 is a block diagram of a terminal according to an embodiment of the present application, and as shown in fig. 4, the terminal may include: one or more processors 1101 (only one shown in fig. 4), a memory 1103, and a transmitting means 1105, as shown in fig. 4, the terminal may further include an input-output device 1107.
The memory 1103 may be configured to store software programs and modules, such as program instructions/modules corresponding to the method and apparatus for testing a copyright management system interface based on real data in this embodiment, and the processor 1101 executes various functional applications and data processing by running the software programs and modules stored in the memory 1103, so as to implement the method for testing a copyright management system interface based on real data. The memory 1103 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 1103 can further include memory located remotely from the processor 1101, which can be connected to the terminal over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmitting device 1105 is used for receiving or sending data via a network, and can also be used for data transmission between the processor and the memory. Examples of the network may include a wired network and a wireless network. In one example, the transmission device 1105 includes a Network adapter (NIC) that can be connected to a router via a Network cable and other Network devices to communicate with the internet or a local area Network. In one example, the transmitting device 1105 is a Radio Frequency (RF) module, which is used to communicate with the internet in a wireless manner.
The memory 1103 is used for storing, among other things, application programs.
The processor 1101 may call an application stored in the memory 1103 through the transmission device 1105 to perform the following steps:
updating the latest user data in an online server of a copyright management system to a database of a local server, wherein the user data in the database of the local server comprises: user data of a first data type;
calling user data of the first data type through a first type basic test case in a defined test case list to generate a second test case, wherein the test case list comprises basic test cases of various types and data types of test data required by the basic test cases of each type, the basic test cases of various types comprise the first type basic test case, and the data types of the test data required by the first type basic test case are the first data type;
And running the second test case to obtain a test result.
Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments, and this embodiment is not described herein again.
It can be understood by those skilled in the art that the structure shown in fig. 4 is only an illustration, and the terminal may be a terminal device such as a smart phone (e.g., an Android phone, an iOS phone, etc.), a tablet computer, a palm computer, and a Mobile Internet Device (MID), a PAD, etc. Fig. 4 is a diagram illustrating the structure of the electronic device. For example, the terminal may also include more or fewer components (e.g., network interfaces, display devices, etc.) than shown in FIG. 4, or have a different configuration than shown in FIG. 4.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by a program instructing hardware associated with the terminal device, where the program may be stored in a computer-readable storage medium, and the storage medium may include: flash disks, Read-Only memories (ROMs), Random Access Memories (RAMs), magnetic or optical disks, and the like.
Embodiments of the present application also provide a storage medium. Alternatively, in this embodiment, the storage medium may be a program code for executing a method for testing an interface of a rights management system based on real data.
Optionally, in this embodiment, the storage medium may be located on at least one of a plurality of network devices in a network shown in the above embodiment.
Optionally, in this embodiment, the storage medium is configured to store program code for performing the following steps:
updating the latest user data in an online server of a copyright management system to a database of a local server, wherein the user data in the database of the local server comprises: user data of a first data type;
calling user data of the first data type through a first type basic test case in a defined test case list to generate a second test case, wherein the test case list comprises basic test cases of various types and data types of test data required by the basic test cases of each type, the basic test cases of various types comprise the first type basic test case, and the data types of the test data required by the first type basic test case are the first data type;
and running the second test case to obtain a test result.
Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments, and this embodiment is not described herein again.
Optionally, in this embodiment, the storage medium may include, but is not limited to: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
The above-mentioned serial numbers of the embodiments of the present application are merely for description and do not represent the merits of the embodiments.
The integrated unit in the above embodiments, if implemented in the form of a software functional unit and sold or used as a separate product, may be stored in the above computer-readable storage medium. Based on such understanding, the technical solution of the present application may be substantially implemented or a part of or all or part of the technical solution contributing to the prior art may be embodied in the form of a software product stored in a storage medium, and including instructions for causing one or more computer devices (which may be personal computers, servers, network devices, or the like) to execute all or part of the steps of the method described in the embodiments of the present application.
In the above embodiments of the present application, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the several embodiments provided in the present application, it should be understood that the disclosed client may be implemented in other manners. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one type of division of logical functions, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, units or modules, and may be in an electrical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The foregoing is only a preferred embodiment of the present application and it should be noted that those skilled in the art can make several improvements and modifications without departing from the principle of the present application, and these improvements and modifications should also be considered as the protection scope of the present application.

Claims (10)

1. A copyright management system interface test method based on real data is characterized by comprising the following steps:
updating the latest user data in an online server of a copyright management system to a database of a local server, wherein the user data in the database of the local server comprises: user data of a first data type;
calling user data of the first data type through a first type basic test case in a defined test case list to generate a second test case, wherein the test case list comprises basic test cases of various types and data types of test data required by the basic test cases of each type, the basic test cases of various types comprise the first type basic test case, and the data types of the test data required by the first type basic test case are the first data type;
And running the second test case to obtain a test result.
2. The method of claim 1, wherein after updating the latest user data in the online server of the copyright management system into the database of the local server, the method further comprises:
dividing the user data in the database of the local server into user data of a plurality of data types according to a preset classification method, wherein the plurality of data types comprise: the first data type.
3. The method of claim 2, wherein the dividing the user data in the database of the local server into the user data of the plurality of data types according to a predetermined classification method comprises:
dividing user data in a database of the local server into user data of a plurality of client projects;
the user data for each customer item is divided into a plurality of data types of user data.
4. The method of claim 1, wherein updating the most recent user data in the online server of the rights management system to the database of the local server comprises:
downloading the latest user data from the latest user data in the online server through a script automatic operation timing task;
And updating the downloaded latest user data to a database of the local server.
5. The method of claim 4, wherein after downloading the latest user data from the latest user data in the online server by a script auto-run timing task, the method further comprises:
performing credibility measurement on the downloaded latest user data, and if the downloaded latest user data is credible, updating the downloaded latest user data into a database of the local server, wherein the credibility measurement comprises at least one of the following: judging whether the data type of the downloaded latest user data belongs to the data type existing in the database of the local server, judging whether the quantity of the downloaded latest user data exceeds a preset quantity, and judging whether the generation time of the downloaded latest user data is earlier than a preset time.
6. The method of any of claims 1 to 4, wherein after running the second test case to obtain a test result, the method further comprises:
comparing a test result obtained by operating the second test case with a test result obtained by operating the first type basic test case to obtain a comparison result, wherein the test data of the second test case is the user data of the first type, and the test data of the first type basic test case is any one of the following: the first type basic test case comprises fixed data, data randomly generated by the first type basic test case and data in a preset database;
And if the comparison result indicates that the difference degree between the test result obtained by operating the second test case and the test result obtained by operating the first type basic test case is greater than a preset threshold value, regenerating a new second test case for testing.
7. A copyright management system interface testing device based on real data is characterized by comprising:
an updating unit, configured to update latest user data in an online server of a copyright management system to a database of a local server, where the user data in the database of the local server includes: user data of a first data type;
the generating unit is used for calling the user data of the first data type through a first type basic test case in a defined test case list to generate a second test case, wherein the test case list comprises basic test cases of various types and data types of test data required by the basic test cases of each type, the basic test cases of various types comprise the first type basic test case, and the data type of the test data required by the first type basic test case is the first data type;
And the test unit is used for operating the second test case to obtain a test result.
8. The apparatus of claim 7, further comprising:
the system comprises a classification unit and a processing unit, wherein the classification unit is used for dividing user data in a database of a local server into a plurality of data types according to a preset classification method after updating the latest user data in an online server of a copyright management system into the database of the local server, and the data types comprise: the first data type.
9. A storage medium, characterized in that the storage medium comprises a stored program, wherein the program when executed performs the method of any of the preceding claims 1 to 6.
10. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor executes the method of any of the preceding claims 1 to 6 by means of the computer program.
CN202010691534.9A 2020-07-17 2020-07-17 Copyright management system interface test method and device based on real data Pending CN111858333A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010691534.9A CN111858333A (en) 2020-07-17 2020-07-17 Copyright management system interface test method and device based on real data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010691534.9A CN111858333A (en) 2020-07-17 2020-07-17 Copyright management system interface test method and device based on real data

Publications (1)

Publication Number Publication Date
CN111858333A true CN111858333A (en) 2020-10-30

Family

ID=73000921

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010691534.9A Pending CN111858333A (en) 2020-07-17 2020-07-17 Copyright management system interface test method and device based on real data

Country Status (1)

Country Link
CN (1) CN111858333A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160085666A1 (en) * 2014-09-22 2016-03-24 International Business Machines Corporation Auto-deployment and testing of system application test cases in remote server environments
CN110287095A (en) * 2019-05-20 2019-09-27 深圳壹账通智能科技有限公司 A kind of automated testing method, device and storage medium
CN110750446A (en) * 2019-09-18 2020-02-04 平安科技(深圳)有限公司 System testing method and related device
CN110765025A (en) * 2019-10-31 2020-02-07 北京东软望海科技有限公司 Test method, test device, computer equipment and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160085666A1 (en) * 2014-09-22 2016-03-24 International Business Machines Corporation Auto-deployment and testing of system application test cases in remote server environments
CN110287095A (en) * 2019-05-20 2019-09-27 深圳壹账通智能科技有限公司 A kind of automated testing method, device and storage medium
CN110750446A (en) * 2019-09-18 2020-02-04 平安科技(深圳)有限公司 System testing method and related device
CN110765025A (en) * 2019-10-31 2020-02-07 北京东软望海科技有限公司 Test method, test device, computer equipment and storage medium

Similar Documents

Publication Publication Date Title
CN109766696B (en) Method and device for setting software permission, storage medium and electronic device
CN106484453B (en) Method and device for realizing system upgrading
CN105468393B (en) Module release upgrade method and terminal installation
CN111372249B (en) System and method for testing consistency of code number downloading process of eSIM (embedded subscriber identity Module) terminal of Internet of things
CN109725952B (en) Method, system and related device for application program plug-in
US20230273782A1 (en) Information processing method, device, apparatus and system, medium, andprogram
CN104811979A (en) Pressure testing method and device based on FOTA upgrading
CN110677453A (en) ZooKeeper-based distributed lock service implementation method, device, equipment and storage medium
CN113872951B (en) Hybrid cloud security policy issuing method and device, electronic equipment and storage medium
CN107231245B (en) Method and device for reporting monitoring log, and method and device for processing monitoring log
CN107995033B (en) ONU configuration file upgrading method and device
CN110580556A (en) Data processing method and system and processor
CN109348472B (en) OTA (over the air) upgrading method and system based on single-point pushing
CN108881320B (en) Authentication processing method for user login, server and client
CN111858333A (en) Copyright management system interface test method and device based on real data
CN115208671A (en) Firewall configuration method and device, electronic equipment and storage medium
CN114817482A (en) Method, device and equipment for determining product manufacturing program and storage medium
CN114385503A (en) Interface test method, device, equipment and storage medium
CN113360172A (en) Application deployment method and device, computer equipment and storage medium
CN114115074A (en) Device control method and device, computer readable storage medium, processor
CN113312669A (en) Password synchronization method, device and storage medium
CN111949980A (en) Target client monitoring method and device, storage medium and electronic device
CN108021407B (en) Service processing method and device based on network equipment
CN111381932A (en) Method and device for triggering application program change, electronic equipment and storage medium
CN108134683B (en) Terminal and bus architecture implementation method

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