Configure and publish processing methods, devices, equipment and storage media
By orthogonalizing the constraints of historical and new configuration items, the problems of inaccurate and inefficient testing in existing technologies are solved, enabling efficient and targeted testing of the configuration release testing system.
Patent Information
- Application Number
- CN202210685736.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-16
- Publication Date
- 2026-11-10
- Estimated Expiration
- 2042-06-16
AI Technical Summary
Existing technologies cannot efficiently and specifically configure the constraints of test configuration items, leading to missed tests or inaccurate tests.
By orthogonalizing the constraints of historical and new configuration items and removing priority relationships, an orthogonal interval list is generated, which determines the range of interval value changes and configuration value change information, providing test content for the configuration release test system.
It enables efficient and targeted testing of the configuration release testing system, ensuring the accuracy and efficiency of the tests.
Smart Images

Figure CN117289983B_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of computer technology, and in particular to a configuration release processing method, apparatus, device, and storage medium. Background Technology
[0002] In recent years, due to the rapid development of internet businesses, the development and construction of many capabilities require controlling the target audience before gradually expanding the business. This serves two purposes: firstly, to test user acceptance of new products and capabilities; and secondly, to quickly control the impact and prevent serious problems when issues arise. Therefore, various configuration and deployment capability platforms have been built to handle the ever-increasing demand for configuration and deployment capabilities.
[0003] The main scenario for configuration deployment is distributing certain configurations (such as function switches, parameters required for certain functions, etc.) to a batch or all devices' applications (Apps), where they are processed by specified code logic. Because much of the logic needs to be deployed selectively, there are constraints to be configured for the configuration items, and then the configuration needs to be tested.
[0004] However, current testing of the constraint configuration of configuration items requires random testing of the constraint configuration of the configuration items or testing of all constraint configurations for certain constraints. This can lead to omissions in testing or testing of some configuration items that have not changed between old and new ones. Therefore, existing technologies cannot achieve efficient and targeted testing. Summary of the Invention
[0005] This disclosure provides a configuration release processing method, apparatus, device, and storage medium, which solves the problem that the prior art cannot achieve efficient and targeted testing.
[0006] In a first aspect, embodiments of this disclosure provide a configuration release processing method, the method comprising:
[0007] The system retrieves historical configuration items, configuration values corresponding to the historical configuration items, new configuration items, and configuration values corresponding to the new configuration items for the target product. Both the historical configuration items and the new configuration items are configuration items carrying constraints. The configuration values include the configuration values of the constraints. The historical configuration items are used to represent the historical function configurations corresponding to the target product, and the new configuration items are used to represent the new function configurations corresponding to the target product. The new configuration items are configuration items after the historical configuration items have been modified.
[0008] The constraints of the historical configuration items are orthogonalized to obtain a first orthogonal interval list, and the constraints of the new configuration items are orthogonalized to obtain a second orthogonal interval list; wherein, both the first orthogonal interval list and the second orthogonal interval list include configuration intervals and configuration values corresponding to the configuration intervals, and the configuration values corresponding to the configuration intervals are the configuration values of the constraints corresponding to the configuration intervals;
[0009] Based on the configuration intervals in the first orthogonal interval list and the configuration values corresponding to the configuration intervals, and the configuration intervals in the second orthogonal interval list and the configuration values corresponding to the configuration intervals, the range of interval value changes and the corresponding configuration value change information are determined. The range of interval value changes and the corresponding configuration value change information are used to provide test content for the configuration release test system.
[0010] Secondly, embodiments of this disclosure provide a configuration publishing processing apparatus, including:
[0011] The acquisition module is used to acquire historical configuration items, configuration values corresponding to the historical configuration items, new configuration items, and configuration values corresponding to the new configuration items for the target product. The historical configuration items and the new configuration items are both configuration items carrying constraints. The configuration values include the configuration values of the constraints. The historical configuration items are used to represent the historical function configurations corresponding to the target product. The new configuration items are used to represent the new function configurations corresponding to the target product. The new configuration items are configuration items after the historical configuration items have been modified.
[0012] The first processing module is used to orthogonalize each constraint of the historical configuration item to obtain a first orthogonal interval list;
[0013] The first processing module is further configured to orthogonalize each constraint of the new configuration item to obtain a second orthogonal interval list; wherein, both the first orthogonal interval list and the second orthogonal interval list include configuration intervals and configuration values corresponding to the configuration intervals, and the configuration values corresponding to the configuration intervals are the configuration values of the constraints corresponding to the configuration intervals;
[0014] The second processing module is used to determine the range of interval value changes and the corresponding configuration value change information based on the configuration intervals in the first orthogonal interval list and the configuration values corresponding to the configuration intervals, and the configuration intervals in the second orthogonal interval list and the configuration values corresponding to the configuration intervals. The range of interval value changes and the corresponding configuration value change information are used to provide test content for the configuration release test system.
[0015] Thirdly, embodiments of this disclosure provide an electronic device, including: at least one processor, a memory, and a communication interface;
[0016] The communication interface is used to communicate with network devices;
[0017] The memory stores computer-executed instructions;
[0018] The at least one processor executes computer execution instructions stored in the memory, causing the at least one processor to perform the configuration release processing method as described in the first aspect and various possible designs of the first aspect.
[0019] Fourthly, embodiments of this disclosure provide a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, implement the configuration release processing method described in the first aspect and various possible designs of the first aspect.
[0020] Fifthly, embodiments of this disclosure provide a computer program product, including a computer program that, when executed by a processor, implements the configuration release processing method described in the first aspect and various possible designs of the first aspect.
[0021] The configuration release processing method, apparatus, device, storage medium, and computer program product provided in this disclosure first obtain historical configuration items, configuration values corresponding to the historical configuration items, new configuration items, and configuration values corresponding to the new configuration items for a target product. Both the historical and new configuration items are configuration items carrying constraints. The configuration values include the configuration values of the constraints. The historical configuration items represent the historical functional configurations corresponding to the target product, and the new configuration items represent the new functional configurations corresponding to the target product. The new configuration items are configuration items modified from the historical configuration items. Then, the constraints of the historical configuration items are orthogonalized to obtain a first orthogonal interval list. The system orthogonals the constraints of the new configuration item to obtain a second orthogonal interval list. Both the first and second orthogonal interval lists include configuration intervals and their corresponding configuration values, where the configuration value is the configuration value of the constraint corresponding to the configuration interval. Based on the configuration intervals and their corresponding configuration values in the first and second orthogonal interval lists, the range of interval value changes and the corresponding configuration value change information are determined. This range of changes and the corresponding configuration value change information provide test content for the configuration release test system. By orthogonalizing the constraints to remove priority relationships, the orthogonalized condition sets are independent. Judging one condition set first will not affect the hit rate of other condition sets, ensuring the accuracy of subsequent judgments on interval values and configuration changes. This allows the configuration release test system to perform efficient and targeted testing. Attached Figure Description
[0022] To more clearly illustrate the technical solutions in the embodiments of this disclosure or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of this disclosure. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0023] Figure 1 A schematic diagram illustrating a scenario for the configuration release processing method provided in this embodiment of the disclosure;
[0024] Figure 2 A flowchart illustrating the configuration release processing method provided in this embodiment of the disclosure;
[0025] Figure 3 A schematic flowchart illustrating a configuration release processing method provided in yet another embodiment of this disclosure;
[0026] Figure 4 A structural block diagram of the configuration release processing apparatus provided in the embodiments of this disclosure;
[0027] Figure 5 This is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of this disclosure. Detailed Implementation
[0028] Embodiments of this disclosure will now be described in more detail with reference to the accompanying drawings. While some embodiments of this disclosure are shown in the drawings, it should be understood that this disclosure can be implemented in various forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided to provide a more thorough and complete understanding of this disclosure. It should be understood that the accompanying drawings and embodiments of this disclosure are for illustrative purposes only and are not intended to limit the scope of protection of this disclosure.
[0029] It should be understood that the steps described in the method embodiments of this disclosure may be performed in different orders and / or in parallel. Furthermore, the method embodiments may include additional steps and / or omit the steps shown. The scope of this disclosure is not limited in this respect.
[0030] The term "comprising" and its variations as used herein are open-ended inclusions, meaning "including but not limited to". The term "based on" means "at least partially based on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". Definitions of other terms will be given in the description below.
[0031] It should be noted that the concepts of "first" and "second" mentioned in this disclosure are used only to distinguish different devices, modules or units, and are not used to limit the order of functions performed by these devices, modules or units or their interdependencies.
[0032] It should be noted that the terms "a" and "a plurality of" used in this disclosure are illustrative rather than restrictive, and those skilled in the art should understand that, unless otherwise expressly indicated in the context, they should be understood as "one or more".
[0033] The names of messages or information exchanged between multiple devices or modules in the embodiments of this disclosure are for illustrative purposes only and are not intended to limit the scope of such messages or information.
[0034] In the prior art, testing the constraint configuration of configuration items requires random testing of the constraint configuration of the configuration items or testing all constraint configurations for certain constraints. This may result in missed tests or testing of some configurations that have not changed between old and new configuration items, leading to inaccurate testing or low testing efficiency. Therefore, the prior art cannot achieve efficient and targeted testing.
[0035] To address the aforementioned issues, the technical concept of this disclosure is as follows: During the configuration change phase, by parsing the change relationships of configuration items, the regions hit by the change conditions and the corresponding configuration values are obtained. This enables the static processing of online configuration release constraints to obtain the range of changes, which is then provided to the testing system for testing, allowing the testing system to conduct efficient and targeted testing.
[0036] See Figure 1 As shown, Figure 1 This is a schematic diagram illustrating a scenario of the configuration release processing method provided in this embodiment of the disclosure. The executing entity of the configuration release processing method can be a computer device, such as a server. The server processes the configuration release and provides the processed result to the configuration release detection system (or testing system). That is, the configuration release can be processed before testing, for example, processing the configuration items with constraints before and after configuration modification.
[0037] For example, the server obtains both old and new configurations (which can be obtained from a configuration publishing platform), including historical configuration items published for the target product, the configuration values corresponding to the historical configuration items, the new configuration items, and their corresponding configuration values. Then, it performs orthogonalization on the constraint items in the old and new configurations to remove their priority relationships. Next, it compares the orthogonalized old and new intervals, deleting content where neither the configuration value nor the interval has changed. It then merges intervals with the same value from the two compared intervals, generating a list of intervals with the same value. By comparing these intervals, it determines the range of interval value changes and their corresponding configuration values. The changed intervals and values are then sent to the testing system. Alternatively, the server obtains the intervals and values to be tested from the changed intervals and values and sends them to the testing system. The testing system performs configuration publishing tests on these intervals and values, such as testing a specific function or functions within an application (App). This allows for targeted testing by the testing system, ensuring high testing efficiency.
[0038] Therefore, this embodiment of the disclosure obtains the constraints of the old and new configuration items, and then orthogonalizes the constraints of the old and new configuration items respectively. By removing the priority relationship through constraint orthogonalization, the condition sets after orthogonalization are independent. Judging which condition set first will not affect the hit of other condition sets, thus ensuring the accuracy of subsequent judgment interval values and configuration changes. This enables the configuration release test system to test efficiently and in a targeted manner.
[0039] See Figure 2 As shown, Figure 2 This is a flowchart illustrating a configuration publishing process provided in an embodiment of the present disclosure. The configuration publishing process includes:
[0040] Step S101: Obtain the historical configuration items, the configuration values corresponding to the historical configuration items, the new configuration items, and the configuration values corresponding to the new configuration items for the target product.
[0041] Wherein, both the historical configuration item and the new configuration item are configuration items carrying constraints, the configuration value includes the configuration value of the constraints, the historical configuration item is used to represent the historical function configuration corresponding to the target product, the new configuration item is used to represent the new function configuration corresponding to the target product, and the new configuration item is the configuration item after the historical configuration item has been modified.
[0042] In this embodiment, the input consists of configuration items with constraints before and after modification. The server can obtain the configuration items with constraints before modification (i.e., historical configuration items) and the configuration items with constraints after modification (i.e., new configuration items) and their corresponding configuration values from the configuration publishing platform. The content of the configuration items is represented by code. For example, constraints could be version (representing the App version) > 10.0.0, os_version (representing the system version) > 14.0.0, etc.
[0043] S102. Orthogonalize each constraint of the historical configuration item to obtain a first orthogonal interval list, and orthogonalize each constraint of the new configuration item to obtain a second orthogonal interval list.
[0044] The first orthogonal interval list and the second orthogonal interval list both include configuration intervals and configuration values corresponding to the configuration intervals, where the configuration values corresponding to the configuration intervals are configuration values of the constraint conditions corresponding to the configuration intervals.
[0045] In this embodiment of the disclosure, in order to remove the priority relationship of the constraints and ensure that the condition sets do not affect each other, the constraints of the historical configuration items can be orthogonalized to generate a list of conditions without priority (i.e., the orthogonalized old configuration intervals) and corresponding configuration values corresponding to the historical configuration, namely the first orthogonal interval list; at the same time, the constraints of the new configuration items are orthogonalized to generate a list of conditions without priority (i.e., the orthogonalized new configuration intervals) and corresponding configuration values corresponding to the new configuration, namely the second orthogonal interval list.
[0046] S103. Based on the configuration intervals in the first orthogonal interval list and the configuration values corresponding to the configuration intervals, and the configuration intervals in the second orthogonal interval list and the configuration values corresponding to the configuration intervals, determine the range of interval value changes and the corresponding configuration value change information.
[0047] The range of value changes and the corresponding configuration value change information are used to provide test content for the configuration release test system.
[0048] In this embodiment of the disclosure, by removing identical items from the interval comparison after orthogonalization of the old and new configurations, the dimensionality of subsequent interval comparisons can be reduced. Then, the old and new configurations are merged with the same value, and the condition intervals are compared under the same value of the old and new configurations to obtain the change constraints under the corresponding values, thereby providing test content for the configuration release test system.
[0049] In one embodiment of this disclosure, the use of a defined range and value of change can be achieved through the following steps:
[0050] Step a1: Based on the range of changes in the interval values and the corresponding configuration value change information, determine the items to be tested in the configuration release and their corresponding configuration values.
[0051] Step a2: Send the item to be tested and its corresponding configuration value to the configuration release test system, so that the configuration release test system performs configuration release test based on the item to be tested and its corresponding configuration value.
[0052] In this embodiment of the disclosure, the changing range and value are sent to the testing system, or the range and value to be tested are obtained from the changing range and value and sent to the testing system. The testing system performs configuration and release testing on the range and value, such as a certain function or some functions in an application (App). This enables the testing system to perform targeted testing and ensures the efficiency of the testing.
[0053] Specifically, see Figure 3 As shown, Figure 3 This is a flowchart illustrating a configuration publishing processing method provided in another embodiment of this disclosure. The server can obtain old and new configuration items from the configuration publishing platform. These old and new configuration items are configuration items with constraints (i.e., configuration items with constraints before and after modification). Alternatively, the server can input the old and new configuration items (i.e., old and new configuration items) as input via an input device. To facilitate code processing, the old and new configuration items can be converted into two configuration trees. The conditions in each configuration tree are then orthogonalized, and the orthogonalized intervals are compared to remove identical items. The old and new configurations after removing identical items are then merged with the same value. After merging, the condition intervals under the same value in the old and new configurations are compared to obtain the change constraints under the corresponding values.
[0054] The configuration release processing method provided in this embodiment removes priority relationships by orthogonalizing constraints, making the condition sets independent after orthogonalization. Judging which condition set first will not affect the hit of other condition sets, ensuring the accuracy of subsequent judgment interval values and configuration changes. This enables the configuration release test system to test efficiently and in a targeted manner.
[0055] In one embodiment of this disclosure, the conditions of the old configuration items and the conditions of the new configuration items are orthogonalized respectively to remove their priority relationships, ensuring that the condition sets do not affect each other. Based on the above embodiments, this disclosure provides a detailed explanation of how to achieve condition orthogonalization. The orthogonalization of the constraints of the historical configuration items to obtain a first orthogonal interval list can be achieved according to the following steps:
[0056] Step b11: Generate a historical configuration tree from the configuration code of the historical configuration item. The historical configuration tree is used to represent the logical relationship of each constraint condition of the historical configuration item.
[0057] Step b12: Based on the logical relationship of the constraints of the historical configuration items, orthogonalize the constraints of the historical configuration items to obtain the first orthogonal interval list.
[0058] Accordingly, the orthogonalization of the constraints of the new configuration item to obtain the second orthogonal interval list can be achieved according to the following steps:
[0059] Step b21: Generate a new configuration tree from the configuration code of the new configuration item. The new configuration tree is used to represent the logical relationship of the various constraints of the new configuration item.
[0060] Step b22: Based on the logical relationship between the constraints of the new configuration item, orthogonalize the constraints of the new configuration item to obtain a second orthogonal interval list.
[0061] In this embodiment of the disclosure, the configuration code is transformed into an abstract configuration tree, i.e., a tree structure of configuration (representing the logical relationship between constraints), which facilitates code processing. In practical applications, the configuration only needs to configure the conditions that need to be met, and the conditions that are checked first have higher priority than those that are checked later (once the condition that is checked first is hit, the subsequent conditions cannot be checked). Therefore, it is necessary to orthogonalize the configuration conditions to remove their priority relationships.
[0062] In one embodiment of this disclosure, the specific process of orthogonalization is described in detail. The step of orthogonalizing the constraints of historical configuration items based on their logical relationships to obtain a first orthogonal interval list can be achieved through the following steps:
[0063] Step c11: Determine the priority of each constraint condition based on the logical relationship of each constraint condition in the historical configuration items.
[0064] Step c12: For each of the constraints, perform the following orthogonalization steps: Invert all constraints with lower priority and constraints with higher priority, and then perform a logical AND operation to obtain the first orthogonalization condition, and use the first orthogonalization condition as the first orthogonal interval.
[0065] Step c13: Generate a list of the first orthogonal intervals based on each first orthogonal interval and its corresponding configuration value.
[0066] Accordingly, the orthogonalization of the constraints of the new configuration item based on the logical relationship of each constraint, to obtain the second orthogonal interval list, can be achieved through the following steps:
[0067] Step c21: Determine the priority of each constraint condition based on the logical relationship of each constraint condition in the new configuration item;
[0068] Step c22: For each of the constraints, perform the following orthogonalization steps: Invert all constraints with lower priority and constraints with higher priority, and then perform a logical AND operation to obtain the second orthogonalization condition, and use the second orthogonalization condition as the second orthogonal interval.
[0069] Step c23: Generate a list of second orthogonal intervals based on each second orthogonal interval and its corresponding configuration value.
[0070] For example, see Table 1 for a priority list of conditions (including priority, conditions, and configuration items; the example in Table 1 is not limited to a list of conditions for new configurations or a list of conditions for historical configurations).
[0071] Table 1
[0072] Priority condition Configuration value 1 version>10.0.0 0 2 os_version>12.0 1
[0073] For example, under the original conditions, if version>10.0.0 is matched, os_version will not be checked again. Therefore, the priority of the two is determined by their order. The orthogonalized results are shown in Table 2.
[0074] Table 2
[0075]
[0076]
[0077] As shown in Table 2, after orthogonalization, the condition sets are independent of each other. Judging one condition first will not affect the hit of other condition sets. Under one configuration, only one condition set will be hit.
[0078] The orthogonal rule stipulates that conditions with lower priority need to be combined with conditions of higher priority after being inverted. For example, in Table 1, the condition os_version>12.0 has a lower priority than the condition version>10.0.0. To remove the priority of the condition os_version>12.0, we can first invert version>10.0.0 (i.e., !(version>10.0.0), and then combine os_version>12.0 and !(version>10.0.0) (here, combining refers to an AND logical calculation, or the intersection of intervals), i.e., os_version>12.0&&!(version>10.0.0).
[0079] In one embodiment of this disclosure, the method for determining the changing intervals and values is described in detail. Based on the configuration intervals in the first orthogonal interval list and the corresponding configuration values, and the configuration intervals in the second orthogonal interval list and the corresponding configuration values, the range of interval value changes and the corresponding configuration value change information are determined. This can be achieved through the following steps:
[0080] Step d1: Based on the first orthogonal interval list and the second orthogonal interval list, filter out items with the same configuration interval and the same configuration value corresponding to the configuration interval, to obtain a new first orthogonal interval list and a new second orthogonal interval list.
[0081] Step d1: Based on the configuration intervals in the first orthogonal interval list and the configuration values corresponding to the configuration intervals, and the configuration intervals in the second orthogonal interval list and the configuration values corresponding to the configuration intervals, determine the range of interval value changes and the corresponding configuration value change information.
[0082] In this embodiment, the intervals after the new and old configurations are orthogonalized are compared. If the orthogonality conditions and the corresponding configuration values are exactly the same, the interval can be removed from the interval list because the values within this interval are consistent with the values returned by the new and old configurations, and no testing is required. For example, see Table 3 for the new and old orthogonal intervals.
[0083] Table 3
[0084]
[0085]
[0086] As shown in Table 3, items with a configuration range of version>10.0.0 and a configuration value of 0 are the same items in the old and new orthogonal ranges. In order to reduce the steps of subsequent range change comparison, the same items are deleted here, and no testing is required. That is, the same range is removed to reduce the complexity of subsequent range comparison.
[0087] In one embodiment of this disclosure, to integrate the data, after removing identical intervals from their respective intervals, the newly compared old and new orthogonal intervals are merged with the same value to determine the changed intervals and values. That is, based on the configuration intervals in the new first orthogonal interval list and the corresponding configuration values, and the configuration intervals in the new second orthogonal interval list and the corresponding configuration values, the range of interval value changes and the corresponding configuration value change information are determined. This can be achieved through the following steps:
[0088] Step e1: Merge the configuration intervals with the same configuration value corresponding to the configuration intervals in the new first orthogonal interval list to obtain a first same value interval list. The first same value interval list includes the merged first same value interval and the configuration value corresponding to the first same value interval.
[0089] Step e2: Merge the configuration intervals with the same configuration value corresponding to the configuration intervals in the new second orthogonal interval list to obtain a second same value interval list. The second same value interval list includes the merged second same value intervals and the configuration values corresponding to the second same value intervals.
[0090] Step e3: Determine the range of interval value changes and the corresponding configuration value change information based on the first list of equal value intervals and the second list of equal value intervals.
[0091] In this embodiment of the disclosure, during the process of determining the changing intervals and values, to facilitate subsequent interval comparison, the old and new orthogonal intervals after comparison can first be merged for the same value. Specifically, after Diff (comparison), multiple intervals and the values within each interval are obtained. If the values are equal, the alignment condition intervals are merged to obtain the data of the same value interval lists for the old and new configurations (i.e., [value-interval list]). For example, see Table 4 for the new orthogonal interval list (i.e., the orthogonal interval list after removing the same intervals; the example in Table 4 does not limit whether it is a new orthogonal interval list for the new configuration or a new orthogonal interval list for the historical configuration).
[0092] Table 4
[0093] interval value version>10.0.0 0 os_version<=12.0&&!(version>10.0.0) 0 os_version>12.0&&! (version>10.0.0) 1
[0094] The merged result is shown in Table 5:
[0095] Table 5
[0096] value interval 0 (version>10.0.0)||(os_version<=12.0&&!(version>10.0.0) 1 os_version>12.0&&! (version>10.0.0)
[0097] Merge the intervals with a value of 0 in Table 4 (merging here means performing a logical "OR", or the union of intervals), that is, merge the intervals into (version>10.0.0)||(os_version<=12.0&&!(version>10.0.0).
[0098] In one embodiment of this disclosure, after merging the same-value intervals, a new and old same-value interval list is generated from the two same-value interval lists. Then, the interval sums and values in the new and old same-value interval lists are compared to determine the changed interval sums and values. That is, determining the range of interval value changes and the corresponding configuration value change information based on the first and second same-value interval lists can be achieved through the following steps:
[0099] Step f1: Generate a new and old list of equal value intervals based on the first list of equal value intervals and the second list of equal value intervals. The new and old list of equal value intervals includes the first equal value interval, the second equal value interval, and the configuration values corresponding to the first equal value interval and the second equal value interval, respectively.
[0100] Step f2: Obtain a constraint under each condition dimension from the list of new and old equal value intervals, and perform a logical AND operation on the constraint under each condition dimension as an interval comparison item.
[0101] Step f3: Based on the list of new and old equal value intervals and each interval comparison item, determine the range of interval value changes and the corresponding configuration value change information.
[0102] In this embodiment, a new and old list of intervals with the same value is generated from the first list of intervals with the same value and the second list of intervals with the same value. Then, the new and old lists of intervals with the same value are compared: for the same value, the differences between the intervals are directly compared. Assuming there are m conditional dimensions (for example, App version (version) and system version (os_version) as two conditional dimensions), and each conditional dimension has n intervals, then m^n interval items will be generated for comparison. If a new configuration has an interval that the old configuration does not, it is considered a newly added interval; otherwise, it is considered a deleted interval. See Table 6 for an example of the new and old lists of intervals with the same value:
[0103] Table 6
[0104]
[0105] As shown in Table 6, the old and new intervals mainly involve two constraint dimensions: `version` and `os_version`. A constraint condition is then selected from each constraint dimension. For example, if the two constraint dimensions are `version>10.0.0` and `os_version<=12.0`, then `(version>10.0.0)&(os_version<=12.0)` is used as an interval comparison item to determine whether the corresponding value has changed. For instance, if the value of `(version>10.0.0)&(os_version<=12.0)` is 0 in both the old and new intervals, then the interval `(version>10.0.0)&(os_version<=12.0)` has not changed.
[0106] In one embodiment of this disclosure, based on the above embodiments, this embodiment provides a detailed explanation of how to determine the range of interval value changes and the corresponding configuration value change information according to the list of new and old equal value intervals and each interval comparison item. This can be achieved through the following steps:
[0107] Step g1: For each interval comparison item, obtain the first configuration value corresponding to the interval comparison item from the configuration values corresponding to the first same value interval, and obtain the second configuration value corresponding to the interval comparison item from the configuration values corresponding to the second same value interval.
[0108] Step g2: Determine whether the configuration value corresponding to the interval comparison item has changed based on the first configuration value and the second configuration value.
[0109] Step g3: If a change occurs, the interval comparison item is taken as the range of the interval value change, and the information used to indicate that the first configuration value has been changed to the second configuration value is taken as the configuration value change information.
[0110] In this embodiment of the disclosure, each interval is compared one by one, and the interval whose corresponding value has changed is identified as the changed interval, i.e., the range of interval value change. The change of the changed value is used as the configuration value change information.
[0111] Taking Table 6 as an example, the interval values corresponding to the two constraint dimensions between the old and new regions can be found in Table 7:
[0112] Table 7
[0113] os_version<=12.0 12<os_version<=13.0 os_version>13.0 version>10.0.0 0->0 0->0 0->0 version<=10.0.0 0->0 1->0 1->1
[0114] As can be seen from Table 7, the range where the interval value actually changes is (version<=10.0.0)&&(12<os_version<=13.0) (representing the interval value change range), and the configuration value changes from 1 to 0 (representing the configuration value change information). It is also possible to compare the values obtained by enumerating all condition intervals through the enumeration method, so as to obtain the changed intervals and values.
[0115] In the present disclosure, the constrained conditions are converted into a tree structure to facilitate comparison, then the constrained conditions are orthogonalized to remove priority relationships, and the conditions after orthogonalization are compared to remove the same intervals, so as to reduce the complexity of subsequent interval comparison. Therefore, the present disclosure can obtain the values of the changed intervals more efficiently when the configuration changes, thereby realizing efficient and targeted testing.
[0116] Corresponding to the configuration release processing method of the embodiments disclosed above, Figure 4 is a structural block diagram of a configuration release processing apparatus provided by an embodiment of the present disclosure. For ease of description, only the parts related to the embodiments of the present disclosure are shown. With reference to Figure 4 , the configuration release processing apparatus includes:
[0117] an obtaining module 401, configured to obtain a historical configuration item for configuration release of a target product, a configuration value corresponding to the historical configuration item, a new configuration item, and a configuration value corresponding to the new configuration item, where both the historical configuration item and the new configuration item are configuration items carrying constraint conditions, the configuration value includes the configuration value of the constraint condition, the historical configuration item is used to represent the historical function configuration corresponding to the target product, the new configuration item is used to represent the new function configuration corresponding to the target product, and the new configuration item is a configuration item after the historical configuration item is changed;
[0118] a first processing module 402, configured to orthogonalize each constraint condition of the historical configuration item to obtain a first orthogonal interval list;
[0119] the first processing module 402, further configured to orthogonalize each constraint condition of the new configuration item to obtain a second orthogonal interval list; where both the first orthogonal interval list and the second orthogonal interval list include configuration intervals and configuration values corresponding to the configuration intervals, and the configuration value corresponding to the configuration interval is the configuration value of the constraint condition corresponding to the configuration interval;
[0120] The second processing module 403 is used to determine the range of interval value changes and the corresponding configuration value change information based on the configuration intervals in the first orthogonal interval list and the configuration values corresponding to the configuration intervals, and the configuration intervals in the second orthogonal interval list and the configuration values corresponding to the configuration intervals. The range of interval value changes and the corresponding configuration value change information are used to provide test content for the configuration release test system.
[0121] The acquisition module 401, the first processing module 402, and the second processing module 403 provided in this embodiment are used to acquire historical configuration items, configuration values corresponding to the historical configuration items, new configuration items, and configuration values corresponding to the new configuration items, all of which are configuration items carrying constraints. The configuration values include the configuration values of the constraints. The historical configuration items represent the historical functional configurations corresponding to the target product, and the new configuration items represent the new functional configurations corresponding to the target product. The new configuration items are configuration items modified from the historical configuration items. Then, the constraints of the historical configuration items are orthogonalized to obtain a first orthogonal interval list. The system orthogonals the constraints of the new configuration item to obtain a second orthogonal interval list. Both the first and second orthogonal interval lists include configuration intervals and their corresponding configuration values, where the configuration value is the configuration value of the constraint corresponding to the configuration interval. Based on the configuration intervals and their corresponding configuration values in the first and second orthogonal interval lists, the range of interval value changes and the corresponding configuration value change information are determined. This range of changes and the corresponding configuration value change information provide test content for the configuration release test system. By orthogonalizing the constraints to remove priority relationships, the orthogonalized condition sets are independent. Judging one condition set first will not affect the hit rate of other condition sets, ensuring the accuracy of subsequent judgments on interval values and configuration changes. This allows the configuration release test system to perform efficient and targeted testing.
[0122] The apparatus provided in this disclosure can be used to execute the technical solutions of the first aspect and the various possible designs corresponding to the first aspect above. The implementation principle and technical effects are similar, and will not be repeated here.
[0123] In one embodiment of this disclosure, the first processing module includes a first processing unit and a second processing unit;
[0124] The first processing unit is used to generate a historical configuration tree from the configuration code of the historical configuration item, wherein the historical configuration tree is used to represent the logical relationship of each constraint condition of the historical configuration item;
[0125] The second processing unit is used to orthogonalize each constraint of the historical configuration item according to the logical relationship of each constraint of the historical configuration item, so as to obtain a first orthogonal interval list.
[0126] The first processing unit is further configured to: generate a new configuration tree from the configuration code of the new configuration item, wherein the new configuration tree is used to represent the logical relationship between the various constraints of the new configuration item;
[0127] The second processing unit is further configured to orthogonalize the constraints of the new configuration item according to the logical relationship between the constraints of the new configuration item, so as to obtain a second orthogonal interval list.
[0128] In one embodiment of this disclosure, the second processing unit is specifically used for:
[0129] Based on the logical relationship between the constraints of the historical configuration items, determine the priority of each constraint.
[0130] For each of the constraints, the following orthogonalization steps are performed: after inverting each constraint with lower priority and each constraint with higher priority, a logical AND operation is performed to obtain the first orthogonalization condition, and the first orthogonalization condition is used as the first orthogonal interval.
[0131] A list of the first orthogonal intervals is generated based on each first orthogonal interval and its corresponding configuration value.
[0132] The second processing unit is also specifically used for:
[0133] Based on the logical relationship between the constraints of the new configuration item, determine the priority of each constraint.
[0134] For each of the constraints, the following orthogonalization steps are performed: after inverting each constraint with lower priority and each constraint with higher priority, a logical AND operation is performed to obtain the second orthogonalization condition, and the second orthogonalization condition is used as the second orthogonal interval.
[0135] A list of second orthogonal intervals is generated based on each second orthogonal interval and its corresponding configuration value.
[0136] In one embodiment of this disclosure, the second processing module includes: a third processing unit and a fourth processing unit; the third processing unit is configured to filter out items with the same configuration interval and the same configuration value corresponding to the configuration interval according to the first orthogonal interval list and the second orthogonal interval list, respectively, to obtain a new first orthogonal interval list and a new second orthogonal interval list; the fourth processing unit is configured to determine the interval value change range and the corresponding configuration value change information according to the configuration interval in the first orthogonal interval list and the configuration value corresponding to the configuration interval, and the configuration interval in the second orthogonal interval list and the configuration value corresponding to the configuration interval.
[0137] In one embodiment of this disclosure, the fourth processing unit is specifically used for:
[0138] Merge the configuration intervals with the same configuration value corresponding to the configuration intervals in the new first orthogonal interval list to obtain a first same value interval list. The first same value interval list includes the merged first same value interval and the configuration value corresponding to the first same value interval.
[0139] Merge the configuration intervals with the same configuration value corresponding to the configuration intervals in the new second orthogonal interval list to obtain a second same value interval list. The second same value interval list includes the merged second same value intervals and the configuration values corresponding to the second same value intervals.
[0140] Based on the first list of equal value intervals and the second list of equal value intervals, determine the range of interval value changes and the corresponding configuration value change information.
[0141] In one embodiment of this disclosure, the fourth processing unit is specifically used for:
[0142] Based on the first list of equal value intervals and the second list of equal value intervals, a new and old list of equal value intervals is generated. The new and old list of equal value intervals includes the first equal value interval, the second equal value interval, and the configuration values corresponding to the first and second equal value intervals, respectively.
[0143] Obtain one constraint under each condition dimension from the list of new and old equal value intervals, and perform a logical AND operation on one constraint under each condition dimension as an interval comparison item;
[0144] Based on the list of new and old equal value intervals and each interval comparison item, the range of interval value changes and the corresponding configuration value change information are determined.
[0145] In one embodiment of this disclosure, the fourth processing unit is specifically used for:
[0146] For each interval comparison item, a first configuration value corresponding to the interval comparison item is obtained from the configuration values corresponding to the first same value interval, and a second configuration value corresponding to the interval comparison item is obtained from the configuration values corresponding to the second same value interval.
[0147] Based on the first configuration value and the second configuration value, determine whether the configuration value corresponding to the interval comparison item has changed;
[0148] If a change occurs, the interval comparison item will be used as the range of the interval value change, and the information used to indicate that the first configuration value has been changed to the second configuration value will be used as the configuration value change information.
[0149] In one embodiment of this disclosure, the apparatus further includes a third processing module; the third processing module is configured to:
[0150] Based on the range of changes in the interval values and the corresponding configuration value change information, determine the items to be tested in the configuration release and their corresponding configuration values;
[0151] The item to be tested and its corresponding configuration value are sent to the configuration release testing system, enabling the configuration release testing system to perform configuration release testing based on the item to be tested and its corresponding configuration value. (Reference) Figure 5 The diagram illustrates a structural schematic of an electronic device suitable for implementing embodiments of the present disclosure. This electronic device can be a terminal device or a server. The terminal device can include, but is not limited to, mobile terminals such as mobile phones, laptops, digital broadcast receivers, personal digital assistants (PDAs), portable Android devices (PADs), portable media players (PMPs), and in-vehicle terminals (e.g., in-vehicle navigation terminals), as well as fixed terminals such as digital TVs and desktop computers. Figure 5 The electronic device shown is merely an example and should not be construed as limiting the functionality and scope of the embodiments disclosed herein.
[0152] like Figure 5As shown, the electronic device may include a processing unit (e.g., a central processing unit, a graphics processing unit, etc.) 501, which 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 device 506 into a random access memory (RAM) 503. The RAM 503 also stores various programs and data required for the operation of the electronic device. The processing unit 501, ROM 502, and RAM 503 are interconnected via a bus 504. An input / output (I / O) interface 405 is also connected to the bus 504.
[0153] Typically, the following devices can be connected to I / O interface 505: input devices 506 including, for example, touchscreens, touchpads, keyboards, mice, cameras, microphones, accelerometers, gyroscopes, etc.; output devices 505 including, for example, liquid crystal displays (LCDs), speakers, vibrators, etc.; storage devices 506 including, for example, magnetic tapes, hard disks, etc.; and communication devices 509. Communication device 509 allows electronic devices to communicate wirelessly or wiredly with other devices to exchange data. Although Figure 5 Electronic devices with various devices are shown, but it should be understood that it is not required to implement or have all of the devices shown. More or fewer devices may be implemented or have instead.
[0154] In particular, according to embodiments of this disclosure, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of this disclosure include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via a communication device 509, or installed from a storage device 506, or installed from a ROM 502. When the computer program is executed by the processing device 501, it performs the functions defined in the methods of embodiments of this disclosure.
[0155] It should be noted that the computer-readable medium described in this disclosure can be a computer-readable signal medium or a computer-readable storage medium, or any combination thereof. A computer-readable storage medium can be, for example,—but not limited to—an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of a computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In this disclosure, a computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in connection with an instruction execution system, apparatus, or device. In this disclosure, a computer-readable signal medium can include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code. Such propagated data signals can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A computer-readable signal medium can be any computer-readable medium other than a computer-readable storage medium, which can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium can be transmitted using any suitable medium, including but not limited to: wires, optical fibers, RF (radio frequency), etc., or any suitable combination thereof.
[0156] The aforementioned computer-readable medium may be included in the aforementioned electronic device; or it may exist independently and not assembled into the electronic device.
[0157] The aforementioned computer-readable medium carries one or more programs, which, when executed by the electronic device, cause the electronic device to perform the methods shown in the above-disclosed embodiments.
[0158] Computer program code for performing the operations of this disclosure can be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, and C++, and conventional procedural programming languages such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including a Local Area Network (LAN) or a Wide Area Network (WAN)—or can be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0159] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this disclosure. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.
[0160] The units described in the embodiments of this disclosure can be implemented in software or in hardware. The name of a unit does not necessarily limit the unit itself; for example, the first acquisition unit can also be described as "a unit that acquires at least two Internet Protocol addresses".
[0161] The functions described above in this document can be performed, at least in part, by one or more hardware logic components. For example, exemplary types of hardware logic components that can be used, without limitation, include: Field Programmable Gate Arrays (FPGAs), Application-Specific Integrated Circuits (ASICs), Application Standard Products (ASSPs), System-on-Chip (SoCs), Complex Programmable Logic Devices (CPLDs), and so on.
[0162] In the context of this disclosure, a machine-readable medium can be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, apparatus, or device. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can be, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.
[0163] This disclosure provides a computer program product, including a computer program that, when executed by a processor, implements the method described in the first aspect above.
[0164] In a first aspect, embodiments of this disclosure provide a configuration release processing method, including:
[0165] The system retrieves historical configuration items, configuration values corresponding to the historical configuration items, new configuration items, and configuration values corresponding to the new configuration items for the target product. Both the historical configuration items and the new configuration items are configuration items carrying constraints. The configuration values include the configuration values of the constraints. The historical configuration items are used to represent the historical function configurations corresponding to the target product, and the new configuration items are used to represent the new function configurations corresponding to the target product. The new configuration items are configuration items after the historical configuration items have been modified.
[0166] The constraints of the historical configuration items are orthogonalized to obtain a first orthogonal interval list, and the constraints of the new configuration items are orthogonalized to obtain a second orthogonal interval list; wherein, both the first orthogonal interval list and the second orthogonal interval list include configuration intervals and configuration values corresponding to the configuration intervals, and the configuration values corresponding to the configuration intervals are the configuration values of the constraints corresponding to the configuration intervals;
[0167] Based on the configuration intervals in the first orthogonal interval list and the configuration values corresponding to the configuration intervals, and the configuration intervals in the second orthogonal interval list and the configuration values corresponding to the configuration intervals, the range of interval value changes and the corresponding configuration value change information are determined. The range of interval value changes and the corresponding configuration value change information are used to provide test content for the configuration release test system.
[0168] According to one or more embodiments of this disclosure, a historical configuration tree is generated from the configuration code of the historical configuration item, and the historical configuration tree is used to represent the logical relationship of the various constraints of the historical configuration item;
[0169] Based on the logical relationship of the constraints of the historical configuration items, the constraints of the historical configuration items are orthogonalized to obtain a first orthogonal interval list.
[0170] Accordingly, the orthogonalization of the constraints of the new configuration item to obtain a second orthogonal interval list includes:
[0171] The configuration code of the new configuration item is used to generate a new configuration tree, which is used to represent the logical relationship between the various constraints of the new configuration item.
[0172] Based on the logical relationship between the constraints of the new configuration item, the constraints of the new configuration item are orthogonalized to obtain a second orthogonal interval list.
[0173] According to one or more embodiments of this disclosure, the step of orthogonalizing the constraints of the historical configuration items based on the logical relationships of the constraints to obtain a first orthogonal interval list includes:
[0174] Based on the logical relationship between the constraints of the historical configuration items, determine the priority of each constraint.
[0175] For each of the constraints, the following orthogonalization steps are performed: after inverting each constraint with lower priority and each constraint with higher priority, a logical AND operation is performed to obtain the first orthogonalization condition, and the first orthogonalization condition is used as the first orthogonal interval.
[0176] Generate a list of the first orthogonal intervals based on each first orthogonal interval and its corresponding configuration value;
[0177] Accordingly, based on the logical relationship between the constraints of the new configuration item, the constraints of the new configuration item are orthogonalized to obtain a second orthogonal interval list, including:
[0178] Based on the logical relationship between the constraints of the new configuration item, determine the priority of each constraint.
[0179] For each of the constraints, the following orthogonalization steps are performed: after inverting each constraint with lower priority and each constraint with higher priority, a logical AND operation is performed to obtain the second orthogonalization condition, and the second orthogonalization condition is used as the second orthogonal interval.
[0180] A list of second orthogonal intervals is generated based on each second orthogonal interval and its corresponding configuration value.
[0181] According to one or more embodiments of this disclosure, determining the range of interval value changes and the corresponding configuration value change information based on the configuration intervals in the first orthogonal interval list and the configuration values corresponding to the configuration intervals, and the configuration intervals in the second orthogonal interval list and the configuration values corresponding to the configuration intervals, includes:
[0182] Based on the first orthogonal interval list and the second orthogonal interval list, items with the same configuration interval and the same configuration value corresponding to the configuration interval are filtered out respectively to obtain a new first orthogonal interval list and a new second orthogonal interval list;
[0183] Based on the configuration intervals in the new first orthogonal interval list and the configuration values corresponding to the configuration intervals, and the configuration intervals in the new second orthogonal interval list and the configuration values corresponding to the configuration intervals, determine the range of interval value changes and the corresponding configuration value change information.
[0184] According to one or more embodiments of this disclosure, determining the range of interval value changes and the corresponding configuration value change information based on the configuration intervals in the new first orthogonal interval list and the configuration values corresponding to the configuration intervals, and the configuration intervals in the new second orthogonal interval list and the configuration values corresponding to the configuration intervals, includes:
[0185] Merge the configuration intervals with the same configuration value corresponding to the configuration intervals in the new first orthogonal interval list to obtain a first same value interval list. The first same value interval list includes the merged first same value interval and the configuration value corresponding to the first same value interval.
[0186] Merge the configuration intervals with the same configuration value corresponding to the configuration intervals in the new second orthogonal interval list to obtain a second same value interval list. The second same value interval list includes the merged second same value intervals and the configuration values corresponding to the second same value intervals.
[0187] Based on the first list of equal value intervals and the second list of equal value intervals, determine the range of interval value changes and the corresponding configuration value change information.
[0188] According to one or more embodiments of this disclosure, the constraint is at least one condition dimension; determining the range of interval value changes and the corresponding configuration value change information based on the first list of equal value intervals and the second list of equal value intervals includes:
[0189] Based on the first list of equal value intervals and the second list of equal value intervals, a new and old list of equal value intervals is generated. The new and old list of equal value intervals includes the first equal value interval, the second equal value interval, and the configuration values corresponding to the first and second equal value intervals, respectively.
[0190] Obtain one constraint under each condition dimension from the list of new and old equal value intervals, and perform a logical AND operation on one constraint under each condition dimension as an interval comparison item;
[0191] Based on the list of new and old equal value intervals and each interval comparison item, the range of interval value changes and the corresponding configuration value change information are determined.
[0192] According to one or more embodiments of this disclosure, determining the range of interval value changes and the corresponding configuration value change information based on the list of new and old equal value intervals and each of the interval comparison items includes:
[0193] For each interval comparison item, a first configuration value corresponding to the interval comparison item is obtained from the configuration values corresponding to the first same value interval, and a second configuration value corresponding to the interval comparison item is obtained from the configuration values corresponding to the second same value interval.
[0194] Based on the first configuration value and the second configuration value, determine whether the configuration value corresponding to the interval comparison item has changed;
[0195] If a change occurs, the interval comparison item will be used as the range of the interval value change, and the information used to indicate that the first configuration value has been changed to the second configuration value will be used as the configuration value change information.
[0196] According to one or more embodiments of this disclosure, the method further includes:
[0197] Based on the range of changes in the interval values and the corresponding configuration value change information, determine the items to be tested in the configuration release and their corresponding configuration values;
[0198] The item to be tested and its corresponding configuration value are sent to the configuration release test system, so that the configuration release test system performs configuration release test based on the item to be tested and its corresponding configuration value.
[0199] Secondly, embodiments of this disclosure provide a configuration publishing processing apparatus, including:
[0200] The acquisition module is used to acquire historical configuration items, configuration values corresponding to the historical configuration items, new configuration items, and configuration values corresponding to the new configuration items for the target product. The historical configuration items and the new configuration items are both configuration items carrying constraints. The configuration values include the configuration values of the constraints. The historical configuration items are used to represent the historical function configurations corresponding to the target product. The new configuration items are used to represent the new function configurations corresponding to the target product. The new configuration items are configuration items after the historical configuration items have been modified.
[0201] The first processing module is used to orthogonalize each constraint of the historical configuration item to obtain a first orthogonal interval list;
[0202] The first processing module is further configured to orthogonalize each constraint of the new configuration item to obtain a second orthogonal interval list; wherein, both the first orthogonal interval list and the second orthogonal interval list include configuration intervals and configuration values corresponding to the configuration intervals, and the configuration values corresponding to the configuration intervals are the configuration values of the constraints corresponding to the configuration intervals;
[0203] The second processing module is used to determine the range of interval value changes and the corresponding configuration value change information based on the configuration intervals in the first orthogonal interval list and the configuration values corresponding to the configuration intervals, and the configuration intervals in the second orthogonal interval list and the configuration values corresponding to the configuration intervals. The range of interval value changes and the corresponding configuration value change information are used to provide test content for the configuration release test system.
[0204] According to one or more embodiments of this disclosure, the first processing module includes a first processing unit and a second processing unit;
[0205] The first processing unit is used to generate a historical configuration tree from the configuration code of the historical configuration item, wherein the historical configuration tree is used to represent the logical relationship of each constraint condition of the historical configuration item;
[0206] The second processing unit is used to orthogonalize each constraint of the historical configuration item according to the logical relationship of each constraint of the historical configuration item, so as to obtain a first orthogonal interval list.
[0207] The first processing unit is further configured to: generate a new configuration tree from the configuration code of the new configuration item, wherein the new configuration tree is used to represent the logical relationship between the various constraints of the new configuration item;
[0208] The second processing unit is further configured to orthogonalize the constraints of the new configuration item according to the logical relationship between the constraints of the new configuration item, so as to obtain a second orthogonal interval list.
[0209] According to one or more embodiments of this disclosure, the second processing unit is specifically used for:
[0210] Based on the logical relationship between the constraints of the historical configuration items, determine the priority of each constraint.
[0211] For each of the constraints, the following orthogonalization steps are performed: after inverting each constraint with lower priority and each constraint with higher priority, a logical AND operation is performed to obtain the first orthogonalization condition, and the first orthogonalization condition is used as the first orthogonal interval.
[0212] A list of the first orthogonal intervals is generated based on each first orthogonal interval and its corresponding configuration value.
[0213] The second processing unit is also specifically used for:
[0214] Based on the logical relationship between the constraints of the new configuration item, determine the priority of each constraint.
[0215] For each of the constraints, the following orthogonalization steps are performed: after inverting each constraint with lower priority and each constraint with higher priority, a logical AND operation is performed to obtain the second orthogonalization condition, and the second orthogonalization condition is used as the second orthogonal interval.
[0216] A list of second orthogonal intervals is generated based on each second orthogonal interval and its corresponding configuration value.
[0217] According to one or more embodiments of this disclosure, the second processing module includes: a third processing unit and a fourth processing unit; the third processing unit is configured to filter out items with the same configuration interval and the same configuration value corresponding to the configuration interval according to the first orthogonal interval list and the second orthogonal interval list, respectively, to obtain a new first orthogonal interval list and a new second orthogonal interval list; the fourth processing unit is configured to determine the range of interval value changes and the corresponding configuration value change information according to the configuration intervals and the configuration values corresponding to the configuration intervals in the first orthogonal interval list and the configuration intervals and the configuration values corresponding to the configuration intervals in the second orthogonal interval list.
[0218] According to one or more embodiments of this disclosure, the fourth processing unit is specifically used for:
[0219] Merge the configuration intervals with the same configuration value corresponding to the configuration intervals in the new first orthogonal interval list to obtain a first same value interval list. The first same value interval list includes the merged first same value interval and the configuration value corresponding to the first same value interval.
[0220] Merge the configuration intervals with the same configuration value corresponding to the configuration intervals in the new second orthogonal interval list to obtain a second same value interval list. The second same value interval list includes the merged second same value intervals and the configuration values corresponding to the second same value intervals.
[0221] Based on the first list of equal value intervals and the second list of equal value intervals, determine the range of interval value changes and the corresponding configuration value change information.
[0222] According to one or more embodiments of this disclosure, the fourth processing unit is specifically used for:
[0223] Based on the first list of equal value intervals and the second list of equal value intervals, a new and old list of equal value intervals is generated. The new and old list of equal value intervals includes the first equal value interval, the second equal value interval, and the configuration values corresponding to the first and second equal value intervals, respectively.
[0224] Obtain one constraint under each condition dimension from the list of new and old equal value intervals, and perform a logical AND operation on one constraint under each condition dimension as an interval comparison item;
[0225] Based on the list of new and old equal value intervals and each interval comparison item, the range of interval value changes and the corresponding configuration value change information are determined.
[0226] According to one or more embodiments of this disclosure, the fourth processing unit is specifically used for:
[0227] For each interval comparison item, a first configuration value corresponding to the interval comparison item is obtained from the configuration values corresponding to the first same value interval, and a second configuration value corresponding to the interval comparison item is obtained from the configuration values corresponding to the second same value interval.
[0228] Based on the first configuration value and the second configuration value, determine whether the configuration value corresponding to the interval comparison item has changed;
[0229] If a change occurs, the interval comparison item will be used as the range of the interval value change, and the information used to indicate that the first configuration value has been changed to the second configuration value will be used as the configuration value change information.
[0230] According to one or more embodiments of this disclosure,
[0231] The device also includes a third processing module; the third processing module is used for:
[0232] Based on the range of changes in the interval values and the corresponding configuration value change information, determine the items to be tested in the configuration release and their corresponding configuration values;
[0233] The item to be tested and its corresponding configuration value are sent to the configuration release test system, so that the configuration release test system performs configuration release test based on the item to be tested and its corresponding configuration value.
[0234] Thirdly, embodiments of this disclosure provide an electronic device, including: at least one processor, a memory, and a communication interface;
[0235] The communication interface is used to communicate with network devices;
[0236] The memory stores computer-executed instructions;
[0237] The at least one processor executes computer execution instructions stored in the memory, causing the at least one processor to perform the configuration release processing method as described in the first aspect and various possible designs of the first aspect.
[0238] Fourthly, embodiments of this disclosure provide a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, implement the configuration release processing method described in the first aspect and various possible designs of the first aspect.
[0239] Fifthly, embodiments of this disclosure provide a computer program product, including a computer program that, when executed by a processor, implements the configuration release processing method as described in the first aspect and various possible designs of the first aspect.
[0240] The above description is merely a preferred embodiment of this disclosure and an explanation of the technical principles employed. Those skilled in the art should understand that the scope of this disclosure is not limited to technical solutions formed by specific combinations of the above-described technical features, but should also cover other technical solutions formed by arbitrary combinations of the above-described technical features or their equivalents without departing from the above-described concept. For example, technical solutions formed by substituting the above features with (but not limited to) technical features disclosed in this disclosure that have similar functions.
[0241] Furthermore, while the operations are described in a specific order, this should not be construed as requiring these operations to be performed in the specific order shown or in a sequential order. In certain environments, multitasking and parallel processing may be advantageous. Similarly, while several specific implementation details are included in the above discussion, these should not be construed as limiting the scope of this disclosure. Certain features described in the context of individual embodiments may also be implemented in combination in a single embodiment. Conversely, various features described in the context of a single embodiment may also be implemented individually or in any suitable sub-combination in multiple embodiments.
[0242] Although the subject matter has been described using language specific to structural features and / or methodological logic, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. Rather, the specific features and actions described above are merely illustrative examples of implementing the claims.
Claims
1. A configuration release processing method, characterized in that, include: The system retrieves historical configuration items, configuration values corresponding to the historical configuration items, new configuration items, and configuration values corresponding to the new configuration items for the target product. Both the historical configuration items and the new configuration items are configuration items carrying constraints. The configuration values include the configuration values of the constraints. The historical configuration items are used to represent the historical function configurations corresponding to the target product, and the new configuration items are used to represent the new function configurations corresponding to the target product. The new configuration items are configuration items after the historical configuration items have been modified. Based on the logical relationship of the constraints of the historical configuration items, the constraints of the historical configuration items are orthogonalized to obtain a first orthogonal interval list; based on the logical relationship of the constraints of the new configuration items, the constraints of the new configuration items are orthogonalized to obtain a second orthogonal interval list; wherein, both the first orthogonal interval list and the second orthogonal interval list include configuration intervals and configuration values corresponding to the configuration intervals, and the configuration values corresponding to the configuration intervals are the configuration values of the constraints corresponding to the configuration intervals; Based on the configuration intervals in the first orthogonal interval list and the configuration values corresponding to the configuration intervals, and the configuration intervals in the second orthogonal interval list and the configuration values corresponding to the configuration intervals, the range of interval value changes and the corresponding configuration value change information are determined. The range of interval value changes and the corresponding configuration value change information are used to provide test content for the configuration release test system.
2. The method according to claim 1, characterized in that, Before obtaining the first list of orthogonal intervals, the process also includes: Generate a historical configuration tree from the configuration code of the historical configuration item. The historical configuration tree is used to represent the logical relationship of the various constraints of the historical configuration item. Before obtaining the second list of orthogonal intervals, the following is also included: The configuration code of the new configuration item is used to generate a new configuration tree, which is used to represent the logical relationship of the various constraints of the new configuration item.
3. The method according to claim 1, characterized in that, The first orthogonal interval list is obtained by orthogonalizing the constraints of the historical configuration items according to the logical relationship of each constraint, including: Based on the logical relationship between the constraints of the historical configuration items, determine the priority of each constraint. For each of the constraints, the following orthogonalization steps are performed: after inverting each constraint with lower priority and each constraint with higher priority, a logical AND operation is performed to obtain the first orthogonalization condition, and the first orthogonalization condition is used as the first orthogonal interval. Generate a list of the first orthogonal intervals based on each first orthogonal interval and its corresponding configuration value; Accordingly, based on the logical relationship between the constraints of the new configuration item, the constraints of the new configuration item are orthogonalized to obtain a second orthogonal interval list, including: Based on the logical relationship between the constraints of the new configuration item, determine the priority of each constraint. For each of the constraints, the following orthogonalization steps are performed: after inverting each constraint with lower priority and each constraint with higher priority, a logical AND operation is performed to obtain the second orthogonalization condition, and the second orthogonalization condition is used as the second orthogonal interval. A list of second orthogonal intervals is generated based on each second orthogonal interval and its corresponding configuration value.
4. The method according to any one of claims 1-3, characterized in that, The step of determining the range of interval value changes and the corresponding configuration value change information based on the configuration intervals in the first orthogonal interval list and the configuration values corresponding to the configuration intervals, and the configuration intervals in the second orthogonal interval list and the configuration values corresponding to the configuration intervals, includes: Based on the first orthogonal interval list and the second orthogonal interval list, items with the same configuration interval and the same configuration value corresponding to the configuration interval are filtered out respectively to obtain a new first orthogonal interval list and a new second orthogonal interval list; Based on the configuration intervals in the new first orthogonal interval list and the configuration values corresponding to the configuration intervals, and the configuration intervals in the new second orthogonal interval list and the configuration values corresponding to the configuration intervals, determine the range of interval value changes and the corresponding configuration value change information.
5. The method according to claim 4, characterized in that, The step of determining the range of interval value changes and the corresponding configuration value change information based on the configuration intervals in the new first orthogonal interval list and the configuration values corresponding to the configuration intervals, and the configuration intervals in the new second orthogonal interval list and the configuration values corresponding to the configuration intervals, includes: Merge the configuration intervals with the same configuration value corresponding to the configuration intervals in the new first orthogonal interval list to obtain a first same value interval list. The first same value interval list includes the merged first same value interval and the configuration value corresponding to the first same value interval. Merge the configuration intervals with the same configuration value corresponding to the configuration intervals in the new second orthogonal interval list to obtain a second same value interval list. The second same value interval list includes the merged second same value intervals and the configuration values corresponding to the second same value intervals. Based on the first list of equal value intervals and the second list of equal value intervals, determine the range of interval value changes and the corresponding configuration value change information.
6. The method according to claim 5, characterized in that, The constraint condition is at least one condition dimension; the step of determining the range of interval value changes and the corresponding configuration value change information based on the first list of equal value intervals and the second list of equal value intervals includes: Based on the first list of equal value intervals and the second list of equal value intervals, a new and old list of equal value intervals is generated. The new and old list of equal value intervals includes the first equal value interval, the second equal value interval, and the configuration values corresponding to the first and second equal value intervals, respectively. Obtain one constraint under each condition dimension from the list of new and old equal value intervals, and perform a logical AND operation on one constraint under each condition dimension as an interval comparison item; Based on the list of new and old equal value intervals and each interval comparison item, the range of interval value changes and the corresponding configuration value change information are determined.
7. The method according to claim 6, characterized in that, The step of determining the range of interval value changes and the corresponding configuration value change information based on the list of new and old equal value intervals and each interval comparison item includes: For each interval comparison item, a first configuration value corresponding to the interval comparison item is obtained from the configuration values corresponding to the first same value interval, and a second configuration value corresponding to the interval comparison item is obtained from the configuration values corresponding to the second same value interval. Based on the first configuration value and the second configuration value, determine whether the configuration value corresponding to the interval comparison item has changed; If a change occurs, the interval comparison item will be used as the range of the interval value change, and the information used to indicate that the first configuration value has been changed to the second configuration value will be used as the configuration value change information.
8. The method according to claim 1, characterized in that, The method further includes: Based on the range of changes in the interval values and the corresponding configuration value change information, determine the items to be tested in the configuration release and their corresponding configuration values; The item to be tested and its corresponding configuration value are sent to the configuration release test system, so that the configuration release test system performs configuration release test based on the item to be tested and its corresponding configuration value.
9. A configuration publishing processing apparatus, characterized in that, include: The acquisition module is used to acquire historical configuration items, configuration values corresponding to the historical configuration items, new configuration items, and configuration values corresponding to the new configuration items for the target product. The historical configuration items and the new configuration items are both configuration items carrying constraints. The configuration values include the configuration values of the constraints. The historical configuration items are used to represent the historical function configurations corresponding to the target product. The new configuration items are used to represent the new function configurations corresponding to the target product. The new configuration items are configuration items after the historical configuration items have been modified. The first processing module is used to orthogonalize each constraint of the historical configuration item according to the logical relationship of each constraint of the historical configuration item, so as to obtain a first orthogonal interval list. Based on the logical relationship of the constraints of the new configuration item, the constraints of the new configuration item are orthogonalized to obtain a second orthogonal interval list; wherein, both the first orthogonal interval list and the second orthogonal interval list include configuration intervals and configuration values corresponding to the configuration intervals, and the configuration values corresponding to the configuration intervals are the configuration values of the constraints corresponding to the configuration intervals; The second processing module is used to determine the range of interval value changes and the corresponding configuration value change information based on the configuration intervals in the first orthogonal interval list and the configuration values corresponding to the configuration intervals, and the configuration intervals in the second orthogonal interval list and the configuration values corresponding to the configuration intervals. The range of interval value changes and the corresponding configuration value change information are used to provide test content for the configuration release test system.
10. An electronic device, characterized in that, include: At least one processor, memory, and communication interface; The communication interface is used to communicate with network devices; The memory stores computer-executed instructions; The at least one processor executes computer execution instructions stored in the memory, causing the at least one processor to perform the configuration release processing method as described in any one of claims 1 to 8.
11. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer-executable instructions, which, when executed by a processor, implement the configuration release processing method as described in any one of claims 1 to 8.
12. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the configuration release processing method as described in any one of claims 1-8.
Citation Information
Patent Citations
Test case generating method and device, computer equipment and storage medium
CN107992409A
