CN112882960A - Data acquisition method and device - Google Patents

Data acquisition method and device Download PDF

Info

Publication number
CN112882960A
CN112882960A CN202110343591.2A CN202110343591A CN112882960A CN 112882960 A CN112882960 A CN 112882960A CN 202110343591 A CN202110343591 A CN 202110343591A CN 112882960 A CN112882960 A CN 112882960A
Authority
CN
China
Prior art keywords
data
service
business
elements
acquiring
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
CN202110343591.2A
Other languages
Chinese (zh)
Inventor
张希婷
王欢欢
闫伟
赵天娇
高蕊
冷炜
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Citic Bank Corp Ltd
Original Assignee
China Citic Bank Corp 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 Citic Bank Corp Ltd filed Critical China Citic Bank Corp Ltd
Priority to CN202110343591.2A priority Critical patent/CN112882960A/en
Publication of CN112882960A publication Critical patent/CN112882960A/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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The invention relates to the technical field of data processing, in particular to a data acquisition method and device. The method comprises the following steps: acquiring a test case input by a tester and identifying service elements; acquiring service data which has a mapping relation with the service element from a pre-constructed service data model according to the service element; the business data model stores business elements and business data which has a mapping relation with the business elements. According to the data acquisition scheme provided by the application, a user can acquire required service test data only by relating to the service elements of the test case, namely, by configuring the service elements of the test case.

Description

Data acquisition method and device
Technical Field
The invention relates to the technical field of data processing, in particular to a data acquisition method and device.
Background
In the existing software test, the test data preparation is a time-consuming process, and usually needs professional database personnel or service personnel to prepare manually, and then the test data is handed to a test executive personnel to perform manual test or automatic test. Particularly in the financial industry, a large number of tests are required for a large user group, and due to the requirements of real-time performance and diversity, a large amount of test data is required to meet the test requirements. At present, related personnel are required to prepare test data manually according to related business processes, so that the data manufacturing efficiency is low, the threshold is high, and the test data is fixed and cannot support diversified tests.
Disclosure of Invention
The present application aims to solve at least one of the above technical drawbacks. The technical scheme adopted by the application is as follows:
in a first aspect, an embodiment of the present application discloses a data acquisition method, where the method includes:
acquiring a test case input by a tester and identifying service elements;
acquiring service data which has a mapping relation with the service element from a pre-constructed service data model according to the service element; the business data model stores business elements and business data which has a mapping relation with the business elements.
Further, the building the business data model comprises:
obtaining effective service data;
establishing the effective business data model based on a tree model through a business data hierarchical division standard; wherein the business data model comprises parent classes, subclasses, derived business data at least in a reduced order.
Further, the acquiring valid service data includes:
acquiring a data source of a system database table;
and cleaning dirty data in the data source, and filtering data irrelevant to the service elements to obtain the effective service data.
Further, the service data having a mapping relationship with the service element may be: and obtaining a fixed value, a functional relation or an SQL rule of the business data which has a mapping relation with the business element in a database table.
Further, the acquiring the service data having a mapping relationship with the service element includes:
acquiring a service field in the pre-constructed service data model according to the service element; the service field is a unique identifier of service data which has a mapping relation with the service element;
and determining the business data which has a mapping relation with the business element according to the unique identifier.
Further, the method further comprises:
constructing a unique identification number of the target test case business data; wherein, the target test case at least comprises more than two business elements; the identification numbers of the service data obtained according to the two service elements are the unique identification numbers;
caching the acquired first service data of the first service element in a service scene data pool;
and acquiring second service data in the pre-constructed service data model according to the first service data and the second service element.
In a second aspect, an embodiment of the present application provides a data acquisition apparatus, where the apparatus includes: the system comprises an acquisition module, a storage module and a construction module; wherein,
the acquisition module is used for acquiring the test cases input by the testers and identifying the service elements;
the construction module is used for constructing a business data model; the business data model stores business elements and business data which has a mapping relation with the business elements.
The storage module is used for storing a pre-constructed service data model;
the obtaining module is further configured to obtain, according to the service element, service data having a mapping relationship with the service element from a service data model that is constructed in advance.
Further, the obtaining module is further configured to obtain valid service data; the construction module is specifically used for constructing the business data model on the basis of a tree model through a business data hierarchy division standard; wherein the business data model comprises parent classes, subclasses, derived business data at least in a reduced order.
In a third aspect, an embodiment of the present application provides an electronic device, including a processor and a memory;
the memory is used for storing operation instructions;
the processor is configured to execute the method in any of the embodiments by calling the operation instruction.
In a fourth aspect, the present application provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the computer program implements the method of any one of the above embodiments.
According to the data acquisition scheme provided by the embodiment of the application, the business data model is established, and the business scene data pool is established at the same time for dynamically acquiring the data linkage of the associated business data under the same test case, so that the purpose that a tester only needs to pay attention to the business elements is finally achieved, and the realization of the business elements and the underlying technical logic is not needed. The beneficial effects of the application include at least one of the following:
(1) based on the data acquisition scheme provided by the application, a user can acquire required test data only by relating to the service elements of the test case, namely, by configuring the service elements of the test case;
(2) the data acquisition scheme provided by the application has the advantages that the data acquisition process is simple and convenient, the real multiplexing of data acquisition and acquisition is realized, and the maintenance cost is low;
(3) the data generated based on the data acquisition scheme provided by the application is accurate and various, the test efficiency and the test quality can be greatly improved, and the difficult pain point that the dynamic acquisition difficulty of the test data is high, the efficiency is low, the test data is not diverse enough and the accuracy is low is particularly solved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings used in the description of the embodiments of the present application will be briefly described below.
Fig. 1 is a schematic flowchart of a data acquisition method according to an embodiment of the present application;
fig. 2 is a business data model relationship table provided in an embodiment of the present application;
fig. 3 is a schematic diagram of a data acquisition apparatus according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
Reference will now be made in detail to embodiments of the present application, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the drawings are exemplary only for the purpose of explaining the present application and are not to be construed as limiting the present invention.
It will be understood by those skilled in the art that, unless otherwise specified, the singular forms "a", "an", "the" and "the" may include the plural forms, and the plural forms "a", "an", "a", and "the" are merely intended to illustrate the object definition for clarity and do not limit the object itself, and certainly, the object definition for "a" and "an" may be the same terminal, device, user, etc., and may also be the same terminal, device, user, etc. It will be further understood that the terms "comprises" and/or "comprising," when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof. As used herein, the term "and/or" includes all or any element and all combinations of one or more of the associated listed items.
In addition, it is to be understood that "at least one" in the embodiments of the present application means one or more, "a plurality" means two or more. "and/or" describes the association relationship of the associated objects, meaning that there may be three relationships, e.g., a and/or B, which may mean: a alone, both A and B, and B alone, where A, B may be singular or plural. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship. "at least one of the following" or similar expressions refer to any combination of these items, including any combination of the singular or plural items. For example, at least one (one) of a, b, or c, may represent: a, b, c, a and b, a and c, b and c, or a, b and c, wherein a, b and c can be single or multiple.
As stated in the background art, the test data in many test fields including financial tests at present requires a tester to acquire the test data by using a database or other auxiliary generation operations, and the method has complicated steps and high labor cost. In addition, some technical solutions determine the number model corresponding to each test system, and then generate the test data corresponding to each test system based on the key number data field and the number rule in each number model. In addition, some schemes acquire corresponding driving functions in a database operation function library by analyzing and executing SQL instruction information, and acquire parameterization basis from a target database. In other schemes, a generation rule is created for each test field type in advance, each original data in the database is converted into a plurality of test data, the method uses a pure technical language, and testers can accurately write corresponding sentences only by deeply understanding the generation rule, so that the method is not beneficial to popularization and use. In summary, based on various limitations of the above test data acquisition scheme, the following embodiments of the present application disclose a data acquisition method and apparatus to solve at least one of the above technical problems.
Fig. 1 shows a schematic flow chart of data acquisition provided in an embodiment of the present application, and as shown in fig. 1, the method mainly includes:
s101, obtaining a test case input by a tester and identifying service elements;
s102, acquiring service data which has a mapping relation with the service element from a pre-constructed service data model according to the service element; the business data model stores business elements and business data which has a mapping relation with the business elements.
In a further optional embodiment, the building the business data model comprises:
step 1, obtaining effective service data;
step 2, establishing the effective business data model based on a tree model through a business data hierarchical division standard; wherein the business data model comprises parent classes, subclasses, derived business data at least in a reduced order.
In a preferred embodiment, the building the business data model includes:
step 1, acquiring a data source of a system database table;
and 2, cleaning dirty data in the data source, and filtering data irrelevant to the service elements to obtain the effective service data.
Step 3, establishing the effective business data model based on the tree model through a business data hierarchical division standard; wherein the business data model comprises parent classes, subclasses, derived business data at least in a reduced order.
In a further optional embodiment, the service element value corresponds to an enumerated value of the service data, which includes a fixed value, a function relation value or an SQL rule value, that is, the service data having a mapping relationship with the service element may be:
(1) a fixed value;
(2) a functional relationship;
(3) and acquiring SQL rules of the business data with the mapping relation with the business elements in a database table.
In a further optional embodiment, the obtaining the service data having a mapping relationship with the service element includes:
step 1, acquiring a service field in the pre-constructed service data model according to the service element; the service field is a unique identifier of service data which has a mapping relation with the service element;
and 2, determining the business data which has a mapping relation with the business element according to the unique identifier.
In the embodiment of the present application, the service elements (that is, the test cases include the service elements) included in each service transaction may correspond to the service data having a mapping relationship with the service elements, and the service data may correspond to the table and the table fields, for example, the client class-the private client class with a normal account status-the private client class includes a client number, cut _ info-cut _ no, a client name, cut _ info-cut _ name, a client certificate type, cut _ info-cut _ IDtype, and the like, and for the service transaction APICODE, the service elements include a client number, a client name, a client certificate number, an account number, and the like, where the client number, the client name, and the client certificate number correspond to the service data of each specific service field in the service data. Therefore, a bridge for converting the business language into the technical language can be established by establishing the mapping relation between the business elements and the business data.
On the basis of the above embodiments, in specific embodiments, the service elements are constructed in a manner that a tester provides a test case or checks/fills in service values of a service scene through an interface, and the system can automatically perform filling of a general SQL rule or supplement of a fixed value and a functional relation value in multiple ways according to an established service data model to convert a service language into a technical language. The specific implementation method is as follows:
each business transaction has a plurality of transaction scenes, but the business elements used in the transaction scenes, namely the business languages, are the same, only the values are different, and the business scene adaptation of the technical language can be completed only by combining the established business data model (in a specific embodiment, the model is stored in a business element-business data table form) and performing SQL filling in a general value taking mode or supplementing in a fixed value and function relation value multi-mode by using the enumerated values of the business elements. As shown in the example of fig. 2, the data conditions of different scenarios can be satisfied by changing the enumerated values of the common SQL rule, so that the conversion from the business language to the technical language is realized.
In a further optional embodiment, when the business data having a mapping relationship with a business element may be an SQL rule for acquiring business data having a mapping relationship with the business element in a database table, the implementation manner for acquiring business data having a mapping relationship according to a business element further includes:
step 1, constructing a unique identification number of target test case business data; wherein, the target test case at least comprises more than two business elements; the identification numbers of the service data obtained according to the two service elements are the unique identification numbers;
step 2, caching the acquired first service data of the first service element in a service scene data pool;
and 3, acquiring second service data in the pre-constructed service data model according to the first service data and the second service element.
In the embodiment of the application, a service scene class data pool (that is, a test scene data pool of a service test case) is established, and real-time dynamic interaction of service scene associated elements is performed by using a unique identification number, so as to obtain a group of data meeting a scene, for example, a service scene case includes a service element A, B, C, D …, wherein a value of A, B is obtained by a link table SQL, and meanwhile, a SQL relation part of B is determined by a value of a, so that the value of a is preferentially obtained according to the SQL of a, stored in the service scene class data pool, and a unique scene identification number is generated, then the value of a is transmitted to a SQL rule of B to obtain a value of B, and then written in a scene under the identification of the service scene class, and so on, obtaining of a group of scene service data is completed. Based on the embodiment of the application, the difficult pain points that the dynamic acquisition difficulty of the test data is high, the efficiency is low, the test data is not diverse enough and the accuracy is low are solved.
Based on the data acquisition scheme provided by the embodiment of the application, in specific application operation, a user only needs to select and configure the relevant data class in the interface according to the service scene, so that the corresponding test data can be obtained, the data class or the value logic of the service scene does not need to be concerned, the user experience is improved, the use threshold is reduced, and the test efficiency is greatly improved; in addition, the data acquisition scheme provided by the embodiment can meet the requirement of a user for dynamically acquiring test data in real time within 7 × 24 hours, and meanwhile, the acquired test data is dynamic and diverse, so that test scenes are enriched, and meanwhile, the possible inadequacy of manual test is avoided. Meanwhile, when the service system has larger functions or framework change, the data acquisition scheme disclosed by the embodiment of the application can update the test data in real time only by maintaining the data relation model of the affected data class and the service base table in a targeted manner, and a user does not sense or need to sense the data relation model on the service level, so that the usability and the robustness of the test data acquisition scheme are greatly improved.
Based on the data acquisition method shown in fig. 1, another aspect of the present application provides a data acquisition apparatus, as shown in fig. 3, the apparatus may include: a 301 acquisition module, a 302 storage module and a 303 construction module; wherein,
the 301 acquisition module is used for acquiring the test cases input by the testers and identifying the service elements;
the 303 building module is used for building a business data model; the business data model stores business elements and business data which has a mapping relation with the business elements.
The 302 storage module is used for storing a pre-constructed service data model;
the 301 obtaining module is further configured to obtain, according to the service element, service data having a mapping relationship with the service element from a service data model that is constructed in advance.
In a further embodiment, according to the valid service data acquired by the 301 acquisition module, the 303 construction module is specifically configured to construct the service data model based on a tree model according to a service data hierarchical division standard; wherein the business data model comprises parent classes, subclasses, derived business data at least in a reduced order.
It is to be understood that the above-described respective constituent devices of the data acquisition apparatus in the present embodiment have functions of implementing the respective steps of the method in the embodiment shown in fig. 1. The function can be realized by hardware, and can also be realized by executing corresponding software by hardware. The hardware or software includes one or more modules or systems corresponding to the above-described functions. The modules and systems can be software and/or hardware, and the modules and systems can be realized independently or integrated by a plurality of modules and systems. For the functional description of each module and system, reference may be specifically made to the corresponding description of the method in the embodiment shown in fig. 1, and therefore, the beneficial effects that can be achieved by the method may refer to the beneficial effects in the corresponding method provided above, which are not described again here.
It is to be understood that the illustrated structure of the embodiment of the present invention does not constitute a specific limitation to the specific structure of the data acquisition apparatus. In other embodiments of the present application, the data acquisition device may include more or fewer components than shown, or some components may be combined, some components may be split, or a different arrangement of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
The embodiment of the application provides an electronic device, which comprises a processor and a memory;
a memory for storing operating instructions;
and the processor is used for executing the data acquisition method provided by any embodiment of the application by calling the operation instruction.
As an example, fig. 4 shows a schematic structural diagram of an electronic device to which the embodiment of the present application is applicable, and as shown in fig. 4, the electronic device 400 includes: a processor 401 and a memory 403. Wherein the processor 401 is coupled to the memory 403, such as via a bus 402. Optionally, the electronic device 400 may also include a transceiver 404. It should be noted that the transceiver 404 is not limited to one in practical applications. It is to be understood that the illustrated structure of the embodiment of the present invention does not constitute a specific limitation to the specific structure of the electronic device 400. In other embodiments of the present application, electronic device 400 may include more or fewer components than shown, or some components may be combined, some components may be split, or a different arrangement of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware. Optionally, the electronic device may further include a display screen 405 for displaying images or receiving operation instructions of a user as needed.
The processor 401 is applied to the embodiment of the present application, and is configured to implement the method shown in the foregoing method embodiment. The transceiver 404 may include a receiver and a transmitter, and the transceiver 404 is applied in the embodiment of the present application and is used for implementing the function of the electronic device of the embodiment of the present application to communicate with other devices when executed.
The Processor 401 may be a CPU (Central Processing Unit), a general purpose Processor, a DSP (Digital Signal Processor), an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array) or other Programmable logic device, a transistor logic device, a hardware component, or any combination thereof. Which may implement or perform the various illustrative logical blocks, modules, and circuits described in connection with the disclosure. The processor 401 may also be a combination of computing functions, e.g., comprising one or more microprocessors, a combination of a DSP and a microprocessor, or the like.
Processor 401 may also include one or more processing units, for example, where different processing units may be stand-alone devices or may be integrated into one or more processors. The controller may be, among other things, a neural center and a command center of the electronic device 400. The controller can generate an operation control signal according to the instruction operation code and the timing signal to complete the control of instruction fetching and instruction execution. A memory may also be provided in processor 401 for storing instructions and data. In some embodiments, the memory in the processor 401 is a cache memory. The memory may hold instructions or data that have just been used or recycled by processor 401. If the processor 401 needs to reuse the instruction or data, it can be called directly from the memory. Avoiding repeated accesses reduces the latency of the processor 401, thereby increasing the efficiency of the system.
The processor 401 may operate the data acquisition method provided in the embodiment of the present application, so as to reduce the operation complexity of the user, improve the intelligent degree of the terminal device, and improve the user experience. The processor 401 may include different devices, for example, when the CPU and the GPU are integrated, the CPU and the GPU may cooperate to execute the data acquisition method provided in the embodiment of the present application, for example, part of the algorithm in the data acquisition method is executed by the CPU, and another part of the algorithm is executed by the GPU, so as to obtain faster processing efficiency.
Bus 402 may include a path that transfers information between the above components. The bus 402 may be a PCI (Peripheral Component Interconnect) bus, an EISA (Extended Industry Standard Architecture) bus, or the like. The bus 402 may be divided into an address bus, a data bus, a control bus, and the like. For ease of illustration, only one thick line is shown in FIG. 4, but this does not indicate only one bus or one type of bus.
The Memory 403 may be, but is not limited to, a ROM (Read Only Memory) or other type of static storage device that can store static information and instructions, a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer.
Optionally, the memory 403 is used for storing application program codes for executing the scheme of the present application, and is controlled by the processor 401 to execute. The processor 401 is configured to execute the application program code stored in the memory 403 to implement the data acquisition method provided in any embodiment of the present application.
The memory 403 may be used to store computer-executable program code, which includes instructions. The processor 401 executes various functional applications of the electronic device 400 and data processing by executing instructions stored in the memory 403. The memory 403 may include a program storage area and a data storage area. Wherein, the storage program area can store the codes of the operating system and the application program, etc. The stored data area may store data created during use of the electronic device 400 (e.g., images, video, etc. captured by a camera application), and the like.
The memory 403 may also store one or more computer programs corresponding to the data acquisition method provided in the embodiments of the present application. The one or more computer programs stored in the memory 403 and configured to be executed by the one or more processors 401 include instructions that may be used to perform the steps of the respective embodiments described above.
Of course, the code of the data acquisition method provided by the embodiment of the present application may also be stored in the external memory. In this case, the processor 401 may execute the code of the data acquisition method stored in the external memory through the external memory interface, and the processor 401 may control the execution of the data acquisition flow.
The display screen 405 includes a display panel. In some embodiments, the electronic device 400 may include 1 or N display screens 405, N being a positive integer greater than 1. The display screen 405 may be used to display information input by or provided to the user as well as various Graphical User Interfaces (GUIs). For example, the display screen 405 may display a photograph, video, web page, or file, etc.
The electronic device provided by the embodiment of the present application is applicable to any embodiment of the above method, and therefore, the beneficial effects that can be achieved by the electronic device can refer to the beneficial effects in the corresponding method provided above, and are not described again here.
The embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the computer program implements the data acquisition method shown in the above method embodiment.
The computer-readable storage medium provided in the embodiments of the present application is applicable to any embodiment of the foregoing method, and therefore, the beneficial effects that can be achieved by the computer-readable storage medium can refer to the beneficial effects in the corresponding method provided above, and are not described herein again.
The embodiment of the present application further provides a computer program product, which when running on a computer, causes the computer to execute the above related steps to implement the method in the above embodiment. The computer program product provided in the embodiments of the present application is applicable to any of the embodiments of the method described above, and therefore, the beneficial effects that can be achieved by the computer program product can refer to the beneficial effects in the corresponding method provided above, and are not described herein again.
According to the data acquisition scheme provided by the embodiment of the application, the business data model is established, and the business scene data pool is established at the same time for dynamically acquiring the data linkage of the associated business data under the same test case, so that the purpose that a tester only needs to pay attention to the business elements is finally achieved, and the realization of the business elements and the underlying technical logic is not needed. According to the data acquisition scheme provided by the embodiment of the application, a user can acquire required test data only by relating to the service elements of the test case, namely, by configuring the service elements of the test case; the data acquisition scheme provided by the application has the advantages that the data acquisition process is simple and convenient, the real multiplexing of data acquisition and acquisition is realized, and the maintenance cost is low; the data generated based on the data acquisition scheme provided by the application is accurate and various, the test efficiency and the test quality can be greatly improved, and the difficult pain point that the dynamic acquisition difficulty of the test data is high, the efficiency is low, the test data is not diverse enough and the accuracy is low is particularly solved.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of changes or substitutions within the technical scope of the present application, and can make several modifications and decorations, and these changes, substitutions, improvements and decorations should also be considered to be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (10)

1. A method for data acquisition, the method comprising:
acquiring a test case input by a tester and identifying service elements;
acquiring service data which has a mapping relation with the service element from a pre-constructed service data model according to the service element; the business data model stores business elements and business data which has a mapping relation with the business elements.
2. The data acquisition method of claim 1, wherein the building the business data model comprises:
obtaining effective service data;
establishing the business data model based on a tree model through a business data hierarchical division standard; wherein the business data model comprises parent classes, subclasses, derived business data at least in a reduced order.
3. The data acquisition method according to claim 2, wherein the acquiring valid service data comprises:
acquiring a data source of a system database table;
and cleaning dirty data in the data source, and filtering data irrelevant to the service elements to obtain the effective service data.
4. The data acquisition method according to claim 1 or 3, wherein the service data having a mapping relationship with the service element may be:
and obtaining a fixed value, a functional relation or an SQL rule of the business data which has a mapping relation with the business element in a database table.
5. The data acquisition method according to claim 4, wherein the acquiring the service data having the mapping relationship with the service element comprises:
acquiring a service field in the pre-constructed service data model according to the service element; the service field is a unique identifier of service data which has a mapping relation with the service element;
and determining the business data which has a mapping relation with the business element according to the unique identifier.
6. The data acquisition method according to claim 1 or 5, characterized in that the method further comprises:
constructing a unique identification number of the target test case business data; wherein, the target test case at least comprises more than two business elements; the identification numbers of the service data obtained according to the two service elements are the unique identification numbers;
caching the acquired first service data of the first service element in a service scene data pool;
and acquiring second service data in the pre-constructed service data model according to the first service data and the second service element.
7. A data acquisition apparatus, characterized in that the apparatus comprises: the system comprises an acquisition module, a storage module and a construction module; wherein,
the acquisition module is used for acquiring the test cases input by the testers and identifying the service elements;
the construction module is used for constructing a business data model; the business data model stores business elements and business data which has a mapping relation with the business elements.
The storage module is used for storing a pre-constructed service data model;
the obtaining module is further configured to obtain, according to the service element, service data having a mapping relationship with the service element from a service data model that is constructed in advance.
8. The data acquisition device according to claim 7, wherein the acquisition module is further configured to acquire valid service data; the construction module is specifically used for constructing the business data model on the basis of a tree model through a business data hierarchy division standard; wherein the business data model comprises parent classes, subclasses, derived business data at least in a reduced order.
9. An electronic device comprising a processor and a memory;
the memory is used for storing operation instructions;
the processor is used for executing the method of any one of claims 1-6 by calling the operation instruction.
10. A computer-readable storage medium, characterized in that the storage medium has stored thereon a computer program which, when being executed by a processor, carries out the method of any one of claims 1-6.
CN202110343591.2A 2021-03-30 2021-03-30 Data acquisition method and device Pending CN112882960A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110343591.2A CN112882960A (en) 2021-03-30 2021-03-30 Data acquisition method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110343591.2A CN112882960A (en) 2021-03-30 2021-03-30 Data acquisition method and device

Publications (1)

Publication Number Publication Date
CN112882960A true CN112882960A (en) 2021-06-01

Family

ID=76040349

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110343591.2A Pending CN112882960A (en) 2021-03-30 2021-03-30 Data acquisition method and device

Country Status (1)

Country Link
CN (1) CN112882960A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114168488A (en) * 2021-12-29 2022-03-11 中国邮政储蓄银行股份有限公司 Method, device, computer readable storage medium and processor for automated testing

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150227452A1 (en) * 2014-02-12 2015-08-13 Wipro Limited System and method for testing software applications
CN106202080A (en) * 2015-04-30 2016-12-07 中国移动通信集团公司 A kind of webpage rendering intent, server and terminal unit
CN108804266A (en) * 2018-05-22 2018-11-13 郑州云海信息技术有限公司 A kind of performance of storage system test method, device and computer readable storage medium
CN110221982A (en) * 2019-06-17 2019-09-10 深圳前海微众银行股份有限公司 Performance test methods, device, equipment and the readable storage medium storing program for executing of operation system
CN111078823A (en) * 2019-12-13 2020-04-28 北京明略软件系统有限公司 Text element extraction method and device and electronic equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150227452A1 (en) * 2014-02-12 2015-08-13 Wipro Limited System and method for testing software applications
CN106202080A (en) * 2015-04-30 2016-12-07 中国移动通信集团公司 A kind of webpage rendering intent, server and terminal unit
CN108804266A (en) * 2018-05-22 2018-11-13 郑州云海信息技术有限公司 A kind of performance of storage system test method, device and computer readable storage medium
CN110221982A (en) * 2019-06-17 2019-09-10 深圳前海微众银行股份有限公司 Performance test methods, device, equipment and the readable storage medium storing program for executing of operation system
CN111078823A (en) * 2019-12-13 2020-04-28 北京明略软件系统有限公司 Text element extraction method and device and electronic equipment

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114168488A (en) * 2021-12-29 2022-03-11 中国邮政储蓄银行股份有限公司 Method, device, computer readable storage medium and processor for automated testing

Similar Documents

Publication Publication Date Title
CN111049878B (en) Method, device, electronic device and storage medium for visualizing micro-service call chain
CN108958736B (en) Page generation method and device, electronic equipment and computer readable medium
CN101908015B (en) Device and method for creating test case based on components
CN111459501A (en) SVG-based Web configuration picture storage and display system, method and medium
CN111262753A (en) Method, system, terminal and storage medium for automatically configuring number of NUMA nodes
CN112667638A (en) Dynamic report generation method and device, terminal equipment and readable storage medium
CN112363935A (en) Data joint debugging method and device, electronic equipment and storage medium
CN112882960A (en) Data acquisition method and device
CN113760242B (en) Data processing method, device, server and medium
CN109120708B (en) Business module construction method, calling method and device based on micro-service component
CN111353002A (en) Training method and device for network representation learning model, electronic equipment and medium
CN114153442A (en) Large-screen visualization page configuration method and system based on visualization component
CN116521181B (en) Script data processing method, device, equipment and medium based on game system
US20070283260A1 (en) Human-machine Interface System with Device Bridge and Method for Designing and Operating the Same
CN109766093B (en) Method and device for collaborative real-time editing, electronic equipment and storage medium
CN108305161A (en) A kind of paying taxes service interface carding method and device
US20230230324A1 (en) Method, System, Equipment and Medium for Modifying the Layering Layer Information of Finite Element Model Unit
CN113448859B (en) Test data generation method and device based on distributed system
US20020143748A1 (en) Method and system for providing a generic scalar function
CN111782482B (en) Interface pressure testing method and related equipment
CN114327425A (en) View generation method and device, electronic equipment and storage medium
CN111240651A (en) Single instance interface calling method, terminal device and storage medium
CN115729218A (en) Model testing method, device, equipment and medium for multiple gear shifting modes
CN117827956A (en) Data docking method and device, electronic equipment and storage medium
CN113326035A (en) Data processing method and device, electronic equipment and computer storage medium

Legal Events

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