User permission sharing method and system for test software

By predefining user levels and registry paths in the dynamic link library, permission sharing between multiple test software is achieved, which solves the cumbersome operation problems caused by independent user logins and simplifies the software operation process.

CN118821101APending Publication Date: 2024-10-22TRULY OPTO ELECTRONICS
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411015063.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-26
Publication Date
2024-10-22

AI Technical Summary

Technical Problem

Multiple test software users in current industrial control software are independent of each other and need to log in separately, making the software operation cumbersome.

Method used

By predefining multiple user levels in the dynamic link library and setting the user level and corresponding login password in the same registry path, users update the user level in the registry when logging in to the test software, and other shared users access regularly to update themselves user level to achieve permission sharing.

Benefits of technology

It solves the cumbersome problem of users needing to log in separately, simplifies the software operation process, and realizes permission sharing between multiple test software.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118821101A_ABST
    Figure CN118821101A_ABST
Patent Text Reader

Abstract

The invention discloses a user permission sharing method and system for test software. The method comprises the following steps: pre-defining a plurality of user levels by utilizing a dynamic link library, and adding the user levels and corresponding login passwords in the same registry path; the user logs in the test software, the user level of the shared user is obtained, the user level in the registry is updated by using the user level, and a first user level is obtained; and the shared user regularly accesses the first user level in the registry and updates the user level of the shared user according to the first user level. By implementing the method and the device, when the user logs in the test software, the user level is updated in the registry, and other shared users access the test software regularly, so that the user level of the user can be updated, the purpose of permission sharing is achieved, and the problems that the users of the test software are mutually independent and need to log in respectively, and the software operation is very tedious are solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of software testing, and in particular to a method and system for sharing user rights of testing software. Background Art

[0002] Software testing is a process of evaluating software quality, which aims to detect whether the software meets its expected functional, performance, reliability and other requirements. Software testing plays a vital role in different stages of the software development life cycle. It can help developers and quality assurance teams find software defects and fix them in time, thereby improving software quality and user experience.

[0003] As software scale and complexity continue to increase, testing work has become more and more complicated and cumbersome, and various testing methods and technologies are needed to ensure the quality of the software. The current machine industrial control software consists of equipment control software and various test software control software. The users of each test software are independent of each other and need to log in separately, which increases the cumbersomeness of software operation. Summary of the invention

[0004] Current industrial control software includes multiple test software. Users of each test software are independent of each other and need to log in separately, making the software operation very cumbersome.

[0005] In response to the above problems, a method and system for sharing user permissions of test software is proposed. By predefining multiple user levels in a dynamic link library, users of multiple test software share the dynamic link library and set user levels and corresponding login passwords in the same registry path. When a user logs into the test software, the user level is updated in the registry, and other shared users can access it at a regular interval so that they can update their own user level, thereby achieving the purpose of permission sharing. This solves the problem that users of each test software are independent of each other and need to log in separately, making the software operation very cumbersome.

[0006] In a first aspect, a method for sharing user rights of a testing software comprises: Step 100, predefine multiple user levels using a dynamic link library and add user levels and corresponding login passwords in the same registry path; Step 200: The user logs in to the test software, obtains the user level of the shared user and uses the user level to update the user level in the registration table to obtain the first user level; Step 300: The shared user periodically accesses the first user level in the registration table and updates its own user level according to the first user level.

[0007] In conjunction with the user authority sharing method for testing software described in the first aspect of the present invention, in a first possible implementation, step 100 includes: Step 110, pre-define multiple user levels in the dynamic link library; Step 120: Users of the plurality of test software share the dynamic link library.

[0008] In combination with the first possible implementation of the first aspect of the present invention, in a second possible implementation, step 100 further includes: Step 130: the users of the plurality of test software select the same registration table; Step 140, adding the plurality of user levels in the registration table and setting login passwords for applying the user levels; Step 150: Add the access rights of each shared user in the registry.

[0009] In combination with the second possible implementation manner of the first aspect of the present invention, in a third possible implementation manner, step 200 includes: Step 210: The sharing user selects a corresponding user level to log in; Step 220: Update the user level in the registration table.

[0010] In combination with the third possible implementation manner of the first aspect of the present invention, in a fourth possible implementation manner, step 300 includes: Step 310: The shared user uses a timer to access the registry at regular intervals; Step 320: If the first user level in the registration table is higher than the user level of the user, update the user level of the user.

[0011] In combination with the fourth possible implementation manner of the first aspect of the present invention, in a fifth possible implementation manner, step 310 includes: Step 311, obtaining a shared user's access request to the user level data of the current registry; Step 312: judging whether the access request has access rights to the user level data according to the set access rights; Step 313: If the shared user has access rights, the shared user is allowed to access the user level data.

[0012] In a second aspect, a user rights sharing system for testing software adopts the sharing method described in the first aspect, comprising: Set up the module; A first update module; The second update module; The setting module is used to predefine multiple user levels using a dynamic link library and add user levels and corresponding login passwords in the same registry path; The first updating module is used to obtain the user level of the shared user after the user logs in to the test software and use the user level to update the user level in the registration table to obtain the first user level; The second updating module is used for sharing the first user level in the user timed access registration table and updating its own user level according to the first user level.

[0013] In conjunction with the user authority sharing system for testing software described in the second aspect of the present invention, in a first possible implementation manner, the setting module is further used to: Predefine multiple user levels in the dynamic link library; The dynamic link library is shared by multiple users of the testing software.

[0014] In conjunction with the first possible implementation manner of the second aspect of the present invention, in a second possible implementation manner, the setting module is further used to: Adding the plurality of user levels in the registration table and setting login passwords for applying the user levels; Add the access permissions for each shared user in the registry.

[0015] In conjunction with the user authority sharing system for testing software described in the second aspect of the present invention, in a first possible implementation manner, the second update module is further used to: The registration table is accessed periodically, and if the first user level in the registration table is higher than the user level of the user, the user level of the user is updated.

[0016] A method and system for sharing user authority of a test software described in the present invention is implemented by predefining multiple user levels in a dynamic link library. Users of multiple test software share the dynamic link library and set user levels and corresponding login passwords in the same registry path. When a user logs into the test software, the user level is updated in the registry. Other shared users can access it at regular intervals so that they can update their own user level, thereby achieving the purpose of authority sharing. This solves the problem that users of each test software are independent of each other and need to log in separately, making the software operation very cumbersome. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0018] Figure 1 It is a schematic diagram of the first flow chart of the user authority sharing method of the test software in the present invention; Figure 2 A second flow chart of the method for sharing user rights of the test software in the present invention; Figure 3 A third flow chart of the method for sharing user rights of the test software in the present invention; Figure 4 A fourth flow chart of the method for sharing user rights of the test software in the present invention; Figure 5 A fifth flow chart of the method for sharing user rights of the testing software in the present invention; Figure 6 A sixth flow chart of the method for sharing user rights of the test software in the present invention; Figure 7 This is a schematic diagram of the connection of the user authority sharing system modules of the test software in the present invention. DETAILED DESCRIPTION

[0019] The following will be combined with the accompanying drawings in the invention to clearly and completely describe the technical solutions in the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments in the present invention, other embodiments obtained by ordinary technicians in this field without creative work are all within the scope of protection of the present invention.

[0020] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art of the present invention. The terms used herein in the specification of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention. The term "and / or" used herein includes any and all combinations of one or more related listed items.

[0021] It should be noted that when an element is referred to as being "fixed to" or "disposed on" another element, it can be directly on the other element or indirectly on the other element. When an element is referred to as being "connected to" another element, it can be directly connected to the other element or indirectly connected to the other element.

[0022] It should be understood that the orientation or position relationship indicated by terms such as "length", "width", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside" and "outside" are based on the orientation or position relationship shown in the drawings, and are only for the convenience of describing the present application and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be understood as a limitation on the present application.

[0023] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features. In the description of this application, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.

[0024] Current industrial control software includes multiple test software. Users of each test software are independent of each other and need to log in separately, making the software operation very cumbersome.

[0025] In response to the above problems, a method and system for sharing user rights of test software is provided.

[0026] A method for sharing user permissions of testing software, such as Figure 1 , Figure 1 The first flow chart of the user authority sharing method of the test software in the present invention includes: Step 100: Set user levels and corresponding login passwords for multiple test software in the same registry path.

[0027] Preferably, if Figure 2 , Figure 2 It is a second flow chart of the user authority sharing method of the test software in the present invention; step 100 includes: step 110, predefining multiple user levels in the dynamic link library; step 120, multiple test software users share the dynamic link library.

[0028] Preferably, if Figure 3 , Figure 3 The third flow chart of the user authority sharing method of the test software in the present invention; step 100 also includes: step 130, multiple test software users select the same registry; step 140, add multiple user levels in the registry and set the login password for the application user level; step 150, add the access rights of each shared user in the registry.

[0029] The principle of sharing multiple test software: Take dual applications as an example. Several user levels are predefined in a dynamic link library (Dll). The Dll file is shared by two applications. The two parties negotiate a registry path, add a user level and login passwords for each level (shared login password) under the path, and each party maintains its own user level. When one party logs in, it not only needs to update its own user level, but also needs to modify the user level in the registry. Each party sets a 1-second timer. The timer triggers and accesses the user level in the registry once. When it detects that the user level in the registry is higher than its own user level, it updates its own user level. In this way, the purpose of one party logging in and both parties updating permissions can be achieved, reducing the cumbersomeness of personnel operations. By predefining multiple user levels in the dynamic link library, users of multiple test software share the dynamic link library and set the user level and corresponding login password in the same registry path. When the user logs in to the test software, the user level is updated in the registry, and other shared users access it regularly, so that they can update their own user level to achieve the purpose of sharing permissions, solving the problem that the users of each test software are independent of each other and need to log in separately, which makes the software operation very cumbersome.

[0030] Step 200: The user logs in to the test software, obtains the user level of the shared user and uses the user level to update the user level in the registration table to obtain the first user level; The first user level refers to the user level that has logged into the test software, which is updated in the registry to facilitate access and updates by other users.

[0031] Preferably, if Figure 4 , Figure 4 This is a fourth flow chart of the user authority sharing method for the test software in the present invention; step 200 includes: step 210, the sharing user selects the corresponding user level to log in; step 220, the user level is updated in the registration table.

[0032] Step 300: The shared user periodically accesses the first user level in the registration table and updates its own user level according to the first user level.

[0033] Preferably, if Figure 5 , Figure 5 This is a fifth flow chart of the user authority sharing method for the test software in the present invention; step 300 includes: step 310, the shared user uses a timer to regularly access the registry; step 320, if the first user level in the registry is higher than the user level of the user, update the user level of the user.

[0034] After your own user level is updated, it reaches the same level as the first user level, so you don't have to log in separately, avoiding cumbersome operations.

[0035] Preferably, if Figure 6 , Figure 6 It is a sixth flow chart of the user authority sharing method of the test software in the present invention; step 310 includes: step 311, obtaining the shared user's access request to the user level data of the current registry; step 312, judging whether the access request has the access right to the user level data according to the set access right; step 313, if the shared user has the access right, allowing the shared user to access the user level data.

[0036] When accessing the registry level, each user is required to confirm their shared identity first. This is not a login, but an automatic verification as long as the shared user has been assigned access rights. After the verification is completed, the user level data can be accessed.

[0037] Second, as Figure 7 , Figure 7 The user rights sharing system module connection diagram of the test software in the present invention. A user rights sharing system for test software adopts the sharing method of the first aspect, including: a setting module 10, a first update module 20, and a second update module 30; the setting module 10 is used to predefine multiple user levels using a dynamic link library and add user levels and corresponding login passwords in the same registry path; the first update module 20 is used to obtain the user level of the shared user after the user logs in to the test software and use the user level to update the user level in the registry to obtain the first user level; the second update module 30 is used for the shared user to periodically access the first user level in the registry and update its own user level according to the first user level.

[0038] Furthermore, the setting module 10 is also used to predefine multiple user levels in the dynamic link library, so that multiple test software users can share the dynamic link library.

[0039] Furthermore, the setting module 10 is also used to add multiple user levels in the registration table and set login passwords for the application user levels, and add access rights of each shared user in the registration table.

[0040] Furthermore, the second updating module 30 is further used to: regularly access the registration table, and if the first user level in the registration table is higher than its own user level, update its own user level.

[0041] A method and system for sharing user authority of a test software implementing the present invention predefines multiple user levels in a dynamic link library, and users of multiple test software share the dynamic link library and set user levels and corresponding login passwords in the same registry path. When a user logs into the test software, the user level is updated in the registry, and other shared users access it at regular intervals, so that they can update their own user level, thereby achieving the purpose of authority sharing, and solving the problem that users of each test software are independent of each other and need to log in separately, making the software operation very cumbersome.

[0042] The above are only preferred embodiments of the present invention and are not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the protection scope of the present invention.

Claims

1. A method for sharing user rights of testing software, characterized in that it includes: Step 100, predefine multiple user levels using a dynamic link library and add user levels and corresponding login passwords in the same registry path; Step 200: The user logs in to the test software, obtains the user level of the shared user and uses the user level to update the user level in the registration table to obtain the first user level; Step 300: The shared user periodically accesses the first user level in the registration table and updates its own user level according to the first user level.

2. The user authority sharing method of the test software according to claim 1, characterized in that: The step 100 comprises: Step 110, pre-define multiple user levels in the dynamic link library; Step 120: Multiple users of the testing software share the dynamic link library.

3. The user authority sharing method of the test software according to claim 2, characterized in that: The step 100 further includes: Step 130: the users of the plurality of test software select the same registration table; Step 140, adding the plurality of user levels in the registration table and setting a login password for the application user level; Step 150: Add the access rights of each shared user in the registry.

4. The user authority sharing method of the test software according to claim 3, characterized in that: The step 200 comprises: Step 210: The sharing user selects a corresponding user level to log in; Step 220: Update the user level in the registration table.

5. The user authority sharing method of the test software according to claim 4, characterized in that: The step 300 includes: Step 310: The shared user uses a timer to access the registry at regular intervals; Step 320: If the first user level in the registration table is higher than the user level of the user, update the user level of the user.

6. The user authority sharing method of the test software according to claim 5, characterized in that: The step 310 includes: Step 311, obtaining a shared user's access request to the user level data of the current registry; Step 312: judging whether the access request has access rights to the user level data according to the set access rights; Step 313: If the shared user has access rights, the shared user is allowed to access the user level data.

7. A user rights sharing system for testing software, using the user rights sharing method according to any one of claims 1 to 6, characterized in that: include: Set up the module; A first update module; The second update module; The setting module is used to predefine multiple user levels using a dynamic link library and add user levels and corresponding login passwords in the same registry path; The first updating module is used to obtain the user level of the shared user after the user logs in to the test software and use the user level to update the user level in the registration table to obtain the first user level; The second updating module is used for sharing the first user level in the user timed access registration table and updating its own user level according to the first user level.

8. The user authority sharing system for testing software according to claim 7, characterized in that: The setting module is also used for: Predefine multiple user levels in the dynamic link library; The dynamic link library is shared by multiple users of the testing software.

9. The user authority sharing system for testing software according to claim 8, characterized in that: The setting module is also used for: Adding the plurality of user levels in the registration table and setting login passwords for applying the user levels; Add the access permissions for each shared user in the registry.

10. The user authority sharing system for testing software according to claim 7, characterized in that: The second update module is also used for: The registration table is accessed periodically, and if the first user level in the registration table is higher than the user level of the user, the user level of the user is updated.