Test picture uploading method and device, processor and electronic equipment

By adding identification information to the test pictures and using image recognition technology, the use case information of mobile devices automatically recognize and upload test pictures is realized, solving the problem of cumbersome process of uploading pictures by testers and improving work efficiency.

CN119324916APending Publication Date: 2025-01-17吉林亿联银行股份有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310847308.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-07-11
Publication Date
2025-01-17

AI Technical Summary

Technical Problem

Testers need to perform cumbersome processes when uploading test images on mobile, resulting in wasted time and inefficiency.

Method used

By obtaining pictures to be uploaded with identification information, using image recognition technology to identify the identification information, and automatically uploading it to the target path based on the identification information, supporting asynchronous upload and network disconnection and retransmission.

Benefits of technology

The test image upload process is simplified, the workload of testers is reduced, the work efficiency is improved, and the repeated manual location of file paths and waiting for successful uploads are avoided.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119324916A_ABST
    Figure CN119324916A_ABST
Patent Text Reader

Abstract

The invention discloses a test picture uploading method and device, a processor and electronic equipment, the method is applied to the financial science and technology field or other fields, and the method comprises the following steps: obtaining a to-be-uploaded picture with identification information; identifying the identification information of the to-be-uploaded picture through a picture identification technology; and uploading the to-be-uploaded picture to the target path according to the identification information. Through the method and the device, the problem that the working efficiency of testers is relatively low due to the fact that the process of uploading test pictures by the testers is relatively tedious and a large amount of time of the testers is wasted in the prior art is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of financial technology or other fields, and specifically, to a method, device, processor and electronic device for uploading a test image. Background Art

[0002] At present, when testers upload test images of test tasks on mobile terminals, they need to go through a cumbersome upload process. First, testers need to open the mobile phone camera to take test images, or take screenshots of test results through mobile phone screenshots. Then, testers need to open the test case platform corresponding to the test image through the mobile phone browser and find the test case group corresponding to the test image in the test case platform. Secondly, click the picture upload button in each test case group of the test task, find the test image you want to upload in the mobile phone album, and click upload. Finally, wait for each test image to be uploaded successfully one by one, close the upload window and exit the test case platform.

[0003] The tester needs to perform multiple steps to upload the test picture to the test case platform by uploading the test picture through the above method. When the tester searches for the test pictures corresponding to different test cases, he needs to search in the album multiple times, and after finding the test picture, he needs to wait for the test picture to be successfully uploaded. If the test picture fails to be uploaded, the test picture needs to be manually uploaded again. It can be seen that the method of uploading test pictures in the prior art will take a lot of time and reduce the work efficiency of the tester.

[0004] In the related technology, the process of testers uploading test pictures is rather complicated, which wastes a lot of time of testers and leads to low work efficiency of testers. At present, no effective solution has been proposed. Summary of the invention

[0005] The main purpose of the present application is to provide a method, device, processor and electronic device for uploading a test image, so as to solve the problem in the related art that the process of testers uploading test images is relatively cumbersome, which wastes a lot of time of the testers and leads to low work efficiency of the testers.

[0006] In order to achieve the above-mentioned purpose, according to one aspect of the present application, a method for uploading a test image is provided, the method comprising: obtaining an image to be uploaded with identification information, wherein the image to be uploaded refers to a test image to be uploaded, the test image is a screenshot of a test result obtained by executing a test case, and the identification information represents information of the test case corresponding to the image to be uploaded; identifying the identification information of the image to be uploaded by using image recognition technology; uploading the image to be uploaded to a target path based on the identification information, wherein the target path refers to the storage path of the test case corresponding to the image to be uploaded.

[0007] Furthermore, obtaining the picture to be uploaded with identification information includes: determining the target test case corresponding to the picture to be uploaded; determining the picture identification of the picture to be uploaded based on the target test case; adding the picture identification to the picture to be uploaded through image processing technology to obtain the picture to be uploaded with identification information.

[0008] Furthermore, identifying the identification information of the image to be uploaded by using image recognition technology includes: taking a screenshot of the area where the identification information is located in the image to be uploaded to obtain an identification image; calculating the similarity between the identification image and multiple preset identification images respectively by using the image recognition technology to obtain a similarity set; determining the similarity greater than a preset value in the similarity set to obtain a target similarity; determining the information of the test case corresponding to the image to be uploaded based on the preset image identifier corresponding to the target similarity to obtain the identification information.

[0009] Furthermore, uploading the image to be uploaded to the target path according to the identification information includes: compressing the image to be uploaded to obtain a compressed image; and uploading the compressed image to the target path according to the identification information.

[0010] Furthermore, uploading the compressed image to the target path according to the identification information includes: when a network disconnection is detected, storing the compressed image and the identification information in a database; after detecting that the network is restored, uploading the compressed image in the database to the target path according to the identification information.

[0011] Furthermore, after uploading the compressed image to the target path according to the identification information, the method also includes: when it is detected that the upload of the compressed image fails, re-uploading the image to be uploaded to the target path according to the identification information after a preset time period.

[0012] Furthermore, the image identification of the image to be uploaded includes at least one of the following: a test case number, information of a test object, a test time, and information of a tester.

[0013] In order to achieve the above-mentioned purpose, according to another aspect of the present application, a device for uploading a test image is provided, which includes: an acquisition unit, used to acquire an image to be uploaded with identification information, wherein the image to be uploaded refers to a test image to be uploaded, the test image is a screenshot of a test result obtained by executing a test case, and the identification information represents information of the test case corresponding to the image to be uploaded; an identification unit, used to identify the identification information of the image to be uploaded by using an image recognition technology; an uploading unit, used to upload the image to be uploaded to a target path according to the identification information, wherein the target path refers to the storage path of the test case corresponding to the image to be uploaded.

[0014] Furthermore, the acquisition unit includes: a first determination subunit, used to determine the target test case corresponding to the picture to be uploaded; a second determination subunit, used to determine the image identifier of the picture to be uploaded based on the target test case; and an adding subunit, used to add the image identifier to the picture to be uploaded through image processing technology to obtain the picture to be uploaded with identification information.

[0015] Furthermore, the recognition unit includes: a screenshot sub-unit, used to take a screenshot of the area where the identification information is located in the image to be uploaded, so as to obtain an identification image; a calculation sub-unit, used to calculate the similarity between the identification image and multiple preset identification images through the image recognition technology, so as to obtain a similarity set; a third determination sub-unit, used to determine the similarity greater than a preset value in the similarity set, so as to obtain a target similarity; and a fourth determination sub-unit, used to determine the information of the test case corresponding to the image to be uploaded based on the preset image identifier corresponding to the target similarity, so as to obtain the identification information.

[0016] Furthermore, the uploading unit includes: a compression subunit, used to compress the image to be uploaded to obtain a compressed image; and a first uploading subunit, used to upload the compressed image to the target path according to the identification information.

[0017] Furthermore, the first uploading sub-unit includes: a storage module, which is used to store the compressed image and the identification information in a database when a network disconnection is detected; and an uploading module, which is used to upload the compressed image in the database to the target path according to the identification information after detecting that the network is restored.

[0018] Furthermore, the upload unit also includes: a second upload sub-unit, which is used to upload the compressed image to the target path according to the identification information, and when it is detected that the upload of the compressed image fails, re-upload the image to be uploaded to the target path according to the identification information after a preset time period.

[0019] Furthermore, the second determining subunit also includes: the picture identification of the picture to be uploaded includes at least one of the following: a test case number, information of a test object, a test time, and information of a tester.

[0020] In order to achieve the above-mentioned purpose, according to one aspect of the present application, a processor is provided, and the processor is used to run a program, wherein when the program is running, any one of the above-mentioned methods for uploading a test image is executed.

[0021] In order to achieve the above-mentioned purpose, according to one aspect of the present application, an electronic device is provided, including one or more processors and a memory, the memory being used to store one or more programs, wherein when the one or more programs are executed by one or more processors, the one or more processors implement any of the above-mentioned methods for uploading test images.

[0022] Through this application, the following steps are adopted: obtaining a picture to be uploaded with identification information, wherein the picture to be uploaded refers to a test picture to be uploaded, the test picture is a screenshot of the test result obtained by executing the test case, and the identification information indicates the information of the test case corresponding to the picture to be uploaded; identifying the identification information of the picture to be uploaded by the picture recognition technology; uploading the picture to be uploaded to the target path according to the identification information, wherein the target path refers to the storage path of the test case corresponding to the picture to be uploaded, solving the problem that the process of testers uploading test pictures in the related technology is relatively cumbersome, wasting a lot of time of testers, and resulting in low work efficiency of testers. By adding identification information to the picture to be uploaded, the mobile terminal device can automatically identify the test case information corresponding to the test picture (i.e. the above-mentioned picture to be uploaded) according to the identification information, and automatically upload the test picture according to the test case information, avoiding the problem that the tester needs to repeatedly manually locate the file path of the test case, reducing the work burden of the tester, and by asynchronously uploading the test picture after the tester determines the test picture, the tester does not need to wait for the test picture to be uploaded successfully, thereby achieving the effect of improving the work efficiency of the tester. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] The drawings constituting a part of the present application are used to provide a further understanding of the present application. The illustrative embodiments and descriptions of the present application are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0024] Figure 1 is a flowchart of a method for uploading a test image provided in Example 1 of the present application;

[0025] Figure 2This is a schematic diagram of an optional test image upload method provided in Example 1 of the present application. Figure 1 ;

[0026] Figure 3 This is a schematic diagram of an optional test image upload method provided in Example 1 of the present application. Figure 2 ;

[0027] Figure 4 It is a schematic diagram of a test image uploading device provided according to the second embodiment of the present application;

[0028] Figure 5 It is a schematic diagram of an electronic device for uploading a test image provided in Example 5 of the present application. DETAILED DESCRIPTION

[0029] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.

[0030] It should be noted that the methods and devices determined by the processing methods, devices, processors and electronic devices of the present application documents can be used in the field of financial technology to improve the work efficiency of testers when testers upload test images, and can also be used in any field except the field of financial technology. The application fields of the methods and devices determined by the processing methods, devices, processors and electronic devices of the present application documents are not limited.

[0031] It should be noted that the user information (including but not limited to user device information, user personal information, photographed information, uploaded information, collected information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, photographed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant laws, regulations and standards of relevant countries and regions, and provide corresponding operation entrances for users to choose to authorize or refuse.

[0032] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.

[0033] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequential order. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present application described here. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0034] Embodiment 1

[0035] The present invention is described below in conjunction with preferred implementation steps. Figure 1 is a flow chart of a method for uploading a test image according to the first embodiment of the present application. Figure 1 As shown, the method comprises the following steps:

[0036] Step S101, obtaining a picture to be uploaded with identification information, wherein the picture to be uploaded refers to a test picture to be uploaded, the test picture is a screenshot of a test result obtained by executing a test case, and the identification information indicates information of the test case corresponding to the picture to be uploaded.

[0037] In the first embodiment, the image to be uploaded with identification information represents a test image to be uploaded with test case information. Figure 2 It is a picture of the test result of whether the query button in the tested web page is operating normally. It is also a schematic diagram of the picture to be uploaded with identification information in this solution. Figure 2 As shown in the string "Button01_0001" in the figure, "Button01" represents the test object "query button" and "0001" represents the test case number.

[0038] Step S102: Identify identification information of the image to be uploaded by using image recognition technology.

[0039] In the first embodiment, the image recognition technology refers to a technology used to recognize image content, such as optical character recognition (OCR) technology, convolutional neural network (CNN), support vector machine (SVM) and other technologies. Specifically, after obtaining the image to be uploaded with identification information, the optical character recognition (OCR) technology is used to identify the identification information in the image to be uploaded as "Button01_0001".

[0040] Step S103: upload the image to be uploaded to the target path according to the identification information, wherein the target path refers to the storage path of the test case corresponding to the image to be uploaded.

[0041] In the first embodiment, the target path refers to the file path where the image to be uploaded is stored. Specifically, after obtaining the identification information "Button01_0001", the test case number corresponding to the image to be uploaded is determined to be 0001 according to the identification information "Button01_0001", and then the image to be uploaded is uploaded to the folder where the test case number 0001 is located. It should be noted that in the first embodiment, steps S101 to S103 are all executed asynchronously by the mobile device, and there is no need for the tester to execute them step by step.

[0042] In summary, the method for uploading a test image provided in the first embodiment of the present application obtains an image to be uploaded with identification information, wherein the image to be uploaded refers to a test image to be uploaded, the test image is a screenshot of the test result obtained by executing the test case, and the identification information indicates the information of the test case corresponding to the image to be uploaded; the identification information of the image to be uploaded is identified by the image recognition technology; the image to be uploaded is uploaded to the target path according to the identification information, wherein the target path refers to the storage path of the test case corresponding to the image to be uploaded, which solves the problem that the process of testers uploading test images in the related technology is relatively cumbersome, which wastes a lot of time of the testers and leads to low work efficiency of the testers. By adding identification information to the image to be uploaded, the mobile terminal device can automatically identify the test case information corresponding to the test image (i.e. the above-mentioned image to be uploaded) according to the identification information, and automatically upload the test image according to the test case information, avoiding the problem that the tester needs to repeatedly manually locate the file path of the test case, reducing the work burden of the tester, and at the same time, by asynchronously uploading the test image after the tester determines the test image, the tester does not need to wait for the test image to be successfully uploaded, thereby achieving the effect of improving the work efficiency of the tester.

[0043] Optionally, in the test image uploading method provided in Example 1 of the present application, obtaining the image to be uploaded with identification information includes: determining a target test case corresponding to the image to be uploaded; determining the image identification of the image to be uploaded based on the target test case; adding the image identification to the image to be uploaded through image processing technology to obtain the image to be uploaded with identification information.

[0044] In the first embodiment of the present invention, in order to add the identification information of the test case to the image to be uploaded, the target test case corresponding to the image to be uploaded can be determined first, and then a picture identification is generated based on the information of the target test case, and finally the picture identification is added to the image to be uploaded. Specifically, it is determined that the image to be uploaded is a test image of the button "Button01" test case "0001" (that is, the target test case mentioned above). Then, a picture identification is generated for the button "Button01" test case "0001", that is, a picture is generated based on the characters "Button01" and the characters "0001", and a picture identification (such as Figure 2 Finally, add the picture identifier to the picture to be uploaded to obtain the picture to be uploaded with the identifier information (such as Figure 2 shown).

[0045] When adding the picture identifier to the picture to be uploaded, the original picture to be uploaded can be expanded, and the picture identifier can be added to the blank space of the picture to be uploaded to avoid blocking the original data information in the picture to be uploaded. In addition, fixed or infrequently used preset characters can be added around the generated picture identifier (for example, adding characters such as "*", "&", "#" around the picture identifier) ​​to facilitate the computing device to quickly identify the identification information in the picture to be uploaded.

[0046] By adding identification information containing test case information to the image to be uploaded, an image to be uploaded with the identification information is obtained, so that the computing device can automatically identify the test case corresponding to the test image based on the image to be uploaded with the identification information, and then automatically upload the image to be uploaded to the corresponding file path, avoiding the problem of testers' repeated manual uploading that reduces the testers' work efficiency, and achieving the effect of improving the testers' work efficiency.

[0047] Optionally, in the test image uploading method provided in Example 1 of the present application, identifying the identification information of the image to be uploaded through image recognition technology includes: taking a screenshot of the area where the identification information is located in the image to be uploaded to obtain an identification image; calculating the similarity between the identification image and multiple preset identification images through image recognition technology to obtain a similarity set; determining the similarity greater than a preset value in the similarity set to obtain a target similarity; determining the information of the test case corresponding to the image to be uploaded based on the preset image identifier corresponding to the target similarity to obtain the identification information.

[0048] In the first embodiment, the preset identification picture refers to a picture used for comparison with the identification information of the picture to be uploaded. For example, if the identification information of the picture to be uploaded includes the test case number "0001", the preset identification picture can be 5 pictures containing the test case number (picture 1 containing the character "0001", picture 2 containing the character "0002", picture 3 containing the character "0003", picture 4 containing the character "0004", and picture 5 containing the character "0005").

[0049] Specifically, in order to identify the test case corresponding to the image to be uploaded, the area where the identification information is located in the image to be uploaded can be first intercepted to obtain the identification image. Then, the similarity between the identification image and multiple preset identification images is calculated by the convolutional neural network to obtain a similarity set. For example, the image features of the identification image and multiple preset identification images are extracted by the convolutional neural network to obtain the feature A of the identification image and the features B, C, D, E, and F of 5 preset identification images (such as 5 images containing characters "0001" to "0005" respectively), and then the similarity between feature A and feature B, feature C, feature D, feature E, and feature F is calculated using a metric such as Euclidean distance or cosine similarity to obtain a similarity set {similarity A_B, similarity A_C, similarity A_D, similarity A_E, similarity A_F}. Secondly, the similarity with the largest value in the similarity set is determined as the target similarity. Finally, the information of the test case corresponding to the image to be uploaded is determined according to the preset image identifier corresponding to the target similarity to obtain the identification information. For example, if the value of similarity A_C in the similarity set is the largest, then the test case number of the image to be uploaded is determined to be "0002" according to the preset identification image containing the character "0002" corresponding to the similarity A_C.

[0050] Image recognition technology is used to calculate the similarity between the identification image in the image to be uploaded and multiple preset identification images, so that the computing device can automatically identify the test cases corresponding to the image to be uploaded, saving the tester's time in selecting the target paths of multiple images to be uploaded, thereby achieving the effect of improving the tester's work efficiency.

[0051] Optionally, in the test image uploading method provided in Example 1 of the present application, uploading the image to be uploaded to the target path according to the identification information includes: compressing the image to be uploaded to obtain a compressed image; and uploading the compressed image to the target path according to the identification information.

[0052] In the first embodiment, in order to solve the problem that the upload of the to-be-uploaded picture is too large, causing the upload timeout, resulting in the inability to upload the to-be-uploaded picture, the to-be-uploaded picture can be compressed according to a preset ratio, and the compressed picture can be uploaded to the target path. The preset ratio is configured according to the size of the picture. For example, for a to-be-uploaded picture larger than 10M, the 10M to-be-uploaded picture can be compressed to 1M at a ratio of 10:1; for a to-be-uploaded picture larger than 50M, the 50M to-be-uploaded picture can be compressed to 1M at a ratio of 50:1.

[0053] By compressing the uploaded images, the problem of uploading timeout due to the size of the uploaded images, which results in the inability to upload the images, is avoided, thereby achieving the effect of improving the stability of uploading test images.

[0054] Optionally, in the test image uploading method provided in Example 1 of the present application, uploading the compressed image to the target path according to the identification information includes: when a network disconnection is detected, storing the compressed image and the identification information in a database; after detecting that the network is restored, uploading the compressed image in the database to the target path according to the identification information.

[0055] In the first embodiment of the present invention, in order to ensure the normal uploading of the picture to be uploaded under the condition of weak network, a new upload task can be created when the target device for uploading is in an offline state, and the compressed picture (or the picture to be uploaded) and the identification information of the compressed picture are stored in the database. After the network of the target device is restored, the upload task is continued, and the compressed picture (or the picture to be uploaded) is uploaded to the target path according to the identification information stored in the database. By saving the picture to be uploaded and the identification information in a weak network state or an offline state, the target device can automatically execute the upload task of the picture to be uploaded, avoiding the problem of the tester repeatedly uploading manually or waiting for the picture to be uploaded in a weak network state, and achieving the effect of improving the stability of uploading test pictures.

[0056] Optionally, in the test image uploading method provided in Example 1 of the present application, after uploading the compressed image to the target path according to the identification information, the above method also includes: when it is detected that the upload of the compressed image fails, re-uploading the image to be uploaded to the target path according to the identification information after a preset time period.

[0057] In the first embodiment, in order to prevent the tester from repeatedly performing the operation of uploading pictures when the picture upload fails, a new upload task can be created in the test case platform, and the upload task will be automatically executed at a preset time interval until the picture to be uploaded in the upload task is successfully uploaded to the target path. By creating a new upload task that automatically uploads every preset time interval when the compressed picture upload fails, the tester can perform the repeated upload operation steps instead, thereby saving the tester's time and achieving the effect of improving the stability of uploading test pictures.

[0058] Optionally, in the test image uploading method provided in Example 1 of the present application, the image identification of the image to be uploaded includes at least one of the following: test case number, test object information, test time, and tester information.

[0059] In the first embodiment, the image identifier of the image to be uploaded is used to identify the test case corresponding to the image to be uploaded. Therefore, the image identifier of the image to be uploaded needs to include the information of the test case, for example, the test case number, the information of the test object (such as web page routing information, interface name, program method, function module), test time, information of the tester, etc. By configuring the image identifier of the image to be uploaded, the identification information of the image to be uploaded can be flexibly configured according to the actual situation of the test case, thereby expanding the scope of application of uploading the image to be uploaded in this solution.

[0060] Optionally, in the first embodiment, the process of uploading the test image in this solution can be as follows: Figure 3 As shown. First, the tester determines the test picture to be uploaded (i.e. the picture to be uploaded mentioned above), and determines the test case number corresponding to the picture to be uploaded. Then, the test case number is added to the picture to be uploaded as identification information to obtain the picture to be uploaded with identification information. Secondly, the test case number corresponding to the picture to be uploaded with identification information is identified by image recognition technology. Finally, the picture to be uploaded is compressed according to a preset ratio, and the compressed picture is uploaded to the corresponding file path according to the test case number. If it is found that the compressed picture fails to be uploaded during the upload process, the picture to be uploaded is uploaded again.

[0061] It should be noted that the steps shown in the flowcharts of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and that, although a logical order is shown in the flowcharts, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0062] Embodiment 2

[0063] The second embodiment of the present application also provides a test picture upload device. It should be noted that the test picture upload device of the second embodiment of the present application can be used to execute the test picture upload method provided in the first embodiment of the present application. The test picture upload device provided in the second embodiment of the present application is introduced below.

[0064] Figure 4 Schematic diagram of a test image upload device according to Embodiment 2 of the present application. Figure 4 As shown, the device includes: an acquisition unit 401, an identification unit 402 and an upload unit 403.

[0065] Specifically, the acquisition unit 401 is used to obtain a picture to be uploaded with identification information, wherein the picture to be uploaded refers to a test picture to be uploaded, the test picture is a screenshot of the test result obtained by executing the test case, and the identification information represents the information of the test case corresponding to the picture to be uploaded.

[0066] The identification unit 402 is used to identify the identification information of the image to be uploaded by using the image recognition technology.

[0067] The uploading unit 403 is used to upload the image to be uploaded to the target path according to the identification information, wherein the target path refers to the storage path of the test case corresponding to the image to be uploaded.

[0068] The test picture uploading device provided in the second embodiment of the present application obtains the picture to be uploaded with identification information through the acquisition unit 401, wherein the picture to be uploaded refers to the test picture to be uploaded, the test picture is a screenshot of the test result obtained by executing the test case, and the identification information indicates the information of the test case corresponding to the picture to be uploaded; the identification unit 402 identifies the identification information of the picture to be uploaded through the picture recognition technology; the uploading unit 403 uploads the picture to be uploaded to the target path according to the identification information, wherein the target path refers to the storage path of the test case corresponding to the picture to be uploaded, which solves the problem that the process of the tester uploading the test picture in the related technology is relatively cumbersome, wastes a lot of time of the tester, and leads to the low work efficiency of the tester. By adding identification information to the picture to be uploaded, the mobile terminal device can automatically identify the test case information corresponding to the test picture (i.e. the above-mentioned picture to be uploaded) according to the identification information, and automatically upload the test picture according to the test case information, avoiding the problem that the tester needs to repeatedly manually locate the file path of the test case, reducing the work burden of the tester, and at the same time, by asynchronously uploading the test picture after the tester determines the test picture, the tester does not need to wait for the test picture to be uploaded successfully, thereby achieving the effect of improving the work efficiency of the tester.

[0069] Optionally, in the test image uploading device provided in Example 2 of the present application, the above-mentioned acquisition unit 401 includes: a first determination subunit, used to determine the target test case corresponding to the image to be uploaded; a second determination subunit, used to determine the image identifier of the image to be uploaded based on the target test case; an adding subunit, used to add the image identifier to the image to be uploaded through image processing technology, so as to obtain the image to be uploaded with identification information.

[0070] Optionally, in the test image uploading device provided in Example 2 of the present application, the above-mentioned identification unit 402 includes: a screenshot sub-unit, used to take a screenshot of the area where the identification information is located in the image to be uploaded, and obtain an identification image; a calculation sub-unit, used to calculate the similarity between the identification image and multiple preset identification images through image recognition technology, and obtain a similarity set; a third determination sub-unit, used to determine the similarity greater than a preset value in the similarity set, and obtain a target similarity; a fourth determination sub-unit, used to determine the information of the test case corresponding to the image to be uploaded based on the preset image identifier corresponding to the target similarity, and obtain the identification information.

[0071] Optionally, in the test image upload device provided in Example 2 of the present application, the above-mentioned upload unit 403 includes: a compression subunit, used to compress the image to be uploaded to obtain a compressed image; and a first upload subunit, used to upload the compressed image to the target path according to the identification information.

[0072] Optionally, in the test image upload device provided in Example 2 of the present application, the above-mentioned first upload sub-unit includes: a storage module, used to store the compressed image and identification information in a database when a network disconnection is detected; an upload module, used to upload the compressed image in the database to the target path according to the identification information after detecting that the network is restored.

[0073] Optionally, in the test image upload device provided in Example 2 of the present application, the above-mentioned upload unit 403 also includes: a second upload sub-unit, which is used to upload the compressed image to the target path according to the identification information, and when it is detected that the upload of the compressed image fails, re-upload the image to be uploaded to the target path according to the identification information after a preset time period.

[0074] Optionally, in the test image uploading device provided in Example 2 of the present application, the above-mentioned second determination subunit also includes: the image identification of the image to be uploaded includes at least one of the following: test case number, test object information, test time, and tester information.

[0075] The test image uploading device includes a processor and a memory. The above-mentioned acquisition unit 401, identification unit 402 and upload unit 403 are all stored in the memory as program units, and the processor executes the above-mentioned program units stored in the memory to realize corresponding functions.

[0076] The processor contains a kernel, which calls the corresponding program unit from the memory. One or more kernels can be set, and the work efficiency of the tester can be improved by adjusting the kernel parameters.

[0077] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM, and the memory includes at least one memory chip.

[0078] Embodiment 3 of the present invention provides a computer-readable storage medium on which a program is stored. When the program is executed by a processor, a method for uploading a test image is implemented.

[0079] A fourth embodiment of the present invention provides a processor, which is used to run a program, wherein the method for uploading a test image is executed when the program is running.

[0080] like Figure 5 As shown, embodiment 5 of the present invention provides an electronic device, the device includes a processor, a memory, and a program stored in the memory and executable on the processor, and the processor implements the following steps when executing the program: obtaining a picture to be uploaded with identification information, wherein the picture to be uploaded refers to a test picture to be uploaded, the test picture is a screenshot of a test result obtained by executing a test case, and the identification information represents information of a test case corresponding to the picture to be uploaded; identifying the identification information of the picture to be uploaded by using picture recognition technology; uploading the picture to be uploaded to a target path according to the identification information, wherein the target path refers to a storage path of the test case corresponding to the picture to be uploaded.

[0081] When the processor executes the program, the following steps are also implemented: obtaining the picture to be uploaded with identification information includes: determining the target test case corresponding to the picture to be uploaded; determining the picture identification of the picture to be uploaded based on the target test case; adding the picture identification to the picture to be uploaded through image processing technology to obtain the picture to be uploaded with identification information.

[0082] When the processor executes the program, the following steps are also implemented: identifying the identification information of the image to be uploaded through image recognition technology, including: taking a screenshot of the area where the identification information is located in the image to be uploaded to obtain the identification image; calculating the similarity between the identification image and multiple preset identification images through image recognition technology to obtain a similarity set; determining the similarity greater than the preset value in the similarity set to obtain the target similarity; determining the information of the test case corresponding to the image to be uploaded based on the preset image identifier corresponding to the target similarity to obtain the identification information.

[0083] When the processor executes the program, the following steps are also implemented: uploading the image to be uploaded to the target path according to the identification information includes: compressing the image to be uploaded to obtain a compressed image; uploading the compressed image to the target path according to the identification information.

[0084] When the processor executes the program, the following steps are also implemented: uploading the compressed image to the target path according to the identification information includes: when a network disconnection is detected, storing the compressed image and the identification information in a database; after detecting that the network is restored, uploading the compressed image in the database to the target path according to the identification information.

[0085] When the processor executes the program, the following steps are also implemented: after uploading the compressed image to the target path according to the identification information, the above method also includes: when it is detected that the upload of the compressed image fails, the image to be uploaded is re-uploaded to the target path according to the identification information after a preset time.

[0086] When the processor executes the program, the following steps are also implemented: the image identification of the above-mentioned image to be uploaded includes at least one of the following: test case number, test object information, test time, and tester information.

[0087] The devices in this article can be servers, PCs, PADs, mobile phones, etc.

[0088] The present application also provides a computer program product, which, when executed on a data processing device, is suitable for executing a program that initializes the following method steps: obtaining a picture to be uploaded with identification information, wherein the picture to be uploaded refers to a test picture to be uploaded, the test picture is a screenshot of a test result obtained by executing a test case, and the identification information represents information of the test case corresponding to the picture to be uploaded; identifying the identification information of the picture to be uploaded by using picture recognition technology; uploading the picture to be uploaded to a target path based on the identification information, wherein the target path refers to a storage path of the test case corresponding to the picture to be uploaded.

[0089] When executed on a data processing device, it is also suitable for executing an initialized program having the following method steps: obtaining a picture to be uploaded with identification information, including: determining a target test case corresponding to the picture to be uploaded; determining the picture identification of the picture to be uploaded based on the target test case; adding the picture identification to the picture to be uploaded through image processing technology to obtain the picture to be uploaded with identification information.

[0090] When executed on a data processing device, it is also suitable for executing an initialized program having the following method steps: identifying the identification information of the image to be uploaded by means of image recognition technology, including: taking a screenshot of the area where the identification information is located in the image to be uploaded to obtain an identification image; calculating the similarity between the identification image and multiple preset identification images respectively by means of image recognition technology to obtain a similarity set; determining the similarity greater than a preset value in the similarity set to obtain a target similarity; determining the information of the test case corresponding to the image to be uploaded based on the preset image identifier corresponding to the target similarity to obtain the identification information.

[0091] When executed on a data processing device, it is also suitable for executing an initialization program having the following method steps: uploading the image to be uploaded to the target path according to the identification information, including: compressing the image to be uploaded to obtain a compressed image; uploading the compressed image to the target path according to the identification information.

[0092] When executed on a data processing device, it is also suitable for executing an initialization program having the following method steps: uploading the compressed image to the target path according to the identification information, including: when a network disconnection is detected, storing the compressed image and the identification information in a database; after detecting that the network is restored, uploading the compressed image in the database to the target path according to the identification information.

[0093] When executed on a data processing device, it is also suitable for executing an initialization program having the following method steps: after uploading the compressed image to the target path according to the identification information, the above method also includes: when it is detected that the upload of the compressed image fails, after a preset time period, the image to be uploaded is re-uploaded to the target path according to the identification information.

[0094] When executed on a data processing device, it is also suitable for executing an initialization program having the following method steps: the above-mentioned image identification of the image to be uploaded includes at least one of the following: test case number, test object information, test time, and tester information.

[0095] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.

[0096] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0097] These computer program instructions may also be stored in a computer readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0098] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0099] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0100] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.

[0101] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.

[0102] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0103] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.

[0104] The above are only embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included within the scope of the claims of the present application.

Claims

1. A method for uploading a test image, characterized in that: include: Obtaining a to-be-uploaded image with identification information, wherein the to-be-uploaded image refers to a test image to be uploaded, the test image is a screenshot of a test result obtained by executing a test case, and the identification information indicates information of the test case corresponding to the to-be-uploaded image; Identify identification information of the image to be uploaded by using image recognition technology; The image to be uploaded is uploaded to a target path according to the identification information, wherein the target path refers to a storage path of a test case corresponding to the image to be uploaded.

2. The method according to claim 1, characterized in that: Obtaining the image to be uploaded with identification information includes: Determine the target test case corresponding to the image to be uploaded; Determining the image identifier of the image to be uploaded according to the target test case; The picture identification is added to the picture to be uploaded through image processing technology to obtain the picture to be uploaded with identification information.

3. The method according to claim 1, characterized in that The identification information of the image to be uploaded identified by the image recognition technology includes: Taking a screenshot of the area where the identification information is located in the picture to be uploaded to obtain an identification picture; Calculating the similarity between the identification image and a plurality of preset identification images respectively by using the image recognition technology to obtain a similarity set; Determine a similarity greater than a preset value in the similarity set to obtain a target similarity; The information of the test case corresponding to the image to be uploaded is determined according to the preset image identifier corresponding to the target similarity, and the identifier information is obtained.

4. The method according to claim 1, characterized in that: Uploading the image to be uploaded to the target path according to the identification information includes: Compressing the image to be uploaded to obtain a compressed image; The compressed image is uploaded to the target path according to the identification information.

5. The method according to claim 4, characterized in that Uploading the compressed image to the target path according to the identification information includes: When a network disconnection is detected, storing the compressed image and the identification information in a database; After detecting that the network connection is restored, the compressed image in the database is uploaded to the target path according to the identification information.

6. The method according to claim 5, characterized in that After uploading the compressed image to the target path according to the identification information, the method further includes: In the case where it is detected that the compressed image fails to be uploaded, the image to be uploaded is re-uploaded to the target path according to the identification information after a preset period of time.

7. The method according to claim 2, characterized in that The image identification of the image to be uploaded includes at least one of the following: a test case number, information about a test object, a test time, and information about a tester.

8. A device for uploading a test image, characterized in that: include: An acquisition unit, configured to acquire a to-be-uploaded image with identification information, wherein the to-be-uploaded image refers to a test image to be uploaded, the test image is a screenshot of a test result obtained by executing a test case, and the identification information indicates information of the test case corresponding to the to-be-uploaded image; An identification unit, used to identify identification information of the image to be uploaded by using an image recognition technology; An uploading unit is used to upload the image to be uploaded to a target path according to the identification information, wherein the target path refers to a storage path of a test case corresponding to the image to be uploaded.

9. A processor, characterized in that: The processor is used to run a program, wherein the program, when running, executes the method for uploading a test image described in any one of claims 1 to 7.

10. An electronic device, characterized in that: It includes one or more processors and a memory, wherein the memory is used to store one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement the test image uploading method described in any one of claims 1 to 7.