State determination method and device, equipment and storage medium

By obtaining and utilizing the associated configuration information and status information of the target test function in the software system, the functional status of the target test function is solved, and the problem of difficulty in effectively determining the effective status of the test function in the prior art is realized, and the test function takes effect according to conditions is ensured, ensuring application performance and user experience.

CN119557195APending Publication Date: 2025-03-04BEIJING ZITIAO NETWORK TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311091266.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-08-28
Publication Date
2025-03-04

AI Technical Summary

Technical Problem

It is difficult for existing software systems to effectively determine the effective status of the target test function in functional testing, resulting in abnormal problems caused by the status of the associated object that does not meet the requirements, affecting application performance and user experience.

Method used

By obtaining the target correlation configuration information corresponding to the target test function in the software system, determining the status information of the source object, and determining the functional status information of the target test function using the status association method, the test function can have the ability to take effect according to conditions.

Benefits of technology

By presetting the state correlation method of the target test function and the source object, we can avoid abnormal problems caused by the status of the associated object corresponding to the target test function that does not meet the requirements, ensure application performance, and avoid damage to user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119557195A_ABST
    Figure CN119557195A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses a state determination method and device, equipment and a storage medium, and relates to the technical field of computers. The method comprises the steps that target association configuration information corresponding to a target test function in a software system is obtained, the target association configuration information comprises the target test function and a state association mode of a source object, source object state information of the source object is determined, and the source object state information is used for representing whether the source object is in an effective state or not; the effective state indicates that configuration is successful in the software system, function state information of the target test function is determined according to the source object state information in a state association mode, and the function state information is used for indicating whether the target test function is in the effective state or not. By adopting the technical scheme, the test function can have the capability of taking effect according to conditions, the problem of abnormality caused by the fact that the state of the associated object corresponding to the target test function does not meet the requirement of the target test function is avoided, and the performance of the application program is ensured.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present disclosure relate to the field of computer technology, and in particular to a state determination method, apparatus, device, and storage medium. Background Art

[0002] In the functional testing of software systems, two (such as A and B) or more (such as A, B, ..., N) execution strategies are generally set for pages or processes in web pages (Web) or applications (Application, APP) (each execution strategy can correspond to a group), and user groups with the same or similar components are allowed to use these execution strategies. User experience data and business data of each group are collected, and finally the optimal execution strategy is selected after analysis and evaluation and formally adopted. Summary of the invention

[0003] The embodiments of the present disclosure provide a state determination method, apparatus, device, and storage medium, which can optimize the existing state determination solution based on the test function.

[0004] In a first aspect, an embodiment of the present disclosure provides a state determination method, including:

[0005] Obtaining target association configuration information corresponding to a target test function in a software system, wherein the target association configuration information includes a state association mode between the target test function and a source object;

[0006] Determine source object status information of the source object, wherein the source object status information is used to indicate whether the source object is in a valid state, and the valid state is used to indicate that the source object has been successfully configured in the software system;

[0007] The state association method is used to determine the functional state information of the target test function according to the source object state information, wherein the functional state information is used to indicate whether the target test function is in an effective state.

[0008] In a second aspect, the embodiment of the present disclosure further provides a state determination device, including:

[0009] An association configuration acquisition module is used to acquire target association configuration information corresponding to a target test function in a software system, wherein the target association configuration information includes a state association mode between the target test function and a source object;

[0010] A first state determination module, used to determine source object state information of the source object, wherein the source object state information is used to indicate whether the source object is in a valid state, and the valid state is used to indicate that the source object has been successfully configured in the software system;

[0011] The second state determination module is used to determine the functional state information of the target test function according to the source object state information by using the state association method, wherein the functional state information is used to indicate whether the target test function is in an effective state.

[0012] In a third aspect, an embodiment of the present disclosure further provides an electronic device, the electronic device comprising:

[0013] one or more processors;

[0014] a storage device for storing one or more programs,

[0015] When the one or more programs are executed by the one or more processors, the one or more processors implement the state determination method provided by the embodiment of the present disclosure.

[0016] In a fourth aspect, an embodiment of the present disclosure further provides a storage medium containing computer executable instructions, which, when executed by a computer processor, are used to execute the state determination method provided by an embodiment of the present disclosure.

[0017] The state determination scheme provided by the embodiment of the present disclosure obtains the target association configuration information corresponding to the target test function in the software system, wherein the target association configuration information includes the state association method of the target test function and the source object, determines the source object state information of the source object, wherein the source object state information is used to indicate whether the source object is in an effective state, and the effective state is used to indicate that it has been successfully configured in the software system, and utilizes the state association method to determine the functional state information of the target test function according to the source object state information, wherein the functional state information is used to indicate whether the target test function is in an effective state. By adopting the above technical scheme, the test function can be enabled to have the ability to take effect according to conditions, and by presetting the state association method of the target test function and the source object, it is possible to avoid the problem of abnormality caused by the state of the associated object corresponding to the target test function not meeting the requirements of the target test function, thereby ensuring the performance of the application and avoiding damage to the user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the accompanying drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and the originals and elements are not necessarily drawn to scale.

[0019] Figure 1 A flow chart of a state determination method provided by an embodiment of the present disclosure;

[0020] Figure 2A flowchart of another state determination method provided by an embodiment of the present disclosure;

[0021] Figure 3 A schematic diagram of the structure of a state determination device provided by an embodiment of the present disclosure;

[0022] Figure 4 A schematic diagram of the structure of an electronic device provided by an embodiment of the present disclosure. DETAILED DESCRIPTION

[0023] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments described herein, which are instead provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.

[0024] It should be understood that the various steps described in the method embodiments of the present disclosure may be performed in different orders and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present disclosure is not limited in this respect.

[0025] The term "including" and its variations used herein are open inclusions, i.e., "including but not limited to". The term "based on" means "based at least in part 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". The relevant definitions of other terms will be given in the following description.

[0026] It should be noted that the concepts such as "first" and "second" mentioned in the present disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.

[0027] It should be noted that the modifications of "one" and "plurality" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".

[0028] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.

[0029] It is understandable that before using the technical solutions disclosed in the embodiments of the present disclosure, the types, scope of use, usage scenarios, etc. of the personal information involved in the present disclosure should be informed to the user and the user's authorization should be obtained in an appropriate manner in accordance with relevant laws and regulations.

[0030] For example, in response to receiving an active request from a user, a prompt message is sent to the user to clearly prompt the user that the operation requested to be performed will require obtaining and using the user's personal information. Thus, the user can autonomously choose whether to provide personal information to software or hardware such as an electronic device, application, server, or storage medium that performs the operation of the technical solution of the present disclosure according to the prompt message.

[0031] As an optional but non-limiting implementation, in response to receiving an active request from the user, the prompt information may be sent to the user in the form of a pop-up window, in which the prompt information may be presented in text form. In addition, the pop-up window may also carry a selection control for the user to choose "agree" or "disagree" to provide personal information to the electronic device.

[0032] It is understandable that the above notification and the process of obtaining user authorization are merely illustrative and do not constitute a limitation on the implementation of the present disclosure. Other methods that meet the relevant laws and regulations may also be applied to the implementation of the present disclosure.

[0033] It is understandable that the data involved in this technical solution (including but not limited to the data itself, the acquisition or use of the data) shall comply with the requirements of relevant laws, regulations and relevant provisions.

[0034] Figure 1 A flow chart of a state determination method provided in an embodiment of the present disclosure is provided. The embodiment of the present disclosure is applicable to the situation of state determination. The method can be executed by a state determination device, which can be implemented in the form of software and / or hardware. Optionally, it can be implemented by an electronic device. The electronic device can be a mobile terminal such as a mobile phone, a smart watch, a tablet computer, and a personal digital assistant, or it can be a personal computer (PC) or a server.

[0035] like Figure 1 As shown, the method includes:

[0036] Step 101: Obtain target association configuration information corresponding to a target test function in a software system, wherein the target association configuration information includes a state association manner between the target test function and a source object.

[0037] For example, with the rapid development of terminal technology and computer technology, more and more applications can be run on terminals, and the functions of the applications are becoming more and more numerous. Application functions can be understood as functions that can be implemented in applications, such as video playback functions, video playback control display functions, and video hard coding functions. The specific application functions may be related to the specific type of application and actual business needs, and the embodiments of the present disclosure do not limit them. The software system can be understood as a system that loads applications.

[0038] For example, when the application developer has a need to upgrade or add application functions to the application, in order to find a better way to implement the application function, functional testing (such as AB testing, also known as ABTest or control experiment, etc.) is often used for testing. Usually, a functional test corresponds to an application function in the application, which can be recorded as a test function. A test function needs to include at least two different execution strategies for the application function to be tested. The execution strategy can be understood as the implementation logic of the test function. Taking the upgrade of application functions as an example, assuming that the application function to be upgraded is the image display function in a certain page, the original display style is style A, and the newly designed display style is style B. Functional testing is needed to determine whether style B is better than style A, so as to determine whether to retain the original style or upgrade to the new style. The test function needs to include an execution strategy for displaying in style A and an execution strategy for displaying in style B.

[0039] Exemplarily, during the test, the application (which can also be understood as the client) needs to rely on the remote policy parameter value sent by the server to determine which execution strategy is needed to implement the current application function to be implemented. For example, in the above example, it is necessary to determine whether to use style A or style B to display the image to be displayed based on the remote policy parameter value. Among them, the remote policy parameter value may include, for example, a policy identifier of the execution policy. The server can usually determine the test function diversion result of the application based on parameters corresponding to the application, such as user identification, device identification or client address, that is, determine the remote policy parameter value, and send the remote policy parameter value to the application.

[0040] Exemplarily, the test environment of the test function involves many factors, and the test environment can also be understood as the operating environment of the application to which the test function belongs, for example, including software factors and / or hardware factors. Among them, software factors may include, for example, the operating system or environment in which the application runs, such as Android operating system, Windows Phone (WP) operating system, Windows operating system, Apple (iOS, macOS or OS X) operating system or web page (Web), etc. In addition, the same operating system may also have version differences. Hardware factors may include the hardware configuration of the electronic device loaded by the application, such as processor, memory, camera or sensor, etc., and the application functions supported by different models of hardware may also be different. Because the electronic devices used by users are diverse, the test environment is also diverse.

[0041] Whether a certain execution strategy in the test function can be executed normally and accurate test data can be obtained may be affected by the test environment. In the related technology, the server does not consider the test environment when determining the remote policy parameter value. For example, a certain operating system version 9.0 and above supports a new rendering language, while the operating system version below 9.0 does not support the rendering language. If the server determines the remote policy parameter value of an application running in the 8.0 version of the operating system, and issues the remote policy parameter value corresponding to the execution strategy that needs to use the above-mentioned new rendering language, it will cause the test function to be unable to be performed in the application, making it difficult to obtain test data, and it is easy to cause the application to run abnormally, affecting the user experience.

[0042] For example, an application developer may also need to perform functional testing on multiple application functions in an application at the same time. In the related art, the setting of each execution strategy in different test functions is performed independently, that is, only the execution strategy contained in a single test function is set. When the server determines the remote policy parameter value of a certain test function, it will not consider what execution strategy is adopted by other test functions. Therefore, it may lead to incompatibility of execution strategies between different test functions, making it difficult to obtain test data, and easily causing abnormal operation of the application, affecting the user experience.

[0043] In the disclosed embodiment, corresponding association configuration information can be pre-set for the test function, and the association configuration information includes the state association mode of the target test function and the source object. The state association mode can be understood as the association relationship between the state information of the target test function (which can be recorded as function state information) and the state information of the source object (which can be recorded as source object state information). The state information can be used to indicate whether it is in an effective state, and the value can include an effective state and an invalid state. The effective state is used to indicate that it has been successfully configured in the software system, and the invalid state is used to indicate that it has not been successfully configured in the software system. For example, the state association mode can be the association relationship between whether the target test function is in an effective state and whether the source object is in an effective state. Optionally, the source object includes a preset test function and / or a test environment for the target test function. The preset test function can be understood as a test function in the application that is different from the target test function.

[0044] For example, for the test function of an application, the effective state can be understood as being able to implement the test function by using the remote policy parameter value in the application; the invalid state can be understood as being unable to implement the test function by using the remote policy parameter value in the application. For the test environment, the effective state can be understood as the test environment meeting the preset requirements; the invalid state can be understood as the test environment not meeting the preset requirements. Among them, the preset requirements can be related to the execution policy corresponding to the remote policy parameter value of the test function. For example, if the execution policy corresponding to the remote policy parameter value of the test function requires that the system version is greater than 9.0, then the preset requirement can be that the system version is greater than 9.0.

[0045] Step 102: Determine source object status information of the source object, wherein the source object status information is used to indicate whether the source object is in a valid state, and the valid state is used to indicate that the source object has been successfully configured in the software system.

[0046] Exemplarily, the source object status information may be local preset information in the application, or remotely sent information dynamically sent by the server, and the specific determination method is not limited.

[0047] Optionally, if the source object is a preset test function, the target test function can be recorded as the first target test function, and the preset test function corresponding to the first target test function can be recorded as the second target test function. By obtaining the target association configuration information corresponding to the second target test function, it is determined whether the second target test function is in effect, and then the source object status information of the second target test function is determined. Similarly, there may be multiple test functions that are associated in sequence, and it is determined in an iterative manner whether each test function is in effect, and finally the source object status information of the source object corresponding to the first target test function is determined.

[0048] For example, an execution strategy in test function 1 requires the use of high dynamic range imaging (HDR) to display images, and an execution strategy in test function 2 requires the use of a preset rendering language. The preset rendering language requires the operating system to be above version 9.0, and HDR needs to rely on the preset rendering language. When performing test function 1, first determine whether test function 2 is effective. When determining whether test 2 is effective, you need to first determine whether the test environment is effective, that is, whether the operating system is above version 9.0.

[0049] Step 103: Determine the functional status information of the target test function according to the source object status information by using the status association method, wherein the functional status information is used to indicate whether the target test function is in an effective state.

[0050] Exemplarily, after determining the source object status information, it can be determined whether the source object is in an effective state. By using the status association method, it can be obtained whether the target test function is in an effective state, that is, the functional status information of the target test function is obtained.

[0051] The state determination method provided by the embodiment of the present disclosure obtains the target association configuration information corresponding to the target test function in the software system, wherein the target association configuration information includes the state association method of the target test function and the source object, determines the source object state information of the source object, wherein the source object state information is used to indicate whether the source object is in an effective state, and the effective state is used to indicate that it has been successfully configured in the software system, and uses the state association method to determine the functional state information of the target test function according to the source object state information, wherein the functional state information is used to indicate whether the target test function is in an effective state. By adopting the above technical scheme, the test function can be enabled to have the ability to take effect according to conditions, and by presetting the state association method of the target test function with the source object, it is possible to avoid the problem of abnormality caused by the state of the associated object corresponding to the target test function not meeting the requirements of the target test function, thereby ensuring the performance of the application and avoiding damage to the user experience.

[0052] In some embodiments, the state association method includes an association condition and a preset state; the use of the state association method to determine the functional state information of the target test function according to the source object state information includes: judging whether the source object state information meets the association condition, and if so, determining that the functional state information of the target test function is the preset state, wherein the preset state is an effective state or an invalid state. In this way, the functional state information of the target test function can be determined quickly and accurately.

[0053] In some embodiments, after determining whether the source object status information satisfies the association condition, it further includes: if not, determining that the functional status information of the target test function is the real state corresponding to the target test function, wherein the real state is independent of the source object status information, and the real state is an effective state or an invalid state. Thus, when the source object status information does not satisfy the association condition, the corresponding actual value can be determined according to the target test function's own situation, thereby more flexibly determining whether the target test function is effective.

[0054] Exemplarily, the real status may be local preset information in the application, or remotely sent information dynamically sent by the server, and the specific determination method is not limited.

[0055] In some embodiments, the state association method includes at least one of the following: the association condition is that the source object is in an invalid state, and the preset state is an invalid state; the association condition is that the source object is in an effective state, and the preset state is an invalid state; the association condition is that the source object is in an effective state, and the preset state is an effective state; the association condition is that the source object is in an invalid state, and the preset state is an effective state. In this way, the state association relationship between the target object and the source object can be set more flexibly, the test effect can be improved, and the application performance can be guaranteed.

[0056] Exemplarily, assuming that the association condition is that the source object is in an invalid state and the preset state is an invalid state, it can be determined whether the source object is in an invalid state. If so, the association condition is met, and the target AB experiment is directly determined to be in an invalid state. If not, the functional status information of the target test function is determined to be the actual state corresponding to the target test function.

[0057] In some embodiments, the acquisition of target association configuration information corresponding to the target test function includes: in response to the target test function being triggered, acquiring the target association configuration information corresponding to the target test function. Wherein, after the state association method is used to determine the functional state information of the target test function according to the source object state information, it also includes: when it is determined that the target test function is in an effective state according to the functional state information, determining that the remote policy parameter value corresponding to the target test function is a valid value; selecting a first target code corresponding to the remote policy parameter value from a preset code set corresponding to the target test function, wherein the preset code set includes codes of multiple different execution strategies corresponding to the target test function; executing the first target code to implement the target test function. Thus, after the target test function is triggered, the implementation method of the target test function can be quickly and accurately determined. If the target test function is in an effective state, the remote policy parameter value can be considered to be a valid value. The target test function is implemented by selecting the corresponding target code and executing the code to ensure the performance of the target application.

[0058] Optionally, before obtaining the target associated configuration information corresponding to the target test function of the target test function, it also includes: obtaining the remote policy parameter value corresponding to the target test function issued by the server. Exemplarily, the remote policy parameter value can be issued by the server in real time; or, after the application is started, a configuration request is sent to the server, and response data returned by the server is received, the remote policy parameter value is included in the response data, the remote policy parameter value is obtained from the response data, and the remote policy parameter value is stored in the test function local configuration set, the test function local configuration set includes the remote policy parameter values ​​corresponding to different application functions in the application, and when it is necessary to obtain the remote policy parameter value, the remote policy parameter value corresponding to the target test function is obtained from the test function local configuration set.

[0059] In some embodiments, after determining the functional status information of the target test function according to the source object status information by using the state association method, the method further includes: determining that the remote policy parameter value corresponding to the target test function is a failure value when the target test function is determined to be in a failure state according to the functional status information; selecting a second target code corresponding to the preset policy parameter value from the target test function preset code set; and executing the second target code to implement the target test function. Thus, when the remote policy parameter value is a failure value, the target test function can be implemented by executing the second target code corresponding to the preset policy parameter value, thereby ensuring the normal implementation of the application function in the application.

[0060] Exemplarily, the preset policy parameter value may be a policy identifier corresponding to the default execution policy of the target test function. Taking the upgrade application function in the previous text as an example, assuming that the remote policy parameter value sent by the server is the policy identifier of the execution policy displayed in style B, and the target test function is determined to be in an invalid state according to the function status information, then the remote policy parameter value is an invalid value, and style B will not be used for display. The target test function cannot be performed according to the remote policy parameter value in the application program of the device. The preset policy parameter value may be the policy identifier of the execution policy displayed in style A. Then, the image can be displayed by executing the code corresponding to the execution policy displayed in style A to ensure the normal display of the image.

[0061] Figure 2 This is a flow chart of another state determination method provided by an embodiment of the present disclosure. The embodiment of the present disclosure is optimized based on each optional solution in the above embodiment. Specifically, the method includes the following steps:

[0062] Step 201: In response to a target test function being triggered, a remote policy parameter value corresponding to the target test function issued by a server is obtained.

[0063] Optionally, the remote policy parameter value corresponding to the target test function sent by the server can be pre-acquired and stored locally, and in response to the target test function being triggered, the remote policy parameter value is acquired locally. For example, the AB data structure corresponding to different application functions in the application is stored in the AB test local configuration set (which can be recorded as AB map), and the AB data structure may include the remote policy parameter value. The remote policy parameter value corresponding to the target test function is acquired by reading the AB data structure.

[0064] Step 202 , determine whether there is corresponding target association configuration information for the target test function. If so, execute step 203 ; otherwise, execute step 207 .

[0065] Exemplarily, the declaration code of the association configuration information may be included in the installation package of the application program, and the association relationship between the objects may be set in a declarative manner.

[0066] For example, one implementation form of the declaration code may be:

[0067] TEABKeyPredicate(sourceABKey, targetABKey, TEABPredicateFunc)

[0068] Among them, TEABKeyPredicate represents the declaration of association configuration information; sourceABKey represents the test function as the source object; targetABKey represents the target test function; TEABPredicateFunc represents the state association method, which can be a specific association function. Optionally, if the source object is a test environment, the above declaration code can be reused, sourceABKey can be empty, and the test environment as the source object can be reflected in the state association method.

[0069] Exemplarily, each association configuration information may be traversed to determine whether it contains association configuration information with the target test function as the targetABKey. If so, the association configuration information is determined as the target association configuration information corresponding to the target test function.

[0070] Step 203: Obtain target association configuration information corresponding to the target test function.

[0071] Step 204: Determine source object status information of the source object in the target association configuration information.

[0072] Step 205 , determine whether the source object state information satisfies the association condition in the state association mode in the target association configuration information. If so, execute step 206 ; otherwise, execute step 207 .

[0073] Step 206 , determine that the functional status information of the target test function is a preset status, and execute step 208 .

[0074] Step 207: Determine that the functional status information of the target test function is the real status corresponding to the target test function.

[0075] Exemplarily, steps 204 to 207 may be implemented by calling the above-mentioned association function TEABPredicateFunc, and the association function returns the functional status information of the target test function.

[0076] Step 208 , determine whether the target test function is in an effective state according to the function status information, if so, execute step 209 ; otherwise, execute step 210 .

[0077] Step 209: determine that the remote policy parameter value corresponding to the target test function is a valid value, select a first target code corresponding to the remote policy parameter value from a preset code set corresponding to the target test function, and execute the first target code to implement the target test function.

[0078] Step 210: determine that the remote policy parameter value corresponding to the target test function is an invalid value, select a second target code corresponding to the preset policy parameter value from the preset code set corresponding to the target test function, and execute the second target code to implement the target test function.

[0079] The state determination method provided by the embodiment of the present disclosure first obtains the remote policy parameter value after the target test function is triggered, and then determines whether there is target associated configuration information for the target test function. If not, the target object state information can be directly determined according to the actual state of the target test function itself. If so, the target object state information is determined according to the source object state information of the source object in the target associated configuration information and the state association method. According to the target object state information, it is determined whether the remote policy parameter value is a valid value. If it is a valid value, the execution policy code corresponding to the remote policy parameter value can be directly executed to realize the target test function. If it is an invalid value, the execution policy code corresponding to the preset policy parameter value can be executed to ensure the normal implementation of the application function corresponding to the target test function, so that the test function can have the ability to take effect according to conditions. By pre-setting the state association method of the target test function and the source object, it is possible to avoid abnormal problems caused by the remote policy parameter value issued not being consistent with the actual operating status of the device or application, thereby ensuring application performance and avoiding damage to user experience.

[0080] Figure 3 A schematic diagram of a state determination device provided by an embodiment of the present disclosure is shown in FIG. Figure 3 As shown, the device comprises:

[0081] The association configuration acquisition module 301 is used to acquire target association configuration information corresponding to the target test function in the software system, wherein the target association configuration information includes the state association mode between the target test function and the source object;

[0082] A first state determination module 302, configured to determine source object state information of the source object, wherein the source object state information is used to indicate whether the source object is in a valid state, and the valid state is used to indicate that the source object has been successfully configured in the software system;

[0083] The second state determination module 303 is used to determine the functional state information of the target test function according to the source object state information by using the state association method, wherein the functional state information is used to indicate whether the target test function is in an effective state.

[0084] The state determination device provided by the embodiment of the present disclosure obtains the target association configuration information corresponding to the target test function in the software system, wherein the target association configuration information includes the state association method of the target test function and the source object, determines the source object state information of the source object, wherein the source object state information is used to indicate whether the source object is in an effective state, and the effective state is used to indicate that it has been successfully configured in the software system, and uses the state association method to determine the target test function function state information of the target test function according to the source object state information, wherein the function state information is used to indicate whether the target test function is in an effective state. By adopting the above technical scheme, the test function can be enabled to have the ability to take effect according to conditions, and by presetting the state association method of the target test function and the source object, it is possible to avoid the problem of abnormality caused by the state of the associated object corresponding to the target test function not meeting the requirements of the target test function, thereby ensuring the performance of the application and avoiding damage to the user experience.

[0085] Optionally, the source object includes a test environment of a preset test function and / or the target test function.

[0086] Optionally, the state association method includes an association condition and a preset state; and the second state determination module includes:

[0087] An association condition judgment unit, used to judge whether the source object state information satisfies the association condition;

[0088] The first state determination unit is used to determine that the functional state information of the target test function is the preset state when the source object state information meets the association condition, wherein the preset state is an effective state or an invalid state, and the invalid state is used to indicate that the configuration in the software system is not successful.

[0089] Optionally, the second state determination module includes:

[0090] A second state determination unit is used to determine whether the source object state information satisfies the association condition after judging whether the source object state information satisfies the association condition, and if the source object state information does not satisfy the association condition, determine that the functional state information of the target test function is a real state corresponding to the target test function, wherein the real state is independent of the source object state information, and the real state is an effective state or an invalid state.

[0091] Optionally, the state association method includes at least one of the following:

[0092] The association condition is that the source object is in an invalid state, and the preset state is the invalid state;

[0093] The association condition is that the source object is in a valid state, and the preset state is an invalid state;

[0094] The association condition is that the source object is in an effective state, and the preset state is the effective state;

[0095] The association condition is that the source object is in an invalid state, and the preset state is a valid state.

[0096] Optionally, the association configuration acquisition module is specifically used to: in response to a target test function being triggered, acquire target association configuration information corresponding to the target test function;

[0097] Wherein, the device further comprises:

[0098] A valid value determination module, for determining, after determining the functional state information of the target test function according to the source object state information by using the state association method, and in the case where it is determined according to the functional state information that the target test function is in an effective state, determining that the remote policy parameter value corresponding to the target test function is a valid value;

[0099] A first code selection module, used to select a first target code corresponding to the remote strategy parameter value from a preset code set corresponding to the target test function, wherein the preset code set includes codes of multiple different execution strategies corresponding to the target test function;

[0100] The first code execution module is used to execute the first target code to implement the target test function.

[0101] Optionally, the device further comprises:

[0102] A failure value determination module, for determining, after determining the functional state information of the target test function according to the source object state information by using the state association method, a remote policy parameter value corresponding to the target test function as a failure value when it is determined according to the functional state information that the target test function is in a failure state;

[0103] A second code selection module, used to select a second target code corresponding to a preset strategy parameter value from a preset code set corresponding to the target test function;

[0104] The second code execution module is used to execute the second target code to implement the target test function.

[0105] The state determination device provided in the embodiments of the present disclosure can execute the state determination method provided in any embodiment of the present disclosure, and has the corresponding functional modules and beneficial effects of the execution method.

[0106] It is worth noting that the various units and modules included in the above-mentioned device are only divided according to functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be achieved; in addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the protection scope of the embodiments of the present disclosure.

[0107] Figure 4 This is a schematic diagram of the structure of an electronic device provided by an embodiment of the present disclosure. Figure 4 , which shows an electronic device (eg, Figure 4 The terminal device in the embodiment of the present disclosure may include but is not limited to mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 4 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.

[0108] like Figure 4 As shown, the electronic device 400 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 401, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 402 or a program loaded from a storage device 408 into a random access memory (RAM) 403. In the RAM 403, various programs and data required for the operation of the electronic device 400 are also stored. The processing device 401, the ROM 402, and the RAM 403 are connected to each other via a bus 404. An edit / output (I / O) interface 405 is also connected to the bus 404.

[0109] Typically, the following devices may be connected to the I / O interface 405: an input device 406 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 407 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 408 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 409. The communication device 409 may allow the electronic device 400 to communicate with other devices wirelessly or by wire to exchange data. Although Figure 4 The electronic device 400 is shown with various devices, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead.

[0110] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a non-transitory computer-readable medium, and the computer program contains program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication device 409, or installed from the storage device 408, or installed from the ROM 402. When the computer program is executed by the processing device 401, the above-mentioned functions defined in the method of the embodiment of the present disclosure are executed.

[0111] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.

[0112] The electronic device provided by the embodiment of the present disclosure and the state determination method provided by the above embodiment belong to the same inventive concept. The technical details not fully described in this embodiment can be referred to the above embodiment, and this embodiment has the same beneficial effects as the above embodiment.

[0113] An embodiment of the present disclosure provides a computer storage medium on which a computer program is stored. When the program is executed by a processor, the state determination method provided in the above embodiment is implemented.

[0114] An embodiment of the present disclosure provides a computer program product, including a computer program, which implements the state determination method provided in the above embodiment when executed by a processor.

[0115] It should be noted that the computer-readable medium disclosed above may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, device or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. The computer readable signal medium may also be any computer readable medium other than a computer readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.

[0116] In some embodiments, the client and the server may communicate using any currently known or future developed network protocol such as HTTP (HyperText Transfer Protocol), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or future developed network.

[0117] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.

[0118] The above-mentioned computer-readable medium carries one or more programs. When the above-mentioned one or more programs are executed by the electronic device, the electronic device: obtains target association configuration information corresponding to the target test function in the software system, wherein the target association configuration information includes the state association method between the target test function and the source object; determines the source object state information of the source object, wherein the source object state information is used to indicate whether the source object is in an effective state, and the effective state is used to indicate that it has been successfully configured in the software system; utilizes the state association method to determine the functional state information of the target test function according to the source object state information, wherein the functional state information is used to indicate whether the target test function is in an effective state.

[0119] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages ​​or a combination thereof, including, but not limited to, object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate 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 a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).

[0120] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0121] The units involved in the embodiments described in the present disclosure may be implemented by software or hardware. The name of a module does not limit the module itself in some cases. For example, the association configuration acquisition module may also be described as "a module for acquiring target association configuration information corresponding to a target test function in a software system, wherein the target association configuration information includes the state association method between the target test function and the source object".

[0122] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), and the like.

[0123] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0124] According to one or more embodiments of the present disclosure, a state determination method is provided, including:

[0125] Obtaining target association configuration information corresponding to a target test function in a software system, wherein the target association configuration information includes a state association mode between the target test function and a source object;

[0126] Determine source object status information of the source object, wherein the source object status information is used to indicate whether the source object is in a valid state, and the valid state is used to indicate that the source object has been successfully configured in the software system;

[0127] The state association method is used to determine the functional state information of the target test function according to the source object state information, wherein the functional state information is used to indicate whether the target test function is in an effective state.

[0128] According to one or more embodiments of the present disclosure, the source object includes a preset test function and / or a test environment of the target test function.

[0129] According to one or more embodiments of the present disclosure, the state association method includes an association condition and a preset state; the method of using the state association method to determine the functional state information of the target test function according to the source object state information includes:

[0130] Determine whether the source object status information satisfies the association condition. If so, determine that the functional status information of the target test function is the preset state, wherein the preset state is an effective state or an invalid state, and the invalid state is used to indicate that the configuration in the software system is not successful.

[0131] According to one or more embodiments of the present disclosure, after determining whether the source object state information satisfies the association condition, the method further includes:

[0132] If not, it is determined that the functional status information of the target test function is the real status corresponding to the target test function, wherein the real status is independent of the source object status information, and the real status is an effective status or an invalid status.

[0133] According to one or more embodiments of the present disclosure, the state association method includes at least one of the following:

[0134] The association condition is that the source object is in an invalid state, and the preset state is the invalid state;

[0135] The association condition is that the source object is in a valid state, and the preset state is an invalid state;

[0136] The association condition is that the source object is in an effective state, and the preset state is the effective state;

[0137] The association condition is that the source object is in an invalid state, and the preset state is a valid state.

[0138] According to one or more embodiments of the present disclosure, the step of obtaining target association configuration information corresponding to the target test function includes:

[0139] In response to a target test function being triggered, obtaining target association configuration information corresponding to the target test function;

[0140] Wherein, after determining the function state information of the target test function according to the source object state information by using the state association method, the method further includes:

[0141] In the case where it is determined according to the function status information that the target test function is in an effective state, determining that a remote policy parameter value corresponding to the target test function is a valid value;

[0142] Selecting a first target code corresponding to the remote strategy parameter value from a preset code set corresponding to the target test function, wherein the preset code set includes codes of multiple different execution strategies corresponding to the target test function;

[0143] Execute the first target code to implement the target test function.

[0144] According to one or more embodiments of the present disclosure, after determining the function state information of the target test function according to the source object state information by using the state association method, the method further includes:

[0145] In the case where it is determined according to the function status information that the target test function is in a failed state, determining that a remote strategy parameter value corresponding to the target test function is a failed value;

[0146] Selecting a second target code corresponding to a preset policy parameter value from the preset code set;

[0147] Execute the second target code to implement the target test function.

[0148] According to one or more embodiments of the present disclosure, there is provided a state determination device, including:

[0149] An association configuration acquisition module is used to acquire target association configuration information corresponding to a target test function in a software system, wherein the target association configuration information includes a state association mode between the target test function and a source object;

[0150] A first state determination module, used to determine source object state information of the source object, wherein the source object state information is used to indicate whether the source object is in a valid state, and the valid state is used to indicate that the source object has been successfully configured in the software system;

[0151] The second state determination module is used to determine the functional state information of the target test function according to the source object state information by using the state association method, wherein the functional state information is used to indicate whether the target test function is in an effective state.

[0152] According to one or more embodiments of the present disclosure, an electronic device is provided, the electronic device comprising:

[0153] one or more processors;

[0154] a storage device for storing one or more programs,

[0155] When the one or more programs are executed by the one or more processors, the one or more processors implement the state determination method provided by the embodiment of the present disclosure.

[0156] According to one or more embodiments of the present disclosure, a storage medium containing computer executable instructions is provided. When the computer executable instructions are executed by a computer processor, the state determination method provided by the embodiment of the present disclosure is executed.

[0157] The above description is only a preferred embodiment of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of disclosure involved in the present disclosure is not limited to the technical solutions formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above disclosed concept. For example, the above features are replaced with the technical features with similar functions disclosed in the present disclosure (but not limited to) by each other to form a technical solution.

[0158] In addition, although each operation is described in a specific order, this should not be understood as requiring these operations to be performed in the specific order shown or in a sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although some specific implementation details are included in the above discussion, these should not be interpreted as limiting the scope of the present disclosure. Some features described in the context of a separate embodiment can also be implemented in a single embodiment in combination. On the contrary, the various features described in the context of a single embodiment can also be implemented in multiple embodiments individually or in any suitable sub-combination mode.

[0159] Although the subject matter has been described in language specific to structural features and / or methodological logical actions, 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. On the contrary, the specific features and actions described above are merely example forms of implementing the claims.

Claims

1. A state determination method, characterized in that: include: Obtaining target association configuration information corresponding to a target test function in a software system, wherein the target association configuration information includes a state association mode between the target test function and a source object; Determine source object status information of the source object, wherein the source object status information is used to indicate whether the source object is in a valid state, and the valid state is used to indicate that the source object has been successfully configured in the software system; The state association method is used to determine the functional state information of the target test function according to the source object state information, wherein the functional state information is used to indicate whether the target test function is in an effective state.

2. The method according to claim 1, characterized in that The source object includes a preset test function and / or a test environment of the target test function.

3. The method according to claim 1, characterized in that The state association method includes an association condition and a preset state; the state association method is used to determine the functional state information of the target test function according to the source object state information, including: Determine whether the source object status information satisfies the association condition. If so, determine that the functional status information of the target test function is the preset state, wherein the preset state is an effective state or an invalid state, and the invalid state is used to indicate that the configuration in the software system is not successful.

4. The method according to claim 3, characterized in that After determining whether the source object state information satisfies the association condition, the method further includes: If not, it is determined that the functional status information of the target test function is the real status corresponding to the target test function, wherein the real status is independent of the source object status information, and the real status is an effective status or an invalid status.

5. The method according to claim 3, characterized in that: The state association method includes at least one of the following: The association condition is that the source object is in an invalid state, and the preset state is the invalid state; The association condition is that the source object is in a valid state, and the preset state is an invalid state; The association condition is that the source object is in an effective state, and the preset state is the effective state; The association condition is that the source object is in an invalid state, and the preset state is a valid state.

6. The method according to claim 1, characterized in that The obtaining of target association configuration information corresponding to the target test function includes: In response to a target test function being triggered, obtaining target association configuration information corresponding to the target test function; Wherein, after determining the function state information of the target test function according to the source object state information by using the state association method, the method further includes: In the case where it is determined according to the function status information that the target test function is in an effective state, determining that a remote policy parameter value corresponding to the target test function is a valid value; Selecting a first target code corresponding to the remote strategy parameter value from a preset code set corresponding to the target test function, wherein the preset code set includes codes of multiple different execution strategies corresponding to the target test function; Execute the first target code to implement the target test function.

7. The method according to claim 6, characterized in that After determining the function state information of the target test function according to the source object state information by using the state association method, the method further includes: In the case where it is determined according to the function status information that the target test function is in a failed state, determining that a remote strategy parameter value corresponding to the target test function is a failed value; Selecting a second target code corresponding to a preset policy parameter value from the preset code set; Execute the second target code to implement the target test function.

8. A state determination device, characterized in that: include: An association configuration acquisition module is used to acquire target association configuration information corresponding to a target test function in a software system, wherein the target association configuration information includes a state association mode between the target test function and a source object; A first state determination module, used to determine source object state information of the source object, wherein the source object state information is used to indicate whether the source object is in a valid state, and the valid state is used to indicate that the source object has been successfully configured in the software system; The second state determination module is used to determine the functional state information of the target test function according to the source object state information by using the state association method, wherein the functional state information is used to indicate whether the target test function is in an effective state.

9. An electronic device, characterized in that: The electronic device comprises: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the state determination method as described in any one of claims 1 to 7.

10. A storage medium containing computer executable instructions, characterized in that: The computer executable instructions are used to perform the state determination method according to any one of claims 1 to 7 when executed by a computer processor.