Intelligent screenshot storage method and device and storage medium

Through the intelligent screenshot storage method, text components are used to automatically combine and update names, which solves the problem of cumbersome screenshots and renaming operations in computer system verification, and improves efficiency and accuracy.

CN118568283AActive Publication Date: 2024-08-30MINGDU ZHIYUN (ZHEJIANG) TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410560735.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-08
Publication Date
2024-08-30
Estimated Expiration
2044-05-08

AI Technical Summary

Technical Problem

In the computerized system verification process, screenshots and image renaming operations are cumbersome and error-prone, taking up a lot of time and affecting efficiency and accuracy.

Method used

Through the intelligent screenshot storage method, multiple text components are used to obtain field information, combined and updated according to the set name format, and the screenshot images are automatically named and saved to realize the automated screenshot and renaming process.

Benefits of technology

It greatly simplifies file management work, avoids human errors, and improves the efficiency and accuracy of computer system verification.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118568283A
    Figure CN118568283A
Patent Text Reader

Abstract

According to the intelligent screenshot storage method and device and the storage medium disclosed by the invention, after the first screenshot instruction end receives the picture acquisition instruction, the screenshot operation is performed on the specified area of the screen to acquire the target picture; obtaining field information in a plurality of text components which at least comprise 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 at present; and then combining the obtained first field content and the second field content according to a set name format to form a picture name for the current target picture, naming the target picture according to the picture name, and storing the named target picture in a local picture folder. Finally, the current second field content is subjected to content modification according to a preset second field content updating rule and then stored and displayed on a second text component, automatic acquisition and management of various screenshots in the computer system verification process are achieved, and the complexity and the error rate of manual operation are reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of picture storage management, and in particular to an intelligent screenshot storage method, device and storage medium. Background Art

[0002] Computerized system verification is a safeguard measure implemented to ensure that the computerized system continues to operate stably and stably. It is an important part of quality assurance in the pharmaceutical and related industries. It involves computer software, hardware, and the overall system. It plays a very important role in verifying whether a system is effective, safe, reliable, and compliant with specifications. To this end, it is necessary to design a verification case to verify that the various functions of the system are normal and logically complete, and to continuously take screenshots of the test case and compare them with the system screenshots during the verification process to achieve testing and verification of various aspects of the system. Among them, in order to ensure the accuracy of the verification process, the tester needs to rename each captured image and match the number name of each screenshot with the test case to facilitate subsequent comparison and document writing. However, due to the numerous processes involved in computerized system verification, the operations of taking screenshots and renaming the screenshot images often take up a lot of time for the operator, which is time-consuming, labor-intensive, and prone to errors. Summary of the invention

[0003] In view of the deficiencies in the prior art, the present invention discloses an intelligent screenshot storage method, comprising the following steps:

[0004] S1, after receiving the image acquisition instruction, the first screenshot instruction terminal performs a screenshot operation on the specified area of ​​the screen to obtain the target image;

[0005] S2, obtaining field information in the current multiple text components, wherein the multiple text components at least include 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, and combining the obtained first field content and the second field content according to a set name format to form a picture name for the current target picture;

[0006] S3, naming the target image according to the image name and saving it to a local image folder, modifying the current second field content according to a preset second field content update rule, and saving and displaying it on the second text component.

[0007] Preferably, the image acquisition instruction is configured to capture a screenshot image of a specified area in a computerized system verification use case interface, the first field content is configured as verification use case identification information, and the second field content is configured as the step number of the verification use case; after acquiring and / or naming the screenshot in response to the image acquisition instruction received by the first screenshot instruction end, the current step number displayed in the second text component is incrementally updated to the next step number according to a preset second field content update rule, and the verification use case identification information in the first text component is kept unchanged.

[0008] Preferably, the multiple text components also include a third text component for displaying and updating the content of a third field, and the intelligent screenshot storage method also includes: after the second screenshot instruction end receives the image acquisition instruction, performing a screenshot operation on a designated 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 name format to form a picture name for the target image this time; after acquiring and naming the screenshot in response to the image acquisition instruction received by the second screenshot instruction end, the current image sequence number displayed in the third text component is incrementally updated to the next sequence number according to a preset third field content update rule, and the verification case identification information in the first text component and the step number in the second text component are kept unchanged.

[0009] Preferably, the intelligent screenshot storage method also includes: incrementally updating the current step number displayed in the second text component to the next step number according to the preset second field content update rule, determining whether the current image sequence number in the third text component is the initial value, and if it is not the initial value, restoring the image sequence number to the initial value according to the third field content update rule, obtaining the verification 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 case identification information, step number and image sequence number according to the set name format and filling the auxiliary format content to form a picture name for naming the target picture this time; naming the target picture according to the picture name and saving it to a local picture folder, incrementally 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, and keeping the verification case identification information in the first text component and the image sequence number in the second text component unchanged.

[0010] Preferably, the smart screenshot storage method also includes: after the first text component responds to the modification instruction to modify the current verification use case identification information to the collected input information, determining whether the current step number in the second text component is the initial value, if not the initial value, adjusting the step number to the initial value according to the second field content update rule, if it is the initial value, remaining unchanged; determining whether the current image sequence number in the third text component is the initial value, if not the initial value, adjusting the image sequence number to the initial value according to the third field content update rule, if it is the initial value, remaining unchanged.

[0011] Preferably, the 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 a configured image upload requirement, and if so, obtaining the configured upload address, and sending the named target image to the upload address.

[0012] The present invention also discloses an intelligent screenshot storage device, comprising a picture acquisition module, a picture naming module and a configuration update module, wherein the picture acquisition module is used to perform a screenshot operation on a designated area of ​​a screen to acquire a target picture after receiving a picture acquisition instruction at a first screenshot instruction end; the picture naming module is used to acquire field information in multiple text components at present, wherein the multiple text components at least include a first text component for displaying and entering the content of a first field, and a second text component for displaying and updating the content of a second field, and the acquired first field content and second field content are combined according to a set name format to form a picture name for the current target picture; the configuration update module is used to name the target picture according to the picture name and save it in a local picture folder, and modify the current second field content according to a preset second field content update rule and save it and display it on the second text component.

[0013] Preferably, the image acquisition instruction is configured to capture a screenshot image of a specified area in a computerized system verification use case interface, the first field content is configured as verification use case identification information, and the second field content is configured as the step number of the verification use case; after acquiring and / or naming the screenshot in response to the image acquisition instruction received by the first screenshot instruction end, the current step number displayed in the second text component is incrementally updated to the next step number according to a preset second field content update rule, and the verification use case identification information in the first text component is kept unchanged.

[0014] The present invention also discloses a server, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of any of the above-mentioned intelligent screenshot storage methods when executing the computer program.

[0015] The present invention also discloses 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 intelligent screenshot storage methods are performed.

[0016] The intelligent screenshot storage method, device and storage medium disclosed in the present invention, after receiving the user's picture acquisition instruction, take a screenshot of the specified area of ​​the current test case screen and rename and store the captured picture according to preset rules, wherein the name content of the renamed picture is configured in multiple text components on the current test case interface, and the first field information and the second field information in the multiple text components are obtained, and they are combined according to the set name format and updated according to the preset content update rules, so as to complete the automatic renaming of the test case screenshot. Through the above-mentioned automatic screenshot and automatic renaming of the picture, the file management work in the computer system verification process is greatly simplified, the human errors that may occur in the screenshot and renaming process are avoided, and the efficiency and accuracy of the computer system verification work are improved.

[0017] Additional aspects and advantages of the present invention will be given in part in the following description and in part will be obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of the present application. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:

[0019] Figure 1 A schematic diagram of the steps of an intelligent screenshot storage method disclosed in one embodiment of the present invention.

[0020] Figure 2 A schematic diagram of a screenshot client disclosed in an embodiment of the present invention.

[0021] Figure 3 A schematic diagram of a receiving end disclosed in an embodiment of the present invention.

[0022] Figure 4 A schematic diagram of the steps of an intelligent screenshot storage method disclosed in another embodiment of the present invention.

[0023] Figure 5 A schematic diagram of the steps of an 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 a smart screenshot storage device disclosed in another embodiment of the present invention.

[0025] Figure 7This is a structural block diagram of a server for executing an intelligent screenshot storage method disclosed in another embodiment of the present invention. DETAILED DESCRIPTION

[0026] In order to make the purpose, technical solution and advantages of the embodiment of the present invention clearer, the technical solution of the embodiment of the present invention will be clearly and completely described below in conjunction with the drawings of the embodiment of the present invention. Obviously, the described embodiment is a part of the embodiment of the present invention, not all of the embodiments. Based on the described embodiment of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0027] Unless otherwise defined, the technical or scientific terms used herein shall have the common meanings understood by persons with ordinary skills in the field to which the present invention belongs. The words "first", "second" and similar words used in the patent application specification and claims of the present invention do not indicate any order, quantity or importance, but are only used to distinguish different components. Similarly, words such as "one" or "a" do not indicate a quantity limitation, but indicate the existence of at least one.

[0028] Computerized system verification is a safeguard measure implemented to ensure that the computerized system continues to operate stably and stably. It is an important part of quality assurance in the pharmaceutical and related industries. It involves computer software, hardware, and the overall system. It plays a very important role in verifying whether a system is effective, safe, reliable, and compliant with specifications. To this end, it is necessary to design a verification case to verify that the various functions of the system are normal and logically complete, and to continuously take screenshots of the test case and compare them with the system screenshots during the verification process to achieve testing and verification of various aspects of the system. Among them, in order to ensure the accuracy of the verification process, the tester needs to rename each captured image and match the number name of each screenshot with the test case to facilitate subsequent comparison and document writing. However, due to the numerous processes involved in computerized system verification, the operations of taking screenshots and renaming the screenshot images often take up a lot of time for the operator, which is time-consuming, labor-intensive, and prone to errors.

[0029] Embodiment 1:

[0030] This embodiment discloses a smart screenshot storage method. Figure 1 As shown, the following steps are included.

[0031] Step S11, after receiving the picture acquisition instruction, the first screenshot instruction terminal performs a screenshot operation on the designated area of ​​the screen to acquire the target picture.

[0032] Specifically, the intelligent screenshot storage method is applied to a software system including multiple screenshot clients and receiving terminals. Figure 2 As shown in the figure, it is responsible for generating, naming and uploading screenshots; the receiving end is as shown in the attached Figure 3 As shown, it is responsible for receiving, storing and displaying screenshots. The two communicate through the local area network to solve the problem that there is no Internet at the computer system verification site and it cannot be summarized through the Internet. When the user runs the screenshot client for the first time, the user uses the graphical user interface to perform initial configuration of the verification case information, step number, drawing number, receiving end network address and other information on the screenshot client. These configuration information are saved in the local configuration file so that they can be used again after the program is restarted.

[0033] In this embodiment, the screenshot client and the receiving end are both installation-free exe programs, developed using the Python programming language, and the reliability and security of data transmission are ensured through the communication protocol HTTP. At the same time, the screenshot function is implemented using a third-party library of Python, 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 instruction terminal is configured as a step-by-step instruction terminal, and the user takes a screenshot of the current step by triggering the step-by-step instruction button. After receiving the step-by-step instruction, the client program calls a third-party library to capture the current screen interface. The image acquisition instruction is configured to capture a screenshot image of a specified area in the computerized system verification use case interface.

[0035] Step S12, obtaining field information in the current multiple text components, wherein the multiple text components include 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, and combining the obtained first field content and the second field content according to the set name format to form a picture name for the target picture this time.

[0036] In this embodiment, the content of the first field is configured as verification case identification information, and the content of the second field is configured as the step number of the verification case.

[0037] Specifically, the client configuration information includes information such as verification case identification and step number, wherein the verification case identification information is as shown in the attached Figure 2 As shown in the prefix CSV-QQQ, in this embodiment, it is configured in the form of user ID + task number, which is used to classify and archive the pictures during the screenshot and storage process, and obtain the corresponding system screenshot pictures for computer system verification. Each time a screenshot is completed, the client automatically generates the file name of the screenshot according to the current verification case identification information and step number, for example, CSV-000-16, which means the picture captured by the system in the 16th step of the CSV-000 verification case.

[0038] Step S13, 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 rule and save it specifically. After each screenshot is completed, the client automatically saves the image to the disk, and automatically updates the step number according to the user configuration, and displays it on the second text component.

[0039] Specifically, after each screenshot is completed, 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 increases in natural number sequence, and step S13 specifically also includes the following content.

[0040] Step S131, naming the target image according to the image name and saving it to a local image folder, and determining whether there is a configured image upload requirement, if so, obtaining the configured upload address, and sending the named target image to the upload address.

[0041] After the screenshot is completed, if the user turns on the upload function, the screenshot file will be automatically uploaded to the address specified by the receiving end through an HTTP POST request or other suitable file transfer protocol. The receiving end listens to the upload request from the client, receives the screenshot file uploaded by the client, and saves it to the specified directory. This directory is automatically generated locally by the receiving end and lists all received screenshots. The user 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 by the first screenshot instruction end, the current step number displayed in the second text component is incrementally updated to the next step number according to the preset second field content update rule, and the verification case identification information in the first text component is kept unchanged.

[0043] For example, if the step number is 16, then after the screenshot is completed, the step number in the configuration information is changed to 17. By this incremental method, the image renaming is automated, avoiding human errors caused by manual renaming.

[0044] In another embodiment, the second field update content can also be configured to perform jump settings according to the field configuration table to implement jump step verification and increase the flexibility of computer systematization verification.

[0045] Embodiment 2:

[0046] This embodiment also discloses an intelligent screenshot storage method. Compared with the first embodiment, the 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 steps.

[0047] Step S21, after receiving the picture acquisition instruction, the second screenshot instruction terminal performs a screenshot operation on the designated area of ​​the screen to acquire the target picture.

[0048] Compared with the first embodiment, the client configuration information in this embodiment also includes picture sequence number information to distinguish multiple pictures captured by the user in the same step, and the second screenshot instruction terminal is configured as a one-step multiple-picture instruction terminal. The user triggers the one-step multiple-picture instruction button multiple times in the same step to call the client to obtain the current screen interface multiple times. The prefixes (verification case identification information), step numbers, etc. of the captured multiple pictures are the same, and only the picture numbers are different.

[0049] Step S22, obtaining text information in the current multiple field components, wherein the multiple field components at least include a first field component for displaying and entering a first text content, a second field component for displaying and updating a second text content, and a third text component for displaying and updating a third field content, and combining the obtained first field content, second field content, and third field content according to a set name format to form a picture name for the current target picture. The third field content is used to name the picture sequence number of the obtained screenshot under the current step number in the second text component.

[0050] For example, CSV-000-16-1 indicates 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 end, the current image sequence number displayed in the third text component is incrementally updated to the next sequence number according to the preset third field content update rule, and the verification case identification information in the first text component and the step number in the second text component are kept unchanged.

[0052] After the screenshot is completed and stored, the picture sequence number information in the configuration information is updated incrementally so that when the next picture is obtained in this step, the sequence number of the next picture is incremented while other information remains unchanged, which is convenient for storing and comparing pictures.

[0053] In this embodiment, as shown in the attached Figure 5 As shown, when the user triggers the one-step-one-picture button, i.e., the first screenshot instruction end, the following steps are also included.

[0054] Step S101, after receiving the picture acquisition instruction, the first screenshot instruction terminal performs a screenshot operation on a designated area of ​​the screen to acquire a target picture.

[0055] When the configuration information of the client includes picture sequence number information, that is, the text component includes a third text component for displaying and updating the third field content, the user switches the system screenshot steps by triggering the one-step-one-picture button on the first screenshot instruction end.

[0056] Step S102, the current step number displayed in the second text component is incrementally updated to the next step number according to the preset second field content update rule, and it is determined whether the current picture sequence number in the third text component is the initial value. If it is not the initial value, the picture sequence number is restored to the initial value according to the third field content update rule, and then the verification case identification information of the first text component, the step number of the second text component and the picture sequence number of the third text component are obtained, and the obtained verification case identification information, step number and picture sequence number are arranged according to the set name format and filled with auxiliary format content to form a picture name for naming the target picture this time.

[0057] After the user triggers the first screenshot instruction, the client updates the content of the second field in the configuration information, namely the step number, and initially restores the third field so that the image sequence numbers of the images captured in different steps all start from the initial value, avoiding confusion in image naming and making the images easy to find and compare.

[0058] Step S103, name the target image according to the image name and save it to a local image folder, increment 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, and keep the verification 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 usually involves multiple steps and stages, so it is common for the current computer system verification to be suspended while another system verification is being performed on the current device. In order to improve the utilization rate of the client and the efficiency of various computer system verifications, the client also needs to adapt to the situation where multiple verification use cases are interspersed, and the following content is also included.

[0060] Step S201, after the first text component responds to the modification instruction to modify the current verification case identification information to the collected input information, identify the field information in the names of each picture in the local picture folder, and determine whether there is a picture in the local picture folder whose first field content is the same as the verification case identification information in the current first text component.

[0061] Step S202, if it exists, obtain the terminal step sequence number and the terminal picture sequence number in the terminal picture name in which the second field content is the largest and the third field content is the largest, and adjust the current step number in the second text component according to the second field content update rule, and adjust the current picture sequence number in the third text component according to the third field content update rule to the next picture sequence number of the terminal picture sequence number.

[0062] Step S203, if it does not exist, determine whether the current step number in the second text component is the initial value. If it is not the initial value, adjust the step number to the initial value according to the second field content update rule; if it is the initial value, keep it unchanged; determine whether the current image sequence number in the third text component is the initial value. If it is not the initial value, adjust the image sequence number to the initial value according to the third field content update rule; if it is the initial value, keep it unchanged.

[0063] Through the above content, when the user switches the verification case, the current image naming content can be automatically adjusted according to the verification case information without manual configuration, thereby improving the automation level of image management.

[0064] In this embodiment, the screenshot steps may be pre-set by configuring an information table to perform cross-step screenshots, which specifically include the following contents.

[0065] Step S301, after acquiring and naming the screenshot in response to the image acquisition instruction received by the screenshot instruction end, query the first position corresponding to the current image name 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 numbers configured in the set order under the verification use case and the fixed image sequence numbers under the fixed step numbers.

[0066] Step S302, obtain the step number and picture 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 picture sequence number in the third text component to the picture number of the next position.

[0067] Through the above content, users can freely perform cross-step verification through the client, thereby improving the flexibility of system verification.

[0068] Furthermore, the client can also take a screenshot on another device through a mobile device such as a USB flash drive and continue the previous numbering, and the above embodiments specifically include the following content.

[0069] Step S401, the client executes a program to respond to the screenshot instruction of the user on the current device, performs a screenshot operation on the specified area of ​​the screen of the current device, collects the first text information group in the first control interface and combines them according to the set name format to form the first picture 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 in the configuration file.

[0070] Step S402, after transferring the client execution program and the configuration file from the current device to the second device, the client execution 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 information in the second text information group to multiple text components corresponding to the second control interface.

[0071] Furthermore, step S402 also includes the following content.

[0072] Step S501, after the execution program and the configuration file are transferred to the second device, the execution program responds to the first wake-up instruction of the user on the second device and displays the second control interface on the second device according to the configuration file.

[0073] Step S502, parsing each text message in the second text message group and filling it into the corresponding text component of the second control interface.

[0074] Step S503, identify whether there is a historical screenshot folder in the configuration file, if so, obtain the address of the historical screenshot folder and send information whether to confirm to continue to use the current historical screenshot folder for storing new screenshots, if not, create a new screenshot folder for storing new screenshots. After the device is replaced, reconfirm the address where the picture is saved, so as to select the best way to save the picture according to the content of different test cases, and improve the flexibility and systematicness of picture saving.

[0075] In this embodiment, step S402 also includes the following content.

[0076] Step S601, the execution program responds to the user's first wake-up command on the second device, obtains the first step number corresponding to the 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, where 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 of verification use case steps. To avoid image naming errors caused by operator errors, this embodiment automatically updates the step number after device switching to improve the accuracy of naming.

[0078] Step S602, sending information on whether to update the step number in the second text component. If the user confirms the update instruction, the second step number is filled into the second text component, and the image number in the third text component is restored to the initial value according to the third field content update rule.

[0079] Step S603: if a user confirmation instruction not to update is received, each text message in the second text message group is filled into a corresponding text component of the second control interface.

[0080] Automatic update of the step number after device switching and user confirmation avoids image naming errors caused by failure to update the step number in time during device switching.

[0081] Step S403, the execution program responds to the screenshot instruction of the user on the second device, performs a screenshot operation on the specified area of ​​the screen of the second device, collects the second text information group in the second control interface and combines them according to the set name format to form a second picture name used for this screenshot.

[0082] In this embodiment, step S403 specifically includes:

[0083] Step S701, obtaining the last picture name arranged in the historical screenshot folder, and determining whether the second picture name is continuous with the last picture name according to the naming update rule.

[0084] Step S702, if the second picture name is different from the first field content of the tail picture name, determine whether the second field content and the third field content in the second picture name are initial values. If not, issue a screenshot naming error reminder.

[0085] Specifically, when the content of the first field is changed, it indicates that the verification use case has changed, and the content of the second and third fields needs to start again from the initial value. 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 picture name is the same as that of the tail picture name, determine whether the content of the second field in the second picture name is the same as that of the second field of the tail picture name; if the second field is also the same, determine whether the third field is the adjacent previous and next values ​​arranged according to the third field content update rule, if not the adjacent previous and next values, issue a screenshot naming error reminder; if the second field is different, determine whether the second field is the adjacent previous and next values ​​arranged according to the second field content update rule, if not the adjacent previous and next values, issue a screenshot naming error reminder, if it is the adjacent previous and next values, issue a screenshot naming error reminder when the third field of the second picture name is not the initial value.

[0087] Through the above content, the automatic update of configuration information is realized when the device is switched, so that the user can complete the computer system verification process on different devices and ensure the continuity of the naming and numbering of pictures captured by multiple devices.

[0088] In this embodiment, the receiving end can also simultaneously receive picture contents uploaded by multiple clients and summarize the uploaded pictures, specifically including the following contents.

[0089] Step S801 , receiving a first client image sent by a first client, which is obtained by taking a screenshot of a selected area of ​​an interface of a computerized system verification use case running on the first client.

[0090] Step S802, obtaining the image name of the second client image stored in the image file library, wherein the second client image is an image sent by the second client and obtained by taking a screenshot of another selected area of ​​the interface of the same computerized system verification case running on the second client.

[0091] Step S803: sort the first client image and the second client image according to the corresponding field content update rules of the verification case, and store them in the corresponding sorting positions of the image file library.

[0092] Specifically, step S803 also includes the following content.

[0093] Step S901, identify the content of each field in the received first client picture name according to the update rules of each field content, if there is a second client picture with the same step sequence number as the first client picture name, obtain the first client picture sequence number in the first client picture name and the second client picture sequence number in the second client picture name.

[0094] Step S902: if the first client's picture sequence number is before the second client's picture sequence number, it is saved in the picture file library; if the first client's picture sequence number is after the second client's picture sequence number or is the same as the second client's picture sequence number, a reminder to repeat the verification step is sent to the first client; if a confirmation save instruction is received from the first client, the first client's picture and the second client's picture are sorted in order of picture sequence numbers and stored in the corresponding sorting position of the picture file library.

[0095] When receiving screenshots uploaded by a client, we will comprehensively refer to the screenshots uploaded by other clients to reorder and modify the names of pictures that do not meet the order requirements, improve the neatness and sequence of picture storage in the picture file library, and avoid unnecessary duplication of names or screenshots caused by the inability of different clients to communicate information in a timely manner.

[0096] The step S902 also includes: if the first client image sequence number is after the second client image sequence number or is the same as the second client image sequence number, query the image file library for the step sequence numbers of the image names with the same verification case identification information to form a verified step sequence, and send a verification step repeat reminder to the first client, the verification step repeat reminder includes the step sequence number of the current image that is judged to be repeated, and the replacement step suggestion information containing the verified step sequence. By providing the first terminal with a verified step sequence, the first terminal is prevented from selecting the verified step multiple times, thereby improving the verification efficiency.

[0097] The step S902 also includes: if the first client picture sequence number is located after the second client picture sequence number and there is a third client picture sequence number between the first client picture sequence number and the second client picture sequence number according to the third field content update rule, and the step screenshot picture with the third client picture sequence number has not been stored in the picture file library, then send picture supplement information to the first client, and the picture supplement information includes the step sequence number and picture sequence number to which the missing picture belongs. By querying the missing picture sequence number and sending the missing information and supplementary information to the first device, the picture loss phenomenon caused by transmission errors in the previous picture transmission process is screened and supplemented, avoiding incomplete picture acquisition during the verification process.

[0098] The intelligent screenshot storage method, device and storage medium disclosed in the present invention, after receiving the user's picture acquisition instruction, take a screenshot of the specified area of ​​the current test case screen and rename and store the captured picture according to preset rules, wherein the name content of the renamed picture is configured in multiple text components on the current test case interface, and the first field information and the second field information in the multiple text components are obtained, and they are combined according to the set name format and updated according to the preset content update rules, so as to complete the automatic renaming of the test case screenshot. Through the above-mentioned automatic screenshot and automatic renaming of the picture, the file management work in the computer system verification process is greatly simplified, the human errors that may occur in the screenshot and renaming process are avoided, and the efficiency and accuracy of the computer system verification work are improved.

[0099] In another embodiment, as shown in the attached Figure 6As shown, an intelligent screenshot storage device is also disclosed, including a picture acquisition module 1, a picture naming module 2 and a configuration update module 3. Among them, the picture acquisition module 1 is used to perform a screenshot operation on a specified area of ​​the screen to obtain a target picture after receiving a picture acquisition instruction at the first screenshot instruction end. The picture naming module 2 is used to obtain field information in multiple text components at present, wherein the multiple text components at least include 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, and the obtained first field content and the second field content are combined according to a set name format to form a picture name for the current target picture. The configuration update module 3 is used to name the target picture according to the picture name and save it in a local picture folder, and modify the current second field content according to the preset second field content update rule, and then save and display it on the second text component.

[0100] In this embodiment, the image acquisition instruction is configured to capture a screenshot image of a specified area in a computerized system verification use case interface, the first field content is configured as verification use case identification information, and the second field content is configured as the step number of the verification use case; after acquiring and / or naming the screenshot in response to the image acquisition instruction received by the first screenshot instruction end, the current step number displayed in the second text component is incrementally updated to the next step number according to the preset second field content update rule, and the verification use case identification information in the first text component is kept unchanged.

[0101] It should be noted that the various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. Similar parts between the various embodiments can be referenced to each other. As for the intelligent screenshot storage device disclosed in the embodiment, since it corresponds to the intelligent screenshot storage method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the description of the aforementioned method part.

[0102] In other embodiments, as shown in the attached 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, and when the processor executes the computer program, each step of the intelligent screenshot storage method described in the above embodiments is implemented. The server may include, but is not limited to, a processor and a memory. It can be understood by those skilled in the art that the schematic diagram is only an example of a server and does not constitute a limitation on the server, and may include more or fewer components than shown in the figure, or combine certain components, or different components.

[0103] If the intelligent screenshot storage device is implemented in the form of 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, the present invention implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium. When the computer program is executed by the processor, the steps of the above-mentioned intelligent screenshot storage method embodiments can be implemented. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may include: any entity or device that can carry the computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory, random access memory, electric carrier signal, telecommunication signal and software distribution medium. It should be noted that the content contained in the computer-readable medium can be appropriately increased or decreased 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 electric 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, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements 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 conclusion, the above is only a preferred embodiment of the present invention, and all equivalent changes and modifications made according to the scope of the patent application of the present invention should fall within the scope of the patent of the present invention.

Claims

1. A smart screenshot storage method, It is characterized in that The steps include: S1, after receiving the image acquisition instruction, the first screenshot instruction terminal performs a screenshot operation on the specified area of ​​the screen to obtain the target image; S2, obtaining field information in the current multiple text components, wherein the multiple text components at least include 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, and combining the obtained first field content and the second field content according to a set name format to form a picture name for the current target picture; S3, naming the target image according to the image name and saving it to a local image folder, modifying the current second field content according to a preset second field content update rule, and saving and displaying it on the second text component.

2. The intelligent screenshot storage method according to claim 1, Features: The picture acquisition instruction is configured to capture a screenshot picture of a specified area in the computerized system verification case interface, the first field content is configured as verification case identification information, and the second field content is configured as a step number of the verification case; After acquiring and / or naming the screenshot in response to the image acquisition instruction received by the first screenshot instruction end, the current step number displayed in the second text component is incrementally updated to the next step number according to the preset second field content update rule, and the verification case identification information in the first text component remains unchanged.

3. The intelligent screenshot storage method according to claim 2, It is characterized in that The plurality of text components further include a third text component for displaying and updating the content of a third field, and the intelligent screenshot storage method further includes: After receiving the image acquisition instruction, the second screenshot instruction terminal performs a screenshot operation on the specified area of ​​the screen to obtain the target image; Obtain 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 obtained screenshot under the current step number in the second text component; combine the obtained first field content, second field content, and third field content according to the set name format to form a picture name for the current target picture; After acquiring and naming the screenshot in response to the image acquisition instruction received by the second screenshot instruction end, the current image sequence number displayed in the third text component is incrementally updated to the next sequence number according to the preset third field content update rule, and the verification case identification information in the first text component and the step number in the second text component are kept unchanged.

4. The intelligent screenshot storage method according to claim 3, It is characterized in that Also includes: After receiving the image acquisition instruction, the first screenshot instruction end performs a screenshot operation on the specified area of ​​the screen to obtain the target image; The current step number displayed in the second text component is incrementally updated to the next step number according to the preset second field content update rule, and it is determined whether the current picture sequence number in the third text component is an initial value. If it is not an initial value, the picture sequence number is restored to the initial value according to the third field content update rule, and the verification case identification information of the first text component, the step number of the second text component and the picture sequence number of the third text component are obtained. The obtained verification case identification information, step number and picture sequence number are arranged according to the set name format and filled with auxiliary format content to form a picture name for naming the target picture this time; The target image is named according to the image name and saved in a local image folder. The current image sequence number displayed in the third text component is incrementally updated to the next sequence number according to the preset third field content update rule, and the verification case identification information in the first text component and the image sequence number in the second text component are kept unchanged.

5. The intelligent screenshot storage method according to claim 4, It is characterized in that Also includes: After the first text component responds to the modification instruction to modify the current verification case identification information to the collected input information, determine whether the current step number in the second text component is the initial value. If it is not the initial value, adjust the step number to the initial value according to the second field content update rule; if it is the initial value, remain unchanged; determine whether the current image sequence number in the third text component is the initial value. If it is not the initial value, adjust the image sequence number to the initial value according to the third field content update rule; if it is the initial value, remain unchanged.

6. The intelligent screenshot storage method according to claim 5, It is characterized in that The step S3 further comprises: The target image is named according to the image name and saved in a local image folder, and it is determined whether there is a configuration for uploading an image. If so, the configured upload address is obtained, and the named target image is sent to the upload address.

7. An intelligent screenshot storage device, It is characterized in that include: The image acquisition module is used to perform a screenshot operation on a designated area of ​​the screen to acquire a target image after the first screenshot instruction terminal receives the image acquisition instruction; A picture naming module is used to obtain field information in the current multiple text components, wherein the multiple text components at least include 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, and to combine the obtained first field content and the second field content according to a set name format to form a picture name for the current target picture; The configuration update module is used to name the target image according to the image name and save it to a local image folder, and to modify the current second field content according to the preset second field content update rule and save and display it on the second text component.

8. The intelligent screenshot storage device according to claim 7, Features: The picture acquisition instruction is configured to capture a screenshot picture of a specified area in the computerized system verification case interface, the first field content is configured as verification case identification information, and the second field content is configured as a step number of the verification case; After acquiring and / or naming the screenshot in response to the image acquisition instruction received by the first screenshot instruction end, the current step number displayed in the second text component is incrementally updated to the next step number according to the preset second field content update rule, and the verification case identification information in the first text component remains unchanged.

9. A server comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, Features: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.

10. A computer-readable storage medium storing a computer program. Features: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.

Citation Information

Patent Citations

  • Method for intercepting picture

    CN114327212A

  • Automatic interface testing method and device and computer equipment

    CN116467208A