CN109656826B - Application testing method, system, device and computer readable storage medium - Google Patents

Application testing method, system, device and computer readable storage medium Download PDF

Info

Publication number
CN109656826B
CN109656826B CN201811539991.5A CN201811539991A CN109656826B CN 109656826 B CN109656826 B CN 109656826B CN 201811539991 A CN201811539991 A CN 201811539991A CN 109656826 B CN109656826 B CN 109656826B
Authority
CN
China
Prior art keywords
test
installation package
application
remote real
scene
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.)
Active
Application number
CN201811539991.5A
Other languages
Chinese (zh)
Other versions
CN109656826A (en
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.)
WeBank Co Ltd
Original Assignee
WeBank 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 WeBank Co Ltd filed Critical WeBank Co Ltd
Priority to CN201811539991.5A priority Critical patent/CN109656826B/en
Publication of CN109656826A publication Critical patent/CN109656826A/en
Application granted granted Critical
Publication of CN109656826B publication Critical patent/CN109656826B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/3684Test management for test design, e.g. generating new test cases
    • 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V40/00Recognition of biometric, human-related or animal-related patterns in image or video data
    • G06V40/10Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
    • G06V40/16Human faces, e.g. facial parts, sketches or expressions
    • G06V40/161Detection; Localisation; Normalisation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V40/00Recognition of biometric, human-related or animal-related patterns in image or video data
    • G06V40/40Spoof detection, e.g. liveness detection
    • G06V40/45Detection of the body part being alive

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Multimedia (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • General Engineering & Computer Science (AREA)
  • Oral & Maxillofacial Surgery (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Measuring And Recording Apparatus For Diagnosis (AREA)
  • Medical Treatment And Welfare Office Work (AREA)

Abstract

The invention discloses an application testing method, which comprises the following steps: when an application test instruction is monitored, acquiring corresponding scene test data according to the application test instruction, and acquiring an installation package of a to-be-tested living body detection application containing an automatic test code; writing the scene test data into an installation package to obtain a test installation package, generating a test request containing the test installation package, and sending the test request to a remote real machine platform; the remote real machine platform sends the test installation package in the test request to the remote real machine; and the remote real machine installs the target living body detection application containing the automatic test code according to the test installation package, runs the target living body detection application after the installation is finished, and executes a corresponding test flow to test the target living body detection application. The invention also discloses an application test system, equipment and a computer readable storage medium. The invention can improve the test convenience of the in-vivo detection application and ensure the quality of the in-vivo detection application.

Description

Application testing method, system, device and computer readable storage medium
Technical Field
The present invention relates to the field of application testing technologies, and in particular, to an application testing method, system, device, and computer-readable storage medium.
Background
With the rapid development of the living body detection technology, the living body detection technology is widely applied to various fields, face recognition is one of the living body detection technologies, and developers need to test the living body detection situation applied in the mobile terminal when developing the living body detection application. Currently, a commonly used testing method is a real person and real machine test, that is, a real person uses a mobile terminal installed with a testing application to test a human face so as to test the living body detection condition applied to the mobile terminal.
However, the mobile terminals on the market have many brands and models, and the hardware and software configurations of the mobile terminals of different brands and models are different, so that in the actual test process, an enterprise cannot test the living body detection condition applied to the mobile terminals of all brands or models, the quality of the living body detection application is difficult to guarantee, and meanwhile, the live-body detection is not convenient for the test of the living body detection application because the real-man and real-machine test requires the mobile terminal and a person to be together. Therefore, how to improve the testing convenience of the in-vivo detection application and ensure the quality of the in-vivo detection application is a problem to be solved urgently at present.
Disclosure of Invention
The invention mainly aims to provide an application testing method, system, equipment and a computer readable storage medium, aiming at improving the testing convenience of in-vivo detection application and ensuring the quality of the in-vivo detection application.
In order to achieve the above object, the present invention provides an application testing method, comprising the steps of:
when an application test instruction is monitored, acquiring corresponding scene test data according to the application test instruction, and acquiring an installation package of a to-be-tested living body detection application containing an automatic test code;
writing the scene test data into the installation package to obtain a test installation package, generating a test request containing the test installation package, and sending the test request to a remote real machine platform;
the remote real machine platform sends the test installation package in the test request to each remote real machine;
and the remote real machine installs the target living body detection application containing the automatic test code according to the test installation package, runs the target living body detection application after the installation is finished, and executes a corresponding test flow so as to test the target living body detection application.
Further, writing the scene test data into the installation package to obtain a test installation package, wherein the step of obtaining the test installation package comprises:
calculating the byte number of the scene test data, and judging whether the byte number is greater than or equal to a preset threshold value;
if the byte number is larger than or equal to a preset threshold value, compressing the scene test data, and writing the compressed scene test data into the installation package to obtain a test installation package;
and if the byte number is smaller than a preset threshold value, writing the scene test data into the installation package to obtain a test installation package.
Further, writing the scene test data into the installation package to obtain a test installation package, wherein the step of obtaining the test installation package comprises:
acquiring a format of the scene test data, and judging whether the format is a preset format or not;
if the format is a preset format, writing the scene test data into the installation package to obtain a test installation package;
and if the format is not the preset format, performing format conversion on the scene test data, and writing the scene test data subjected to the format conversion into the installation package to obtain a test installation package.
Further, the step of sending the test installation package in the test request to each remote real machine by the remote real machine platform includes:
when the remote real-time machine platform receives the test request, the remote real-time machine platform acquires a user identification code from the test request;
inquiring a mapping relation table between pre-stored user identification codes and the number of remote real machines to obtain the number of the remote real machines corresponding to the user identification codes;
the available remote real machines of the number of the remote real machines are obtained from a preset remote real machine pool to form a remote real machine set, and the test installation package in the test request is sent to each remote real machine in the remote real machine set.
Further, the step of sending the test installation package in the test request to each remote real machine by the remote real machine platform includes:
when the remote real machine platform receives the test installation package, the remote real machine platform acquires the model information of the remote real machine from the test request;
and obtaining a plurality of remote real machines corresponding to the model information from a preset remote real machine pool, and sending the test installation package in the test request to each remote real machine in the remote real machines.
Further, the step of running the target in-vivo detection application after the installation is completed and executing a corresponding test procedure to test the target in-vivo detection application includes:
after the installation is finished, the remote real machine runs the target living body detection application, executes a camera interception process and acquires hardware configuration information;
acquiring an installation catalog of the target living body detection application, and reading scene test data in a corresponding format under the installation catalog according to the hardware configuration information;
and executing face detection operation according to the scene test data to obtain a face identification result, and executing living body detection operation according to the face identification result to obtain a living body detection result.
In addition, in order to achieve the above object, the present invention further provides an application testing system, where the application testing system includes an application testing device, a remote real machine platform, and a remote real machine, where:
the application testing equipment is used for acquiring corresponding scene testing data according to the application testing instruction when the application testing instruction is monitored, and acquiring an installation package of the to-be-tested living body detection application containing an automatic testing code;
the application test equipment is further used for writing the scene test data into the installation package to obtain a test installation package, generating a test request containing the test installation package, and sending the test request to a remote real machine platform;
the remote real machine platform is used for receiving the test request sent by the application test equipment and sending the test installation package in the test request to each remote real machine;
the remote real machine is used for receiving a test installation package sent by the remote real machine platform and installing a target living body detection application containing an automatic test code according to the test installation package;
the remote real machine is also used for operating the target living body detection application and executing a corresponding test process after the installation is finished so as to test the target living body detection application.
In addition, to achieve the above object, the present invention also provides an application test apparatus, including: a memory, a processor, and an application test program stored on the memory and executable on the processor, the application test program when executed by the processor implementing the steps of:
when an application test instruction is monitored, acquiring corresponding scene test data according to the application test instruction, and acquiring an installation package of a to-be-tested living body detection application containing an automatic test code;
writing the scene test data into the installation package to obtain a test installation package;
the method comprises the steps of generating a test request containing a test installation package, sending the test request to a remote real machine platform, supplying the remote real machine platform to send the test installation package in the test request to each remote real machine, wherein the remote real machine is based on the test installation package, the installation package contains target living body detection application of automatic test codes, and after installation is completed, the target living body detection application is operated, corresponding test procedures are executed, and the target living body detection application is tested.
The present invention also provides a computer readable storage medium having an application test program stored thereon, the application test program when executed by a processor implementing the steps of:
when an application test instruction is monitored, acquiring corresponding scene test data according to the application test instruction, and acquiring an installation package of a to-be-tested living body detection application containing an automatic test code;
writing the scene test data into the installation package to obtain a test installation package;
the method comprises the steps of generating a test request containing a test installation package, sending the test request to a remote real machine platform, supplying the remote real machine platform to send the test installation package in the test request to each remote real machine, wherein the remote real machine is based on the test installation package, the installation package contains target living body detection application of automatic test codes, and after installation is completed, the target living body detection application is operated, corresponding test procedures are executed, and the target living body detection application is tested.
The invention provides an application testing method, a system, equipment and a computer readable storage medium, wherein an automatic testing code and scene testing data are added into an installation package of a living body detection application to obtain a testing installation package, the testing installation package is transmitted to a remote real machine platform, and the testing installation package is issued to each remote real machine by the remote real machine platform for testing, so that real machines of various brands and models can be covered, the quality of the living body detection application is effectively ensured, people and the real machines are not required to be together, and the testing convenience of the living body detection application is greatly improved.
Drawings
FIG. 1 is a schematic diagram of an apparatus architecture of a hardware operating environment according to an embodiment of the present invention;
FIG. 2 is a schematic flow chart of a first embodiment of the testing method of the present invention;
FIG. 3 is a functional block diagram of a first embodiment of an application test system according to the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
As shown in fig. 1, fig. 1 is a schematic device structure diagram of a hardware operating environment according to an embodiment of the present invention.
The application test equipment of the embodiment of the invention can be a PC, and can also be a mobile terminal equipment with a display function, such as a smart phone, a tablet personal computer, a portable computer and the like.
As shown in fig. 1, the application test apparatus may include: a processor 1001, such as a CPU, a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1005 may be a high-speed RAM memory or a non-volatile memory (e.g., a magnetic disk memory). The memory 1005 may alternatively be a storage device separate from the processor 1001.
Those skilled in the art will appreciate that the application test equipment configuration shown in FIG. 1 does not constitute a limitation of the application test equipment, and may include more or fewer components than shown, or some components in combination, or a different arrangement of components.
As shown in fig. 1, a memory 1005, which is a kind of computer storage medium, may include therein an operating system, a network communication module, a user interface module, and an application test program.
In the application test device shown in fig. 1, the network interface 1004 is mainly used for connecting to a background server and performing data communication with the background server; the user interface 1003 is mainly used for connecting a client (user side) and performing data communication with the client; and the processor 1001 may be configured to call the application test program stored in the memory 1005 and perform the following steps:
when an application test instruction is monitored, acquiring corresponding scene test data according to the application test instruction, and acquiring an installation package of a to-be-tested living body detection application containing an automatic test code;
writing the scene test data into the installation package to obtain a test installation package;
the method comprises the steps of generating a test request containing a test installation package, sending the test request to a remote real machine platform, supplying the remote real machine platform to send the test installation package in the test request to each remote real machine, wherein the remote real machine is based on the test installation package, the installation package contains target living body detection application of automatic test codes, and after installation is completed, the target living body detection application is operated, corresponding test procedures are executed, and the target living body detection application is tested.
Further, the processor 1001 may be configured to call the application test program stored in the memory 1005, and further perform the following steps:
calculating the byte number of the scene test data, and judging whether the byte number is greater than or equal to a preset threshold value;
if the byte number is larger than or equal to a preset threshold value, compressing the scene test data, and writing the compressed scene test data into the installation package to obtain a test installation package;
and if the byte number is smaller than a preset threshold value, writing the scene test data into the installation package to obtain a test installation package.
Further, the processor 1001 may be configured to call the application test program stored in the memory 1005, and further perform the following steps:
acquiring a format of the scene test data, and judging whether the format is a preset format or not;
if the format is a preset format, writing the scene test data into the installation package to obtain a test installation package;
and if the format is not the preset format, performing format conversion on the scene test data, and writing the scene test data subjected to the format conversion into the installation package to obtain a test installation package.
The specific embodiment of the application test equipment of the present invention is basically the same as the specific embodiments of the application test method described below, and is not described herein again.
The invention provides an application test method.
Referring to fig. 2, fig. 2 is a flowchart illustrating a first embodiment of the testing method according to the present invention.
In this embodiment, the application test method includes:
step S101, when an application test instruction is monitored, acquiring corresponding scene test data according to the application test instruction, and acquiring an installation package of a to-be-tested living body detection application containing an automatic test code;
in this embodiment, the application testing method is applied to an application testing system, the application testing system includes an application testing device, a remote real machine platform and a remote real machine, the application testing device performs data interaction with the remote real machine platform through a network, the remote real machine platform is in wired or wireless connection with the remote real machine, and the remote real machine is a mobile terminal of each brand and model. The development tester records scene data containing face information, acquires problem feedback data containing the face information recorded by a client, integrates the scene data and the problem feedback data into scene test data, and uploads the scene test data to a database.
When the application test equipment monitors a selection instruction of scene test data, the application test equipment displays a scene test data selection page, receives a scene test data number selected by a user (tester) based on the scene test data selection page, then when a confirmation control in the scene test data selection page is monitored to be touched, an application test instruction containing the scene test data number is triggered, when the application test instruction is monitored, the application test equipment acquires corresponding scene test data according to the application test instruction, namely the scene test data number is acquired from the application test instruction, scene test data corresponding to the scene test data number is acquired from the database, and then an installation package of the to-be-tested living body detection application containing an automatic test code is acquired.
Step S102, writing the scene test data into the installation package to obtain a test installation package, generating a test request containing the test installation package, and sending the test request to a remote real machine platform;
in this embodiment, after acquiring the scene test data and the installation package of the to-be-tested living body detection application including the automated test code, the application test equipment writes the scene test data into the installation package to obtain a test installation package, generates a test request including the test installation package, and sends the test request to the remote real machine platform. Specifically, after the installation package and the scene test data are obtained, the application test equipment obtains a format of the scene test data, judges whether the format is a preset format, writes the scene test data into the installation package if the format is the preset format, obtains a test installation package, performs format conversion on the scene test data if the format is not the preset format, and writes the scene test data subjected to the format conversion into the installation package, thereby obtaining the test installation package. The preset format is NV12 or NV21 (both are YUV formats). And when the format of the scene test data is not the set format, performing format conversion on the scene test data to convert the scene test data into YUV format data, so that the scene test data can be conveniently read by a subsequent remote real machine.
Step S103, the remote real machine platform sends the test installation package in the test request to an available remote real machine;
in this embodiment, the remote live machine platform receives a test request sent by the application test equipment, and sends a test installation package in the test request to an available remote live machine. The data carried in the test request includes, but is not limited to, a test installation package, a user identification code, and model information. Optionally, the remote real machine platform acquires the user identity identification code from the test request, queries a mapping relation table between pre-stored user identity identification codes and the number of remote real machines, acquires the number of remote real machines corresponding to the user identity identification code, acquires available remote real machines of the number of remote real machines from a preset remote real machine pool, forms a remote real machine set, and sends the test installation package in the test request to each remote real machine in the remote real machine set. It should be noted that the mapping relationship table between the user identification code and the number of the remote real computers may be set by a person skilled in the art based on actual situations, and this embodiment is not limited in this respect.
Optionally, the remote real machine platform acquires model information of the remote real machine from the test request, then acquires a plurality of remote real machines corresponding to the model information from a preset remote real machine pool, and sends the test installation package in the test request to each of the plurality of remote real machines. In specific implementation, the user identification code and the model information of the remote real machine can be combined, the test installation package is sent to the corresponding remote real machine, namely, the model information of the remote real machine is firstly based on, the model of the remote real machine is determined, the number of the remote real machines is determined based on the user identification code, then the number of the remote real machines and the remote real machines of the remote real machine model are obtained from a preset remote real machine pool, and the test installation package is sent to the obtained remote real machines.
And step S104, the remote real machine installs a target living body detection application containing an automatic test code according to the test installation package, runs the target living body detection application after the installation is finished, and executes a corresponding test flow to test the target living body detection application.
In this embodiment, when the remote live machine receives the test installation package sent by the remote live machine platform, the remote live machine parses the test installation package, extracts the target live body detection application including the automated test code from the test installation package, and installs the target live body detection application including the automated test code, and after the installation is completed, the remote live machine runs the target live body detection application, and executes a corresponding test procedure to test the target live body detection application.
Specifically, after the installation is completed, the remote real machine runs a target living body detection application, executes a camera interception process, acquires hardware configuration information through an interface, acquires an installation directory of the target living body detection application, reads scene test data in a corresponding format under the installation directory according to the hardware configuration information, executes a face detection operation according to the scene test data to obtain a face recognition result, and executes a living body detection operation according to the face recognition result to obtain a living body detection result. Wherein, in the process of calling the camera, the camera interception process needs to display preview in the Surface view (displayable area), when the Surface view is called back after being created, the Surface (drawing instruction) in the Surface holder (callback parameter) is stored in the preset storage area, then the first preset function (native _ window _ set _ buffers _ geometry) is called to configure the width, height and yuv420 color space, the second preset function (native _ window _ request _ buffer _ and _ wait) is called to apply for a graphics buffer area, then the third preset function (graphics buffer) is called to lock the graphics buffer area, the locked graphics buffer area is mapped to the user process, then the fourth preset function (mnnatdown _ buffer) is called to continue to be dequeued, new data to be uploaded is obtained, and the new data to be uploaded is read and processed on the one hand, and the new data is displayed on the Surface view screen, and is processed on the other hand by the face detection algorithm (window) to be processed on the living body), so as to ensure the normal flow.
In a specific implementation, in the process of running the target living body detection application, when it is monitored that a test is abnormal or the test is finished, the remote real machine reports related information to the application test equipment, specifically, if the test is abnormal, abnormal information is obtained and reported to the application test equipment, and if the test is finished, test result information is obtained and reported to the application test equipment. The test result information includes, but is not limited to, the model of the remote real machine, the test time, the test result, and the number of the used scenario test data.
In the embodiment, the automatic test code and the scene test data are added into the installation package of the in-vivo detection application to obtain the test installation package, the test installation package is transmitted to the remote real machine platform, and the remote real machine platform issues the test installation package to each remote real machine for testing, so that real machines of various brands and models can be covered, the quality of the in-vivo detection application is effectively ensured, people and real machines are not required to be together, and the test convenience of the in-vivo detection application is greatly improved.
Further, based on the first embodiment, a second embodiment of the application test method of the present invention is provided, and is different from the foregoing embodiments in that after the installation package and the scene test data are obtained, the application test device calculates the byte number of the scene test data, and determines whether the byte number is greater than or equal to a preset threshold, if the byte number is greater than or equal to the preset threshold, the scene test data is compressed, and the compressed scene test data is written into the installation package to obtain a test installation package, and if the byte number is less than the preset threshold, the scene test data is written into the installation package to obtain the test installation package.
Optionally, if the number of bytes is greater than or equal to the preset threshold, a single packet may be separately compressed with the scene test data to obtain a scene test data packet, and a test request carrying the scene test data packet and the installation packet is sent to the remote live machine platform, when the remote live machine platform receives the test request, the scene test data packet and the installation packet in the test request are simultaneously sent to the available remote live machine, after the remote live machine receives the scene test data packet and the installation packet, the live body detection application including the automated test code is extracted from the installation packet, the scene test data is decompressed from the scene test data packet to be added to the installation directory of the target live body detection application, and after the installation of the live body detection application is completed, the live body detection application is run, the camera intercept process is executed, the hardware configuration information is obtained through the interface, and then the installation directory of the target live body detection application is obtained, and according to the hardware configuration information, reading scene test data in a corresponding format under the installation catalog, finally executing face detection operation according to the scene test data to obtain a face recognition result, and executing living body detection operation according to the face recognition result to obtain a living body detection result. It should be noted that the preset threshold may be set by a person skilled in the art based on actual situations, and this embodiment is not particularly limited thereto.
In this embodiment, when the scene test data is large, the scene test data is compressed and then written into the installation package, or the scene test data is independently packaged, and the scene test data package and the installation package are simultaneously sent to the available remote real machine, so that the total byte number of the test installation package can be reduced, and the data transmission time can be shortened.
The invention also provides an application test system.
Referring to fig. 3, fig. 3 is a functional block diagram of a first embodiment of the application test system according to the present invention.
In this embodiment, the application testing system includes an application testing device 100, a remote real machine platform 200, and a remote real machine 300, where:
the application testing device 100 is configured to, when an application testing instruction is monitored, obtain corresponding scene testing data according to the application testing instruction, and obtain an installation package of a to-be-tested living body detection application that includes an automated testing code;
the application test equipment 100 is further configured to write the scene test data into the installation package to obtain a test installation package, generate a test request including the test installation package, and send the test request to a remote real machine platform;
the remote real machine platform 200 is configured to receive a test request sent by the application test equipment, and send a test installation package in the test request to each remote real machine;
the remote real machine 300 is configured to receive a test installation package sent by the remote real machine platform, and install a target living body detection application containing an automated test code according to the test installation package;
the remote real machine 300 is further configured to run the target in-vivo detection application after the installation is completed, and execute a corresponding test procedure to test the target in-vivo detection application.
Further, the application testing device 100 is further configured to:
calculating the byte number of the scene test data, and judging whether the byte number is greater than or equal to a preset threshold value;
if the byte number is larger than or equal to a preset threshold value, compressing the scene test data, and writing the compressed scene test data into the installation package to obtain a test installation package;
and if the byte number is smaller than a preset threshold value, writing the scene test data into the installation package to obtain a test installation package.
Further, the application testing device 100 is further configured to:
acquiring a format of the scene test data, and judging whether the format is a preset format or not;
if the format is a preset format, writing the scene test data into the installation package to obtain a test installation package;
and if the format is not the preset format, performing format conversion on the scene test data, and writing the scene test data subjected to the format conversion into the installation package to obtain a test installation package.
Further, the remote live machine platform is further configured to:
receiving the test request sent by the application test equipment 100, and acquiring a user identification code from the test request;
inquiring a mapping relation table between pre-stored user identification codes and the number of remote real machines to obtain the number of the remote real machines corresponding to the user identification codes;
the available remote real machines of the number of the remote real machines are obtained from a preset remote real machine pool to form a remote real machine set, and the test installation package in the test request is sent to each remote real machine in the remote real machine set.
Further, the remote live machine platform 200 is further configured to:
receiving the test request sent by the application test equipment 100, and acquiring model information of a remote real machine from the test request;
and obtaining a plurality of remote real machines corresponding to the model information from a preset remote real machine pool, and sending the test installation package in the test request to each remote real machine in the remote real machines.
Further, the remote real machine 300 is further configured to:
after the installation is finished, running the target living body detection application, executing a camera interception process, and acquiring hardware configuration information;
acquiring an installation catalog of the target living body detection application, and reading scene test data in a corresponding format under the installation catalog according to the hardware configuration information;
and executing face detection operation according to the scene test data to obtain a face identification result, and executing living body detection operation according to the face identification result to obtain a living body detection result.
The specific embodiment of the application test system of the present invention is basically the same as the embodiments of the application test method described above, and is not described herein again.
In addition, an embodiment of the present invention further provides a computer-readable storage medium, where an application test program is stored on the computer-readable storage medium, and when the application test program is executed by a processor, the application test program performs the following steps:
when an application test instruction is monitored, acquiring corresponding scene test data according to the application test instruction, and acquiring an installation package of a to-be-tested living body detection application containing an automatic test code;
writing the scene test data into the installation package to obtain a test installation package;
the method comprises the steps of generating a test request containing a test installation package, sending the test request to a remote real machine platform, supplying the remote real machine platform to send the test installation package in the test request to each remote real machine, wherein the remote real machine is based on the test installation package, the installation package contains target living body detection application of automatic test codes, and after installation is completed, the target living body detection application is operated, corresponding test procedures are executed, and the target living body detection application is tested.
Further, when the application test program is executed by the processor, the following steps are also executed:
calculating the byte number of the scene test data, and judging whether the byte number is greater than or equal to a preset threshold value;
if the byte number is larger than or equal to a preset threshold value, compressing the scene test data, and writing the compressed scene test data into the installation package to obtain a test installation package;
and if the byte number is smaller than a preset threshold value, writing the scene test data into the installation package to obtain a test installation package.
Further, when the application test program is executed by the processor, the following steps are also executed:
acquiring a format of the scene test data, and judging whether the format is a preset format or not;
if the format is a preset format, writing the scene test data into the installation package to obtain a test installation package;
and if the format is not the preset format, performing format conversion on the scene test data, and writing the scene test data subjected to the format conversion into the installation package to obtain a test installation package.
The specific embodiment of the computer-readable storage medium of the present invention is substantially the same as the embodiments of the application test method described above, and is not described herein again.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) as described above and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (12)

1. An application testing method, characterized in that the application testing method comprises the following steps:
when an application test instruction is monitored, acquiring corresponding scene test data according to the application test instruction, and acquiring an installation package of a to-be-tested living body detection application containing an automatic test code;
writing the scene test data into the installation package to obtain a test installation package, generating a test request containing the test installation package, and sending the test request to a remote real machine platform;
the remote real machine platform sends the test installation package in the test request to each remote real machine;
the remote real machine installs a target living body detection application containing an automatic test code according to the test installation package, runs the target living body detection application after the installation is finished, and executes a corresponding test flow to test the target living body detection application;
after the installation is finished, the step of running the target living body detection application and executing a corresponding test flow to test the target living body detection application comprises the following steps:
after the installation is finished, the remote real machine runs the target living body detection application, executes a camera interception process and acquires hardware configuration information;
acquiring an installation catalog of the target living body detection application, and reading scene test data in a corresponding format under the installation catalog according to the hardware configuration information;
and executing face detection operation according to the scene test data to obtain a face identification result, and executing living body detection operation according to the face identification result to obtain a living body detection result.
2. The application testing method of claim 1, wherein writing the scenario test data into the installation package to obtain a test installation package comprises:
calculating the byte number of the scene test data, and judging whether the byte number is greater than or equal to a preset threshold value;
if the byte number is larger than or equal to a preset threshold value, compressing the scene test data, and writing the compressed scene test data into the installation package to obtain a test installation package;
and if the byte number is smaller than a preset threshold value, writing the scene test data into the installation package to obtain a test installation package.
3. The application testing method of claim 1, wherein writing the scenario test data into the installation package to obtain a test installation package comprises:
acquiring a format of the scene test data, and judging whether the format is a preset format or not;
if the format is a preset format, writing the scene test data into the installation package to obtain a test installation package;
and if the format is not the preset format, performing format conversion on the scene test data, and writing the scene test data subjected to the format conversion into the installation package to obtain a test installation package.
4. The application testing method of claim 1, wherein the step of the remote live machine platform sending the test installation package in the test request to each remote live machine comprises:
when the remote real-time machine platform receives the test request, the remote real-time machine platform acquires a user identification code from the test request;
inquiring a mapping relation table between pre-stored user identification codes and the number of remote real machines to obtain the number of the remote real machines corresponding to the user identification codes;
the available remote real machines of the number of the remote real machines are obtained from a preset remote real machine pool to form a remote real machine set, and the test installation package in the test request is sent to each remote real machine in the remote real machine set.
5. The application testing method of claim 1, wherein the step of the remote live machine platform sending the test installation package in the test request to each remote live machine comprises:
when the remote real machine platform receives the test installation package, the remote real machine platform acquires the model information of the remote real machine from the test request;
and obtaining a plurality of remote real machines corresponding to the model information from a preset remote real machine pool, and sending the test installation package in the test request to each remote real machine in the remote real machines.
6. An application testing system, characterized in that, the application testing system includes application testing equipment, a remote real machine platform and a remote real machine, wherein:
the application testing equipment is used for acquiring corresponding scene testing data according to the application testing instruction when the application testing instruction is monitored, and acquiring an installation package of the to-be-tested living body detection application containing an automatic testing code;
the application test equipment is further used for writing the scene test data into the installation package to obtain a test installation package, generating a test request containing the test installation package, and sending the test request to a remote real machine platform;
the remote real machine platform is used for receiving the test request sent by the application test equipment and sending the test installation package in the test request to each remote real machine;
the remote real machine is used for receiving a test installation package sent by the remote real machine platform and installing a target living body detection application containing an automatic test code according to the test installation package;
the remote real machine is also used for running the target living body detection application after the installation is finished, executing a camera interception process and acquiring hardware configuration information; acquiring an installation catalog of the target living body detection application, and reading scene test data in a corresponding format under the installation catalog according to the hardware configuration information; and executing face detection operation according to the scene test data to obtain a face identification result, and executing living body detection operation according to the face identification result to obtain a living body detection result.
7. An application testing device, characterized in that the application testing device comprises: a memory, a processor, and an application test program stored on the memory and executable on the processor, the application test program when executed by the processor implementing the steps of:
when an application test instruction is monitored, acquiring corresponding scene test data according to the application test instruction, and acquiring an installation package of a to-be-tested living body detection application containing an automatic test code;
writing the scene test data into the installation package to obtain a test installation package;
generating a test request containing the test installation package, and sending the test request to a remote real machine platform so that the remote real machine platform can send the test installation package in the test request to each remote real machine, wherein the remote real machine installs a target living body detection application containing an automatic test code according to the test installation package, and after the installation is completed, the target living body detection application is operated, a camera interception flow is executed, and hardware configuration information is obtained; acquiring an installation catalog of the target living body detection application, and reading scene test data in a corresponding format under the installation catalog according to the hardware configuration information; and executing face detection operation according to the scene test data to obtain a face identification result, and executing living body detection operation according to the face identification result to obtain a living body detection result.
8. The application test device of claim 7, wherein writing the scenario test data into the installation package, and obtaining a test installation package comprises:
calculating the byte number of the scene test data, and judging whether the byte number is greater than or equal to a preset threshold value;
if the byte number is larger than or equal to a preset threshold value, compressing the scene test data, and writing the compressed scene test data into the installation package to obtain a test installation package;
and if the byte number is smaller than a preset threshold value, writing the scene test data into the installation package to obtain a test installation package.
9. The application test device of claim 7, wherein writing the scenario test data into the installation package, and obtaining a test installation package comprises:
acquiring a format of the scene test data, and judging whether the format is a preset format or not;
if the format is a preset format, writing the scene test data into the installation package to obtain a test installation package;
and if the format is not the preset format, performing format conversion on the scene test data, and writing the scene test data subjected to the format conversion into the installation package to obtain a test installation package.
10. A computer-readable storage medium having an application test program stored thereon, the application test program when executed by a processor implementing the steps of:
when an application test instruction is monitored, acquiring corresponding scene test data according to the application test instruction, and acquiring an installation package of a to-be-tested living body detection application containing an automatic test code;
writing the scene test data into the installation package to obtain a test installation package;
generating a test request containing the test installation package, and sending the test request to a remote real machine platform so that the remote real machine platform can send the test installation package in the test request to each remote real machine, wherein the remote real machine installs a target living body detection application containing an automatic test code according to the test installation package, and after the installation is completed, the target living body detection application is operated, a camera interception flow is executed, and hardware configuration information is obtained; acquiring an installation catalog of the target living body detection application, and reading scene test data in a corresponding format under the installation catalog according to the hardware configuration information; and executing face detection operation according to the scene test data to obtain a face identification result, and executing living body detection operation according to the face identification result to obtain a living body detection result.
11. The computer-readable storage medium of claim 10, wherein writing the scenario test data to the installation package, resulting in a test installation package, comprises:
calculating the byte number of the scene test data, and judging whether the byte number is greater than or equal to a preset threshold value;
if the byte number is larger than or equal to a preset threshold value, compressing the scene test data, and writing the compressed scene test data into the installation package to obtain a test installation package;
and if the byte number is smaller than a preset threshold value, writing the scene test data into the installation package to obtain a test installation package.
12. The computer-readable storage medium of claim 10, wherein writing the scenario test data to the installation package, resulting in a test installation package, comprises:
acquiring a format of the scene test data, and judging whether the format is a preset format or not;
if the format is a preset format, writing the scene test data into the installation package to obtain a test installation package;
and if the format is not the preset format, performing format conversion on the scene test data, and writing the scene test data subjected to the format conversion into the installation package to obtain a test installation package.
CN201811539991.5A 2018-12-14 2018-12-14 Application testing method, system, device and computer readable storage medium Active CN109656826B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811539991.5A CN109656826B (en) 2018-12-14 2018-12-14 Application testing method, system, device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811539991.5A CN109656826B (en) 2018-12-14 2018-12-14 Application testing method, system, device and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN109656826A CN109656826A (en) 2019-04-19
CN109656826B true CN109656826B (en) 2022-01-28

Family

ID=66113621

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811539991.5A Active CN109656826B (en) 2018-12-14 2018-12-14 Application testing method, system, device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN109656826B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110727945B (en) * 2019-09-20 2021-10-22 上海连尚网络科技有限公司 Virus scanning method, device and computer readable medium
CN111858336B (en) * 2020-07-20 2024-03-15 深圳市筑泰防务智能科技有限公司 Automatic software testing method and system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104765678A (en) * 2014-01-08 2015-07-08 阿里巴巴集团控股有限公司 Method and device for testing applications on mobile terminal
CN107908556A (en) * 2017-11-08 2018-04-13 中国平安人寿保险股份有限公司 Interface test method, device, equipment and computer-readable recording medium
CN108287694A (en) * 2017-08-08 2018-07-17 深圳壹账通智能科技有限公司 Application builds method, system, computer equipment and storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9529702B2 (en) * 2015-01-13 2016-12-27 Oracle International Corporation System to enable multi-tenancy testing of business data and validation logic on the cloud

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104765678A (en) * 2014-01-08 2015-07-08 阿里巴巴集团控股有限公司 Method and device for testing applications on mobile terminal
CN108287694A (en) * 2017-08-08 2018-07-17 深圳壹账通智能科技有限公司 Application builds method, system, computer equipment and storage medium
CN107908556A (en) * 2017-11-08 2018-04-13 中国平安人寿保险股份有限公司 Interface test method, device, equipment and computer-readable recording medium

Also Published As

Publication number Publication date
CN109656826A (en) 2019-04-19

Similar Documents

Publication Publication Date Title
CN111045952B (en) Software testing method, flow playback device, terminal equipment and readable storage medium
CN107577622B (en) Method, device and storage medium for simulating rear-end interface
CN105718313A (en) Application operation method and device
CN107678948B (en) Test case generation method, terminal and storage medium
CN107844821B (en) Smart card, control method thereof, and computer-readable storage medium
CN111782492A (en) Page first screen loading duration testing method and device, computer equipment and medium
CN105120483B (en) Automatic testing method and system for compatibility of smart card and mobile terminal
CN109656826B (en) Application testing method, system, device and computer readable storage medium
CN108039173B (en) Voice information input method, mobile terminal, system and readable storage medium
CN107045475B (en) Test method and device
CN110908922A (en) Application program testing method and device
CN112135186A (en) Screen projection method, device, equipment and storage medium based on small program
CN112416775A (en) Software automation testing method and device based on artificial intelligence and electronic equipment
CN110852259A (en) Living body identification method, living body identification system, living body identification apparatus, living body identification device, and computer-readable storage medium
CN108717357B (en) Page display code conversion method, device, equipment and computer storage medium
CN108376333B (en) File approval method, medium, device and computing equipment
CN110837500B (en) Data screening method and device based on socal embedded window and computer equipment
CN106325851B (en) Interactive remote collaboration method for Android application
CN112950443A (en) Adaptive privacy protection method, system, device and medium based on image sticker
CN107038024B (en) Operation configuration method and equipment thereof
CN112367348A (en) Data acquisition method, device, equipment and medium
CN113900922A (en) Method, device, equipment and medium for testing application program interface of multi-platform application
CN115328997B (en) Data synchronization method, system, device and storage medium
CN108132767B (en) Application window preview method and system
CN107391354B (en) Method and system for automatically monitoring terminal performance and storage device

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
GR01 Patent grant
GR01 Patent grant