Test method, device and equipment for migration of pension service system and storage medium
By dividing the system migration scenario and target transaction functions, obtaining production snapshot data and conducting test comparisons, the problems of large testing workload and low accuracy during software system migration are solved, and efficient and reliable system migration testing is achieved.
Patent Information
- Application Number
- CN202310007608.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-01-04
- Publication Date
- 2025-12-30
- Estimated Expiration
- 2043-01-04
AI Technical Summary
During software system migration, traditional testing methods are labor-intensive and have low accuracy in testing the old and new systems, affecting high-quality and stable production.
By identifying the target transaction function based on the system migration scenario, obtaining production snapshot data, controlling the operation data of the old and new systems, obtaining test results, and comparing and optimizing them, the efficiency and accuracy of testing can be improved.
By dividing the system migration scenarios and target transaction functions, testing efficiency and the reliability of results were improved, ensuring the stability and accuracy of the system migration process.
Smart Images

Figure CN116009955B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of computer technology, and in particular to a testing method, apparatus, equipment and storage medium for migrating an elderly care service system. Background Technology
[0002] When software updates can no longer meet the needs of an enterprise, or when technological advancements provide better technical means to achieve the functions required by the enterprise, the software needs to be migrated.
[0003] During the migration process, both the old and new systems need to support the normal operation of business operations simultaneously. System stability also affects user experience. Ensuring high-quality and stable deployment becomes an unavoidable issue during software migration. Efficient and comprehensive software testing is crucial for ensuring successful deployment before and after migration. A complete set of test cases involves a large number of cases and long execution times. Furthermore, during the migration process, these test cases need to be executed separately on both the old and new systems. Executing all test cases takes significantly longer than iterative testing.
[0004] Improving the accuracy of testing both new and old systems while reducing the workload of testing is an urgent problem to be solved. Summary of the Invention
[0005] This application provides a testing method, apparatus, equipment, and storage medium for the migration of elderly care service systems, in order to solve the problems of large testing workload and low accuracy of migration testing between new and old elderly care service systems in traditional testing methods.
[0006] On the one hand, this application provides a testing method for migrating an elderly care service system, including:
[0007] The target transaction function is determined based on the system migration scenario, where different system migration scenarios correspond to different target transaction functions;
[0008] Based on the target transaction function, the corresponding production snapshot data is determined. The production snapshot data is a data snapshot generated when the old elderly care service system implements the target transaction function. The production snapshot data includes multiple sets of operational data corresponding to the system migration scenario.
[0009] Control the old elderly care service system and the new elderly care service system, run the production snapshot data, and obtain the first test result and the second test result respectively. The first test result and the second test result both include multiple test data.
[0010] Migration processing is performed based on the production snapshot data, the first test result, and the second test result.
[0011] Optionally, the control system for the old and new elderly care services runs the production snapshot data to obtain a first test result and a second test result, respectively, including:
[0012] Obtain the input and output parameter fields for each set of operational data for each elderly care service system;
[0013] The input parameter data in each group of running data is adjusted according to the input parameter fields to obtain the adjusted data;
[0014] The old and new elderly care service systems are controlled to run the adjusted data to obtain a first test result and a second test result based on the output parameter fields.
[0015] Optionally, the migration processing based on the production snapshot data, the first test result, and the second test result includes:
[0016] Based on the production snapshot data and the input and output parameter fields corresponding to each set of running data, the adjusted production snapshot data is obtained;
[0017] Migration processing is performed based on the adjusted production snapshot data, the first test result, and the second test result.
[0018] Optionally, the migration process based on the adjusted production snapshot data, the first test result, and the second test result includes:
[0019] Compare each set of running data with the corresponding test data in the first test result to obtain the first comparison result;
[0020] Compare the corresponding test data of each group of running data with the second test results to obtain the second comparison result;
[0021] If the first comparison result or the second comparison result is inconsistent, then the target transaction function is optimized.
[0022] Optionally, the production snapshot data is tabular form data, and the step of adjusting the input parameter data in each group of running data according to the input parameter fields to obtain the adjusted data includes:
[0023] Based on the header of the form data, obtain each group of running data corresponding to the header;
[0024] Based on the input parameter fields and the running data for each group, a script is written to obtain the adjusted data.
[0025] Optionally, at least some of the input parameter fields include preconditions, wherein the preconditions are used to indicate the conditions and business duration that the user information meets;
[0026] The step of adjusting the input parameter data in each group of running data according to the input parameter fields to obtain the adjusted data includes:
[0027] Based on the preconditions corresponding to the input parameter fields, obtain virtual user information;
[0028] If the duration of the service exceeds the preset duration, then the virtual service duration is obtained;
[0029] Based on the virtual user information and the virtual service duration, the input parameters in each set of running data are adjusted to obtain the adjusted data.
[0030] Optionally, the target transaction function is a home service function, a community canteen function, or a call center function;
[0031] The home service function includes multiple sets of operational data such as subsidy disbursement, order placement, order dispatch, and service execution.
[0032] The community canteen function corresponds to multiple sets of operational data, including subsidy distribution, order placement, order acceptance, and meal pickup.
[0033] The call center function corresponds to multiple sets of operational data, including inbound and outbound calls.
[0034] On the other hand, this application provides a testing device for the migration of an elderly care service system, comprising:
[0035] The first determination module is used to determine the target transaction function based on the system migration scenario, where different system migration scenarios correspond to different target transaction functions;
[0036] The second determining module is used to determine the corresponding production snapshot data based on the target transaction function. The production snapshot data is a data snapshot generated when the old elderly care service system implements the target transaction function. The production snapshot data includes multiple sets of operating data corresponding to the system migration scenario.
[0037] The operation module is used to control the old elderly care service system and the new elderly care service system, run the production snapshot data, and obtain the first test result and the second test result respectively. The first test result and the second test result both include multiple test data.
[0038] The processing module is used to perform migration processing based on the production snapshot data, the first test result, and the second test result.
[0039] In one possible implementation, the runtime module is specifically used for:
[0040] Obtain the input and output parameter fields for each set of operational data for each elderly care service system;
[0041] The input parameter data in each group of running data is adjusted according to the input parameter fields to obtain the adjusted data;
[0042] The old and new elderly care service systems are controlled to run the adjusted data to obtain a first test result and a second test result based on the output parameter fields.
[0043] In one possible implementation, the runtime module is specifically used for:
[0044] Based on the production snapshot data and the input and output parameter fields corresponding to each set of running data, the adjusted production snapshot data is obtained;
[0045] Migration processing is performed based on the adjusted production snapshot data, the first test result, and the second test result.
[0046] In one possible implementation, the processing module is specifically used for:
[0047] Compare each set of running data with the corresponding test data in the first test result to obtain the first comparison result;
[0048] Compare the corresponding test data of each group of running data with the second test results to obtain the second comparison result;
[0049] If the first comparison result or the second comparison result is inconsistent, then the target transaction function is optimized.
[0050] In one possible implementation, the runtime module is specifically used for:
[0051] Based on the header of the form data, obtain each group of running data corresponding to the header;
[0052] Based on the input parameter fields and the running data for each group, a script is written to obtain the adjusted data.
[0053] In one possible implementation, the runtime module is specifically used for:
[0054] The step of adjusting the input parameter data in each group of running data according to the input parameter fields to obtain the adjusted data includes:
[0055] Based on the preconditions corresponding to the input parameter fields, obtain virtual user information;
[0056] If the duration of the service exceeds the preset duration, then the virtual service duration is obtained;
[0057] Based on the virtual user information and the virtual service duration, the input parameters in each set of running data are adjusted to obtain the adjusted data.
[0058] In one possible implementation, the target transaction function is a home service function, a community canteen function, or a call center function;
[0059] The home service function includes multiple sets of operational data such as subsidy disbursement, order placement, order dispatch, and service execution.
[0060] The community canteen function corresponds to multiple sets of operational data, including subsidy distribution, order placement, order acceptance, and meal pickup.
[0061] The multiple sets of operational data corresponding to the call center function include inbound and outbound calls. A third aspect of this application provides an electronic device, comprising:
[0062] Processor and memory;
[0063] The memory stores the instructions that the computer executes;
[0064] The processor executes computer execution instructions stored in memory, causing the electronic device to perform any of the methods in the first aspect.
[0065] A fourth aspect of this application provides a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, are used to determine a driver for implementing a hardware peripheral as described in any of the first aspects.
[0066] A fifth aspect of this application provides a computer program product including a computer program that, when executed by a processor, implements the method as described in any of the first aspects.
[0067] This embodiment provides a testing method, apparatus, equipment, and storage medium for migrating an elderly care service system. The method determines the target transaction function based on the system migration scenario, where different migration scenarios correspond to different target transaction functions. Based on the target transaction function, corresponding production snapshot data is determined. The old and new elderly care service systems are controlled to run the production snapshot data, obtaining a first test result and a second test result, respectively. Migration processing is then performed based on the production snapshot data, the first test result, and the second test result. This method divides the elderly care service system according to the scenario, determines the target transaction function, identifies the corresponding production snapshot data for each, and tests both the old and new elderly care service systems. This allows for the identification of deficiencies in the system under test, achieving the testing objective while improving testing efficiency and the reliability of the results. Attached Figure Description
[0068] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.
[0069] Figure 1 The structural diagram of the elderly care service system provided in this application;
[0070] Figure 2 The test method and flowchart for migrating the elderly care service system provided in the embodiments of this application Figure 1 ;
[0071] Figure 3 The test method and flowchart for migrating the elderly care service system provided in the embodiments of this application Figure 2 ;
[0072] Figure 4 The test method and flowchart for migrating the elderly care service system provided in the embodiments of this application Figure 3 ;
[0073] Figure 5 A schematic diagram of the structure of a test device for migrating an elderly care service system provided in an embodiment of this application;
[0074] Figure 6 This is a hardware structure diagram of the test equipment for migrating the elderly care service system provided in an embodiment of this application.
[0075] The accompanying drawings illustrate specific embodiments of this application, which will be described in more detail below. These drawings and descriptions are not intended to limit the scope of the concept in any way, but rather to illustrate the concept of this application to those skilled in the art through reference to particular embodiments. Detailed Implementation
[0076] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numbers in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this application as detailed in the appended claims.
[0077] Figure 1 A structural diagram of the elderly care service system provided in this application. Figure 1As shown, the elderly care service system comprises a two-layer structure. The system includes functions corresponding to three application scenarios: home care services, community canteen services, and a call center. These three functions are further subdivided into underlying sub-functions: the home care services function includes subsidies, order placement, order dispatch, and service execution; the community canteen function includes subsidies, order placement, order acceptance, and meal pickup; and the call center function includes inbound and outbound calls.
[0078] For example, taking the home care service function as an example, the subsidy is issued to the user by the system according to the subsidy standard and at a certain period. The user places an order through the elderly care service system, and the system assigns a designated service personnel to accept the order and perform the task.
[0079] If the traditional testing process is followed, the testing workload is large, the time is long, and the test results are not targeted, which affects the production of the new elderly care service system.
[0080] This application provides a testing method for migrating an elderly care service system. This method divides the elderly care service system according to the scenario, determines the target transaction function, determines the corresponding production snapshot data, and tests the old and new elderly care service systems to identify the deficiencies of the system under test, thereby achieving the testing objective and improving the efficiency and reliability of the test results.
[0081] The testing method for migrating the elderly care service system provided in this application aims to solve the above-mentioned technical problems of the existing technology.
[0082] The technical solution of this application and how the technical solution of this application solves the above-mentioned technical problems are described in detail below with specific embodiments. These specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described again in some embodiments. The embodiments of this application will now be described with reference to the accompanying drawings.
[0083] Figure 2 The test method and flowchart for migrating the elderly care service system provided in the embodiments of this application Figure 1 .like Figure 2 As shown, the method in this embodiment includes:
[0084] S201. Determine the target transaction function based on the system migration scenario, where different system migration scenarios correspond to different target transaction functions;
[0085] In this embodiment, the elderly care service system is based on the Spring Cloud framework. The system migration scenario is specifically for the elderly care service system, and includes various scenarios such as home-based services, community canteens, or call centers. The elderly care service system serves eligible users, and subsidies are periodically distributed to user accounts according to regional standards. Service providers register within the system, and their identifiers are linked to service instances and service personnel information. After receiving subsidies, users use their accounts in the elderly care service system to access various designated services. The system provides services based on user requests and simultaneously deducts payments from the user's account.
[0086] In order to conduct tests according to different system migration scenarios, it is necessary to determine the target transaction function based on the system migration scenario, and then carry out preliminary test preparation work based on the target transaction function corresponding to different system migration scenarios.
[0087] In this embodiment, to ensure users can continue using the elderly care service system during the system migration process, updates and optimizations will not be limited to the new system. Since system migration is a lengthy process, corresponding updates and optimizations will also be performed on the old system simultaneously. Therefore, testing needs to be conducted on both the old and new elderly care service systems concurrently.
[0088] S202. Based on the target transaction function, determine the corresponding production snapshot data. The production snapshot data is the data snapshot generated when the old elderly care service system implements the target transaction function. The production snapshot data includes multiple sets of running data corresponding to the system migration scenario.
[0089] In this embodiment, a portion of the production snapshot data is used as input parameters for the test run. Simultaneously, the production snapshot data also represents the expected values for both elderly care service systems. The test data from both systems is compared with this data to obtain the migration results. The production snapshot data refers to a complete, usable copy of the data generated when the old elderly care service system provides the target transaction function. This dataset contains a static image of the source data at the copy point.
[0090] In this embodiment, the production snapshot data is grouped according to the target transaction function. Production snapshot data typically includes input and output parameter fields, as well as corresponding time data, status codes, database tables, and other sets of operational data. If testing is performed solely on all production snapshot data of the elderly care service system, many input and output parameter fields are reused in many functions; that is, such a testing method cannot cover all functions.
[0091] By grouping production snapshots according to different functions based on the target transaction function, we can obtain the input and output parameter fields, corresponding time data and status codes, database tables, and other sets of runtime data for each target transaction function, which can then be used as input and standards for testing.
[0092] Optionally, the target transaction function may be a home service function, a community canteen function, or a call center function;
[0093] The home service function includes multiple sets of operational data such as subsidy disbursement, order placement, order dispatch, and service execution.
[0094] The community canteen function includes multiple sets of operational data such as subsidy distribution, order placement, order acceptance, and meal pickup.
[0095] The call center function corresponds to multiple sets of operational data, including inbound and outbound calls.
[0096] In this embodiment, the elderly care service system is divided into three system migration scenarios: home-based services, community canteens, and call centers. Home-based services refer to users using their accounts to obtain services within the elderly care service system, which then dispatches orders and assigns service personnel to perform the tasks. Therefore, it includes four processes: subsidy disbursement, order placement, order dispatch, and service execution.
[0097] First, after the system is running, relevant classes will be created, including the responsible department (department ID), service period (period ID), subsidy account (account ID), subsidy standard (subsidy standard ID), user (user ID, name, ID type, ID number, address and location coordinates, telephone number), service organization (organization ID), service instance (service instance ID), service area (area code), and service personnel (user ID, name, ID type, ID number, address and location coordinates, and telephone number). Users are bound to the responsible department, service period, subsidy account, and service organization; periods are bound to the standard; and service instances, service areas, and service personnel are bound to the service organization.
[0098] Subsidy disbursement refers to the elderly care service system disbursing subsidies to users' subsidy accounts according to the period and standards. Order placement involves users placing orders within the elderly care service system. Within a designated area, a service instance from a bound service organization is obtained, and the subsidy is disbursed using the subsidy account. This process generates an order class, including the order number, disbursement amount, and subsidy amount. Before disbursement, the order status is "Pending Payment," and after disbursement, the order status is "Pending Acceptance." Order assignment involves service organization administrators assigning orders to corresponding service personnel in the service personnel class of the elderly care service system, based on the order number and organization ID. This involves obtaining the service personnel's user ID, name, ID type, and ID number, and setting the order status to "Accepted" after assignment. Service execution refers to service personnel performing service instances, recording the start and end times in the system, and completing the corresponding service instance. The elderly care service system records the service start time, service end time, and service duration. After service completion, the order status is "Completed." If an order is not disbursed within 30 minutes of being placed, or if the order is manually canceled, the order status is set to "Canceled."
[0099] In this embodiment, the community canteen function refers to users using their accounts in the elderly care service system to obtain meals, with the system assigning orders and designating service personnel to receive them. Therefore, it includes four processes: subsidy disbursement, order placement, order acceptance, and meal pickup.
[0100] First, after the system is running, it will create relevant classes, distribute subsidies, and place orders. These three processes are the same as those for home-based services and will not be repeated here. Order acceptance means the service provider accepts the order based on the order number and provider ID, and sends a pickup code to the user. At this point, the order status is set to "order accepted," and the transaction response code is "successful." Picking up the meal means the user picks it up using the pickup code after preparation; at this point, the order status will be set to "completed."
[0101] In this embodiment, the call center function provides users with inbound call services and services for calling users, that is, calling users via hotline.
[0102] First, after the system is running, it will create relevant classes, including creating the responsible department (department ID), skill groups (switchboard, extension), agents (agent ID), assigning roles to agents (team leader, team member), configuring agent status (idle, busy), and setting the hotline number. The call center is linked to the civil affairs department, and the skill groups, agents, and hotline numbers are linked to the call center. When a call comes in, if a user dials the hotline number and all agents are in a busy state, the call status is set to waiting. If an agent is in an idle state, the call can be successfully made. At this time, the call status is updated to successful call, and the agent's status is updated to busy. After the call ends, the agent's status is updated to idle. When a call goes out, the user is called via the hotline, and the agent's status is updated to busy.
[0103] S203. Control the old elderly care service system and the new elderly care service system, run production snapshot data, and obtain the first test result and the second test result respectively. Both the first test result and the second test result include multiple test data.
[0104] In this embodiment, the testing process requires processing the production data, including classification and global replacement, to obtain production snapshot data that can be input into both the old and new elderly care service systems. In the test environment, the production snapshot data is replayed, and corresponding test data snapshots are taken for nodes aligned with the production snapshot data to obtain the runtime data in the test environment, namely the first test result and the second test result. The first test result is the test result of the old elderly care service system, and the second test result is the test result of the new elderly care service system. Therefore, the testing is conducted based on the target transaction function, and as described in the steps above, different target transaction functions include different sets of runtime data.
[0105] S204. Perform migration processing based on production snapshot data, the first test result, and the second test result.
[0106] In this embodiment, the purpose of testing the two elderly care service systems is to identify shortcomings and vulnerabilities in the systems before they are put into operation, preventing problems from occurring during online operation and affecting user experience. Therefore, when the first and second test results differ from the production snapshot data, such as errors in order status or subsidy amounts, migration cannot be performed. The shortcomings and vulnerabilities need to be optimized until the first and second test results are identical to the production snapshot data before migration can proceed.
[0107] This embodiment provides a testing method for migrating an elderly care service system. The method determines the target transaction function based on the system migration scenario, where different migration scenarios correspond to different target transaction functions. Based on the target transaction function, corresponding production snapshot data is determined. The old and new elderly care service systems are controlled to run the production snapshot data, obtaining a first test result and a second test result, respectively. Migration processing is then performed based on the production snapshot data, the first test result, and the second test result. This method divides the elderly care service system according to the scenario, determines the target transaction function, identifies the corresponding production snapshot data for each, and tests both the old and new elderly care service systems. This allows for the identification of deficiencies in the system under test, achieving the testing objective while improving testing efficiency and the reliability of the results.
[0108] Figure 3 The test method and flowchart for migrating the elderly care service system provided in the embodiments of this application Figure 2 .like Figure 3 As shown, the method of this embodiment, in Figure 2Based on the illustrated embodiment, the process of controlling the old and new elderly care service systems, running production snapshot data, and obtaining the first and second test results respectively is described in detail.
[0109] S301. Obtain the input and output parameter fields for each set of operational data for each elderly care service system;
[0110] In this embodiment, the input and output parameter fields differ in the operational data corresponding to different target transaction functions. The input and output parameter fields for the home service function are shown in Table 1, and those for the community canteen function are shown in Table 2. The input parameter field for the call center is the agent status (busy / idle), and the output parameter status is the call status (waiting / successful). Obtaining the input and output parameter fields for each target transaction function does not determine the specific operational data, as the target transaction function is further divided into different stages.
[0111] Table 1
[0112]
[0113] Table 2
[0114]
[0115] S302. Obtain the running data corresponding to each group of table headers based on the table headers of the form data;
[0116] In this embodiment, to determine the operational data corresponding to different stages in the target transaction function in Tables 1 and 2, it is necessary to determine the table headers of the form data. In fact, after the production snapshot data is obtained from the existing elderly care service system, it is packaged in the form of a form. When needed later, the corresponding form is downloaded for use.
[0117] S303. Write a script based on the input parameter fields and each set of running data to obtain the adjusted data;
[0118] In this embodiment, some data in the operational data cannot be directly used as input parameters for the elderly care service system. For example, data such as subsidy standard ID and subsidy period ID may be inconsistent due to environmental reasons. Sensitive information such as user identity information, service staff names, and phone numbers are anonymized in the production snapshot data and cannot be used directly. Therefore, it is necessary to write a script containing processing data based on the input parameter fields and each set of operational data to obtain adjustment data for the input parameters of the elderly care service system that can be used during testing.
[0119] S304. Control the operation and adjustment data of the old and new elderly care service systems to obtain the first and second test results based on the output parameter fields;
[0120] In this embodiment, the old and new elderly care service systems are run and adjusted separately to obtain the tested data, namely, the first test result of the old elderly care service system based on the output parameter fields and the second test result of the new elderly care service system based on the output parameter fields. "Based on output parameter fields" means that the test results include running data according to the output parameter fields in different target transaction functions.
[0121] S305. Compare each set of running data with the corresponding test data in the first test result to obtain the first comparison result;
[0122] In this embodiment, the runtime data source and production snapshot data represent the expected values of the test. When comparing test results, the comparison is also based on more detailed stages within different target transaction functions. This comparison method allows for faster and more accurate determination of the performance of each stage within the target transaction function. Furthermore, if problems arise, this comparison method significantly improves the speed of problem localization. For example, in the home service function, each of the four stages has a transaction response code for its output parameter field. Simply comparing the transaction response codes does not provide insight into the performance of each stage. Therefore, each set of runtime data is compared with the corresponding test data in the first test result to obtain the first comparison result.
[0123] S306. Compare the corresponding test data of each group of running data with the second test result to obtain the second comparison result;
[0124] S307. If the first comparison result or the second comparison result is inconsistent, optimize the target transaction function.
[0125] In this embodiment, since the comparison is based on more detailed aspects of different target transaction functions, optimization of a target transaction can be performed on specific aspects.
[0126] Those skilled in the art will understand that consistency of results here is not limited to numerical equality. For example, the amount of money disbursed or subsidies, which are key areas of examination, will vary depending on the region and subsidy standards; in this case, it is sufficient that the two amounts are within a reasonable range. Order status and agent status are conditional variables, therefore, they must correspond one-to-one with the status of each stage of production; otherwise, it is incorrect.
[0127] This embodiment provides a testing method for migrating an elderly care service system. The method involves: acquiring the input and output parameter fields of each group of operational data for each elderly care service system; obtaining the corresponding operational data for each group based on the table headers; writing scripts based on the input parameter fields and the operational data to obtain adjusted data; controlling the operation of the adjusted data in both the old and new elderly care service systems to obtain a first test result and a second test result based on the output parameter fields; comparing each group of operational data with the corresponding test data in the first test result to obtain a first comparison result; comparing each group of operational data with the corresponding test data in the second test result to obtain a second comparison result; if the first or second comparison result is inconsistent, the target transaction function is optimized. This method improves the testing efficiency and accuracy of the old and new elderly care service systems by grouping according to the target transaction function and determining the adjusted data accordingly, and then comparing the test data in groups.
[0128] Figure 4 The test method and flowchart for migrating the elderly care service system provided in the embodiments of this application Figure 3 .like Figure 4 As shown, the method of this embodiment, in Figure 2 Based on the illustrated embodiment, the process of adjusting the input parameter data in each group of running data according to the input parameter fields to obtain the adjusted data is described in detail.
[0129] S401. Obtain virtual user information based on the preconditions corresponding to the input parameter fields;
[0130] In this embodiment, at least some input parameter fields include preconditions, which indicate the conditions and business duration that the user information must meet. Specifically, the conditions that the user information must meet mean that if the user information in the production snapshot data has been anonymized, it cannot be used directly during testing and a virtual user must be used; that is, virtual user information needs to be obtained.
[0131] S402. If the service duration is longer than the preset duration, then obtain the virtual service duration;
[0132] In this embodiment, some services need to span days, weeks, or even longer. Therefore, in order to save testing time, it is necessary to simulate the service duration. That is, if the service duration is longer than the preset duration, the virtual service duration is obtained.
[0133] S403. Based on the virtual user information and virtual service duration, adjust the input parameters in each set of running data to obtain the adjusted data.
[0134] In this embodiment, after adjusting the user information and business duration of the input parameters, the adjusted data is obtained, which can then be used as the input parameters for the system migration test of the old and new elderly care service systems.
[0135] Those skilled in the art will understand that obtaining adjustment data is not limited to user information and business duration. Data such as subsidy standard IDs and subsidy period IDs, which may be inconsistent due to environmental factors, or data generated only during business processes, such as order numbers, all need to be processed or replaced before being used as input data in system migration testing. Therefore, the scripts used for adjusting data should be adapted to the changes in variables caused by business processes in the elderly care service system.
[0136] This embodiment provides a testing method for migrating an elderly care service system. The method obtains virtual user information based on preconditions corresponding to input parameter fields; if the service duration exceeds a preset duration, it obtains the virtual service duration; and adjusts the input parameter data in each set of operational data based on the virtual user information and virtual service duration to obtain adjusted data. This method adjusts the input parameter data according to preconditions to obtain input parameter data applicable to testing, making the system migration test more realistic and the test results more scientific and reasonable.
[0137] Figure 5 This is a schematic diagram of a test device for migrating an elderly care service system, provided as an embodiment of this application. The device in this embodiment can be in the form of software and / or hardware. Figure 5 As shown in the figure, the test device 500 for migrating an elderly care service system provided in this application embodiment includes a first determining module 501, a second determining module 502, an operating module 503, and a processing module 504.
[0138] The first determining module 501 is used to determine the target transaction function based on the system migration scenario, wherein different system migration scenarios correspond to different target transaction functions;
[0139] The second determining module 502 is used to determine the corresponding production snapshot data based on the target transaction function. The production snapshot data is a data snapshot generated when the old elderly care service system implements the target transaction function. The production snapshot data includes multiple sets of running data corresponding to the system migration scenario.
[0140] The running module 503 is used to control the old elderly care service system and the new elderly care service system, run production snapshot data, and obtain the first test result and the second test result respectively. Both the first test result and the second test result include multiple test data.
[0141] Processing module 504 is used to perform migration processing based on production snapshot data, first test results, and second test results.
[0142] In one possible implementation, the runtime module is specifically used for:
[0143] Obtain the input and output parameter fields for each set of operational data for each elderly care service system;
[0144] The input parameter data in each set of running data is adjusted according to the input parameter fields to obtain the adjusted data;
[0145] By controlling the operation and adjustment data of the old and new elderly care service systems, the first and second test results based on the output parameter fields are obtained.
[0146] In one possible implementation, the runtime module is specifically used for:
[0147] Based on the production snapshot data and the input and output parameter fields corresponding to each set of running data, the adjusted production snapshot data is obtained;
[0148] Migration processing was performed based on the adjusted production snapshot data, the first test results, and the second test results.
[0149] In one possible implementation, the processing module is specifically used for:
[0150] Compare each set of running data with the corresponding test data in the first test result to obtain the first comparison result;
[0151] Compare the corresponding test data of each group of running data with the second test results to obtain the second comparison result;
[0152] If the first or second comparison result is inconsistent, then the target transaction function will be optimized.
[0153] In one possible implementation, the runtime module is specifically used for:
[0154] Retrieve the running data corresponding to each group of table headers based on the table headers of the form data;
[0155] Write a script based on the input parameter fields and the running data for each group to obtain the adjusted data.
[0156] In one possible implementation, the runtime module is specifically used for:
[0157] The input parameter data in each set of running data is adjusted according to the input parameter fields to obtain the adjusted data, including:
[0158] Based on the preconditions corresponding to the input parameter fields, obtain virtual user information;
[0159] If the business duration exceeds the preset duration, then obtain the virtual business duration;
[0160] Based on the virtual user information and virtual service duration, the input parameters in each set of operational data are adjusted to obtain the adjusted data.
[0161] In one possible implementation, the target transaction function is a home service function, a community canteen function, or a call center function;
[0162] The home service function includes multiple sets of operational data such as subsidy disbursement, order placement, order dispatch, and service execution.
[0163] The community canteen function includes multiple sets of operational data such as subsidy distribution, order placement, order acceptance, and meal pickup.
[0164] The call center function corresponds to multiple sets of operational data, including inbound and outbound calls.
[0165] The apparatus for testing the migration of the elderly care service system provided in this embodiment can be used to execute the above method embodiment. Its implementation principle and technical effect are similar, and will not be described again here.
[0166] Figure 6 This is a hardware structure diagram of the test equipment for migrating the elderly care service system provided in an embodiment of this application. Figure 6 As shown, the test equipment 600 for migrating the elderly care service system includes:
[0167] Processor 601 and memory 602;
[0168] The memory stores the instructions that the computer executes;
[0169] The processor executes computer execution instructions stored in memory 602, causing the electronic device to perform the test method for migrating the elderly care service system as described above.
[0170] It should be understood that the processor 601 described above can be a Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), etc. The general-purpose processor can be a microprocessor or any conventional processor. The steps of the method disclosed in this invention can be directly implemented by a hardware processor, or implemented by a combination of hardware and software modules within the processor. The memory 602 may include high-speed random access memory (RAM), and may also include non-volatile memory (NVM), such as at least one disk storage device, and may also be a USB flash drive, external hard drive, read-only memory, disk, or optical disc, etc.
[0171] This application also provides a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, are used to implement a test method for migrating an elderly care service system.
[0172] This application also provides a computer program product, including a computer program that, when executed by a processor, implements a method for processing large data zipper tables.
[0173] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, data stored, data displayed, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties. Furthermore, the collection, use and processing of the relevant data must comply with the relevant laws, regulations and standards of the relevant countries and regions, and corresponding operation portals are provided for users to choose to authorize or refuse.
[0174] Other embodiments of this application will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of this application that follow the general principles of this application and include common knowledge or customary techniques in the art not disclosed herein. The specification and examples are to be considered exemplary only, and the true scope and spirit of this application are indicated by the following claims.
[0175] It should be understood that this application is not limited to the precise structure described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of this application is limited only by the appended claims.
Claims
1. A method for testing migration of a geriatric service system, characterized by, The method comprises the following steps: determining a target transaction function according to a system migration scenario; different system migration scenarios correspond to different target transaction functions; determining corresponding production snapshot data according to the target transaction function; the production snapshot data is a data snapshot generated when an old pension service system implements the target transaction function, and the production snapshot data comprises multiple sets of running data of multiple links corresponding to the system migration scenario; controlling the old pension service system and a new pension service system to run the production snapshot data to obtain a first test result and a second test result respectively, wherein the first test result and the second test result both comprise multiple test data; comparing each set of running data with the corresponding test data in the first test result to obtain a first comparison result, and comparing each set of running data with the corresponding test data in the second test result to obtain a second comparison result; if the first comparison result or the second comparison result is inconsistent, optimizing the target transaction function.
2. The method of claim 1, wherein, The method of controlling the old pension service system and the new pension service system to run the production snapshot data to obtain the first test result and the second test result respectively comprises the following steps: obtaining an input field and an output field of each pension service system for each set of running data; adjusting the input data in each set of running data according to the input field to obtain adjusted adjustment data; controlling the old pension service system and the new pension service system to run the adjustment data to obtain the first test result and the second test result based on the output field.
3. The method of claim 2, wherein, The production snapshot data is table form form data, and the method of adjusting the input data in each set of running data according to the input field to obtain adjusted adjustment data comprises the following steps: obtaining each set of running data corresponding to a table header according to the table header of the form data; writing a script according to the input field and the each set of running data to obtain the adjusted adjustment data.
4. The method of claim 2, wherein, At least part of the input field comprises a precondition, wherein the precondition is used to indicate a condition satisfied by user information and a business duration; The method of adjusting the input data in each set of running data according to the input field to obtain adjusted adjustment data comprises the following steps: obtaining virtual user information according to the precondition corresponding to the input field; if the business duration is greater than a preset duration, obtaining a virtual business duration; adjusting the input data in each set of running data according to the virtual user information and the virtual business duration to obtain the adjusted adjustment data.
5. The method of claim 1, wherein, The target transaction function is a home service function, a community canteen function or a call center function; the multiple sets of running data corresponding to the home service function comprise issuing subsidies, placing orders, assigning orders and executing services; the multiple sets of running data corresponding to the community canteen function comprise issuing subsidies, placing orders, receiving orders and executing meal taking; the multiple sets of running data corresponding to the call center function comprise incoming calls and outgoing calls.
6. A testing device for migration of a geriatric service system, characterized by The method comprises the following steps: a first determining module is configured to determine a target transaction function according to a system migration scenario; different system migration scenarios correspond to different target transaction functions; The second determining module is configured to determine corresponding production snapshot data according to the target transaction function; the production snapshot data is a data snapshot generated when an old pension service system implements the target transaction function; and the production snapshot data includes multiple sets of running data of multiple links corresponding to the system migration scenario. The running module is configured to control the old pension service system and a new pension service system to run the production snapshot data, and obtain a first test result and a second test result respectively; and the first test result and the second test result both include multiple test data. The processing module is configured to compare each set of running data and corresponding test data in the first test result to obtain a first comparison result; compare each set of running data and corresponding test data in the second test result to obtain a second comparison result; and if the first comparison result or the second comparison result is inconsistent, optimize the target transaction function.
7. An electronic device comprising: A processor and a memory; The memory stores computer execution instructions; The processor executes the computer execution instructions stored in the memory, so that the electronic device executes the method in any one of claims 1 to 5.
8. A computer-readable storage medium, characterized in that, The computer readable storage medium stores computer execution instructions, and the computer execution instructions are executed by the processor to implement the test method for the pension service system migration in any one of claims 1 to 5.
9. A computer program product, comprising a computer program, which, when executed by a processor, implements the method in any one of claims 1 to 5.
Citation Information
Patent Citations
System mobility test method, system mobility test system, device and storage medium
CN112486814A
System migration test method and device
CN113110995A