CN113535574A - Automatic generation method, device, equipment and medium for test user data - Google Patents

Automatic generation method, device, equipment and medium for test user data Download PDF

Info

Publication number
CN113535574A
CN113535574A CN202110843238.0A CN202110843238A CN113535574A CN 113535574 A CN113535574 A CN 113535574A CN 202110843238 A CN202110843238 A CN 202110843238A CN 113535574 A CN113535574 A CN 113535574A
Authority
CN
China
Prior art keywords
role
test user
universal
roles
user data
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.)
Granted
Application number
CN202110843238.0A
Other languages
Chinese (zh)
Other versions
CN113535574B (en
Inventor
姜蕾
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Industrial and Commercial Bank of China Ltd ICBC
ICBC Technology Co Ltd
Original Assignee
Industrial and Commercial Bank of China Ltd ICBC
ICBC Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Industrial and Commercial Bank of China Ltd ICBC, ICBC Technology Co Ltd filed Critical Industrial and Commercial Bank of China Ltd ICBC
Priority to CN202110843238.0A priority Critical patent/CN113535574B/en
Publication of CN113535574A publication Critical patent/CN113535574A/en
Application granted granted Critical
Publication of CN113535574B publication Critical patent/CN113535574B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3684Test management for test design, e.g. generating new test cases

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 disclosure provides a method, a device, equipment and a medium for automatically generating test user data, relates to the technical field of software test, and can be applied to the technical field of finance. The automatic generation method of the test user data comprises the following steps: acquiring a mechanism tree and a universal role of the administrative office system, wherein the universal role can be combined with the structure of the mechanism tree to obtain an expression rule; and creating a plurality of test user accounts of the universal roles according to a batch generation rule, wherein the batch generation rule represents the mapping relation between the positions of the universal roles in the mechanism tree and the names of the test user accounts. The automatic generation method of the test user data can improve the efficiency of constructing the test user data.

Description

Automatic generation method, device, equipment and medium for test user data
Technical Field
The present disclosure relates to the field of software testing technologies, and in particular, to a method, an apparatus, a device, and a medium for automatically generating test user data.
Background
With the development of information digitization technology, many units use the online administrative office system to perform various services in the unit. When testing the administrative office system, in order to test each module of the administrative office by simulating a real scene, a large amount of test user data needs to be constructed, that is: a number of test user accounts are constructed.
In the prior art, a test user account is usually constructed manually, a large amount of manpower is consumed, and the efficiency is low.
Disclosure of Invention
In view of the foregoing, the present disclosure provides a method, an apparatus, a device, and a medium for automatically generating test user data that can improve efficiency of constructing test user data.
According to a first aspect of the present disclosure, there is provided a method for automatic generation of test user data, comprising:
acquiring a mechanism tree and a universal role of the administrative office system, wherein the universal role can be combined with the structure of the mechanism tree to obtain an expression rule;
and creating a plurality of test user accounts of the universal roles according to a batch generation rule, wherein the batch generation rule represents the mapping relation between the positions of the universal roles in the mechanism tree and the names of the test user accounts.
According to an embodiment of the present disclosure, the method for automatically generating test user data further includes:
and authorizing the test user account of the universal role according to a universal role authorization rule, wherein the universal role authorization rule represents the mapping relation between the position and the position name of each universal role in the mechanism tree.
According to an embodiment of the present disclosure, acquiring a mechanism tree and a common role of an administrative office system includes:
acquiring a mechanism tree of an administrative office system from the unified authentication system through a first interface;
acquiring roles of the administrative office system from the unified authentication system through a second interface, wherein the roles comprise a general role and a special role, the special role is added according to a specific application scene of the administrative office system, and the unified authentication system is synchronous with a mechanism tree and role information of the administrative office system;
the generic role is identified through a third interface.
According to an embodiment of the present disclosure, creating a plurality of test user accounts of a common role according to a batch generation rule includes:
receiving an input batch generation rule through a fourth interface;
and creating test user accounts with universal roles in the unified authentication system through a fifth interface, wherein each test user account meets the batch generation rule.
According to an embodiment of the present disclosure, authorizing a test user account of a generic role according to a generic role authorization rule includes:
receiving an input universal role authorization rule through a sixth interface;
and authorizing the test user accounts of the universal roles in the unified authentication system through the seventh interface so that the test user accounts of the universal roles have the corresponding job names, and synchronizing the authorization information of the unified authentication system and the administrative office system.
According to an embodiment of the present disclosure, the method for automatically generating test user data further includes:
and determining the mapping relation between the job name of the test user account and the processing authority.
According to an embodiment of the present disclosure, the method for automatically generating test user data further includes:
and receiving the input batch generation rule and the universal role authorization rule through the interactive page.
A second aspect of the present disclosure provides an apparatus for automatically generating test user data, including:
the system comprises a mechanism tree and general role acquisition module, a mechanism tree and general role acquisition module and a role selection module, wherein the mechanism tree and general role acquisition module is used for acquiring the mechanism tree and general role of the administrative office system, and the general role can be combined with the structure of the mechanism tree to obtain an expression rule;
and the test user account creating module of the universal role is used for creating a plurality of test user accounts of the universal role according to the batch generation rule, wherein the batch generation rule represents the mapping relation between the position of each universal role in the mechanism tree and the name of each test user account.
A third aspect of the present disclosure provides an electronic device, comprising: one or more processors; a memory for storing one or more programs, wherein the one or more programs, when executed by the one or more processors, cause the one or more processors to perform the above-described method of automatic generation of test user data.
A fourth aspect of the present disclosure also provides a computer-readable storage medium having stored thereon executable instructions that, when executed by a processor, cause the processor to perform the above-described method of automatic generation of test user data.
Drawings
The foregoing and other objects, features and advantages of the disclosure will be apparent from the following description of embodiments of the disclosure, which proceeds with reference to the accompanying drawings, in which:
FIG. 1 schematically illustrates an application scenario diagram of a method, apparatus, device and medium for automatic generation of test user data according to an embodiment of the present disclosure;
FIG. 2 schematically illustrates a flow chart of a method of automatic generation of test user data according to an embodiment of the present disclosure;
FIG. 3 schematically illustrates a flow chart of another method of automatic generation of test user data according to an embodiment of the present disclosure;
fig. 4 schematically shows a flowchart of operation S201 of obtaining a mechanism tree and a general role of the administrative office system;
FIG. 5 schematically shows a flowchart of operation S202 for creating a test user account for a plurality of generic roles according to a batch generation rule;
fig. 6 schematically shows a flowchart of authorizing a test user account of a generic role according to generic role authorization rules in operation S303;
FIG. 7 is a block diagram schematically illustrating an apparatus for automatic generation of test user data according to an embodiment of the present disclosure; and
FIG. 8 schematically illustrates a block diagram of an electronic device suitable for implementing a method of automatic generation of test user data according to an embodiment of the disclosure.
Detailed Description
Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. It should be understood that the description is illustrative only and is not intended to limit the scope of the present disclosure. In the following detailed description, for purposes of explanation, numerous specific details are set forth in order to provide a thorough understanding of the embodiments of the disclosure. It may be evident, however, that one or more embodiments may be practiced without these specific details. Moreover, in the following description, descriptions of well-known structures and techniques are omitted so as to not unnecessarily obscure the concepts of the present disclosure.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the disclosure. The terms "comprises," "comprising," and the like, as used herein, specify the presence of stated features, steps, operations, and/or components, but do not preclude the presence or addition of one or more other features, steps, operations, or components.
All terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art unless otherwise defined. It is noted that the terms used herein should be interpreted as having a meaning that is consistent with the context of this specification and should not be interpreted in an idealized or overly formal sense.
Where a convention analogous to "at least one of A, B and C, etc." is used, in general such a construction is intended in the sense one having skill in the art would understand the convention (e.g., "a system having at least one of A, B and C" would include but not be limited to systems that have a alone, B alone, C alone, a and B together, a and C together, B and C together, and/or A, B, C together, etc.).
With the development of information digitization technology, many units use online administrative office systems to perform various services in the units, such as the examination and approval work of various services in the units, and the administrative office systems are generally matched with a unified authentication system for use, and a single sign-on mode is adopted. The unified authentication system is responsible for managing user accounts, setting a mechanism tree, menus and roles; the user granted with the authority logs in the administrative office system, or creates a request form to initiate an application, or examines and approves the request form, or performs parameter maintenance on a certain module from the background of the administrative office system. When testing the administrative office system, in order to test each module of the administrative office by simulating a real scene, a large amount of 3 types of test user data need to be constructed, that is: and constructing a large number of test user accounts, and granting corresponding permissions to the test user accounts according to requirements. The problem faced by testers is how to quickly construct test user data that meets the conditions to facilitate testing.
The existing scheme for constructing the administrative office system to test the user data mainly comprises the following steps: and establishing a user from the unified authentication system in a manual mode, and then performing role authorization on the user in the administrative office system.
The method for manually constructing test user data mainly has two defects:
one disadvantage is that a great deal of manpower is required. Often, in an administrative office system, users with the same role need to be set under a plurality of sub-organizations, for example, each leaf node organization of a mechanism tree needs to be set with an administrative office document role, and at this time, a manual construction method is used, and the users need to be repeatedly selected to perform role authorization of the administrative office system, which consumes manpower and time.
The second disadvantage is that the created user test data information is easy to have errors and is not easy to maintain and transmit. For example, when a user account is manually constructed, the user login name is agreed to be the pinyin spelling of the user's surname and the first letter of the first name, for example, the login name of wang xiao jian is: wangxg, the login name of the user king young steel is written as follows, the possibility of hand mistake is caused when the account is manually constructed: wangxf. When the test of the administrative office system needs to be carried out by using the account number of the user king young, the situation that the user can not log in occurs.
It should be noted that the automatic generation method, device, equipment and medium for testing user data disclosed by the present disclosure relate to the technical field of software testing, and also relate to the technical fields of artificial intelligence, big data and internet of things.
It should be noted that, in the technical solution of the present disclosure, the acquisition, storage, application, and the like of the personal information of the related user all conform to the regulations of the related laws and regulations, and necessary security measures are taken without violating the good customs of the public order.
The embodiment of the disclosure provides an automatic generation method of test user data, which includes: acquiring a mechanism tree and a universal role of the administrative office system, wherein the universal role can be combined with the structure of the mechanism tree to obtain an expression rule; and creating a plurality of test user accounts of the universal roles according to a batch generation rule, wherein the batch generation rule represents the mapping relation between the positions of the universal roles in the mechanism tree and the names of the test user accounts.
The automatic generation method of the test user data of the embodiment of the disclosure can automatically create the test user accounts with a plurality of general roles, reduce the manpower consumption, avoid the data error generated when the test user accounts are created by manpower, and have higher efficiency of building the test user data.
FIG. 1 schematically illustrates an application scenario diagram for automatic generation of test user data according to an embodiment of the present disclosure.
As shown in fig. 1, the application scenario 100 according to this embodiment may include terminal devices 101, 102, 103, a network 104, and a server 105. The network 104 serves as a medium for providing communication links between the terminal devices 101, 102, 103 and the server 105. Network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, to name a few.
The user may use the terminal devices 101, 102, 103 to interact with the server 105 via the network 104 to receive or send messages or the like. The terminal devices 101, 102, 103 may have installed thereon various communication client applications, such as shopping-like applications, web browser applications, search-like applications, instant messaging tools, mailbox clients, social platform software, etc. (by way of example only).
The terminal devices 101, 102, 103 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop portable computers, desktop computers, and the like.
The server 105 may be a server providing various services, such as a background management server (for example only) providing support for websites browsed by users using the terminal devices 101, 102, 103. The background management server may analyze and perform other processing on the received data such as the user request, and feed back a processing result (e.g., a webpage, information, or data obtained or generated according to the user request) to the terminal device.
It should be noted that the automatic generation method of test user data provided by the embodiment of the present disclosure may be generally executed by the server 105. Accordingly, the automatic generation device of test user data provided by the embodiments of the present disclosure may be generally disposed in the server 105. The automatic generation method of test user data provided by the embodiments of the present disclosure may also be performed by a server or a server cluster that is different from the server 105 and is capable of communicating with the terminal devices 101, 102, 103 and/or the server 105. Accordingly, the automatic generation device for test user data provided by the embodiment of the present disclosure may also be disposed in a server or a server cluster different from the server 105 and capable of communicating with the terminal devices 101, 102, 103 and/or the server 105.
It should be understood that the number of terminal devices, networks, and servers in fig. 1 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
The method for automatically generating test user data according to the disclosed embodiment will be described in detail below with reference to fig. 2 to 6 based on the scenario described in fig. 1.
FIG. 2 schematically shows a flow diagram of a method 200 of automatic generation of test user data according to an embodiment of the present disclosure.
As shown in fig. 2, the automatic generation method 200 of test user data of this embodiment includes operations S201 to S202:
in operation S201, a mechanism tree and a general role of the administrative office system are acquired;
in operation S202, test user accounts of a plurality of generic roles are created according to a batch generation rule.
It should be noted that the "administrative office system" mentioned in operation S201 refers to a government administration system, an important office platform for data flow approval and permission allocation, and a single sign-on design is adopted, so that a user can conveniently implement roaming among multiple systems by only one set of user account and password, and a visual workflow designer is provided, so that the user can conveniently design and modify a workflow. The workflow management adopts a multi-form mechanism, the contents of the circulation forms seen by the users in each link of the process correspond to the actual working condition of the users, the process management provides a binding data model and a workflow function, and the process attributes can be refined and set according to the actual working condition, so that the administrative office system realizes the electronization of the processing of the receiving and sending documents and improves the efficiency of document processing; the 'mechanism tree' refers to the whole framework of the staff in the application scene of the office; the "common role" is a role that can obtain an expression rule in association with the structure of a mechanism tree, and for example, for a certain mechanism tree, if the role of a certain user can be determined from the node position of the user in the mechanism tree, the role of the user is a common role.
The "batch generation rule" mentioned in operation S202 is defined by the tester, and is used to represent the mapping relationship between the location of each generic role in the fabric tree and the name of the test user account; after the "test user account" is created, the "test user account" is the generated test user data.
According to the technical scheme of the embodiment of the disclosure, the mechanism tree and the universal role for the administrative office system are obtained through operation S201, the reference information for constructing the test user data is obtained, and then a plurality of test user accounts (namely, the test user data) meeting the batch generation rule and having the universal role can be directly created through operation S202.
The automatic generation method of the test user data of the embodiment of the disclosure can automatically create the test user accounts with a plurality of universal roles, reduce the manpower consumption, avoid the data error generated when the test user accounts are created by manpower, transmit and use the accurate test user data among a plurality of systems, and have higher efficiency of constructing the test user data.
It should be noted that, in the automatic generation method of test user data according to the embodiment of the present disclosure, the above-mentioned operations S201 to S202 are automatically completed by a developed system, so as to automatically generate the test user data for testing the administrative office system.
As shown in fig. 3, the method 300 for automatically generating test user data according to another embodiment of the present disclosure further includes operation S303:
in operation S303, a test user account of the generic role is authorized according to the generic role authorization rule.
The "universal role authorization rule" is defined by the tester and is used to indicate the mapping relationship between the position of each universal role in the mechanism tree and the job name. For example, for a user at a certain node in the mechanism tree, it is determined that the job name corresponding to the user is supervisor/document/manager, etc.
In the technical scheme of the embodiment of the disclosure, automatic authorization of the universal role can be completed according to the universal role authorization rule defined by the tester through operation S303, so as to meet the test data requirement for testing the administrative office system, and in combination with operation S301 and operation S302, the technical scheme of the disclosure can automatically create test user data meeting the requirement, thereby saving a large amount of test resources and time cost, and the test user data is easy to maintain and transfer.
With reference to fig. 2 and 4, according to an embodiment of the present disclosure, the obtaining of the structural tree and the general role of the administrative office system in operation S201 may include operations S11 to S13:
acquiring an organization tree of the administrative office system from the unified certification system through the first interface in operation S11;
acquiring roles of the administrative office system from the unified authentication system through the second interface, the roles including a general role and a special role in operation S12;
in operation S13, a generic role is identified through a third interface.
It should be noted that, the administrative office system is used in conjunction with the unified authentication system, and the identity authentication and the authorization control are related to each other, that is, once the identity of the user is authenticated, it is possible to determine which resources the user can access and in what manner to perform the access operation.
The mechanism tree and the universal role of the administrative office system need to be acquired through the unified authentication system, and specifically, the mechanism tree of the administrative office system is acquired from the unified authentication system through the first interface, "through the first interface" means that a tester calls the first interface, the first interface allows the acquisition of the mechanism tree of the unified authentication system, and the mechanism tree of the administrative office system can be acquired because the unified authentication system is synchronous with the administrative office system, and the principle of the acquisition of the "role" is the same as that of the acquisition of the "mechanism tree," and is not described herein again. The "marking general role" is marked by a tester, a third interface is defined in a developed system for realizing the automatic generation method of the test user data of the embodiment of the disclosure, and the tester can mark by calling the third interface.
It should be noted that the characters in the administrative office system include the above-mentioned general characters and special characters, and the "special characters" refer to characters added according to the application scenario of the specific administrative office system, for example, in the administrative office system a, besides the general characters, there are some characters a1, a 2; in the administrative office system B, besides the common roles, there are some roles B1 and B2, where a1 and a2 are different from B1 and B2, and the representation rule cannot be obtained according to the structure of the mechanism tree. For such special roles, the number of the special roles is generally small, and the special roles can be changed according to application scenarios of different administrative office systems, so that the test user data can be generated in a manual construction mode.
In the technical solution of the embodiment of the present disclosure, since the unified authentication system is synchronized with the structure tree and role information of the administrative office system, the structure tree and the general role of the administrative office system may be obtained through the unified authentication system in operations S11 to S13.
With reference to fig. 2 and 5, according to an embodiment of the present disclosure, the creating of the test user accounts of the plurality of common roles according to the batch generation rule of operation S202 may include operations S21 to S22:
receiving an input batch generation rule through a fourth interface in operation S21;
in operation S22, a test user account of the general role is created into the unified authentication system through the fifth interface.
It should be noted that, in operation S22, each test user account satisfies the batch generation rule. The batch generation rule is input by a tester, a fourth interface is defined in a developed system for realizing the automatic generation method of the test user data in the embodiment of the disclosure, and the tester can input the batch generation rule by calling the fourth interface.
In the technical solution of the embodiment of the present disclosure, since the unified authentication system is synchronized with the structure tree and role information of the administrative office system, the operations S21 to S22 may create a test user account of the universal role through the unified authentication system, and update the test user account to the administrative office system synchronously.
With reference to fig. 3 and 6, authorizing the test user account of the generic role according to the generic role authorization rule in operation S303 according to the embodiment of the present disclosure may include operations S31 to S32:
receiving, through the sixth interface, the input general role authorization rule in operation S31;
in operation S32, the test user accounts of the universal roles in the unified certification system are authorized through the seventh interface so that each test user account of the universal role has a job title corresponding thereto.
It should be noted that, in operation S31, the "universal role authorization rule" is input by the tester, and a sixth interface is defined in the system developed to implement the method for automatically generating test user data according to the embodiment of the present disclosure, and the tester can input the universal role authorization rule by calling the sixth interface.
In the technical solution of the embodiment of the present disclosure, since the unified authentication system is synchronized with the authorization information of the administrative office system, the operations S211 to S22 may authorize the created test user account with the universal role through the unified authentication system, and update the test user account with the administrative office system synchronously.
As shown in fig. 3, the method 300 of automatically generating test user data according to an embodiment of the present disclosure may further include operation S304:
in operation S304, a mapping relationship between the job name of the test user account and the processing authority is determined.
The term "authorization" as used herein refers to associating a test user account with a job name for each general role, and is different from the mapping relationship between the job name and the processing authority for determining the test user account. For example, when a test user account C of a generic role is constructed, it is essential for the "authorization" to determine the corresponding job name, such as a document; in operation S304, the document and the corresponding processing authority are determined, and the document can access the application D and the application E in the manner M, for example.
In the technical solution of the embodiment of the present disclosure, through operation S304, the constructed test user accounts correspond to the processing permissions according to the job names thereof, and the corresponding processing permissions can be given to each test user account, so that the administrative office system can be tested closer to the real situation.
As shown in fig. 3, the method 300 of automatically generating test user data according to an embodiment of the present disclosure may further include operation S305:
in operation S305, the input batch generation rule and the general role authorization rule are received through the interactive page.
In the technical solution of the implementation of the present disclosure, data interaction may be performed with a tester in a visual manner through operation S305, and specifically, the tester may input a corresponding rule through an interaction page.
Illustratively, the constructed test user account may also be displayed via an interactive page.
It should be noted that the automatic generation method of test user data according to the embodiment of the present disclosure is implemented by a developed system, for example, a system developed by using python or java, and specifically, the interaction page may be displayed by an operating platform of python or java and perform the above interaction. Of course, the tester can directly input the batch generation rule and the universal role authorization rule at the operating platform of the python or java without using an interactive page.
An example of test user data constructed by the automatic generation method of test user data according to the embodiment of the present disclosure will be exemplarily illustrated below:
for example, the automatic generation method of test user data according to the embodiment of the present disclosure is applied to some organ units, and the organizational tree includes three levels, where the first level is a root node F, the second level is two parent nodes G1 and G2, and the third level is six leaf nodes H1, H2, H3, H4, H5, and H6, where child nodes of the parent node G1 are H1, H2, and H3, and child nodes of the parent node G2 are H4, H5, and H6. Each node needs to construct corresponding test user data, taking the role of constructing corresponding nodes as a general role as an example, the batch generation rule can be set as "mechanism tree two-level starts to take name accumulation + serial number of each level" and "how many users are generated in batch for each level", for example, 5 users are generated at the 3 rd level, and then one of the test user accounts can be: office 001; the general role authorization rule can also be set as that 'the master leader general role is authorized to the first user in the organization name at the end of the leader, the branch leader general role is authorized to the second user in the organization name at the end of the leader, the document general role is authorized to the third user in each leaf node of the organization tree', and the like; and processing authorities of a master leader general role, a branch leader general role and a document general role can be set respectively. The corresponding specific method is implemented by the corresponding interface, which has been described in detail above and is not described herein again.
Based on the automatic generation method of the test user data, the disclosure also provides an automatic generation method and device of the test user data. The apparatus will be described in detail below with reference to fig. 7.
Fig. 7 schematically shows a block diagram of a device according to an embodiment of the present disclosure.
As shown in fig. 7, the apparatus 400 of the method for automatically generating test user data of this embodiment includes a mechanism tree and universal role acquisition module 410 and a test user account creation module 420 of a universal role.
The mechanism tree and general role obtaining module 410 is configured to obtain a mechanism tree and a general role of the administrative office system, and the general role can obtain a representation rule according to a structure of the mechanism tree. In an embodiment, the mechanism tree and general role obtaining module 410 may be configured to perform the operation S201 described above, which is not described herein again.
The test user account creation module 420 of the universal role is configured to create a plurality of test user accounts of the universal role according to a batch generation rule, where the batch generation rule indicates a mapping relationship between a position of each universal role in the fabric tree and a name of the test user account. In an embodiment, the test user account creation module 420 with a general role may be configured to perform the operation S202 described above, which is not described herein again.
According to an embodiment of the present disclosure, any plurality of modules in the mechanism tree and general role acquisition module 410 and the test user account creation module 420 of the general role may be combined and implemented in one module, or any one of the modules may be split into a plurality of modules. Alternatively, at least part of the functionality of one or more of these modules may be combined with at least part of the functionality of the other modules and implemented in one module. According to an embodiment of the present disclosure, at least one of the mechanism tree and general role acquisition module 410 and the test user account creation module for general role 420 may be implemented at least partially as a hardware circuit, such as a Field Programmable Gate Array (FPGA), a Programmable Logic Array (PLA), a system on a chip, a system on a substrate, a system on a package, an Application Specific Integrated Circuit (ASIC), or may be implemented in hardware or firmware in any other reasonable manner of integrating or packaging a circuit, or in any one of three implementations of software, hardware, and firmware, or in any suitable combination of any of them. Alternatively, at least one of the spanning tree and universal role acquisition module 410 and the universal role test user account creation module 420 may be implemented at least in part as a computer program module that, when executed, may perform corresponding functions.
FIG. 8 schematically illustrates a block diagram of an electronic device suitable for implementing a method of automatic generation of test user data according to an embodiment of the disclosure.
As shown in fig. 8, an electronic device 500 according to an embodiment of the present disclosure includes a processor 501 that can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM)502 or a program loaded from a storage section 504 into a Random Access Memory (RAM) 503. The processor 501 may comprise, for example, a general purpose microprocessor (e.g., a CPU), an instruction set processor and/or associated chipset, and/or a special purpose microprocessor (e.g., an Application Specific Integrated Circuit (ASIC)), among others. The processor 501 may also include onboard memory for caching purposes. Processor 501 may include a single processing unit or multiple processing units for performing different actions of a method flow according to embodiments of the disclosure.
In the RAM 503, various programs and data necessary for the operation of the electronic apparatus 500 are stored. The processor 501, the ROM 502, and the RAM 503 are connected to each other by a bus 504. The processor 501 performs various operations of the method flows according to the embodiments of the present disclosure by executing programs in the ROM 502 and/or the RAM 503. Note that the programs may also be stored in one or more memories other than the ROM 502 and the RAM 503. The processor 501 may also perform various operations of method flows according to embodiments of the present disclosure by executing programs stored in the one or more memories.
According to an embodiment of the present disclosure, electronic device 500 may also include an input/output (I/O) interface 505, input/output (I/O) interface 505 also being connected to bus 504. The electronic device 500 may also include one or more of the following components connected to the I/O interface 505: an input portion 506 including a keyboard, a mouse, and the like; an output portion 507 including a display such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage portion 504 including a hard disk and the like; and a communication section 509 including a network interface card such as a LAN card, a modem, or the like. The communication section 509 performs communication processing via a network such as the internet. The driver 510 is also connected to the I/O interface 505 as necessary. A removable medium 511 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 510 as necessary, so that a computer program read out therefrom is mounted into the storage section 504 as necessary.
The present disclosure also provides a computer-readable storage medium, which may be contained in the apparatus/device/system described in the above embodiments; or may exist separately and not be assembled into the device/apparatus/system. The computer-readable storage medium carries one or more programs which, when executed, implement the method according to an embodiment of the disclosure.
According to embodiments of the present disclosure, the computer-readable storage medium may be a non-volatile computer-readable storage medium, which may include, for example but is not limited to: a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. For example, according to embodiments of the present disclosure, a computer-readable storage medium may include ROM 502 and/or RAM 503 and/or one or more memories other than ROM 502 and RAM 503 described above.
Embodiments of the present disclosure also include a computer program product comprising a computer program containing program code for performing the method illustrated in the flow chart. When the computer program product is run in a computer system, the program code is used for causing the computer system to implement the automatic generation method of test user data provided by the embodiments of the present disclosure.
The computer program performs the above-described functions defined in the system/apparatus of the embodiments of the present disclosure when executed by the processor 501. The systems, apparatuses, modules, units, etc. described above may be implemented by computer program modules according to embodiments of the present disclosure.
In one embodiment, the computer program may be hosted on a tangible storage medium such as an optical storage device, a magnetic storage device, or the like. In another embodiment, the computer program may also be transmitted, distributed in the form of a signal on a network medium, downloaded and installed through the communication section 509, and/or installed from the removable medium 511. The computer program containing program code may be transmitted using any suitable network medium, including but not limited to: wireless, wired, etc., or any suitable combination of the foregoing.
In such an embodiment, the computer program may be downloaded and installed from a network through the communication section 509, and/or installed from the removable medium 511. The computer program, when executed by the processor 501, performs the above-described functions defined in the system of the embodiments of the present disclosure. The systems, devices, apparatuses, modules, units, etc. described above may be implemented by computer program modules according to embodiments of the present disclosure.
In accordance with embodiments of the present disclosure, program code for executing computer programs provided by embodiments of the present disclosure may be written in any combination of one or more programming languages, and in particular, these computer programs may be implemented using high level procedural and/or object oriented programming languages, and/or assembly/machine languages. The programming language includes, but is not limited to, programming languages such as Java, C + +, python, the "C" language, or the like. The program code may execute entirely on the user computing device, partly on the user device, partly on a remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., through the internet using an internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
Those skilled in the art will appreciate that various combinations and/or combinations of features recited in the various embodiments and/or claims of the present disclosure can be made, even if such combinations or combinations are not expressly recited in the present disclosure. In particular, various combinations and/or combinations of the features recited in the various embodiments and/or claims of the present disclosure may be made without departing from the spirit or teaching of the present disclosure. All such combinations and/or associations are within the scope of the present disclosure.
The embodiments of the present disclosure have been described above. However, these examples are for illustrative purposes only and are not intended to limit the scope of the present disclosure. Although the embodiments are described separately above, this does not mean that the measures in the embodiments cannot be used in advantageous combination. The scope of the disclosure is defined by the appended claims and equivalents thereof. Various alternatives and modifications can be devised by those skilled in the art without departing from the scope of the present disclosure, and such alternatives and modifications are intended to be within the scope of the present disclosure.

Claims (10)

1. An automatic generation method of test user data, comprising:
acquiring a mechanism tree and a universal role of an administrative office system, wherein the universal role can be combined with the structure of the mechanism tree to obtain an expression rule;
and creating a plurality of test user accounts of the universal roles according to a batch generation rule, wherein the batch generation rule represents the mapping relation between the position of each universal role in the mechanism tree and the name of each test user account.
2. The method of automatic generation of test user data according to claim 1, further comprising:
and authorizing the test user account of the universal role according to a universal role authorization rule, wherein the universal role authorization rule represents the mapping relation between the position and the role name of each universal role in the mechanism tree.
3. The method of claim 2, wherein the obtaining of the organization tree and the generic roles of the administrative office system comprises:
acquiring a mechanism tree of the administrative office system from a unified authentication system through a first interface;
acquiring roles of an administrative office system from a unified authentication system through a second interface, wherein the roles comprise the general roles and special roles, the special roles are added according to the application scene of the specific administrative office system, and the unified authentication system is synchronous with the organization tree and role information of the administrative office system;
identifying the generic role through a third interface.
4. The method of claim 1, wherein creating test user accounts for a plurality of generic roles according to batch generation rules comprises:
receiving an input batch generation rule through a fourth interface;
and creating test user accounts with universal roles in a unified authentication system through a fifth interface, wherein each test user account meets the batch generation rule.
5. The method of claim 2, wherein the authorizing the test user account of the generic role according to the generic role authorization rule comprises:
receiving an input universal role authorization rule through a sixth interface;
and authorizing the test user accounts of the universal roles in the unified authentication system through a seventh interface so that the test user accounts of the universal roles have the corresponding job names, and synchronizing the unified authentication system with the authorization information of the administrative office system.
6. The method for automatic generation of test user data according to any of claims 1-5, further comprising:
and determining the mapping relation between the job name of the test user account and the processing authority.
7. The method for automatic generation of test user data according to any of claims 1-5, further comprising:
and receiving the input batch generation rule and the universal role authorization rule through the interactive page.
8. An apparatus for automatic generation of test user data, comprising:
the system comprises a mechanism tree and general role acquisition module, a mechanism tree and general role acquisition module and a role selection module, wherein the mechanism tree and general role acquisition module is used for acquiring a mechanism tree and a general role of an administrative office system, and the general role can be combined with the structure of the mechanism tree to obtain an expression rule;
the system comprises a testing user account creating module of the universal role, and a mapping relation between the position of each universal role in the mechanism tree and the name of the testing user account is represented by the batch generation rule.
9. An electronic device, comprising:
one or more processors;
a storage device for storing one or more programs,
wherein the one or more programs, when executed by the one or more processors, cause the one or more processors to perform the method of any of claims 1-7.
10. A computer readable storage medium having stored thereon executable instructions which, when executed by a processor, cause the processor to perform the method of any one of claims 1 to 7.
CN202110843238.0A 2021-07-26 2021-07-26 Automatic generation method, device, equipment and medium for test user data Active CN113535574B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110843238.0A CN113535574B (en) 2021-07-26 2021-07-26 Automatic generation method, device, equipment and medium for test user data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110843238.0A CN113535574B (en) 2021-07-26 2021-07-26 Automatic generation method, device, equipment and medium for test user data

Publications (2)

Publication Number Publication Date
CN113535574A true CN113535574A (en) 2021-10-22
CN113535574B CN113535574B (en) 2022-07-19

Family

ID=78088964

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110843238.0A Active CN113535574B (en) 2021-07-26 2021-07-26 Automatic generation method, device, equipment and medium for test user data

Country Status (1)

Country Link
CN (1) CN113535574B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117194277A (en) * 2023-11-08 2023-12-08 北京轻松怡康信息技术有限公司 Insurance product test data generation method, apparatus, equipment and storage medium

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120259576A1 (en) * 2011-04-07 2012-10-11 Infosys Technologies, Ltd. System and method for efficient test case generation using input dependency information
US20150074014A1 (en) * 2013-09-12 2015-03-12 Sap Ag System and method for automated role re-factoring
CN107341109A (en) * 2017-07-07 2017-11-10 中国银行股份有限公司 The generation method and system of a kind of test data
CN108255707A (en) * 2017-11-30 2018-07-06 平安科技(深圳)有限公司 Development roles creation method, device, equipment and the storage medium of test case
CN110442524A (en) * 2019-08-09 2019-11-12 中国建设银行股份有限公司 It is a kind of for have Certificate Authority web service interface test method and device
CN110908891A (en) * 2019-09-18 2020-03-24 泰康保险集团股份有限公司 Test data generation method and device, electronic equipment and storage medium
CN111324539A (en) * 2020-02-28 2020-06-23 深圳壹账通智能科技有限公司 Account switching test method and system
CN111400170A (en) * 2020-02-29 2020-07-10 中国平安人寿保险股份有限公司 Data permission testing method and device
CN111881057A (en) * 2020-08-06 2020-11-03 中国工商银行股份有限公司 Test method, test device, test system, and medium
WO2020233330A1 (en) * 2019-05-20 2020-11-26 深圳壹账通智能科技有限公司 Batch testing method, apparatus, and computer-readable storage medium
US20210034508A1 (en) * 2018-11-19 2021-02-04 Paypal, Inc. Systems and methods for testing online use-case scenarios in a staging environment

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120259576A1 (en) * 2011-04-07 2012-10-11 Infosys Technologies, Ltd. System and method for efficient test case generation using input dependency information
US20150074014A1 (en) * 2013-09-12 2015-03-12 Sap Ag System and method for automated role re-factoring
CN107341109A (en) * 2017-07-07 2017-11-10 中国银行股份有限公司 The generation method and system of a kind of test data
CN108255707A (en) * 2017-11-30 2018-07-06 平安科技(深圳)有限公司 Development roles creation method, device, equipment and the storage medium of test case
US20210034508A1 (en) * 2018-11-19 2021-02-04 Paypal, Inc. Systems and methods for testing online use-case scenarios in a staging environment
WO2020233330A1 (en) * 2019-05-20 2020-11-26 深圳壹账通智能科技有限公司 Batch testing method, apparatus, and computer-readable storage medium
CN110442524A (en) * 2019-08-09 2019-11-12 中国建设银行股份有限公司 It is a kind of for have Certificate Authority web service interface test method and device
CN110908891A (en) * 2019-09-18 2020-03-24 泰康保险集团股份有限公司 Test data generation method and device, electronic equipment and storage medium
CN111324539A (en) * 2020-02-28 2020-06-23 深圳壹账通智能科技有限公司 Account switching test method and system
CN111400170A (en) * 2020-02-29 2020-07-10 中国平安人寿保险股份有限公司 Data permission testing method and device
CN111881057A (en) * 2020-08-06 2020-11-03 中国工商银行股份有限公司 Test method, test device, test system, and medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117194277A (en) * 2023-11-08 2023-12-08 北京轻松怡康信息技术有限公司 Insurance product test data generation method, apparatus, equipment and storage medium

Also Published As

Publication number Publication date
CN113535574B (en) 2022-07-19

Similar Documents

Publication Publication Date Title
US20240012641A1 (en) Model construction method and apparatus, and medium and electronic device
US20210328952A1 (en) Context Driven Dynamic Actions Embedded in Messages
CN113535574B (en) Automatic generation method, device, equipment and medium for test user data
US20130311221A1 (en) Evaluating deployment readiness in delivery centers through collaborative requirements gathering
CN111930629A (en) Page testing method and device, electronic equipment and storage medium
CN117170784A (en) Menu and page rendering method and device thereof and electronic equipment
CN113495498B (en) Simulation method, simulator, device and medium for hardware device
CN115514632A (en) Resource template arranging method, device and equipment for cloud service and storage medium
CN115130012A (en) Method and device for joining group, electronic equipment and storage medium
CN115904527A (en) Data processing method, device, equipment and medium
CN114037523A (en) Letter service test method, device, equipment, medium and program product
CN113093965A (en) Account registration method, device, computer system and storage medium
US20200235927A1 (en) Distributed Anonymous Scoring Technique
CN113253991A (en) Task visualization processing method and device, electronic equipment and storage medium
Tankariya et al. AWS Certified Developer-Associate Guide: Your one-stop solution to pass the AWS developer's certification
CN113947385A (en) Authority auditing method, device, equipment and storage medium
Wang et al. A software quality framework for mobile application testing
CN113568838A (en) Test data generation method, device, equipment, storage medium and program product
US20220398327A1 (en) Applying noise to formats with masking restrictions
US20230283532A1 (en) Personalized service-level agreements for an electronic request management system
CN116910406A (en) Deployment method and device of browser configuration policy, electronic equipment and storage medium
CN115659388A (en) Information logout method, device, equipment and storage medium based on RPA robot
CN117176576A (en) Network resource changing method, device, equipment and storage medium
Joseph et al. Oracle Cloud Infrastructure-A Guide to Building Cloud Native Applications
CN115358602A (en) Method, device, equipment and medium for generating business process

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
GR01 Patent grant
GR01 Patent grant