A method, apparatus and storage medium for intelligent screenshot storage
By using an intelligent screenshot storage method and automating the processing and renaming of screenshots with a text component, the problem of time-consuming, labor-intensive, and error-prone screenshots in computerized system verification is solved, thus improving verification efficiency and accuracy.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- MINGDU ZHIYUN (ZHEJIANG) TECH CO LTD
- Filing Date
- 2024-05-08
- Publication Date
- 2026-05-26
AI Technical Summary
During the verification process of computerized systems, screenshotting and renaming operations are time-consuming, labor-intensive, and error-prone, affecting verification efficiency and accuracy.
By using an intelligent screenshot storage method, multiple text components are used to obtain field information, which is then combined according to a set name format and automatically named. Combined with preset update rules, images are stored and managed to achieve automated renaming.
It simplifies file management, avoids human error, and improves the efficiency and accuracy of computer system verification.
Smart Images

Figure CN118568283B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of image storage management technology, and in particular to an intelligent screenshot storage method, device, and storage medium. Background Technology
[0002] Computerized system validation is a safeguard measure to ensure the continuous and stable operation of a computerized system and its intended functions. It is a crucial component of quality assurance in the pharmaceutical and related industries, involving multiple aspects such as computer software, hardware, and the overall system. It plays a vital role in verifying the effectiveness, safety, reliability, and compliance of a system. Therefore, it is necessary to design validation test cases to verify the normal functioning and logical integrity of various aspects of the system. During the validation process, screenshots of the test cases are continuously taken and compared with system screenshots to test and verify various functions of the system. To ensure the accuracy of the validation process, testers need to rename each captured image and match the screenshot number with the test case name for easy reference and documentation later. However, due to the numerous processes involved in computerized system validation, the screenshotting and renaming operations often consume a significant amount of time for operators, are time-consuming and labor-intensive, and are prone to errors. Summary of the Invention
[0003] This invention addresses the shortcomings of existing technologies by disclosing an intelligent screenshot storage method, comprising the following steps:
[0004] S1, after receiving the image acquisition instruction at the first screenshot instruction end, performs a screenshot operation on the specified area of the screen to acquire the target image;
[0005] S2, obtain field information from multiple text components, including at least a first text component for displaying and entering the content of the first field, and a second text component for displaying and updating the content of the second field. Combine the obtained first field content and second field content according to a set name format to form the image name for the target image.
[0006] S3. After naming the target image according to the image name, save it to the local image folder. Modify the current second field content according to the preset second field content update rules, save it, and display it on the second text component.
[0007] Preferably, the image acquisition instruction is configured to capture a screenshot of a specified area in the computerized system verification test case interface, the first field content is configured as verification test case identification information, and the second field content is configured as the step number of the verification test case; after acquiring and / or naming the screenshot in response to the image acquisition instruction received by the first screenshot instruction terminal, the current step number displayed in the second text component is incremented and updated to the next step number according to the preset second field content update rule, while keeping the verification test case identification information in the first text component unchanged.
[0008] Preferably, the multiple text components further include a third text component for displaying and updating the content of the third field. The intelligent screenshot storage method further includes: after receiving an image acquisition instruction at the second screenshot instruction terminal, performing a screenshot operation on a specified area of the screen to acquire a target image; acquiring the first field content in the current first text component, the second field content in the second text component, and the third field content in the third text component, wherein the third field content is used to name the image sequence number of the acquired screenshot under the current step number in the second text component; combining the acquired first field content, second field content, and third field content according to a set naming format to form an image name for the target image; after acquiring and naming the screenshot in response to the image acquisition instruction received at the second screenshot instruction terminal, incrementally updating the current image sequence number displayed in the third text component to the next sequence number according to a preset third field content update rule, while keeping the verification test case identification information in the first text component and the step number in the second text component unchanged.
[0009] Preferably, the intelligent screenshot storage method further includes: incrementing and updating the current step number displayed in the second text component to the next step number according to a preset second field content update rule; determining whether the current image sequence number in the third text component is an initial value; if it is not an initial value, restoring the image sequence number to the initial value according to the third field content update rule; obtaining the verification test case identification information of the first text component, the step number of the second text component, and the image sequence number of the third text component; arranging the obtained verification test case identification information, step number, and image sequence number according to a set name format and filling in auxiliary format content to form an image name for naming the target image; naming the target image according to the image name and saving it to the local image folder; incrementing and updating the current image sequence number displayed in the third text component to the next sequence number according to the preset third field content update rule, while keeping the verification test case identification information in the first text component and the image sequence number in the second text component unchanged.
[0010] Preferably, the intelligent screenshot storage method further includes: after the first text component responds to the modification instruction and modifies the current verification test case identification information to the collected input information, determining whether the current step number in the second text component is an initial value; if it is not an initial value, adjusting the step number to the initial value according to the second field content update rule; if it is an initial value, keeping it unchanged; determining whether the current image sequence number in the third text component is an initial value; if it is not an initial value, adjusting the image sequence number to the initial value according to the third field content update rule; if it is an initial value, keeping it unchanged.
[0011] Preferably, step S3 further includes: naming the target image according to the image name and saving it to a local image folder, and determining whether there is an image upload requirement configured. If so, obtaining the configured upload address and sending the named target image to the upload address.
[0012] This invention also discloses an intelligent screenshot storage device, including an image acquisition module, an image naming module, and a configuration update module. The image acquisition module is used to capture a specified area of the screen to obtain a target image after receiving an image acquisition command from a first screenshot command terminal. The image naming module is used to acquire field information from multiple text components, wherein the multiple text components include at least a first text component for displaying and inputting first field content, and a second text component for displaying and updating second field content. The acquired first and second field content are combined according to a set naming format to form an image name for the target image. The configuration update module is used to name the target image according to the image name and save it to a local image folder, modify the current second field content according to a preset second field content update rule, save the modification, and display it on the second text component.
[0013] Preferably, the image acquisition instruction is configured to capture a screenshot of a specified area in the computerized system verification test case interface, the first field content is configured as verification test case identification information, and the second field content is configured as the step number of the verification test case; after acquiring and / or naming the screenshot in response to the image acquisition instruction received by the first screenshot instruction terminal, the current step number displayed in the second text component is incremented and updated to the next step number according to the preset second field content update rule, while keeping the verification test case identification information in the first text component unchanged.
[0014] The present invention also discloses a server, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the steps of any of the above-described intelligent screenshot storage methods.
[0015] The present invention also discloses a computer-readable storage medium storing a computer program, which, when executed by a processor, performs the steps of any of the above-described intelligent screenshot storage methods.
[0016] The intelligent screenshot storage method, device, and storage medium disclosed in this invention, upon receiving a user's image acquisition instruction, takes a screenshot of a specified area of the current test case screen and renames and stores the captured image according to preset rules. The image renaming name is configured in multiple text components on the current test case interface. By acquiring the first and second field information within these text components, combining them according to a set name format, and updating them according to preset content update rules, the automatic renaming of the screenshot captured by the test case can be completed. This automatic screenshotting and renaming greatly simplifies file management during computer system verification, avoids potential human errors during screenshotting and renaming, and improves the efficiency and accuracy of computer system verification.
[0017] Additional aspects and advantages of the invention will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. Attached Figure Description
[0018] The accompanying drawings, which are included to provide a further understanding of the invention and form part of this application, illustrate exemplary embodiments of the invention and are used to explain the invention. They do not constitute an undue limitation of the invention. In the drawings:
[0019] Figure 1 This is a schematic diagram illustrating the steps of an intelligent screenshot storage method disclosed in an embodiment of the present invention.
[0020] Figure 2 This is a schematic diagram of a screenshot client disclosed in an embodiment of the present invention.
[0021] Figure 3 This is a schematic diagram of a receiving end disclosed in an embodiment of the present invention.
[0022] Figure 4 This is a schematic diagram illustrating the steps of an intelligent screenshot storage method disclosed in another embodiment of the present invention.
[0023] Figure 5 This is a schematic diagram of the steps of the intelligent screenshot storage method during step switching disclosed in another embodiment of the present invention.
[0024] Figure 6 This is a structural block diagram of an intelligent screenshot storage device disclosed in another embodiment of the present invention.
[0025] Figure 7This is a structural block diagram of a server for executing a smart screenshot storage method, as disclosed in another embodiment of the present invention. Detailed Implementation
[0026] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of the present invention. All other embodiments obtained by those skilled in the art based on the described embodiments of the present invention without creative effort are within the scope of protection of the present invention.
[0027] Unless otherwise defined, the technical or scientific terms used herein shall have the ordinary meaning as understood by one of ordinary skill in the art to which this invention pertains. The terms “first,” “second,” and similar terms used in the specification and claims of this patent application do not indicate any order, quantity, or importance, but are merely used to distinguish different components. Similarly, the terms “an” or “a” and similar terms do not indicate a limitation of quantity, but rather indicate the presence of at least one.
[0028] Computerized system validation is a safeguard measure to ensure the continuous and stable operation of a computerized system and its intended functions. It is a crucial component of quality assurance in the pharmaceutical and related industries, involving multiple aspects such as computer software, hardware, and the overall system. It plays a vital role in verifying the effectiveness, safety, reliability, and compliance of a system. Therefore, it is necessary to design validation test cases to verify the normal functioning and logical integrity of various aspects of the system. During the validation process, screenshots of the test cases are continuously taken and compared with system screenshots to test and verify various functions of the system. To ensure the accuracy of the validation process, testers need to rename each captured image and match the screenshot number with the test case name for easy comparison and documentation later. However, due to the numerous processes involved in computerized system validation, the screenshotting and renaming operations often consume a significant amount of time for operators, are time-consuming and labor-intensive, and are prone to errors.
[0029] Example 1:
[0030] This embodiment discloses an intelligent screenshot storage method, as shown in the attached figure. Figure 1 As shown, the steps include the following.
[0031] Step S11: After receiving the image acquisition instruction at the first screenshot instruction terminal, a screenshot operation is performed on the specified area of the screen to acquire the target image.
[0032] Specifically, this intelligent screenshot storage method is applied within a software system that includes multiple screenshot clients and receiving terminals. The screenshot client is shown in the attached image. Figure 2 As shown, this is responsible for generating, naming, and uploading screenshots; the receiving end is shown in the attached image. Figure 3 As shown, the screenshot client is responsible for receiving, storing, and displaying screenshots. The two communicate via a local area network (LAN) to address situations where the computer system verification site lacks internet access and cannot aggregate data online. When a user runs the screenshot client for the first time, they configure the verification test case information, step number, image number, and receiving end network address through the graphical user interface. This configuration information is saved in a local configuration file for continued use after the program restarts.
[0033] In this embodiment, both the screenshot client and the receiving end are portable executable programs developed using the Python programming language, and the reliability and security of data transmission are ensured through the HTTP communication protocol. Furthermore, the screenshot function is implemented using third-party Python libraries, and the receiving end is developed using lightweight web server frameworks such as FastAPI (Python) and PyQt5 (Python).
[0034] In this embodiment, the first screenshot command terminal is configured as a step-by-step screenshot command terminal. The user triggers the step-by-step screenshot command button to take a screenshot of the current step. After receiving the step-by-step screenshot command, the client program calls a third-party library to capture the current screen interface. The image acquisition command is configured to capture a screenshot of a specified area within the computerized system verification test case interface.
[0035] Step S12: Obtain field information from multiple text components, including at least a first text component for displaying and entering the content of the first field, and a second text component for displaying and updating the content of the second field. Combine the obtained first field content and second field content according to a set name format to form the image name for the target image.
[0036] In this embodiment, the content of the first field is configured as verification test case identification information, and the content of the second field is configured as the step number of the verification test case.
[0037] Specifically, the client configuration information includes verification test case identification and step number, among other information. The verification test case identification information is shown in the attached figure. Figure 2 As indicated by the prefix CSV-QQQ, in this embodiment, it is configured in the form of user ID + task number. This is used to categorize and archive images during the screenshot and storage process, and to obtain the corresponding system screenshot image for computer system verification. Each time a screenshot is completed, the client automatically generates a filename for the screenshot based on the current verification test case identification information and step number. For example, CSV-000-16 indicates that the image was captured in step 16 of the CSV-000 verification test case.
[0038] Step S13: After naming the target image according to the image name, save it to the local image folder. Modify the content of the current second field according to the preset second field content update rules and save the specific content. After each screenshot is completed, the client automatically saves the image to the disk, automatically updates the step number according to the user configuration, and displays it on the second text component.
[0039] Specifically, after each screenshot is taken, the client automatically saves the image to the disk and automatically updates the step number according to the user configuration. In this embodiment, the step number is incremented in natural number order, so step S13 specifically includes the following content.
[0040] Step S131: After naming the target image according to the image name, save it to the local image folder, and determine whether there is an image upload requirement. If so, obtain the configured upload address and send the named target image to the upload address.
[0041] After a screenshot is taken, if the user has enabled the upload function, the screenshot file will be automatically uploaded to the address specified on the receiving end via an HTTP POST request or other suitable file transfer protocol. The receiving end listens for upload requests from clients, receives the screenshot files uploaded by clients, and saves them to a specified directory. This directory is automatically generated locally by the receiving end and lists all received screenshots; users can view all received images in this directory.
[0042] Step S132: After acquiring and / or naming the screenshot in response to the image acquisition instruction received from the first screenshot instruction terminal, the current step number displayed in the second text component is incremented and updated to the next step number according to the preset second field content update rule, while keeping the verification test case identification information in the first text component unchanged.
[0043] For example, if the step number is 16, then after taking the screenshot, the step number in the configuration information will be changed to 17. This incremental method automates image renaming, avoiding human error caused by manual renaming.
[0044] In another embodiment, the updated content of the second field can also be configured to skip settings based on the field configuration table to achieve step-by-step verification and increase the flexibility of computerized system verification.
[0045] Example 2:
[0046] This embodiment also discloses an intelligent screenshot storage method. Compared with Embodiment 1, its multiple text components further include a third text component for displaying and updating the content of the third field, as shown in the attached figure. Figure 4 As shown, the specific steps include the following.
[0047] Step S21: After receiving the image acquisition instruction at the second screenshot instruction terminal, a screenshot operation is performed on the specified area of the screen to acquire the target image.
[0048] In this embodiment, the client configuration information, compared to Embodiment 1, also includes image sequence number information to distinguish multiple images captured by the user in the same step. The second screenshot command terminal is configured as a one-step multiple-image command terminal. Within the same step, the user can trigger the one-step multiple-image command button multiple times to call the client to capture the current screen interface multiple times. The prefixes (verification test case identification information), step numbers, etc., of the captured multiple images are the same, only the image numbers differ.
[0049] Step S22: Obtain text information from multiple field components, including at least a first field component for displaying and inputting first text content, a second field component for displaying and updating second text content, and a third text component for displaying and updating third field content. Combine the obtained first, second, and third field contents according to a set naming format to form an image name for the target image. The third field content is used to name the image sequence number of the captured screenshot under the current step number in the second text component.
[0050] For example, CSV-000-16-1 represents the first image captured by the system in step 16 of the CSV-000 verification task.
[0051] Step S23: After acquiring and naming the screenshot in response to the image acquisition instruction received by the second screenshot instruction terminal, the current image sequence number displayed in the third text component is incremented and updated to the next sequence number according to the preset third field content update rule, while keeping the verification test case identification information in the first text component and the step number in the second text component unchanged.
[0052] After the screenshot is taken and saved, the image sequence number in the configuration information is incremented and updated so that when the next image is obtained in this step, the sequence number of the next image is incremented while other information remains unchanged, which facilitates the storage and comparison of images.
[0053] In this embodiment, as shown in the appendix Figure 5 As shown, when the user triggers the "One Step, One Image" button, which is the first screenshot command, the following steps are also included.
[0054] Step S101: After receiving the image acquisition instruction at the first screenshot instruction terminal, a screenshot operation is performed on the specified area of the screen to acquire the target image.
[0055] When the client's configuration information includes image sequence number information, that is, when the text component contains a third text component for displaying and updating the content of the third field, the user can switch the steps of taking a screenshot by triggering the "One-Step-One-Image" button on the first screenshot command terminal.
[0056] Step S102: The current step number displayed in the second text component is incremented and updated to the next step number according to the preset second field content update rule. It is determined whether the current image sequence number in the third text component is the initial value. If it is not the initial value, the image sequence number is restored to the initial value according to the third field content update rule. The verification test case identification information of the first text component, the step number of the second text component, and the image sequence number of the third text component are obtained. The obtained verification test case identification information, step number, and image sequence number are arranged according to the set name format and filled with auxiliary format content to form the image name used to name the target image.
[0057] After the user triggers the first screenshot command, the client updates the second field (step number) in the configuration information and restores the third field to ensure that the image sequence number of the images captured in different steps starts from the initial value, avoiding image naming confusion and making the images easy to find and compare.
[0058] Step S103: After naming the target image according to the image name, save it to the local image folder. Update the current image sequence number displayed in the third text component to the next sequence number according to the preset third field content update rule, while keeping the verification test case identification information in the first text component and the image sequence number in the second text component unchanged.
[0059] In this embodiment, the computer system verification process typically involves multiple steps and stages. Therefore, it is common for the current computer system verification to be paused while another system verification is performed on the same device. To improve client utilization and the efficiency of various computer system verifications, the client also needs to adapt to situations where multiple verification test cases are performed concurrently. This includes the following:
[0060] Step S201: After the first text component responds to the modification instruction and modifies the current verification test case identification information to the collected input information, it identifies the field information in the names of each image in the local image folder and determines whether there is an image in the local image folder whose first field content is the same as the verification test case identification information in the current first text component.
[0061] Step S202: If it exists, obtain the last step number and the last image sequence number from the last image name with the largest content in the second field and the largest content in the third field. Then, according to the update rule of the second field content, adjust the current step number in the second text component, and according to the update rule of the third field content, adjust the current image sequence number in the third text component to the next image sequence number of the last image sequence number.
[0062] Step S203: If it does not exist, determine whether the current step number in the second text component is an initial value. If it is not an initial value, adjust the step number to the initial value according to the second field content update rule. If it is an initial value, keep it unchanged. Determine whether the current image sequence number in the third text component is an initial value. If it is not an initial value, adjust the image sequence number to the initial value according to the third field content update rule. If it is an initial value, keep it unchanged.
[0063] With the above features, when users switch verification test cases, the current image naming content can be automatically adjusted based on the verification test case information without manual configuration, thus improving the automation level of image management.
[0064] In this embodiment, screenshot steps can also be pre-set by configuring an information table to enable cross-step screenshots, specifically including the following content.
[0065] Step S301: After acquiring and naming the screenshot received from the screenshot command terminal, the first position corresponding to the current image name is queried in the configuration information table according to the current step number in the second text component and the current image sequence number in the third text component. The configuration information table contains the fixed step sequence number configured in the set order under the verification test case and the fixed image sequence number under the fixed step sequence number.
[0066] Step S302: Obtain the step number and image sequence number of the next position after the first position in the configuration information table, adjust the current step number in the second text component to the step number of the next position, and adjust the current image sequence number in the third text component to the image number of the next position.
[0067] The above features enable users to perform cross-step verification freely through the client, improving the flexibility of the system verification process.
[0068] Furthermore, the client can also take screenshots on another device via a mobile device such as a USB flash drive and continue the previous numbering. Therefore, the above embodiments further include the following:
[0069] Step S401: The client execution program responds to the user's screenshot command on the current device, performs a screenshot operation on the specified area of the current device screen, collects the first text information group in the first control interface, combines it according to the set name format to form the first image name used for this screenshot, updates the content of the first text information group according to the content update rules of each field, obtains the second text information group, and records it to the configuration file.
[0070] In step S402, after transferring the client executable program and configuration file from the current device to the second device, the client executable program responds to the user's first wake-up command on the second device, displays the second control interface on the second device according to the configuration file, and presents each piece of information in the second text information group to the multiple text components corresponding to the second control interface.
[0071] Furthermore, step S402 also includes the following:
[0072] In step S501, after transferring the executable program and configuration file from the second device, the executable program responds to the user's first wake-up command on the second device and displays the second control interface on the second device according to the configuration file.
[0073] Step S502: Parse each text information in the second text information group and fill it into the corresponding text component of the second control interface.
[0074] Step S503: Identify whether a historical screenshot folder exists in the configuration file. If it exists, obtain the address of the historical screenshot folder and send a confirmation message asking whether to continue using the current historical screenshot folder to store new screenshots. If not, create a new screenshot folder to store new screenshots. After device replacement, the image storage address is reconfirmed to select the optimal method for saving images based on different test case content, improving the flexibility and systematic nature of image storage.
[0075] In this embodiment, step S402 further includes the following:
[0076] Step S601: The program responds to the user's first wake-up command on the second device, obtains the first step number of the corresponding second text component in the second text information group, and obtains the second step number according to the second field content update rule stored in the configuration file. The second step number is the step number located next to the first step number obtained according to the second field content update rule.
[0077] Specifically, device switching usually means switching verification test case steps. To avoid image naming errors caused by operator mistakes, this embodiment automatically updates the step numbers after device switching to improve naming accuracy.
[0078] Step S602: Send information on whether to update the step number in the second text component. If the user confirms the update instruction, fill the second step number into the second text component, and restore the image number in the third text component to its initial value according to the third field content update rule.
[0079] Step S603: If a user confirms that no update is required, then fill each text information in the second text information group into the corresponding text component of the second control interface.
[0080] By automatically updating the step number after device switching and obtaining user confirmation, image naming errors caused by untimely updates of step numbers are avoided during device switching.
[0081] Step S403: The program responds to the user's screenshot command on the second device, performs a screenshot operation on a specified area of the screen of the second device, collects the second text information group in the second control interface, and combines it according to the set name format to form the second image name used for this screenshot.
[0082] In this embodiment, step S403 specifically includes:
[0083] Step S701: Obtain the last image name in the historical screenshot folder, and determine whether the second image name is consecutive to the last image name according to the naming update rules.
[0084] Step S702: If the content of the first field of the second image name is different from that of the tail image name, then determine whether the content of the second field and the third field of the second image name are the initial values. If they are not the initial values, then issue a screenshot naming error reminder.
[0085] Specifically, when the content of the first field changes, it indicates that the verification test case has changed, and the content of the second and third fields needs to start from the initial value again. If the content of the second and third fields is not the initial value at this time, it indicates that the system screenshot is named incorrectly.
[0086] Step S703: If the content of the first field of the second image name is the same as that of the last image name, then determine whether the content of the second field of the second image name is the same as that of the last image name; if the second field is also the same, then determine whether the third field is an adjacent value arranged according to the update rule of the third field content; if it is not an adjacent value, then issue a screenshot naming error reminder; if the second field is different, then determine whether the second field is an adjacent value arranged according to the update rule of the second field content; if it is not an adjacent value, then issue a screenshot naming error reminder; if it is an adjacent value, then issue a screenshot naming error reminder when the third field of the second image name is not the initial value.
[0087] The above features enable automatic updates of configuration information during device switching, allowing users to complete the computer system verification process on different devices and ensuring the continuity of naming and numbering of images captured from multiple devices.
[0088] In this embodiment, the receiving end can also simultaneously receive image content uploaded by multiple clients and summarize the uploaded images, specifically including the following:
[0089] Step S801: Receive the first client image sent by the first client after taking a screenshot of a selected area of the interface of the computerized system verification test case running on the first client.
[0090] Step S802: Obtain the image name of the second client image stored in the image file library. The second client image is an image obtained by taking a screenshot of another selected area of the same computerized system verification test case running on the second client, sent by the second client.
[0091] Step S803: After sorting the first client image and the second client image according to the update rules of the corresponding fields of the verification test case, store them in the corresponding sorting position in the image file library.
[0092] Specifically, step S803 also includes the following:
[0093] Step S901: Identify the content of each field in the received first client image name according to the field content update rules. If there is a second client image with the same step number as the first client image name, obtain the first client image number in the first client image name and the second client image number in the second client image name.
[0094] In step S902, if the image number of the first client is before the image number of the second client, it is saved to the image file library. If the image number of the first client is after the image number of the second client or is the same as the image number of the second client, a verification step repetition reminder is sent to the first client. If a confirmation save instruction is received from the first client, the first client image is sorted according to the image number order of the first client image and the second client image, and then stored in the corresponding sorting position in the image file library.
[0095] When receiving screenshots uploaded by a client, the system takes into account screenshots uploaded by other clients to reorder and rename images that do not meet the order requirements. This improves the cleanliness and sequence of images stored in the image library and avoids unnecessary naming or screenshot duplication caused by the inability of different clients to communicate in a timely manner.
[0096] Step S902 further includes: if the first client image number is after or the same as the second client image number, then query the image file library for the step numbers of each image name with the same verification test case identification information to form a verified step sequence, and send a verification step duplication reminder to the first client. The verification step duplication reminder includes the step number of the current image that is judged to be duplicated, and replacement step suggestion information containing the verified step sequence. By providing the first terminal with the verified step sequence, the first terminal avoids repeatedly selecting already verified steps, thus improving verification efficiency.
[0097] Step S902 further includes: if the first client image number is after the second client image number, and according to the third field content update rule, a third client image number exists between the first client image number and the second client image number, and the screenshot image with the third client image number has not yet been stored in the image file library, then image supplement information is sent to the first client. This image supplement information includes the step number and image number to which the missing image belongs. By querying the missing image number and sending the missing information and supplement information to the first device, image loss caused by transmission errors during the previous image transmission is screened and supplemented, avoiding incomplete image acquisition during the verification process.
[0098] The intelligent screenshot storage method, device, and storage medium disclosed in this invention, upon receiving a user's image acquisition instruction, takes a screenshot of a specified area of the current test case screen and renames and stores the captured image according to preset rules. The image renaming name is configured in multiple text components on the current test case interface. By acquiring the first and second field information within these text components, combining them according to a set name format, and updating them according to preset content update rules, the automatic renaming of the screenshot captured by the test case can be completed. This automatic screenshotting and renaming greatly simplifies file management during computer system verification, avoids potential human errors during screenshotting and renaming, and improves the efficiency and accuracy of computer system verification.
[0099] In another embodiment, as shown in the appendix Figure 6As shown, a smart screenshot storage device is also disclosed, including an image acquisition module 1, an image naming module 2, and a configuration update module 3. The image acquisition module 1 is used to capture a specified area of the screen to obtain a target image after receiving an image acquisition command from a first screenshot command terminal. The image naming module 2 is used to acquire field information from multiple text components, including at least a first text component for displaying and inputting first field content, and a second text component for displaying and updating second field content. The acquired first and second field content are combined according to a set naming format to form an image name for the target image. The configuration update module 3 is used to name the target image according to the image name and save it to a local image folder, modify the current second field content according to a preset second field content update rule, save the modification, and display it on the second text component.
[0100] In this embodiment, the image acquisition instruction is configured to capture a screenshot of a specified area in the computerized system verification test case interface. The first field content is configured as verification test case identification information, and the second field content is configured as the step number of the verification test case. After acquiring and / or naming the screenshot in response to the image acquisition instruction received by the first screenshot instruction terminal, the current step number displayed in the second text component is incremented and updated to the next step number according to the preset second field content update rule, while keeping the verification test case identification information in the first text component unchanged.
[0101] It should be noted that the various embodiments in this specification are described in a progressive manner, with each embodiment focusing on the differences from other embodiments. Similar parts between embodiments can be referred to interchangeably. As for the intelligent screenshot storage device disclosed in the embodiments, since it corresponds to the intelligent screenshot storage method disclosed in the embodiments, the description is relatively simple, and relevant parts can be referred to the foregoing method section.
[0102] In other embodiments, as shown in the appendix Figure 7 As shown, a server is also provided, including a memory 1004, a processor 1003, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, it implements the various steps of the intelligent screenshot storage method described in the above embodiments. The server may include, but is not limited to, a processor and a memory. Those skilled in the art will understand that the schematic diagram is merely an example of a server and does not constitute a limitation on the server. It may include more or fewer components than illustrated, or combine certain components, or use different components.
[0103] If the intelligent screenshot storage device is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, all or part of the processes in the above embodiments of the present invention can also be implemented by a computer program instructing related hardware. The computer program can be stored in a computer-readable storage medium, and when executed by a processor, it can implement the steps of the various intelligent screenshot storage method embodiments described above. The computer program includes computer program code, which can be in the form of source code, object code, executable files, or certain intermediate forms. The computer-readable medium can include: any entity or device capable of carrying the computer program code, recording media, USB flash drives, portable hard drives, magnetic disks, optical disks, computer memory, read-only memory, random access memory, electrical carrier signals, telecommunication signals, and software distribution media, etc. It should be noted that the content included in the computer-readable medium can be appropriately added or removed according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable media do not include electrical carrier signals and telecommunication signals.
[0104] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.
[0105] In summary, the above description is only a preferred embodiment of the present invention. All equivalent changes and modifications made within the scope of the claims of the present invention should be covered by the present invention.
Claims
1. A smart screenshot storage method, characterized in that, Includes the following steps: S1, after receiving the image acquisition instruction at the first screenshot instruction terminal, a screenshot operation is performed on a specified area of the screen to acquire the target image; the image acquisition instruction is configured to capture a screenshot of a specified area in the computerized system verification test case interface, the first field content is configured as verification test case identification information, and the second field content is configured as the step number of the verification test case; after acquiring and / or naming the screenshot in response to the image acquisition instruction received at the first screenshot instruction terminal, the current step number displayed in the second text component is incremented and updated to the next step number according to the preset second field content update rule, while keeping the verification test case identification information in the first text component unchanged; S2, acquire field information from multiple text components, including at least a first text component for displaying and inputting the first field content, and a second text component for displaying and updating the second field content. Combine the acquired first and second field content according to a set naming format to form an image name for the target image. The multiple text components also include a third text component for displaying and updating the third field content. After receiving an image acquisition command at the second screenshot command end, perform a screenshot operation on a specified area of the screen to acquire the target image. Acquire the first field content from the first text component, the second field content from the second text component, and the third field content from the third text component. The third field content is used to name the image sequence number of the captured screenshot under the current step number in the second text component. Combine the acquired first, second, and third field content according to a set naming format to form an image name for the target image. After the screenshot is captured and named in response to the image capture command received by the second screenshot command terminal, the current image sequence number displayed in the third text component is incremented and updated to the next sequence number according to the preset third field content update rule, while keeping the verification test case identification information in the first text component and the step number in the second text component unchanged. S3. After naming the target image according to the image name, save it to the local image folder. Modify the current second field content according to the preset second field content update rules, save it, and display it on the second text component.
2. The intelligent screenshot storage method according to claim 1, characterized in that, Also includes: After receiving the image acquisition command at the first screenshot command terminal, a screenshot operation is performed on the specified area of the screen to acquire the target image; The current step number displayed in the second text component is incremented and updated to the next step number according to the preset second field content update rule. It is determined whether the current image sequence number in the third text component is the initial value. If it is not the initial value, the image sequence number is restored to the initial value according to the third field content update rule. The verification test case identification information of the first text component, the step number of the second text component, and the image sequence number of the third text component are obtained. The obtained verification test case identification information, step number, and image sequence number are arranged according to the set name format and filled with auxiliary format content to form the image name used to name the target image. After naming the target image according to the image name, save it to the local image folder. Update the current image sequence number displayed in the third text component to the next sequence number according to the preset third field content update rules, while keeping the verification test case identification information in the first text component and the image sequence number in the second text component unchanged.
3. The intelligent screenshot storage method according to claim 2, characterized in that, Also includes: After the first text component responds to the modification instruction and modifies the current verification test case identification information to the collected input information, it determines whether the current step number in the second text component is an initial value. If it is not an initial value, the step number is adjusted to the initial value according to the second field content update rule; if it is an initial value, it remains unchanged. It then determines whether the current image sequence number in the third text component is an initial value. If it is not an initial value, the image sequence number is adjusted to the initial value according to the third field content update rule; if it is an initial value, it remains unchanged.
4. The intelligent screenshot storage method according to claim 3, characterized in that, Step S3 further includes: After naming the target image according to the image name, save it to the local image folder, and determine whether there is an image upload requirement. If so, obtain the configured upload address and send the named target image to the upload address.
5. A smart screenshot storage device, characterized in that, include: The image acquisition module is used to capture the target image by taking a screenshot of a specified area of the screen after receiving the image acquisition instruction from the first screenshot instruction terminal. The image acquisition instruction is configured to capture a screenshot of a specified area in the computerized system verification test case interface. The first field content is configured as the verification test case identification information, and the second field content is configured as the step number of the verification test case. After the image acquisition instruction received by the first screenshot instruction terminal is acquired and / or named, the current step number displayed in the second text component is incremented and updated to the next step number according to the preset second field content update rule, while keeping the verification test case identification information in the first text component unchanged. The image naming module is used to obtain field information from multiple text components. These text components include at least a first text component for displaying and inputting the first field content, and a second text component for displaying and updating the second field content. The obtained first and second field content are combined according to a set naming format to form an image name for the target image. The multiple text components also include a third text component for displaying and updating the third field content. After receiving an image acquisition command at the second screenshot command end, a screenshot operation is performed on a specified area of the screen to acquire the target image. The module obtains the first field content from the first text component, the second field content from the second text component, and the third field content from the third text component. The third field content is used to name the image sequence number of the captured screenshot under the current step number in the second text component. The obtained first, second, and third field content are combined according to a set naming format to form an image name for the target image. After the screenshot is captured and named in response to the image capture command received by the second screenshot command terminal, the current image sequence number displayed in the third text component is incremented and updated to the next sequence number according to the preset third field content update rule, while keeping the verification test case identification information in the first text component and the step number in the second text component unchanged. The configuration update module is used to name the target image according to the image name and save it to the local image folder, modify the current second field content according to the preset second field content update rules, save it and display it on the second text component.
6. The intelligent screenshot storage device according to claim 5, characterized in that: The image acquisition instruction is configured to capture a screenshot of a specified area in the computerized system verification test case interface, the first field content is configured as verification test case identification information, and the second field content is configured as the step number of the verification test case; After acquiring and / or naming the screenshot in response to the image acquisition command received by the first screenshot command terminal, the current step number displayed in the second text component is incremented and updated to the next step number according to the preset second field content update rule, while keeping the verification test case identification information in the first text component unchanged.
7. A server, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, it implements the steps of the method as described in any one of claims 1-4.
8. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, it implements the steps of the method as described in any one of claims 1-4.