Media content publishing test method and device, equipment and medium
By generating a list of media content to be published and indicating the content released by the tested application, the problem of low testing efficiency of application content release service in the prior art is solved, automated testing is realized, and testing efficiency and coverage are improved.
Patent Information
- Application Number
- CN202310638604.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-05-31
- Publication Date
- 2024-12-03
AI Technical Summary
In the prior art, the content publishing service testing of applications is relatively low and mainly relies on manual testing, resulting in inefficiency.
By receiving test startup instructions sent by the user, a list of media content to be published based on the test scenario and the pre-imported media content in the target test device is generated, and the tested application is instructed to publish the corresponding media content to realize the automation of media content release services. test.
Improve testing efficiency and realize automated testing of media content publishing services of tested applications, with more comprehensive coverage, and test logs can be used for analysis and processing.
Smart Images

Figure CN119065953A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present disclosure relate to the field of computer technology, and in particular to a method, apparatus, device, and medium for testing media content publishing. Background Art
[0002] In recent years, with the popularization of Internet technology and the development of new technologies for application (APP) development, the use of applications has become increasingly widespread. For example, some applications can provide content publishing services, and users can upload, edit, and publish their created content through these applications. In the development and maintenance of applications, in order to test the performance of the application, it is often necessary to test the application. At present, the test of the content publishing service provided by the application is often carried out by manual testing, which has low testing efficiency. Summary of the invention
[0003] The embodiments of the present disclosure describe a testing method and device for media content publishing, which can automatically generate a first media content list to be published based on a test scenario sent by a user, and instruct a tested application to publish media content based on the first media content list, thereby realizing automated testing of the media content publishing service of the tested application and improving testing efficiency.
[0004] According to a first aspect, a test method for media content publishing is provided, comprising: receiving a test start instruction sent by a user, wherein the test start instruction includes a test scenario; generating a first media content list to be published according to the test scenario and media content pre-imported into a target test device, wherein a tested application is pre-installed in the target test device; and instructing the tested application to publish the first media content corresponding to the first media content list.
[0005] In one embodiment, the above-mentioned generation of the first media content list to be released according to the above-mentioned test scenario and the media content pre-imported in the target test device includes: determining a media content selection factor, wherein the above-mentioned media content selection factor includes dimension information of at least one dimension of the media content; selecting at least one media content to be released that matches the above-mentioned test scenario from the media content pre-imported in the above-mentioned target test device according to the dimension information of the above-mentioned at least one dimension; and generating the first media content list based on the storage address of the above-mentioned at least one media content to be released in the above-mentioned target test device. Thus, the media content selection factor can be determined from multiple dimensions, thereby selecting the media content to be released from multiple dimensions for testing, so that the test coverage is more comprehensive.
[0006] In one embodiment, the media content includes pictures and videos; and the at least one dimension includes at least one of the following: file size, format type, resolution, and video duration. Thus, multiple dimensions of media content such as pictures and videos can be determined.
[0007] In one embodiment, the method further includes: obtaining a test log generated during the release of the first media content by the tested application. Thus, the test log generated by the automated test can be obtained, and the tester can perform various analysis and processing on the test log.
[0008] In one embodiment, the above-mentioned tested application is pre-set with a target code, the above-mentioned tested application provides a media content publishing service, and the above-mentioned target code is used to simulate the user's execution of a media content selection behavior in the upload page of the above-mentioned tested application; and the above-mentioned instructing the above-mentioned tested application to publish the first media content corresponding to the above-mentioned first media content list includes: sending a first instruction to the above-mentioned tested application, wherein the above-mentioned first instruction is used to instruct the above-mentioned tested application to open the upload page of the media content; sending the above-mentioned first media content list to the above-mentioned tested application, so that the above-mentioned tested application calls the above-mentioned target code and selects the first media content corresponding to the above-mentioned first media content list in the above-mentioned upload page; sending an editing instruction to the above-mentioned tested application, wherein the above-mentioned editing instruction is used to instruct the above-mentioned tested application to edit the above-mentioned first media content; sending a second instruction to the above-mentioned tested application, wherein the above-mentioned second instruction is used to instruct the above-mentioned tested application to publish the edited first media content. Therefore, the first media content corresponding to the first media content list can be automatically selected with the help of the target code pre-embedded in the tested application, so as to make the test more efficient.
[0009] In one embodiment, the media content includes at least one of a picture and a video; and the test scenario includes at least one of the following: a single picture scenario, a single video scenario, a multi-video and / or multi-picture scenario, and a random scenario. Thus, automated testing of multiple test scenarios can be achieved.
[0010] In one embodiment, before generating the first media content list to be published, the method further includes: receiving a media content import request sent by a user, wherein the media content import request includes a media content address; obtaining a target media content package from a preset media content set according to the media content address; decompressing the target media content package to obtain target media content; sending the target media content to a target directory of a target test device, and sending an identification instruction for the target media content to the target test device. In this way, the target media content can be automatically imported into the target test device for subsequent testing. This improves the efficiency of media content import.
[0011] In one embodiment, the method further comprises: storing the relevant information of the target media content in association with the identification of the target test device, thereby recording which media content has been imported into the target test device.
[0012] According to a second aspect, a testing device for media content publishing is provided, comprising: a receiving unit, configured to receive a test start instruction sent by a user, wherein the test start instruction includes a test scenario; a generating unit, configured to generate a first media content list to be published according to the test scenario and media content pre-imported into a target test device, wherein a tested application is pre-installed in the target test device; and a testing unit, configured to instruct the tested application to publish the first media content corresponding to the first media content list.
[0013] According to a third aspect, a computer program product is provided, comprising a computer program, wherein when the computer program is executed by a processor, the method as described above in any one of the first aspect is implemented.
[0014] According to a fourth aspect, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed in a computer, the computer is caused to execute any one of the methods in the first aspect.
[0015] According to a fifth aspect, an electronic device is provided, comprising a memory and a processor, wherein the memory stores executable code, and when the processor executes the executable code, any one of the methods in the first aspect is implemented.
[0016] According to the test method and device for media content publishing provided by the embodiment of the present disclosure, after receiving the test start instruction sent by the user including the test scenario, a first media content list to be published can be generated according to the test scenario and the media content pre-imported in the target test device. Then, the tested application installed in the target test device is instructed to publish the first media content corresponding to the first media content list. Thus, the first media content list to be published is automatically generated based on the test scenario sent by the user, and the tested application is instructed to publish the media content based on the first media content list, thereby realizing the automated testing of the media content publishing service of the tested application and improving the test efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] Figure 1 A schematic diagram showing an application scenario in which the embodiments of the present disclosure can be applied;
[0018] Figure 2 A schematic flow chart of a method for testing media content publishing according to an embodiment is shown;
[0019] Figure 3 A schematic flow chart of a method for testing media content publishing according to yet another embodiment is shown;
[0020] Figure 4 A schematic block diagram of a testing device for publishing media content according to an embodiment is shown;
[0021] Figure 5 A schematic diagram of the structure of an electronic device suitable for implementing the embodiments of the present application is shown. DETAILED DESCRIPTION
[0022] It is understandable that before using the technical solutions disclosed in the embodiments of the present disclosure, the types, scope of use, usage scenarios, etc. of the personal information involved in the present disclosure should be informed to the user and the user's authorization should be obtained in an appropriate manner in accordance with relevant laws and regulations.
[0023] For example, in response to receiving an active request from a user, a prompt message is sent to the user to clearly prompt the user that the operation requested to be performed will require obtaining and using the user's personal information. Thus, the user can autonomously choose whether to provide personal information to software or hardware such as an electronic device, application, server, or storage medium that performs the operation of the technical solution of the present disclosure according to the prompt message.
[0024] As an optional but non-limiting implementation, in response to receiving an active request from the user, the prompt information may be sent to the user in the form of a pop-up window, in which the prompt information may be presented in text form. In addition, the pop-up window may also carry a selection control for the user to choose "agree" or "disagree" to provide personal information to the electronic device.
[0025] It is understandable that the above notification and the process of obtaining user authorization are merely illustrative and do not constitute a limitation on the implementation of the present disclosure. Other methods that meet the relevant laws and regulations may also be applied to the implementation of the present disclosure.
[0026] The technical solution provided by the present disclosure is further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the relevant inventions, rather than to limit the inventions. It should also be noted that, for ease of description, only the parts related to the relevant inventions are shown in the accompanying drawings. It should be noted that, in the absence of conflict, the embodiments of the present disclosure and the features in the embodiments can be combined with each other.
[0027] The disclosed embodiment provides a method for testing media content publishing. Figure 1 FIG. 1 is a schematic diagram showing an application scenario in which the embodiment of the present disclosure can be applied. Figure 1As shown, the user who performs the test work can send a test start instruction including the test scenario "single picture scenario" to the device 101. The device 101 can be connected to one or more target test devices 102 directly or through a hub. The target test device 102 is pre-installed with a tested application 1021, which can provide a media content publishing service. In addition, some media content is pre-imported into the target test device 102. In this example, the device 101 can pre-import multiple pictures into the album of the target test device 102. After importing, the device 101 can store the relevant information of these multiple pictures and the identification of the target test device 102 locally in association. As an example, the relevant information of the picture can include the identification, name, size, format type of the image, and the storage address of the target test device 102, etc. In this way, the device 101 can generate a first media content list to be published according to the test scenario "single picture scenario" and the multiple pictures pre-imported in the target test device 102. The first media content list may include the storage address of a single picture in the photo album of the target test device 102. Afterwards, the device 101 may send the first media content list to the target test device 102, and instruct the tested application 1021 in the target test device 102 to publish the first media content corresponding to the first media content list. In this example, the first media content may refer to a single picture corresponding to the storage address in the first media content list. Thus, the automated test of the media content publishing service of the tested application 1021 is implemented.
[0028] Continue to see Figure 2 , Figure 2 A flow chart of a method for testing media content publishing according to an embodiment is shown. The method can be executed by any device, equipment, platform, or device cluster with computing and processing capabilities. Figure 2 As shown, the testing method for publishing media content may include the following steps:
[0029] Step 201: Receive a test start instruction sent by a user.
[0030] In this embodiment, the user may refer to a tester. The user may send a test start instruction, which may include a test scenario. Here, the test scenario may refer to a scene mode to be tested.
[0031] In this example, the media content may include text, audio, pictures, videos, and other types of content. Taking the case where the media content includes at least one of pictures and videos as an example, the test scenario may include at least one of the following: a single picture scenario, a single video scenario, a multi-video and / or multi-picture scenario, and a random scenario. Here, the single picture scenario may refer to a scenario where a single picture is published, the single video scenario may refer to a scenario where a single video is published, the multi-video and / or multi-picture scenario may refer to a scenario where multiple videos and / or multiple videos are published, and the random scenario may refer to a scenario where the type and quantity of media content are randomly selected for publication.
[0032] Step 202: Generate a first media content list to be published according to the test scenario and the media content pre-imported into the target test device.
[0033] In this embodiment, the target test device may be installed with a tested application. Here, the tested application may be various applications that provide services such as media content editing and publishing, such as video applications, singing applications, reading applications, and the like. Video applications generally support operations such as media content import, editing, and publishing performed by content creators. In this example, media content is pre-imported into the target test device. For example, some pictures and / or videos may be pre-imported into the photo album of the target test device. In this way, a first media content list to be published is generated based on the test scenario sent by the user and the media content pre-imported into the target test device. The first media content list may include the storage address of the media content to be published in the target test device. For example, media content that meets the requirements of the test scenario may be randomly selected, and a first media content list may be generated based on the address of the selected media content.
[0034] It can be understood that before generating the first media content list to be published, the Figure 2 The execution subject of the method shown can be connected to the target test device, and the target test device can pre-store some sample media content for testing. These media contents can be stored in the target test device in various ways. For example, the user can directly copy the sample media content into the target test device through a USB flash drive. After the sample media content is directly copied into the target test device through a USB flash drive, the execution subject can execute the test data. Figure 2 The execution subject of the method shown can obtain the relevant information of the sample media content in a variety of ways. For example, after copying the sample media content, the target test device can actively send the relevant information of the sample media content to the above execution subject. Here, the relevant information of the sample media content can include but is not limited to: the identification, name, size, format type, storage address of the sample media content in the target test device, etc.
[0035] In some implementations, media content may be imported into the target test device, which may specifically include the following:
[0036] 1) Receive a media content import request sent by a user, where the media content import request may include a media content address.
[0037] 2) According to the media content address, the target media content package is obtained from a preset media content set. Here, the media content set may be a preset media content library, which stores various media content packages, and the media content package can be queried through the media content address.
[0038] 3) Decompress the target media content package to obtain the target media content.
[0039] 4) Sending the target media content to the target directory of the target test device, and sending an identification instruction for the target media content to the target test device.
[0040] Taking the target media content as pictures or videos and the target directory as the directory of the album as an example, the pictures or videos can be sent to the album of the target test device, and an identification instruction for the target media content can be sent to the target test device, and the identification instruction can instruct the album to scan and identify the imported pictures or videos. In this way, the target media content can be automatically imported into the target test device for subsequent testing. This improves the efficiency of media content import.
[0041] Optionally, the above-mentioned media content publishing test method may further include: storing the relevant information of the target media content in association with the identification of the target test device. Here, the relevant information of the target media content may include but is not limited to: identification, name, file size, format type, storage address of the target test device, etc. Thus, it is possible to record which media content has been imported into the target test device.
[0042] Step 203: instruct the tested application to publish the first media content corresponding to the first media content list.
[0043] In this embodiment, an instruction may be sent to the tested application to instruct the tested application to publish the first media content corresponding to the first media content list. For example, the tested application may be instructed to obtain the media content from the storage address in the first media content list for publication.
[0044] In some implementations, the above-mentioned media content publishing testing method may also include: Figure 2 The following content not shown in the figure: obtaining the test log generated in the process of publishing the first media content by the tested application. Thus, the test log generated by the automated test can be obtained, and the tester can perform various analysis and processing on the test log.
[0045] In some implementations, the above-mentioned tested application may be pre-set with a target code, and the target code may be used to simulate the user's media content selection behavior in the upload page of the tested application. The target code may provide a calling interface to the outside, and its communication protocol may be in the form of a scheme programming language or an Intent method, etc. The tested application may provide a media content publishing service. In addition, the above-mentioned step 203 may be performed in the following manner:
[0046] 1) Sending a first instruction to the tested application, where the first instruction is used to instruct the tested application to open an upload page for media content.
[0047] 2) Send the first media content list to the tested application so that the tested application can call the target code and select the first media content corresponding to the first media content list on the upload page. For example, if the first media content includes a picture P in the album of the target test device, the target code can obtain the picture in the album on the upload page by operating the controls on the upload page and select the picture P in the album.
[0048] 3) Sending an editing instruction to the tested application, wherein the editing instruction may be used to instruct the tested application to perform a preset editing on the first media content.
[0049] 4) Sending a second instruction to the tested application, wherein the second instruction is used to instruct the tested application to publish the edited first media content.
[0050] Therefore, the first media content corresponding to the first media content list can be automatically selected with the help of the target code embedded in the tested application, so as to make the test more efficient. In practice, there may be a special content creation tool in the tested application to support multiple creation paths of the user. Among them, one path for publishing creation is to import the media content from the target directory to the editing page for editing in the tested application, and finally to the publishing page for publishing. Through this implementation method, the publishing creation path can be automatically tested. It can be understood that the above-mentioned target code is set in the tested application for testing, and the target code does not need to be set in the application that is actually online for users to download and use.
[0051] Reviewing the above process, in the above embodiment of the present disclosure, after receiving the test start instruction including the test scenario sent by the user, a first media content list to be published can be generated according to the test scenario and the media content pre-imported in the target test device. Then, the tested application installed in the target test device is instructed to publish the first media content corresponding to the first media content list. Thus, the first media content list to be published is automatically generated based on the test scenario sent by the user, and the tested application is instructed to publish the media content based on the first media content list, thereby realizing the automated testing of the media content publishing service of the tested application and improving the test efficiency.
[0052] Further references Figure 3 , Figure 3 A flow chart of a method for testing media content publishing according to another embodiment is shown. The method for testing media content publishing may include the following steps:
[0053] Step 301: Receive a test start instruction sent by a user.
[0054] In this embodiment, the specific implementation method of step 301 is the same as Figure 2 The step 201 in is similar, so it will not be repeated here.
[0055] Step 302: Determine media content selection factors.
[0056] In this embodiment, the media content may be classified from multiple dimensions, thereby obtaining information of the media content in multiple dimensions.
[0057] Taking the media content as pictures as an example, pictures can be classified from multiple dimensions such as file size, format type, resolution, etc. For example, from the dimension of file size, pictures can be divided into three categories: Class A (0 < file size ≤ first threshold), Class B (first threshold < file size ≤ second threshold), Class C (second threshold < file size ≤ third threshold), etc. The above thresholds can be set according to actual needs. From the format type, pictures can be divided into: png (Portable Network Graphics) format pictures, jpeg (Joint Photographic Experts Group) format pictures, etc. From the resolution, pictures can be divided into: standard definition, high definition, ultra high definition, etc.
[0058] Taking video as an example, the video can be classified based on multiple dimensions such as file size, format type, video duration, resolution, etc. For example, based on the video duration, the video can be divided into Class D (video duration less than 15 seconds), Class E (video duration less than 60 seconds), Class F (video duration less than 3 minutes), etc.
[0059] Based on this, a media content selection factor can be determined, and the media content selection factor determined above may include dimensional information of at least one dimension of the media content, for example, a dimensional value. Optionally, the above media content may include pictures, videos, and the like. And, the above at least one dimension may include at least one of the following: file size, format type, resolution, video duration, and the like. As an example, the dimension value may be determined randomly. Taking the four dimensions of video file size, format type, video duration, and resolution as an example, a certain media content selection factor may be as follows: file size: Class C, format type: HEVC (High Efficiency Video Coding), video duration: Class E, resolution: ultra-high definition. It can be understood that the above examples are merely illustrative, and not a limitation on the number of dimensions, dimensions, dimensional values, and the like.
[0060] Step 303: Select at least one to-be-published media content that matches the test scenario from the media content pre-imported into the target test device according to the dimension information of at least one dimension.
[0061] For example, first, multiple media contents meeting the media content selection factor can be determined from the media contents pre-imported into the target test device, and then at least one media content to be released that matches the test scenario can be randomly determined from the multiple media contents. Taking video as an example, assuming that three videos meeting the media content selection factor are determined, and the test scenario is a single video scenario, a video can be randomly selected from the three videos as the media content to be released.
[0062] Step 304: Generate a first media content list based on the storage address of at least one media content to be published in the target test device.
[0063] Step 305: instruct the tested application to publish the first media content corresponding to the first media content list.
[0064] In this embodiment, the specific implementation method of step 305 is the same as Figure 2 The step 203 in is similar, so it will not be repeated here.
[0065] Figure 3 In the illustrated embodiment, media content selection factors can be determined from multiple dimensions, so that media content to be released can be selected from multiple dimensions for testing, thereby making the test coverage more comprehensive.
[0066] According to another aspect of the embodiment, a media content publishing test device is provided. The media content publishing test device can be deployed on any device, equipment, platform, device cluster, etc. with computing and processing capabilities.
[0067] Figure 4 A schematic block diagram of a testing device for publishing media content according to an embodiment is shown. Figure 4 The device shown is used to perform Figure 2 As shown in the method. Figure 4 As shown, the test device 400 for media content publishing includes: a receiving unit 401, configured to receive a test start instruction sent by a user, wherein the test start instruction includes a test scenario; a generating unit 402, configured to generate a first media content list to be published according to the test scenario and the media content pre-imported into the target test device, wherein the target test device is pre-installed with a tested application; a testing unit 403, configured to instruct the tested application to publish the first media content corresponding to the first media content list.
[0068] In some optional implementations of this embodiment, the generation unit 402 is further configured to: determine a media content selection factor, wherein the media content selection factor includes dimension information of at least one dimension of the media content; based on the dimension information of the at least one dimension, select at least one media content to be released that matches the test scenario from the media content pre-imported into the target test device; and generate a first media content list based on the storage address of the at least one media content to be released in the target test device.
[0069] In some optional implementations of this embodiment, the above-mentioned media content includes pictures and videos; and the above-mentioned at least one dimension includes at least one of the following: file size, format type, resolution, and video length.
[0070] In some optional implementations of this embodiment, the apparatus 400 further includes: an acquisition unit (not shown in the figure), configured to acquire a test log generated during the release of the first media content by the tested application.
[0071] In some optional implementations of the present embodiment, a target code is pre-set in the above-mentioned tested application, the above-mentioned tested application provides a media content publishing service, and the above-mentioned target code is used to simulate the user's execution of a media content selection behavior in the upload page of the above-mentioned tested application; and the testing unit 403 is further configured to: send a first instruction to the above-mentioned tested application, wherein the above-mentioned first instruction is used to instruct the above-mentioned tested application to open the upload page of the media content; send the above-mentioned first media content list to the above-mentioned tested application, so that the above-mentioned tested application calls the above-mentioned target code and selects the first media content corresponding to the above-mentioned first media content list in the above-mentioned upload page; send an editing instruction to the above-mentioned tested application, wherein the above-mentioned editing instruction is used to instruct the above-mentioned tested application to edit the above-mentioned first media content; send a second instruction to the above-mentioned tested application, wherein the above-mentioned second instruction is used to instruct the above-mentioned tested application to publish the edited first media content.
[0072] In some optional implementations of this embodiment, the above-mentioned media content includes at least one of pictures and videos; and the above-mentioned test scenario includes at least one of the following: a single picture scene, a single video scene, a multi-video and / or multi-picture scene, and a random scene.
[0073] In some optional implementations of the present embodiment, the device 400 also includes: a request receiving unit (not shown in the figure), configured to receive a media content import request sent by a user, wherein the media content import request includes a media content address; a content package acquisition unit (not shown in the figure), configured to acquire a target media content package from a preset media content set according to the media content address; a decompression unit (not shown in the figure), configured to decompress the target media content package to obtain the target media content; a sending unit (not shown in the figure), configured to send the target media content to a target directory of a target test device, and send an identification instruction for the target media content to the target test device.
[0074] In some optional implementations of this embodiment, the apparatus 400 further includes: a storage unit (not shown in the figure), configured to store the identification of the target media content and the identification of the target test device in association with each other.
[0075] The above device embodiments correspond to the method embodiments. For specific descriptions, please refer to the description of the method embodiments, which will not be repeated here. The device embodiments are obtained based on the corresponding method embodiments and have the same technical effects as the corresponding method embodiments. For specific descriptions, please refer to the corresponding method embodiments.
[0076] According to another embodiment, there is also provided a computer-readable storage medium having a computer program stored thereon, which, when executed in a computer, causes the computer to execute Figure 2 The method described.
[0077] According to another embodiment, there is also provided an electronic device, comprising a memory and a processor, wherein the memory stores an executable code, and when the processor executes the executable code, Figure 2 The method described.
[0078] The foregoing describes specific embodiments of the present disclosure, and other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims may be performed in an order different from that in the embodiments, and the desired results may still be achieved. In addition, the processes depicted in the accompanying drawings do not necessarily have to be performed in the specific order or sequential order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible, or may be advantageous.
[0079] Reference below Figure 5 , which shows a structural schematic diagram of an electronic device 500 suitable for implementing an embodiment of the present application. Figure 5 The electronic device shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0080] like Figure 5 As shown, the electronic device 500 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 501, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 502 or a program loaded from a storage device 508 into a random access memory (RAM) 503. In the RAM 503, various programs and data required for the operation of the electronic device 500 are also stored. The processing device 501, the ROM 502, and the RAM 503 are connected to each other via a bus 504. An input / output (I / O) interface 505 is also connected to the bus 504.
[0081] Typically, the following devices may be connected to the I / O interface 505: an input device 506 including, for example, a touch screen, a touch pad, a keyboard, a mouse, etc.; an output device 507 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 508 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 509. The communication device 509 may allow the electronic device 500 to communicate with other devices wirelessly or by wire to exchange data. Figure 5 The electronic device 500 is shown with various devices, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead. Figure 5Each block shown in the figure may represent one device, or may represent multiple devices as required.
[0082] In particular, according to an embodiment of the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication device 509, or installed from the storage device 508, or installed from the ROM 502. When the computer program is executed by the processing device 501, the above-mentioned functions defined in the method of the embodiment of the present application are executed.
[0083] The embodiment of the present disclosure further provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed in a computer, the computer is caused to execute the method provided by the present disclosure.
[0084] It should be noted that the computer-readable medium described in the embodiments of the present disclosure may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the embodiments of the present disclosure, the computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by or in combination with an instruction execution system, device or device. In the embodiments of the present disclosure, the computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. The computer readable signal medium may also be any computer readable medium other than a computer readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination of the above.
[0085] The computer-readable medium may be included in the electronic device; or it may exist independently without being installed in the electronic device. The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device: receives a test start instruction sent by a user, wherein the test start instruction includes a test scenario; generates a first media content list to be published based on the test scenario and the media content pre-imported in the target test device, wherein the target test device is pre-installed with a tested application; and instructs the tested application to publish the first media content corresponding to the first media content list.
[0086] Computer program code for performing the operations of the disclosed embodiments may be written in one or more programming languages or a combination thereof, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as an independent software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or electronic device. In the case of a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0087] Each embodiment in the present disclosure is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the storage medium and computing device embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiments.
[0088] Those skilled in the art should be aware that in one or more of the above examples, the functions described in the embodiments of the present invention may be implemented using hardware, software, firmware, or any combination thereof. When implemented using software, these functions may be stored in a computer-readable medium or transmitted as one or more instructions or codes on a computer-readable medium.
[0089] The specific implementation methods described above further describe the purpose, technical solutions and beneficial effects of the embodiments of the present invention in detail. It should be understood that the above description is only a specific implementation method of the embodiments of the present invention and is not intended to limit the scope of protection of the present invention. Any modification, equivalent replacement, improvement, etc. made on the basis of the technical solution of the present invention shall be included in the scope of protection of the present invention.
Claims
1. A method for testing media content publishing, comprising: Receiving a test start instruction sent by a user, wherein the test start instruction includes a test scenario; Generate a first media content list to be published according to the test scenario and the media content pre-imported in the target test device, wherein the target test device has the tested application pre-installed in it; Instruct the tested application to publish the first media content corresponding to the first media content list.
2. The method according to claim 1, wherein: The step of generating a first media content list to be published according to the test scenario and the media content pre-imported into the target test device includes: Determining a media content selection factor, wherein the media content selection factor includes dimension information of at least one dimension of the media content; Selecting, according to the dimension information of the at least one dimension, at least one to-be-published media content matching the test scenario from the media content pre-imported into the target test device; A first media content list is generated based on a storage address of the at least one media content to be published in the target test device.
3. The method according to claim 2, wherein: The media content includes pictures and videos; and the at least one dimension includes at least one of the following: file size, format type, resolution, and video length.
4. The method according to claim 1, wherein: The method further comprises: A test log generated during the release of the tested application by the first media content is obtained.
5. The method according to claim 1, wherein: The tested application is pre-set with a target code, the tested application provides a media content publishing service, and the target code is used to simulate a user's media content selection behavior in an upload page of the tested application; as well as The instructing the tested application to publish the first media content corresponding to the first media content list includes: Sending a first instruction to the tested application, wherein the first instruction is used to instruct the tested application to open an upload page for media content; Sending the first media content list to the tested application so that the tested application calls the target code, and selecting the first media content corresponding to the first media content list in the upload page; Sending an editing instruction to the tested application, wherein the editing instruction is used to instruct the tested application to edit the first media content; A second instruction is sent to the tested application, wherein the second instruction is used to instruct the tested application to publish the edited first media content.
6. The method according to claim 1, wherein: The media content includes at least one of a picture and a video; and the test scene includes at least one of the following: a single picture scene, a single video scene, a multi-video and / or multi-picture scene, and a random scene.
7. The method according to claim 1, wherein: Before generating the first media content list to be published, the method further includes: Receiving a media content import request sent by a user, wherein the media content import request includes a media content address; Acquire a target media content package from a preset media content set according to the media content address; Decompressing the target media content package to obtain target media content; The target media content is sent to a target directory of a target test device, and an identification instruction for the target media content is sent to the target test device.
8. The method according to claim 7, wherein: The method further comprises: The relevant information of the target media content and the identification of the target test device are stored in association with each other.
9. A testing device for publishing media content, comprising: A receiving unit, configured to receive a test start instruction sent by a user, wherein the test start instruction includes a test scenario; A generating unit configured to generate a first media content list to be published according to the test scenario and the media content pre-imported in the target test device, wherein the target test device has the tested application pre-installed therein; The testing unit is configured to instruct the tested application to publish the first media content corresponding to the first media content list.
10. A computer-readable storage medium having a computer program stored thereon, which, when executed in a computer, causes the computer to execute the method according to any one of claims 1 to 8.
11. An electronic device, comprising a memory and a processor, wherein the memory stores executable code, and when the processor executes the executable code, the method according to any one of claims 1 to 8 is implemented.
