CN112131113A - Method for automatically testing special effect and electronic equipment - Google Patents

Method for automatically testing special effect and electronic equipment Download PDF

Info

Publication number
CN112131113A
CN112131113A CN202011008287.4A CN202011008287A CN112131113A CN 112131113 A CN112131113 A CN 112131113A CN 202011008287 A CN202011008287 A CN 202011008287A CN 112131113 A CN112131113 A CN 112131113A
Authority
CN
China
Prior art keywords
special effect
determining
tested
information
test
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202011008287.4A
Other languages
Chinese (zh)
Inventor
宋萌
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Dajia Internet Information Technology Co Ltd
Original Assignee
Beijing Dajia Internet Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Dajia Internet Information Technology Co Ltd filed Critical Beijing Dajia Internet Information Technology Co Ltd
Priority to CN202011008287.4A priority Critical patent/CN112131113A/en
Publication of CN112131113A publication Critical patent/CN112131113A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/368Test management for test version control, e.g. updating test cases to a new software version
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Testing, Inspecting, Measuring Of Stereoscopic Televisions And Televisions (AREA)

Abstract

The present disclosure relates to a method for automatically testing special effects and an electronic device, wherein the method for automatically testing special effects comprises: determining whether a trigger condition is satisfied; in response to the trigger condition being met, determining a special effect to be tested; determining a test case corresponding to the special effect to be tested based on the special effect to be tested; and determining the test result of the special effect to be tested based on the test case. The technical scheme provided by the embodiment of the application can solve the problem that a user needs to spend more time to construct the test case in the related technology.

Description

Method for automatically testing special effect and electronic equipment
Technical Field
The present disclosure relates to the field of communications technologies, and in particular, to a method for automatically testing a special effect and an electronic device.
Background
With the development of internet technology, various network services such as live webcast classroom, network sales exhibition, short video promotion and the like are more and more popular with people, and magic expressions are produced and widely used for increasing network interactivity and fun among users. At present, before the magic expression (which may also be called a video prop) is popularized and applied, special effect testing needs to be performed on the magic expression, different test cases need to be built according to different magic expressions, and when the number of the magic expressions to be tested is large, a user needs to spend much time on building the test cases.
Disclosure of Invention
The disclosure provides a method for automatically testing special effects and electronic equipment, so as to at least solve the problem that a user needs to spend more time to construct a test case in the related art. The technical scheme of the disclosure is as follows:
according to a first aspect of embodiments of the present disclosure, there is provided a method for automatically testing special effects, comprising:
determining whether a trigger condition is satisfied;
in response to the trigger condition being met, determining a special effect to be tested;
determining a test case corresponding to the special effect to be tested based on the special effect to be tested;
and determining the test result of the special effect to be tested based on the test case.
According to a second aspect of the embodiments of the present disclosure, there is provided an apparatus for automatically testing special effects, including:
a trigger condition determination unit configured to determine whether a trigger condition is satisfied;
a test special effect determination unit configured to determine a special effect to be tested in response to a trigger condition being satisfied;
a test case determination unit configured to determine a test case corresponding to a special effect to be tested based on the special effect to be tested;
and the test result determining unit is configured to determine the test result of the special effect to be tested based on the test case.
According to a third aspect of the embodiments of the present disclosure, there is provided an electronic apparatus including:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the method for automatically testing special effects as described in the first aspect.
According to a fourth aspect of embodiments of the present disclosure, there is provided a storage medium, wherein instructions that, when executed by a processor of a server, enable the server to perform the method for automatically testing special effects as described in the first aspect.
According to a fifth aspect of embodiments of the present disclosure, there is provided a computer program product capable of performing the method for automatically testing special effects as described in the first aspect.
The technical scheme provided by the embodiment of the disclosure at least brings the following beneficial effects:
according to the technical scheme provided by the embodiment of the disclosure, when an electronic device (such as a client) meets a trigger condition, a special effect to be tested is determined, a corresponding test case can be determined based on the special effect to be tested, and then a test result of the special effect to be tested is determined based on the test case. Therefore, the electronic equipment can automatically execute the special effect test of the magic expression test case when the triggering condition is met, manual triggering by a user is not needed, the test operation of the user on the magic expression can be simplified, the time of the user is saved, the execution of the magic expression test case is not dependent on the situation that the user needs to be present, and the test for the magic expression is more flexible in time.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the disclosure and are not to be construed as limiting the disclosure.
FIG. 1 is a flow diagram illustrating a method for automatically testing special effects, according to an example embodiment.
FIG. 2 is a block diagram illustrating an apparatus for automatically testing special effects, according to an example embodiment.
FIG. 3 is a block diagram illustrating an electronic device in accordance with an example embodiment.
Detailed Description
In order to make the technical solutions of the present disclosure better understood by those of ordinary skill in the art, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings.
It should be noted that the terms "first," "second," and the like in the description and claims of the present disclosure and in the above-described drawings are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the disclosure described herein are capable of operation in sequences other than those illustrated or otherwise described herein. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
Fig. 1 is a flowchart illustrating a method for automatically testing special effects, which may be used in an electronic device such as a server or a client according to an exemplary embodiment, and the method for automatically testing special effects is applied to the client in the following embodiments of the present application. As shown in fig. 1, the method for automatically testing special effects includes the following steps.
In step S11, it is determined whether the trigger condition is satisfied.
It should be noted that the method provided by the present disclosure is applicable to the test of the special effect of the magic expression, that is, the automatic test of the special effect of the magic expression. In some embodiments, the magic expression may also be referred to as a video prop, a special effect expression, and the like, and may be applied to scenes such as video broadcasts, social software chatting, and the like. In the embodiment of the application, the test case of the magic expression may refer to a test script capable of testing the special effect of the magic expression, or a program code for testing the special effect of the magic expression; of course, in some embodiments, the test case may also be described in other manners, and this embodiment is not limited in particular.
In this step, the client determines whether the trigger condition is currently satisfied. Optionally, the trigger condition includes any one of:
reaching the preset trigger time;
the warehouse code changes.
For example, the client may preset a preset trigger time of the test case, and when the preset trigger time is reached, the client may automatically determine the special effect to be tested and the corresponding test case to execute the special effect test on the test case. Or, the preset trigger condition may also refer to that the server warehouse code changes; the warehouse code may refer to a program code of a test case for a magic expression special effect test, which is written in advance by the client. The change of the warehouse code may refer to when an update of the program code by the user is received, for example, a preset code is input by completion, or the change is changed to the preset code, and the like; in this case, the warehouse code changes, that is, the trigger condition is satisfied, and the client may automatically determine the special effect to be tested and the corresponding test case to execute the special effect test on the test case.
It should be noted that the method provided by the present disclosure may be a jenkins platform suitable for the client, and the scheme for automatically testing the special effect is deployed on the jenkins platform, and a trigger may be constructed, and a trigger mode of the trigger is set, where the trigger mode is also the trigger condition. Of course, the trigger may also be automatically constructed by using a timer or a timing call script instead of being deployed on the jenkins platform, and the specific construction scheme may refer to related technologies, which is not specifically described in detail in this disclosure.
In step S12, in response to the trigger condition being met, a special effect to be tested is determined.
It can be understood that, when the client meets the trigger condition, that is, when the preset trigger time is reached or the warehouse code changes, the special effect to be tested, that is, the magic expression special effect of the test case to be executed, is determined.
Optionally, the step S12 may include:
reading a local configuration file;
analyzing the local configuration file, and determining a global enabling switch and a special effect enabling switch;
responding to the value of the global enabling switch as 1, and determining the special effects to be tested as all the special effects;
and responding to the value of the special effect enabling switch as 1, and determining the special effect to be tested as the special effect corresponding to the special effect enabling switch.
The local configuration file may be a file including magic expression parameter information, which is pre-stored in the client, for example, the configuration file includes configuration information, and the configuration information may be a special effect name, a special effect type, a special effect application scene, and the like of a magic expression.
In this embodiment, the local configuration file may be a global enable (global _ enable) switch and an effect enable (enable) switch, which store the magic expression effect and correspond to whether the magic expression effect is executed. The global enabling switch may be a switch for determining whether to execute all magic expression special effects in the local configuration file, and the special effect enabling switch may be a switch for independently executing a certain magic expression special effect. It is to be understood that the local configuration file may be that only one global enable switch is written, and that a plurality of effect enable switches are written, and each magic expression effect corresponds to one effect enable switch.
Specifically, when the client determines that the current condition meets the trigger condition, the client reads a local configuration file and analyzes the local configuration file to obtain a global enable switch and a special effect enable switch. If the value of the global enable switch is 1, all magic expression characteristics are executed, and the special effects to be tested are determined to be all the special effects; if the value of the global enable switch is 0, determining whether to execute the special effect according to the value of the special effect enable switch corresponding to each magic expression special effect; for example, if the value of the special effect enable switch for obtaining a special effect of a certain magic expression is 1, which indicates that the magic expression special effect is to be executed, determining that the special effect to be tested is the special effect corresponding to the special effect enable switch; if the value of the special effect enable switch is 0, the special effect corresponding to the special effect enable switch does not need to be executed. Therefore, by reading the values of the global enabling switch and the special effect enabling switch in the local configuration file, whether the special effects to be tested are all the special effects or one or more of the special effects can be determined, and the special effects to be tested can be accurately tested.
In step S13, a test case corresponding to the special effect to be tested is determined based on the special effect to be tested.
It should be noted that the client may store test cases corresponding to different special effects in advance. The test case is used for testing the special effect of the magic expression so as to test whether the magic expression can reach the expected special effect, and correspondingly comprises the type, the name and the application scene of the magic expression, the parameter information of the special effect name, the special effect type, the special effect application scene and the like so as to distinguish the test case and ensure the smooth execution of the test case.
Optionally, the step S13 may include:
reading a local configuration file, and determining the value of the multiple input classes in the special effect to be tested;
determining the category of the test case based on the value of the multi-input category;
in response to the value of the multi-input class being 1, determining that a test case input by multiple pictures is used for testing;
and determining to adopt the test case input by the single picture to test in response to the value of the multi-input class being 0.
The local configuration file can also be written with values of multiple input classes corresponding to the special effects to be tested, and the values of the multiple input classes are used for determining the classes of the test cases.
It can be understood that when a value of a special effect enable switch of a certain special effect is read to be 1, it indicates that a test case corresponding to the special effect is to be executed. Specifically, after a special effect to be tested is determined, reading a local configuration file, and determining a value of a multi-input class (multi _ input) in the special effect to be tested, wherein the value of the multi-input class is used for indicating whether the special effect to be tested is a multi-picture input special effect or not so as to determine a test case category; if the value of the multi-input class is 1, the special effect to be tested is a multi-picture input special effect, and then the test case input by the multi-picture is determined to be used for testing; and if the value of the multi-input class is 0, the special effect to be tested is a single-picture input special effect, and then the test case input by the single picture is determined to be used for testing. Therefore, the server can quickly determine the type of the test case by reading the values of the multiple input types, and the efficiency of the magic expression special effect test is effectively improved.
In step S14, a test result of the special effect to be tested is determined based on the test case.
It can be understood that after the test case of the special effect to be tested is determined, the test case can be operated to perform the special effect test on the special effect to be tested, so as to obtain the test result of the special effect to be tested.
Optionally, before determining the test result of the special effect to be tested, the method may further include:
reading a local configuration file, and determining a target parameter in the local configuration file;
wherein the target parameters include: the system comprises a service name, a pre-allocated file storage directory, a template storage directory, a picture storage directory, a special effect name, a template name and optional parameters.
In the embodiment of the present disclosure, after determining the test case of the special effect to be tested, the client may read the local configuration file again, and determine the target parameter in the local configuration file, where the target parameter is used to generate the test request information to request the server to implement special effect synthesis.
It should be noted that the service name (biz _ name) may refer to a name of a service corresponding to a test case, the pre-allocated file storage directory (profile _ name) may refer to a file storage address pre-allocated to the test case, and the template storage directory (templates _ dir) may refer to a storage address of a special effect template corresponding to the test case; the picture storage directory (photos _ dir) may refer to a picture name suitable for the special effect test of the test case; the special effect name (actionmode) may refer to a name of a special effect corresponding to a test case; the template name (template) may refer to the name of a special effect template for the test case to perform a special effect test; the optional _ params may be a parameter including a scene to which the special effect can be applied, a type of the special effect, a duration of the special effect, and the like.
Further, after determining the target parameter in the local configuration file, the method further includes:
splicing the target parameters to generate test request information;
and sending the test request information to a server.
It can be understood that after the target parameters in the local configuration file are obtained, the target parameters are spliced to generate test request information, for example, the service name, the picture storage directory, the template storage directory, and the template name are spliced into the test request information, and the test request information is sent to the server by calling an interface of the server through the software development kit SDK to initiate a request for synthesizing the magic expression. Wherein the server is a test server.
Optionally, the determining the test result of the special effect to be tested includes:
receiving the synthesis information fed back by the server in response to the test request information; the server downloads picture information and template information based on the test request information, and the synthesis information is generated based on the picture information, the template information and the special effect information of the special effect to be tested;
and determining a test result of the special effect to be tested based on the synthesis information.
Specifically, after receiving the test request information, the server can determine which magic expression special effect is subjected to the special effect test based on the test request information, and can further download picture information and template information corresponding to the magic expression special effect, synthesize the downloaded picture information, template information and corresponding special effect information into a picture or a video according to the magic expression special effect to synthesize a target magic expression corresponding to the magic expression special effect, and feed back the synthesized target magic expression to the client. And the client determines the test result of the special effect to be tested based on the feedback synthesis information.
Specifically, the determining a test result of a special effect to be tested based on the synthesis information includes:
acquiring an information result of the synthetic information;
in response to the information result being successful, determining whether the synthesized information is correct to determine a test result of the special effect to be tested;
and determining a failure error code in response to the information result being failure.
In the embodiment of the present disclosure, after receiving the synthesis information fed back by the server, the client determines the synthesized status code based on the synthesis information, where the status code is used to indicate whether the synthesis is successful, for example, if the status code is 1, the synthesis is successful, and if the status code is 0, the synthesis is failed. The client determines the information result of the synthesized information based on the state code, and if the information result is successful, for example, if the state code is 1, further judges whether the synthesized information is correct, so as to determine the test result of the special effect to be tested; if the information result is failure, e.g., the status code is 0, the failure error code and the reason are checked.
Further, the determining whether the synthesis information is correct to determine a test result of the special effect to be tested includes:
responding to the correctness of the synthesis information, and acquiring synthesis parameters included in the synthesis information; the synthesis parameters include: the resolution, code rate, duration and frame rate of the video or the picture;
checking whether the synthesis parameters are the same as the stored preset parameters;
responding to the synthetic parameter being the same as the preset parameter, and determining that the test result of the special effect to be tested is passed; the preset parameters are special effect parameters corresponding to special effect tests based on the latest test case, and the test result of the latest test case is passed.
In the embodiment of the present disclosure, if the synthesis information is correct, the correctness of the synthesis result needs to be checked, that is, whether the synthesized target magic expression meets the preset requirement is checked. Specifically, under the condition that the synthesis information is correct, the synthesis parameters included in the synthesis information are acquired, and whether the synthesis parameters are the same as preset parameters or not is checked. It can be understood that the synthesis information is a target magic expression synthesized by the server based on the picture information, the template information, and the special effect information, the target magic expression is a picture or a video, and the synthesis parameters of the synthesis information may include resolution, code rate, duration, and frame rate of the video or the picture, that is, whether the synthesis parameters are the same as preset resolution, code rate, duration, and frame rate is determined. For example, the client may obtain the video stream information of the target magic expression from the media asset library and compare the video stream information with the synthesis parameters; and secondly, comparing the synthetic information with the synthetic information obtained by the magic expression special effect test executed last time to judge whether the two times of synthetic information are the same. That is to say, the preset parameters are special effect parameters corresponding to the special effect test performed based on the latest test case, and the test result of the latest test case passes through, so that the judgment standard of the special effect test result is judged by the latest test case, and the accuracy of the test result can be improved.
It is understood that if the synthesis parameter is the same as the preset parameter, the test result of the special effect to be tested is determined to be passed.
Optionally, after the step S14, the method may further include:
and acquiring the test result of the special effect to be tested, automatically generating a test report, and outputting the test report.
In the embodiment of the disclosure, after the client acquires the test result of the test case, the client can automatically generate the test report based on the test result and output the test report. It should be noted that the test report includes a test result of the test case, and in the case that the number of the test cases is multiple, the test report may further include the number, success number, failure number, test time, failure information, and the like of the test cases.
It should be noted that the client may automatically send the test report to the client after generating the test report, for example, to a client mailbox, or to a mobile phone of the client in the form of a mobile phone short message. Therefore, the user does not need to wait for the test result at the client, the time of the user is saved, the user can timely know the test result even if the user is far away from the client, and the test operation of the user on the magic expression is more convenient.
In the embodiment of the disclosure, when an electronic device (such as a client) meets a trigger condition, a special effect to be tested is determined, a corresponding test case can be determined based on the special effect to be tested, and then a test result of the special effect to be tested is determined based on the test case. Therefore, the electronic equipment can automatically execute the special effect test of the magic expression test case when the triggering condition is met, manual triggering by a user is not needed, the test operation of the user on the magic expression can be simplified, the time of the user is saved, the execution of the magic expression test case is not dependent on the situation that the user needs to be present, and the test for the magic expression is more flexible in time.
FIG. 2 is a block diagram illustrating an apparatus for automatically testing special effects, according to an example embodiment. Referring to fig. 2, the apparatus includes a trigger condition determining unit 201, a test special effect determining unit 202, a test case determining unit 203, and a test result determining unit 204.
A trigger condition determination unit 201 configured to determine whether a trigger condition is satisfied;
a test special effect determination unit 202 configured to determine a special effect to be tested in response to a trigger condition being satisfied;
a test case determining unit 203 configured to determine a test case corresponding to a special effect to be tested based on the special effect to be tested;
a test result determining unit 204 configured to determine a test result of the special effect to be tested based on the test case.
Optionally, the trigger condition includes any one of:
reaching the preset trigger time;
the warehouse code changes.
Optionally, the test special effect determining unit 202 is further configured to:
reading a local configuration file;
analyzing the local configuration file, and determining a global enabling switch and a special effect enabling switch;
responding to the value of the global enabling switch as 1, and determining the special effects to be tested as all the special effects;
and responding to the value of the special effect enabling switch as 1, and determining the special effect to be tested as the special effect corresponding to the special effect enabling switch.
Optionally, the test case determining unit 203 is further configured to:
reading a local configuration file, and determining the value of the multiple input classes in the special effect to be tested;
determining the category of the test case based on the value of the multi-input category;
in response to the value of the multi-input class being 1, determining that a test case input by multiple pictures is used for testing;
and determining to adopt the test case input by the single picture to test in response to the value of the multi-input class being 0.
Optionally, the apparatus further comprises:
the reading unit is configured to read a local configuration file and determine a target parameter in the local configuration file;
wherein the target parameters include: the system comprises a service name, a pre-allocated file storage directory, a template storage directory, a picture storage directory, a special effect name, a template name and optional parameters.
Optionally, the apparatus further comprises:
the generating unit is configured to splice the target parameters and generate test request information;
a transmitting unit configured to transmit the test request information to a server.
Optionally, the test result determining unit 204 is further configured to:
receiving the synthesis information fed back by the server in response to the test request information; the server downloads picture information and template information based on the test request information, and the synthesis information is generated based on the picture information, the template information and the special effect information of the special effect to be tested;
determining a result of the special effect to be tested based on the synthesis information.
Optionally, the test result determining unit 204 is further configured to:
acquiring an information result of the synthetic information;
in response to the information result being successful, determining whether the synthesized information is correct to determine a result of the special effect to be tested;
and determining a failure error code in response to the information result being failure.
Optionally, the test result determining unit 204 is further configured to:
responding to the correctness of the synthesis information, and acquiring synthesis parameters included in the synthesis information; the synthesis parameters include: the resolution, code rate, duration and frame rate of the video or the picture;
checking whether the synthesis parameters are the same as the stored preset parameters;
responding to the synthetic parameter being the same as the preset parameter, and determining that the test result of the special effect to be tested is passed; the preset parameters are special effect parameters corresponding to special effect tests based on the latest test case, and the test result of the latest test case is passed.
Optionally, the apparatus further comprises:
and the output unit is configured to acquire the test result of the special effect to be tested, automatically generate a test report and output the test report.
With regard to the apparatus in the above embodiment, a specific manner in which each unit performs operations may be described in detail in the embodiment of the method for automatically testing special effects described with reference to fig. 1, and will not be described in detail here.
The device for automatically testing the special effect can automatically execute the special effect test on the magic expression test case without manual triggering by a user, so that the test operation of the user on the magic expression can be simplified, the time of the user is saved, the execution of the magic expression test case is not dependent on the situation that the user must be present, and the test on the magic expression is more flexible in time.
Fig. 3 is a block diagram illustrating an electronic device 300 in accordance with an example embodiment. As shown in fig. 3, the electronic device 300 comprises a processor 301 and a memory 302 for storing instructions executable by the processor 301. The processor 301 is configured to execute the instructions to implement the steps of the method for automatically testing a special effect described in fig. 1, and can achieve the same technical effect, and details are not repeated here to avoid repetition.
The embodiment of the present disclosure further provides a storage medium including instructions, and when the instructions in the storage medium are executed by a processor of a server, the server can execute the steps of the method for automatically testing a special effect described in fig. 1, and can achieve the same technical effect, and details are not repeated here to avoid repetition. Alternatively, the storage medium may be a non-transitory computer readable storage medium, which may be, for example, a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
The embodiment of the present disclosure further provides a computer program product, which can execute the steps of the method for automatically testing a special effect described in fig. 1, and achieve the same technical effects, and in order to avoid repetition, the details are not repeated here.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (10)

1. A method for automatically testing special effects, comprising:
determining whether a trigger condition is satisfied;
in response to the trigger condition being met, determining a special effect to be tested;
determining a test case corresponding to the special effect to be tested based on the special effect to be tested;
and determining the test result of the special effect to be tested based on the test case.
2. The method of claim 1, wherein the trigger condition comprises any one of:
reaching the preset trigger time;
the warehouse code changes.
3. The method of claim 1, wherein the determining a special effect to be tested comprises:
reading a local configuration file;
analyzing the local configuration file, and determining a global enabling switch and a special effect enabling switch;
responding to the value of the global enabling switch as 1, and determining the special effects to be tested as all the special effects;
and responding to the value of the special effect enabling switch as 1, and determining the special effect to be tested as the special effect corresponding to the special effect enabling switch.
4. The method of claim 1, wherein determining a test case corresponding to a special effect to be tested based on the special effect to be tested comprises:
reading a local configuration file, and determining the value of the multiple input classes in the special effect to be tested;
determining the category of the test case based on the value of the multi-input category;
in response to the value of the multi-input class being 1, determining that a test case input by multiple pictures is used for testing;
and determining to adopt the test case input by the single picture to test in response to the value of the multi-input class being 0.
5. The method of claim 1, wherein prior to determining the test result for the special effect to be tested, the method further comprises:
reading a local configuration file, and determining a target parameter in the local configuration file;
wherein the target parameters include: the system comprises a service name, a pre-allocated file storage directory, a template storage directory, a picture storage directory, a special effect name, a template name and optional parameters.
6. The method of claim 5, wherein after determining the target parameter in the local configuration file, the method further comprises:
splicing the target parameters to generate test request information;
and sending the test request information to a server.
7. The method of claim 6, wherein said determining the test result for the special effect to be tested comprises:
receiving the synthesis information fed back by the server in response to the test request information; the server downloads picture information and template information based on the test request information, and the synthesis information is generated based on the picture information, the template information and the special effect information of the special effect to be tested;
and determining a test result of the special effect to be tested based on the synthesis information.
8. The method of claim 7, wherein determining a test result for a special effect to be tested based on the synthesized information comprises:
acquiring an information result of the synthetic information;
in response to the information result being successful, determining whether the synthesized information is correct to determine a test result of the special effect to be tested;
and determining a failure error code in response to the information result being failure.
9. The method of claim 8, wherein determining whether the synthesized information is correct to determine a test result of the special effect to be tested comprises:
responding to the correctness of the synthesis information, and acquiring synthesis parameters included in the synthesis information; the synthesis parameters include: the resolution, code rate, duration and frame rate of the video or the picture;
checking whether the synthesis parameters are the same as the stored preset parameters;
responding to the synthetic parameter being the same as the preset parameter, and determining that the test result of the special effect to be tested is passed; the preset parameters are special effect parameters corresponding to special effect tests based on the latest test case, and the test result of the latest test case is passed.
10. An electronic device, comprising:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the method for automatically testing a special effect of any one of claims 1 to 9.
CN202011008287.4A 2020-09-23 2020-09-23 Method for automatically testing special effect and electronic equipment Pending CN112131113A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011008287.4A CN112131113A (en) 2020-09-23 2020-09-23 Method for automatically testing special effect and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011008287.4A CN112131113A (en) 2020-09-23 2020-09-23 Method for automatically testing special effect and electronic equipment

Publications (1)

Publication Number Publication Date
CN112131113A true CN112131113A (en) 2020-12-25

Family

ID=73842838

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011008287.4A Pending CN112131113A (en) 2020-09-23 2020-09-23 Method for automatically testing special effect and electronic equipment

Country Status (1)

Country Link
CN (1) CN112131113A (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105138450A (en) * 2015-07-31 2015-12-09 北京金山安全软件有限公司 Software stability testing method and device
US9396098B2 (en) * 2014-03-26 2016-07-19 Mckesson Financial Holdings Apparatuses, methods, and computer program products for conducting automated tests
CN107844426A (en) * 2017-11-24 2018-03-27 网易(杭州)网络有限公司 Automated testing method and device, storage medium, electronic equipment
CN109117368A (en) * 2018-07-27 2019-01-01 平安科技(深圳)有限公司 A kind of interface test method, electronic equipment and storage medium
CN109446071A (en) * 2018-09-26 2019-03-08 深圳壹账通智能科技有限公司 Interface test method, interface test device, electronic equipment and storage medium
CN111246286A (en) * 2020-01-10 2020-06-05 北京百度网讯科技有限公司 Test case obtaining method and device and electronic equipment
CN111352782A (en) * 2020-02-28 2020-06-30 北京字节跳动网络技术有限公司 Interface testing method and device, computer equipment and storage medium
CN111432142A (en) * 2020-04-03 2020-07-17 腾讯云计算(北京)有限责任公司 Video synthesis method, device, equipment and storage medium
CN111432205A (en) * 2020-04-17 2020-07-17 杭州趣维科技有限公司 Automatic testing method for video synthesis correctness
CN111694749A (en) * 2020-06-24 2020-09-22 深圳壹账通智能科技有限公司 Automatic interface testing method and device, computer equipment and readable storage medium

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9396098B2 (en) * 2014-03-26 2016-07-19 Mckesson Financial Holdings Apparatuses, methods, and computer program products for conducting automated tests
CN105138450A (en) * 2015-07-31 2015-12-09 北京金山安全软件有限公司 Software stability testing method and device
CN107844426A (en) * 2017-11-24 2018-03-27 网易(杭州)网络有限公司 Automated testing method and device, storage medium, electronic equipment
CN109117368A (en) * 2018-07-27 2019-01-01 平安科技(深圳)有限公司 A kind of interface test method, electronic equipment and storage medium
CN109446071A (en) * 2018-09-26 2019-03-08 深圳壹账通智能科技有限公司 Interface test method, interface test device, electronic equipment and storage medium
CN111246286A (en) * 2020-01-10 2020-06-05 北京百度网讯科技有限公司 Test case obtaining method and device and electronic equipment
CN111352782A (en) * 2020-02-28 2020-06-30 北京字节跳动网络技术有限公司 Interface testing method and device, computer equipment and storage medium
CN111432142A (en) * 2020-04-03 2020-07-17 腾讯云计算(北京)有限责任公司 Video synthesis method, device, equipment and storage medium
CN111432205A (en) * 2020-04-17 2020-07-17 杭州趣维科技有限公司 Automatic testing method for video synthesis correctness
CN111694749A (en) * 2020-06-24 2020-09-22 深圳壹账通智能科技有限公司 Automatic interface testing method and device, computer equipment and readable storage medium

Similar Documents

Publication Publication Date Title
CN109168028B (en) Video generation method, device, server and storage medium
JP6470306B2 (en) Method, apparatus and system for speech verification
CN107342083B (en) Method and apparatus for providing voice service
JP2017529711A5 (en)
CN106201794B (en) A kind of detection method and device of server
CN109714415B (en) Data processing method and device
CN106598527B (en) The method and apparatus of position of display unit in identification display equipment
US20090296906A1 (en) Image sharing system
CN104508689A (en) A two-dimension code processing method and a terminal
CN106776323B (en) Application testing method and device
CN111309632A (en) Application program testing method and device, computer equipment and storage medium
CN110674040A (en) Application testing method, device, equipment and storage medium
CN113434105A (en) Screen projection control method and device, storage medium and electronic equipment
CN110543428B (en) Application system testing method and device
CN110515514B (en) Data processing method, device and storage medium
CN113238944A (en) Test method, device and system
CN112131113A (en) Method for automatically testing special effect and electronic equipment
CN108881377B (en) Application service calling method, terminal equipment and server
CN110389886B (en) Additional function testing method and device of main application program and storage medium
CN110727416A (en) Development framework generation method and related device
CN115686458A (en) Virtual world application development method and device
CN113626321B (en) Bridging test method, device, system and storage medium
CN115757135A (en) Test environment deployment method, apparatus, storage medium, and program product
CN116309964A (en) Video generation method, device, equipment and storage medium
CN106997291B (en) Control method, master node and slave node

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination