Method, device, monitoring server and medium for processing test order
Automatically processing test orders through the monitoring server solves the problem of large amounts of manpower and risks required for manual processing of test orders, and achieves efficient and accurate test order management.
Patent Information
- Application Number
- CN202110340041.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-03-30
- Publication Date
- 2025-09-05
- Estimated Expiration
- 2041-03-30
AI Technical Summary
In the existing technology, processing the test submission form requires a lot of manpower costs and there is a risk of omission or incorrect filling.
The monitoring server automatically obtains the content information of the test request form on the task submission platform, creates the corresponding test request form in the JIRA library, and automatically adds the test request form logo in the task submission platform when the status is updated to completed, reducing manual operations.
It saves labor costs, avoids the risk of omissions or incorrect filling caused by manual operations, and improves processing efficiency.
Smart Images

Figure CN113051165B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of cloud computing technology, and in particular to a method, device, monitoring server and medium for processing a test submission form. Background Art
[0002] During the software development process, after a Research and Development engineer (RD) completes a program, they create a test request and submit it on the OneStep platform. After the Quality Assurance (QA) views the test request on the OneStep platform, they must create a new test request in Jira based on the test request on the OneStep platform, as the testing process needs to be applied in Jira, a project and transaction tracking tool. Once the test items in the test request in Jira are completed, the QA manually fills in the test report in the Jira test request, and finally fills in the link from the Jira test request in the corresponding test request on the OneStep platform, allowing users to view the contents of the Jira test request by clicking the link in the test request on the OneStep platform.
[0003] The processing of this test request form requires QA to repeatedly operate in the OneStep platform and Jira, which requires a lot of manpower costs, and manual operations have a certain risk of omissions or errors. Summary of the Invention
[0004] The purpose of the embodiments of the present invention is to provide a method, device, monitoring server, and medium for processing test submission forms to solve the problem that manual processing of test submission forms requires a lot of manpower costs and has the risk of omissions or incorrect entries. The specific technical solution is as follows:
[0005] In a first aspect, an embodiment of the present invention provides a method for processing a test request form, the method being applied to a monitoring server, the method comprising:
[0006] When a newly added first-category test submission form is detected on the task submission platform, content information of the newly added first-category test submission form is obtained;
[0007] Based on the content information of the newly added first-type test request form, create a second-type test request form corresponding to the newly added first-type test request form in the JIRA library, where the second-type test request form is used to request testing of the program;
[0008] If it is monitored that the test status of the target second-class test order in the jira library is completed, the identifier of the target second-class test order is added to the first-class test order corresponding to the target second-class test order.
[0009] Optionally, after creating a second-type test submission form corresponding to the newly added first-type test submission form in the JIRA library based on the content information included in the newly added first-type test submission form, the method further includes:
[0010] Recording in a database the corresponding relationship between the newly added first-class test submission form and the second-class test submission form created for the newly added first-class test submission form;
[0011] If the test status of the target second-class test order in the JIRA database is monitored to be completed, the identifier of the target second-class test order is added to the first-class test order corresponding to the target second-class test order, including:
[0012] If the test status of the target second-class test order in the JIRA database is monitored as completed, then based on the correspondence between the recorded first-class test order and the second-class test order, the identifier of the first-class test order corresponding to the target second-class test order is searched;
[0013] Based on the identifier of the first type of test submission form corresponding to the second type of test submission form, searching for the first type of test submission form corresponding to the second type of test submission form in the task submission platform;
[0014] Add the identifier of the target second-category test submission form to the first-category test submission form corresponding to the target second-category test submission form.
[0015] Optionally, after creating a second-type test submission form corresponding to the newly added first-type test submission form in the JIRA library based on the content information included in the newly added first-type test submission form, the method further includes:
[0016] Recording the test status of the second type of test submission form corresponding to the newly added first type of test submission form in the database;
[0017] At each preset polling time interval, for each second-category test request form whose test status recorded in the database is not completed, monitoring the test status of the second-category test request form from the JIRA library;
[0018] Based on the test status of the second-category test request form monitored from the JIRA library, the test status of the second-category test request form recorded in the database is updated.
[0019] Optionally, after adding the identifier of the target second-category test submission form to the first-category test submission form corresponding to the target second-category test submission form, the method further includes:
[0020] The test status of the first-class test submission form corresponding to the target second-class test submission form is updated to a completed status.
[0021] In a second aspect, an embodiment of the present invention provides a device for processing a test request form, the device being applied to a monitoring server, the device comprising:
[0022] An acquisition module is configured to, when monitoring the presence of a newly added first-category test submission form on the task submission platform, acquire content information included in the newly added first-category test submission form;
[0023] A creation module is used to create a second-type test request form corresponding to the newly added first-type test request form in the JIRA library based on the content information included in the newly added first-type test request form obtained by the acquisition module, where the second-type test request form is used to request testing of the program;
[0024] An adding module is used to add the identifier of the target second-class test order to the first-class test order corresponding to the target second-class test order if the test status of the target second-class test order in the jira library is monitored to be completed.
[0025] Optionally, the device further includes: a recording module;
[0026] The recording module is configured to, after creating a second-type test submission form corresponding to the newly added first-type test submission form in the JIRA library based on the content information included in the newly added first-type test submission form, record in the database the correspondence between the newly added first-type test submission form and the second-type test submission form created for the newly added first-type test submission form;
[0027] The adding module is specifically used for:
[0028] If the test status of the target second-class test order in the JIRA database is monitored as completed, then based on the correspondence between the recorded first-class test order and the second-class test order, the identifier of the first-class test order corresponding to the target second-class test order is searched;
[0029] Based on the identifier of the first type of test submission form corresponding to the second type of test submission form, searching for the first type of test submission form corresponding to the second type of test submission form in the task submission platform;
[0030] Add the identifier of the target second-category test submission form to the first-category test submission form corresponding to the target second-category test submission form.
[0031] Optionally, the device further includes: a monitoring module and a first updating module;
[0032] The recording module is further configured to, after creating a second type of test request form corresponding to the newly added first type of test request form in the JIRA library based on the content information included in the newly added first type of test request form, record the test status of the second type of test request form corresponding to the newly added first type of test request form in the database;
[0033] The monitoring module is configured to monitor the test status of each second-category test request form whose test status is not completed from the JIRA database at intervals of a preset polling duration;
[0034] The first updating module is used to update the test status of the second type of test request form recorded in the database based on the test status of the second type of test request form monitored by the monitoring module from the JIRA library.
[0035] Optionally, the device further includes: a second updating module;
[0036] The second updating module is used to update the test status of the first type of test submission form corresponding to the target second type of test submission form to a completed status after adding the identifier of the target second type of test submission form to the first type of test submission form corresponding to the target second type of test submission form.
[0037] In a third aspect, an embodiment of the present invention provides a monitoring server, comprising a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other via the communication bus;
[0038] Memory for storing computer programs;
[0039] The processor is used to implement the steps of any of the above-mentioned methods for processing the test submission form when executing the program stored in the memory.
[0040] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of any of the above-mentioned methods for processing a test submission form are implemented.
[0041] In a fifth aspect, an embodiment of the present invention provides a computer program product comprising instructions, which, when executed on a computer, enables the computer to execute any of the steps of the above-mentioned method for processing a test submission form.
[0042] The method, device, monitoring server and medium for processing test submission forms provided by the embodiments of the present invention can obtain the content information included in the newly added first-class test submission form when monitoring the existence of a newly added first-class test submission form on the task submission platform, and then create a second-class test submission form corresponding to the newly added first-class test submission form in the jira library based on the content information. When monitoring that the test status of the second-class test submission form is updated to completed, the identifier of the second-class test submission form is added to the newly added first-class test submission form in the task submission platform, so that the user can view the corresponding test submission form in the jira library through the identifier of the second-class test submission form. Since the embodiments of the present invention can automatically create the second-class test submission form in jira and automatically record the identifier of the second-class test submission form in the corresponding first-class test submission form on the task submission platform, no manual processing is required during the period, thereby saving labor costs and avoiding the risks of omissions or incorrect fillings caused by manual operations.
[0043] Of course, it is not necessary to achieve all of the advantages described above simultaneously in order to implement any product or method of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other embodiments can be obtained based on these drawings without paying any creative work.
[0045] Figure 1 An exemplary schematic diagram of a Feishu communication platform provided in an embodiment of the present invention;
[0046] Figure 2 A flowchart of a method for processing a test request form in related technology;
[0047] Figure 3 A flow chart of a method for processing a test submission form provided in an embodiment of the present invention;
[0048] Figure 4A A schematic diagram of a first-type test submission form on the OneStep platform provided in an embodiment of the present invention;
[0049] Figure 4B A schematic diagram of a second type of test request form in a JIRA library provided in an embodiment of the present invention;
[0050] Figure 5 A flow chart of a method for monitoring the test status of a second type of test request form provided in an embodiment of the present invention;
[0051] Figure 6 A schematic diagram of the structure of a device for processing a test submission form provided in an embodiment of the present invention;
[0052] Figure 7 A schematic diagram of the structure of a monitoring server provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0053] The following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of the present invention.
[0054] To facilitate understanding, the relevant concepts involved in the embodiments of this application are first introduced.
[0055] The task submission platform involved in the embodiment of the present invention can be OneStep, which refers to a work platform that can track the test submission form. Optionally, OneStep can be embedded in other platforms. For example, Figure 1 As shown, Figure 1 For Feishu communication platform, OneStep can be embedded in Feishu communication platform, so that users can use OneStep by clicking the OneStep icon in Feishu communication platform. Among them, other functions can also be embedded in Feishu communication platform, such as Figure 1 Alarm, project tasks and other functions in.
[0056] Jira is a project and issue tracking tool that is widely used in work areas such as defect tracking, customer service, demand collection, process approval, task tracking, project tracking and agile management.
[0057] In order to distinguish the test submission forms in the OneStep platform and the JIRA library, the embodiment of the present invention refers to the test submission forms on the OneStep platform as the first type of test submission forms, and the test submission forms in the JIRA library as the second type of test submission forms.
[0058] In related technologies, after a research and development engineer (RD) submits a first-class test request form on the OneStep platform, the quality assurance personnel (QA) handles the first-class test request form as follows: Figure 2 As shown, the following steps are included.
[0059] Step 1: View the first type of test submission form on the OneStep platform.
[0060] Step 2: Create a second type of test request in the JIRA library.
[0061] Step 3: Perform testing in the JIRA library based on the second type of test request form.
[0062] Step 4: After the test is completed, fill in the test report on the second type of test request form in the JIRA library.
[0063] Step 5: Add the link of the second-type test collection form to the first-type test collection form on the OneStep platform.
[0064] It can be seen that when QA processes the second type of test request form, it needs to repeatedly operate in the OneStep platform and Jira library, which has high labor costs. In addition, manual operations have a certain risk of omissions or incorrect fillings, resulting in an increase in the workload of meaningless troubleshooting and error correction.
[0065] In order to solve the above problems, the embodiment of the present invention provides a method for processing a test order, which is applied to a monitoring server, such as Figure 3 As shown, the method includes the following steps.
[0066] S301, when it is monitored that there is a newly added first-category test submission form on the task submission platform, content information included in the newly added first-category test submission form is obtained.
[0067] In an embodiment of the present invention, the task submission platform may be the OneStep platform, and the monitoring server may monitor whether there are newly added first-class test submission orders on the OneStep platform. For example, the monitoring server may monitor whether there are newly added first-class test submission orders on the OneStep platform every 5 seconds.
[0068] In one implementation, the monitoring server may monitor the test order submission interface of the OneStep platform. When it is detected that the test order submission interface is called, it may be determined that a newly added first-category test order exists.
[0069] In another embodiment, a test order database for storing first-category test orders may be provided in the OneStep platform, and the monitoring server may monitor the test order database for newly added first-category test orders.
[0070] For example, the first type of test order on the OneStep platform is as follows: Figure 4A As shown, the first type of test request form includes the following information: test request form number, test function point, business line, test person in charge, requirement document wiki, test module, etc.
[0071] The test order number is the unique identifier of each first-class test order. For example, Figure 4A The test order number of the first type of test order shown is 20201014164196160390.
[0072] The function points to be tested include the items that need to be tested. For example, Figure 4A The test functionality for the first type of test request form shown includes: Link to the first type of test request form: http: / / wiki.op.ksyun.com / pages / viewpage.action?pageld=136474547 Items to be tested: 1. Provide an API interface to query the total number of tenant snapshot chains, with the ability to specify query conditions. 2. Provide an API interface to support paging queries for tenant snapshot chain details, with the ability to specify query conditions. 3. Provide an API interface to query the total billing amount for all current tenant snapshots, supporting only single-tenant queries. 4. Provide an API interface to query the total number of tenant snapshots, with the ability to specify query conditions. 5. Provide an API interface to support paging queries for tenant snapshot information, with the ability to specify query conditions. 6. Add the glance-manage command to trigger the synchronization of local system disk backups to the Glance snapshot table. 7. Add the glance-manage command to trigger the synchronization of snapshot table data to the console.
[0073] A line of business represents a business that focuses on a category of products. For example, Figure 4A The business line of the first type of test request shown is OpenStack. OpenStack is a cloud computing management platform, and the business of the tested product can be managed through OpenStack.
[0074] The test lead is the person who handles the test request form. For example, Figure 4A The person in charge of testing for the first type of test request form shown is Zhang San.
[0075] The requirements document wiki records the test environment, test time, test tools and other test requirements. For example, Figure 4A The link to the requirement document of the first type of test request form is shown as http: / / wiki.op.ksyun.com / pages / viewpage.action?pageld=136449514, and the document corresponding to the link records the test requirements.
[0076] The test module is the software module that needs to be tested. For example, Figure 4A The module name of the test submission module for the first type of test submission form shown is glance.
[0077] The first type of test order may also include the creation time of the first type of test order. For example, Figure 4A The creation time of the first type of test delivery order shown is XX year-XX month-XX day XX:XX:XX, for example, October 14 of a certain year, 16:41:06.
[0078] in, Figure 4AThis is only an example. In actual implementation, the first type of test submission form in the task submission platform and the content information included in the first type of test submission form are not limited to this.
[0079] S302: Create a second type of test request form corresponding to the newly added first type of test request form in the JIRA database based on the content information of the newly added first type of test request form, wherein the second type of test request form is used to request testing of the program.
[0080] In one implementation, the monitoring server may call the test order creation interface of the jira library, and add each item of content information in the first type of test order to the corresponding items of the second type of test order.
[0081] For example, the second type of test order in the jira library is as follows Figure 4B As shown, the second type of test submission form mainly includes three parts: details, description and personnel.
[0082] The details can be filled in during the test process or when creating the test form based on the content of the first type of test form. Figure 4B The second type of test request details, including priority, test status, affected versions, resolution results, and tags, can be filled in during the testing process based on the test module. For example, if the test module is a feature of an application and incompatibility is discovered during testing, the version number of that version can be entered in the affected versions field. Figure 4B The modules included in the details of the second type of test delivery order shown can be filled in according to the business line of the first type of test delivery order when it is created.
[0083] The items in the personnel and description sections can be filled in based on the content information included in the first type of test delivery form. For example, when creating the second type of test delivery form, Figure 4A The content of the test function points in the first type of test request form is added to Figure 4B In the description items shown, Figure 4A Add the test lead content shown in Figure 4B In the project of the person in charge.
[0084] The second type of delivery note can also include a date part. For example, Figure 4B As shown, the date portion of the second-type test delivery form includes a creation date and an update date. The creation date is YY-YY-YY-DYY:YY PM, indicating the creation time of the second-type test delivery form. The update date is ZZ-ZZ-ZZ-ZZ-DZZ:ZZ PM, indicating the update time of the second-type test delivery form. For example, the creation date is October 15th, 2:46 PM, in a certain year. The update date is November 11th, 4:44 PM, in the same year.
[0085] The second type of test order also includes function buttons. For example, Figure 4B As shown, the function buttons in the second-type test request form include: Edit, Note, Assign, More, Complete, and Start. Among them, triggering the Edit button can edit the content of the second-type test request form, triggering the Note button can add notes to the second-type test request form, triggering the Assign button can assign a person to handle the second-type test request form, triggering the More button can display other buttons for processing the test request form, triggering the Complete button can set the test status of the second-type test request form to Completed, and triggering the Start button can set the test status of the second-type test request form to In Progress.
[0086] in, Figure 4B This is just an example. In actual implementation, the second type of test request form in the JIRA library and the content information included in the second type of test request form are not limited to this.
[0087] S303: If it is monitored that the test status of the target second-class test request form in the JIRA library is completed, the identifier of the target second-class test request form is added to the first-class test request form corresponding to the target second-class test request form.
[0088] For the convenience of description, in the embodiment of the present invention, the second-type test request form with a test status of completed in the JIRA library is referred to as the target second-type test request form.
[0089] like Figure 4B As shown, the second type of test order is marked with the test status, for example Figure 4B The test status of the second type of test order is in progress. The test status of the second type of test order will be updated in real time during the processing of the second type of test order. For example, the test status of the second type of test order can be: not started, in progress, paused or completed. Among them, the initial test status when the second type of test order is created is not started, the test status when the second type of test order is processed is in progress, the test status when the second type of test order is suspended is paused, and the test status after the second type of test order is completed is completed. The test status can also be other states, and the test status of the second type of test order is not limited to this.
[0090] For example, the identifier of the second-category test order can be the test order number of the second-category test order. In an embodiment of the present invention, the test order number of the second-category test order is added to the corresponding first-category test order on the task submission platform. When the RD views the test results of the first-category test order on the task submission platform, he can query the second-category test order from the JIRA library based on the test order number of the second-category test order in the first-category test order and view the test report.
[0091] The method for processing a test submission form provided by an embodiment of the present invention can obtain the content information included in the newly added first-class test submission form when monitoring the existence of a newly added first-class test submission form on the task submission platform, and then create a second-class test submission form corresponding to the newly added first-class test submission form in the jira library based on the content information. When monitoring that the test status of the second-class test submission form is updated to completed, the identifier of the second-class test submission form is added to the newly added first-class test submission form in the task submission platform, so that the user can view the corresponding test submission form in the jira library through the identifier of the second-class test submission form. Since the embodiment of the present invention can automatically create the second-class test submission form in jira and automatically record the identifier of the second-class test submission form in the corresponding first-class test submission form on the task submission platform, no manual processing is required during the period, thereby saving labor costs and avoiding the risks of omissions or incorrect fillings caused by manual operations.
[0092] In an embodiment of the present invention, after creating the second type of test request form in S302, the monitoring server may further record in the database the corresponding relationship between the newly added first type of test request form and the second type of test request form created for the newly added first type of test request form.
[0093] In one embodiment, the database may record the correspondence between each second-category test submission form and the first-category test submission form in the jira library, or the database may record the correspondence between the unprocessed second-category test submission form and the first-category test submission form in the jira library.
[0094] Optionally, each corresponding relationship stored in the relational database is a corresponding relationship between the test submission order number of the second type of test submission order and the first type of test submission order.
[0095] On this basis, the above S303 can be implemented as follows: if it is monitored that the test status of the target second-class test order in the jira library is completed, then based on the correspondence between the recorded first-class test order and the second-class test order, the identifier of the first-class test order corresponding to the target second-class test order is searched, and then based on the identifier of the first-class test order corresponding to the target second-class test order, the first-class test order corresponding to the target second-class test order is searched in the task submission platform, and the identifier of the target second-class test order is added to the first-class test order corresponding to the target second-class test order.
[0096] Since the embodiment of the present invention can record the correspondence between the first type of test submission form and the second type of test submission form in the database, after the test of the second type of test submission form is completed, the monitoring server can accurately find the corresponding first type of test submission form on the task submission platform based on the recorded correspondence, and automatically add the test submission form number of the corresponding second type of test submission form to the first type of test submission form, without the need to manually copy the link of the corresponding second type of test submission form in the first type of test submission form.
[0097] In the embodiment of the present invention, after the second type of test order is created in the above S302, the monitoring server can also monitor the test status of the second type of test order, such as Figure 5 As shown, the following steps are included.
[0098] S501, recording the test status of the newly added second-type test submission form corresponding to the first-type test submission form in the database.
[0099] In the embodiment of the present invention, the initial test status when the second type of test request form is created is the unstarted state.
[0100] Optionally, the monitoring server can also set a flag in the database for the second type of test request form. The flag is used to indicate whether the test status is completed. For example, a flag of 1 indicates that the test status is completed; a flag of 0 indicates that the test status is not completed.
[0101] S502: At intervals of a preset polling duration, for each second-category test request form whose test status is not completed as recorded in the database, monitor the test status of the second-category test request form from the JIRA library.
[0102] In one embodiment, the monitoring server can search the database for the test order number of the second-class test order whose test status is not completed through the flag bit, and then search and monitor the second-class test order with the test order number from the JIRA library.
[0103] The preset polling time can be set according to actual needs, such as the total number of second-category test requests and the load of the monitoring server. For example, the preset polling time is 10 seconds.
[0104] S503: Based on the test status of the second-type test request form monitored from the JIRA library, the test status of the second-type test request form recorded in the database is updated.
[0105] In an embodiment of the present invention, S502 and S503 are executed once every preset polling time interval, and can be executed before S501 or after S501. The embodiment of the present invention does not specifically limit the execution order of S502 and S503 and other steps when processing the test submission form.
[0106] In one implementation, if the monitored test status of the second-type test submission form is not completed, the test status of the second-type test submission form recorded in the database is updated based on the test status of the second-type test submission form.
[0107] If the monitored test status of the second-category test submission form is completed, the test status of the second-category test submission form recorded in the database is updated, and at the same time, the flag of the second-category test submission form is updated.
[0108] Since the embodiment of the present invention can record and regularly record the test status of the second-category test submission form in the database, the monitoring server can promptly record the identification of the second-category test submission form that has completed the test in the corresponding first-category test submission form, thereby achieving the purpose of efficiently processing legacy resources.
[0109] In an embodiment of the present invention, after the above S303, the monitoring server may also update the test status of the first-type test submission order corresponding to the target second-type test submission order to a completed state.
[0110] When an RD submits a first-class test request, the test status of the first-class test request can be incomplete. After adding the second-class test request indicator, the test status is changed to completed. This allows users to easily check the completion status of each first-class test request on the task submission platform.
[0111] In an embodiment of the present invention, after creating the second-type test request form in step S302, the monitoring server may further send a prompt message to a designated account, so that the logged-in user of the designated account can view the prompt message and then process the second-type test request form. The prompt message is used to prompt the user to test the program according to the second-type test request form.
[0112] Optionally, the prompt information may be in the form of an email, a text message, a push message, etc., which is not specifically limited in the embodiment of the present invention. The designated account may be the account of the test person in charge.
[0113] The embodiment of the present invention can send a prompt message to the designated account after creating the second type of test submission form, so that the user who logs in to the designated account can view the prompt message and process the second type of test submission form in time, thereby improving the processing efficiency of the second type of test submission form.
[0114] Based on the same inventive concept, corresponding to the above method embodiment, the embodiment of the present invention provides a device for processing a test order, which is applied to a monitoring server, such as Figure 6 As shown, the device includes: an acquisition module 601, a creation module 602 and an addition module 603;
[0115] The acquisition module 601 is used to acquire content information of a newly added first-class test submission form when monitoring the existence of the newly added first-class test submission form on the task submission platform;
[0116] A creation module 602 is configured to create a second-type test request form corresponding to the newly added first-type test request form in the JIRA database based on the content information of the newly added first-type test request form obtained by the acquisition module 601. The second-type test request form is used to request testing of the program.
[0117] Adding module 603 is used to add the identifier of the target second-class test order to the first-class test order corresponding to the target second-class test order if the test status of the target second-class test order in the JIRA library is monitored to be completed.
[0118] Optionally, the device may further include: a recording module;
[0119] The recording module is used to create a second-type test document corresponding to the newly added first-type test document in the JIRA library based on the content information of the newly added first-type test document, and then record the corresponding relationship between the newly added first-type test document and the second-type test document created for the newly added first-type test document in the database;
[0120] Add module 603, specifically for:
[0121] If the test status of the target second-class test order in the JIRA database is found to be completed, the ID of the first-class test order corresponding to the target second-class test order is searched based on the correspondence between the first-class test order and the second-class test order.
[0122] Based on the identifier of the first-class test submission form corresponding to the second-class test submission form of the target, search for the first-class test submission form corresponding to the second-class test submission form of the target in the task submission platform;
[0123] Add the identifier of the target second-class test submission form to the first-class test submission form corresponding to the target second-class test submission form.
[0124] Optionally, the device may further include: a monitoring module and a first updating module;
[0125] The recording module is further used to create a second-type test order corresponding to the newly added first-type test order in the JIRA library based on the content information included in the newly added first-type test order, and record the test status of the second-type test order corresponding to the newly added first-type test order in the database;
[0126] The monitoring module is used to monitor the test status of each second-class test request from the JIRA library for each preset polling time interval, for each second-class test request whose test status is not completed in the database;
[0127] The first updating module is used to update the test status of the second type of test request form recorded in the database based on the test status of the second type of test request form monitored by the monitoring module from the jira library.
[0128] Optionally, the device may further include: a second updating module;
[0129] The second updating module is used to update the test status of the first type of test submission form corresponding to the target second type of test submission form to the completed status after adding the identifier of the target second type of test submission form to the first type of test submission form corresponding to the target second type of test submission form.
[0130] The embodiment of the present invention also provides a monitoring server, such as Figure 7 As shown, it includes a processor 701, a communication interface 702, a memory 703 and a communication bus 704, wherein the processor 701, the communication interface 702, and the memory 703 communicate with each other through the communication bus 704.
[0131] Memory 703, used for storing computer programs;
[0132] The processor 701 is configured to implement the method steps in the above method embodiment when executing the program stored in the memory 703 .
[0133] The communication bus mentioned in the electronic device mentioned above may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. This communication bus can be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is used in the figure, but this does not mean that there is only one bus or only one type of bus.
[0134] The communication interface is used for communication between the above electronic device and other devices.
[0135] The memory may include random access memory (RAM) or non-volatile memory (NVM), such as at least one disk storage. Alternatively, the memory may be at least one storage device located away from the processor.
[0136] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, and discrete hardware components.
[0137] In another embodiment provided by the present invention, a computer-readable storage medium is also provided, which stores a computer program. When the computer program is executed by a processor, the steps of any of the above-mentioned methods for processing a test submission form are implemented.
[0138] In another embodiment provided by the present invention, a computer program product including instructions is also provided, which, when executed on a computer, enables the computer to execute any one of the methods for processing a test submission form in the above embodiments.
[0139] In the above embodiments, all or part of the embodiments can be implemented by software, hardware, firmware, or any combination thereof. When implemented using software, all or part of the embodiments can be implemented in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of the present invention are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via a wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) method. The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server or data center that includes one or more available media. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state drive (SSD)).
[0140] It should be noted that, in this document, relational terms such as first and second, etc., are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply the existence of any such actual relationship or order between these entities or operations. Moreover, the terms "comprises," "comprising," or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article, or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or elements inherent to such process, method, article, or device. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of other identical elements in the process, method, article, or device comprising the element.
[0141] Each embodiment in this specification is described in a related manner. Similar portions between the embodiments can be referred to in conjunction with each other. Each embodiment focuses on the differences from other embodiments. In particular, the device embodiments are generally similar to the method embodiments, so their description is relatively simple. For related portions, refer to the description of the method embodiments.
[0142] The above description is only a preferred embodiment of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present invention are included in the scope of protection of the present invention.
Claims
1. A method for processing a test order, characterized in that: The method is applied to a monitoring server and includes: When a newly added first-category test submission form is detected on the task submission platform, content information of the newly added first-category test submission form is obtained, where the task submission platform is a platform for receiving first-category test submission forms submitted by first-category users; Based on the content information of the newly added first-type test request form, a second-type test request form corresponding to the newly added first-type test request form is created in the JIRA library. The second-type test request form is used to request testing of the program. The JIRA library is a platform that supports each second-type user to perform testing based on the second-type test request form. If it is monitored that the test status of the target second-category test order in the JIRA library is completed, the identifier of the target second-category test order is added to the first-category test order in the task submission platform corresponding to the target second-category test order, and the identifier of the target second-category test order is the test order number of the target second-category test order, so that the first-category user can query the target second-category test order from the JIRA library in the task submission platform based on the test order number of the target second-category test order in the first-category test order; According to the content information of the newly added first-type test submission form, a second-type test submission form corresponding to the newly added first-type test submission form is created in the JIRA library, including: Call the test order creation interface of the JIRA library, and add the content information of the newly added first-type test order to the corresponding items of the second-type test order; After creating a second type of test submission form corresponding to the newly added first type of test submission form in the JIRA library based on the content information included in the newly added first type of test submission form, the method further includes: Recording in a database the corresponding relationship between the newly added first-class test submission form and the second-class test submission form created for the newly added first-class test submission form; If the test status of the target second-class test order in the JIRA database is monitored to be completed, the identifier of the target second-class test order is added to the first-class test order corresponding to the target second-class test order, including: If the test status of the target second-class test order in the JIRA database is found to be completed, the identifier of the first-class test order corresponding to the target second-class test order is searched based on the correspondence between the recorded first-class test order and the second-class test order; Based on the identifier of the first type of test submission form corresponding to the second type of test submission form, searching for the first type of test submission form corresponding to the second type of test submission form in the task submission platform; Add the identifier of the target second-category test submission form to the first-category test submission form corresponding to the target second-category test submission form.
2. The method according to claim 1, characterized in that After creating a second type of test submission form corresponding to the newly added first type of test submission form in the JIRA library based on the content information included in the newly added first type of test submission form, the method further includes: Recording the test status of the second type of test submission form corresponding to the newly added first type of test submission form in the database; At each preset polling time interval, for each second-category test request form whose test status recorded in the database is not completed, monitoring the test status of the second-category test request form from the JIRA library; Based on the test status of the second-category test request form monitored from the JIRA library, the test status of the second-category test request form recorded in the database is updated.
3. The method according to claim 1 or 2, characterized in that After adding the identifier of the target second-class test delivery form to the first-class test delivery form corresponding to the target second-class test delivery form, the method further includes: The test status of the first-class test submission form corresponding to the target second-class test submission form is updated to a completed status.
4. A device for processing a test order, characterized in that: The device is applied to a monitoring server and includes: An acquisition module is configured to acquire content information of a newly added first-category test submission form upon monitoring the presence of the newly added first-category test submission form on the task submission platform, wherein the task submission platform is a platform for receiving first-category test submission forms submitted by first-category users; A creation module is configured to create, in a JIRA repository, a second-category test request form corresponding to the newly added first-category test request form, based on the content information included in the newly added first-category test request form obtained by the acquisition module. The second-category test request form is used to request testing of the program. The JIRA repository is a platform that supports each second-category user to perform testing based on the second-category test request form. An adding module is used for adding the identifier of the target second-category test order to the first-category test order in the task submission platform corresponding to the target second-category test order if the test status of the target second-category test order in the jira library is monitored to be completed. The identifier of the target second-category test order is the test order number of the target second-category test order, so that the first-category user can query the target second-category test order from the jira library in the task submission platform based on the test order number of the target second-category test order in the first-category test order; The creation module is specifically used to call the test order creation interface of the JIRA library, and add the content information of the newly added first-category test order to the corresponding items of the second-category test order; The device further includes: a recording module; The recording module is configured to, after creating a second-type test submission form corresponding to the newly added first-type test submission form in the JIRA library based on the content information included in the newly added first-type test submission form, record in the database the correspondence between the newly added first-type test submission form and the second-type test submission form created for the newly added first-type test submission form; The adding module is specifically used for: If the test status of the target second-class test order in the JIRA database is found to be completed, the identifier of the first-class test order corresponding to the target second-class test order is searched based on the correspondence between the recorded first-class test order and the second-class test order; Based on the identifier of the first type of test submission form corresponding to the second type of test submission form, searching for the first type of test submission form corresponding to the second type of test submission form in the task submission platform; Add the identifier of the target second-category test submission form to the first-category test submission form corresponding to the target second-category test submission form.
5. The device according to claim 4, characterized in that The device further includes: a monitoring module and a first updating module; The recording module is further configured to, after creating a second type of test request form corresponding to the newly added first type of test request form in the JIRA library based on the content information included in the newly added first type of test request form, record the test status of the second type of test request form corresponding to the newly added first type of test request form in the database; The monitoring module is configured to monitor the test status of each second-category test request form whose test status is not completed from the JIRA database at intervals of a preset polling duration; The first updating module is used to update the test status of the second type of test request form recorded in the database based on the test status of the second type of test request form monitored by the monitoring module from the JIRA library.
6. The device according to claim 4 or 5, characterized in that The device further includes: a second update module; The second updating module is used to update the test status of the first type of test submission form corresponding to the target second type of test submission form to a completed status after adding the identifier of the target second type of test submission form to the first type of test submission form corresponding to the target second type of test submission form.
7. A monitoring server, characterized in that: It includes a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus; Memory for storing computer programs; A processor, configured to implement the method steps described in any one of claims 1 to 3 when executing a program stored in a memory.
8. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method steps according to any one of claims 1 to 3 are implemented.
Citation Information
Patent Citations
Method, device and electronic equipment for processing testing information
CN106815143A