CN109388532A - Test method, device, electronic equipment and computer-readable storage medium - Google Patents

Test method, device, electronic equipment and computer-readable storage medium Download PDF

Info

Publication number
CN109388532A
CN109388532A CN201811125927.2A CN201811125927A CN109388532A CN 109388532 A CN109388532 A CN 109388532A CN 201811125927 A CN201811125927 A CN 201811125927A CN 109388532 A CN109388532 A CN 109388532A
Authority
CN
China
Prior art keywords
terminal
tested
test
electronic equipment
user
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.)
Granted
Application number
CN201811125927.2A
Other languages
Chinese (zh)
Other versions
CN109388532B (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201811125927.2A priority Critical patent/CN109388532B/en
Publication of CN109388532A publication Critical patent/CN109388532A/en
Application granted granted Critical
Publication of CN109388532B publication Critical patent/CN109388532B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2273Test methods
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2268Logging of test results

Abstract

This application discloses a kind of test method, device, electronic equipment and computer-readable storage mediums, are related to technical field of mobile terminals.Method includes: that electronic equipment obtains the test request that user terminal is sent, and test request is the request for the target software for testing terminal to be tested that user is inputted by user terminal;Judge whether to be connected with terminal to be tested;If not connected have terminal to be tested, the test operation of performance objective software is in the virtual machine pre-established to obtain test result, wherein virtual machine is corresponding with the operating system of terminal to be tested;Test result is sent to the user terminal.Therefore, tester can not only be made to remotely operate electronic equipment by user terminal to realize the test of terminal to be tested, but also, by virtual machine to terminal test to be tested, remote testing can be facilitated when terminal to be tested is not connect with electronic equipment.

Description

Test method, device, electronic equipment and computer-readable storage medium
Technical field
This application involves technical field of mobile terminals, more particularly, to a kind of test method, device, electronic equipment and Computer-readable storage medium.
Background technique
Currently, to electronic equipment, such as mobile terminal (including Android mobile terminal, such as mobile phone) tested When, it generally requires to detect in specified testing location (for example, mobile terminal developer location), if tester Member's distance test place is too far, then tester needs to rush towards testing location, this can will consume a large amount of man power and material, neither It is convenient to increase cost again.
Summary of the invention
Present applicant proposes a kind of test method, device, electronic equipment and computer-readable storage mediums, on improving State defect.
In a first aspect, the embodiment of the present application provides a kind of test method, it is applied to test macro, the test macro packet The user terminal for including electronic equipment and being connect with the electronic equipment.The described method includes: the electronic equipment obtains the use The test request that family terminal is sent, the test request are that user is used to test end to be tested by what the user terminal inputted The request of the target software at end;Judge whether to be connected with the terminal to be tested;If not connected have terminal to be tested, pre- The test operation of the target software is executed in the virtual machine first established to obtain test result, wherein the virtual machine and institute The operating system for stating terminal to be tested is corresponding;The test result is sent to the user terminal.
Second aspect, the embodiment of the present application also provides a kind of test devices, applied to the electronic equipment of test macro, institute Stating test macro further includes the user terminal connecting with the electronic equipment.The test device includes: acquiring unit, judgement list Member establishes unit and transmission unit.Acquiring unit, the test request sent for obtaining the user terminal, the test are asked Ask the request of the target software for testing terminal to be tested inputted for user by the user terminal.Judging unit is used In judging whether to be connected with the terminal to be tested.Unit is established, if having the terminal to be tested for not connected, pre- The test operation of the target software is executed in the virtual machine first established to obtain test result, wherein the virtual machine and institute The operating system for stating terminal to be tested is corresponding.Transmission unit, for the test result to be sent to the user terminal.
The third aspect, the embodiment of the present application also provides a kind of electronic equipment, comprising: one or more processors;Storage Device;One or more application program, wherein one or more of application programs are stored in the memory and are configured To be executed by one or more of processors, one or more of programs are configured to carry out the above method.
Fourth aspect, it is described computer-readable the embodiment of the present application also provides a kind of computer-readable storage medium It takes and is stored with program code in storage medium, said program code can be called by processor and execute the above method.
Compared with the existing technology, scheme provided by the present application can pass through user when to terminal test to be tested Terminal remote input test is requested to electronic equipment, currently terminal to be tested whether is connected with by electronic equipment detection, if not Connection executes the test operation of the target software in the virtual machine pre-established then to obtain test result, then will survey Test result is sent to the user terminal.Therefore, tester can not only be made to remotely operate electronic equipment by user terminal with reality The test of existing terminal to be tested, but also virtual machine pair can be passed through when terminal to be tested is not connect with electronic equipment Terminal test to be tested, facilitates remote testing.
Detailed description of the invention
In order to more clearly explain the technical solutions in the embodiments of the present application, make required in being described below to embodiment Attached drawing is briefly described, it should be apparent that, the drawings in the following description are only some examples of the present application, for For those skilled in the art, without creative efforts, it can also be obtained according to these attached drawings other attached Figure.
Fig. 1 shows the schematic diagram that the application real one applies a kind of test macro of example offer;
Fig. 2 shows a kind of schematic diagrames for test macro that another embodiment of the application provides;
Fig. 3 shows the method flow diagram of the test method of one embodiment of the application offer;
Fig. 4 shows the method flow diagram for the test method that another embodiment of the application provides;
Fig. 5 shows the method flow diagram for the test method that the another embodiment of the application provides;
Fig. 6 shows the module frame chart of the test device of one embodiment of the application offer;
Fig. 7 shows the module frame chart of electronic equipment provided by the embodiments of the present application;
Fig. 8 shows provided by the embodiments of the present application for saving or carrying the test realized according to the embodiment of the present application The storage unit of the program code of method.
Specific embodiment
In order to make those skilled in the art more fully understand application scheme, below in conjunction in the embodiment of the present application Attached drawing, the technical scheme in the embodiment of the application is clearly and completely described.
Fig. 1 shows a kind of schematic diagram of test macro provided by the embodiments of the present application, which includes user's end End 201, electronic equipment 100 and terminal to be tested 202.User terminal 201 and electronic equipment 100 are located at wireless network or wired network In network, user terminal 201 and electronic equipment 100 carry out data interaction, and user can operate user terminal 201 and remotely grasp as a result, Make electronic equipment 100, in addition, electronic equipment 100 is connect with terminal 202 to be tested, electronic equipment 100 can closely operate to Test terminal 202.It should be noted that terminal 202 to be tested needs to be located under specific test environment and testing location, because This, electronic equipment 100 can be connect with terminal 202 to be tested by the modes such as local net network or data line, bluetooth.
In the embodiment of the present application, user terminal 201 can be mobile terminal device, such as may include smart phone, Tablet computer, E-book reader, pocket computer on knee, vehicle-mounted computer, wearable mobile terminal etc..
In some embodiments, client may be mounted in user terminal 201, for example, it may be being mounted on user's end The application program at end 201.User logs in the user terminal 201 by account number in client, and can be defeated by the client Enter to instruct to electronic equipment 100, or gets data out of electronic equipment 100.
As an implementation, electronic equipment 100 is connect with terminal 202 to be tested, can input test instruct to Test terminal 202, wherein test instruction can be test script, and terminal 202 to be tested can be executed based on the test script Some operations.Specifically, electronic equipment 100 may include a test interface, being capable of visualized operation by the test interface Software in terminal 202 to be tested, for example, open perhaps and close software etc. also or execute some operations of software, In, software is the application program being mounted in terminal to be tested, for example, it may be system class application program, is also possible to non-system System class application program.
User can equally be grasped by the terminal real-time pictures to be tested on user terminal to operation real handset Make, such as carries out the dragging of APP, click, double-click and the click of physical button.It needs to be tested to being installed in terminal to be tested When APP is tested, it can check card the APP test software on remote handset in client, then select APP to be tested, add Enter in the test list of APP test software, i.e., detects request to the APP that terminal to be tested sends detection APP.It should be noted that It is that APP to be tested at this time is needed in not enabled state.
After the APP detection request for sending detection APP to terminal to be tested, user can be to be tested by client operation APP, i.e., to terminal to be tested send APP operational order, with detect APP use when sensitive behavior.
In some embodiments, APP operational order includes: pulling instruction, single key command, double-clicks instruction and physical button instruction Equal concrete operations instruction.
Terminal to be tested can parse APP operational order to obtain above-mentioned concrete operations instruction, according to obtained specific behaviour It instructs, the application programming interface of terminal operating system to be tested can be called to execute APP operation, i.e. customer in response end APP operation, sensitive behavior when detection APP is used.
Specifically, terminal to be tested obtains use by monitoring the alternative events of display image (terminal real-time pictures to be tested) Family operates specific instruction, such as clicks image=click mobile phone, and double-click=double-click mobile phone (double-clicks and single machine is all to monitor mouse list Machine event, if single machine event twice in succession may be considered double click event not above 500 milliseconds).Dragging=screen picture Event is pressed and lifted, distance is pulled and is equal to the length for pressing the event of lifting.Physical button is sent to tested by fixed instruction (user clicks the key of display in client to equipment by mouse or touch screen, will be sent to by specific key command Terminal to be tested).
In other embodiments, before terminal to be tested sends terminal real-time pictures to be tested, terminal to be tested is first It needs the screen resolution of itself being uploaded to web services end, when user enters operation pages, client has obtained the resolution Rate, the terminal real-time pictures to be tested that client is shown are to show that user passes through client according to the resolution ratio of terminal to be tested End (x, y) coordinate that face operates on the screen image is exactly the coordinate of mobile phone itself.
Terminal to be tested calls the application programming interface of terminal operating system to be tested to execute according to APP operational order After APP operation, sensitive behavior when APP is used can be tested according to APP detection is carried out.
Then under test macro shown in FIG. 1, electronic equipment 100 can actually connect a terminal 202 to be tested, and another In some embodiments, electronic equipment 100 is practical to connect a terminal to be tested, but stands one virtually in electronic device build-in Machine specifically as shown in Fig. 2, the test macro includes user terminal 201 and electronic equipment 100, is arranged in the electronic equipment Have a virtual machine, virtual machine refer to by software simulate with complete hardware system function, operate in a completely isolated environment In full terminal system.
By taking the operating system of mobile phone as an example, for example, Android operation system.Virtual machine is by generating the complete of existing operating system New virtual image, it have the duplicate function of true Android operation system, into after virtual system, it is all operation be all It is carried out inside this completely new independent virtual system, can save data with independently installed runs software, possess the independence of oneself Desktop will not generate any influence to real system, and have and can flexibly cut between existing system and virtual image The type operating system changed.Therefore, the operating system of terminal to be tested can be simulated by installing virtual machine on an electronic device And the environment of entire hardware and software, without really connecting a terminal to be tested.
Therefore, in order to overcome existing tester must fixed testing location test terminal to be tested the drawbacks of, Referring to Fig. 3, the embodiment of the present application provides a kind of test method, it is applied to test macro, the test macro includes electronics Equipment and the user terminal being connect with the electronic equipment, specifically, the embodiment of the present application using electronic equipment as executing subject, Then method includes: S301 to S304.
S301: electronic equipment obtains the test request that the user terminal is sent, and the test request passes through institute for user State the request of the target software for testing terminal to be tested of user terminal input.
Specifically, test terminal sends test request to electronic equipment by user terminal, and the interior test request includes mesh Mark the mark of software, electronic equipment parses after the test request, it will be able to get the test request it is required test to Test the target software in terminal.
It specifically, further include testing requirement in the test request, i.e., the target software of the required terminal to be tested tested Function and parameter can be as an implementation and be provided with a client in user terminal, the client have survey Interface is tried, the user's operation test interface can select institute's software to be tested, and input test corresponding to the software Demand, then user terminal is when submitting the testing requirement, it will be able to generate a test request, include in the test request The mark of target software testing requirement corresponding with the target software, and electronic equipment solves after getting the test request Analysis obtains the mark and testing requirement of the target software in the test request, to generate test foot corresponding with the test request This, after being input to terminal to be tested, which can parse the test script and execute the survey test script The corresponding operation of training sheet can control target software execution corresponding operation according to the test script and be tied accordingly Fruit.
As another embodiment, it can be in electronic equipment and be provided with the client, and can show test circle Face, user can operate the test interface of user terminal Telnet electronic equipment, from operation test interface to directly in electricity Test request is generated in the test interface of sub- equipment.Electronic equipment generates test script further according to each test request.
It specifically, further include username and password in the test request that user terminal is sent, wherein the username and password It is tester's input for verifying the information of oneself identity, then electronic equipment is after getting username and password, really Whether the fixed user name belongs to the list preset in pre-stored default list, if input, it is corresponding to verify the user name Password it is whether correct, if correctly, executing S302.
S302: judge whether to be connected with the terminal to be tested.
Electronic equipment can connect terminal to be tested, for example, by data line, wifi connection or bluetooth connection etc., tool Body, by taking electronic equipment is mobile phone as an example, if passing through wifi or bluetooth connection, before connecting wireless device, First all wireless devices under current environment are connected, then if terminal to be tested opens the wireless function such as wifi or bluetooth It can, it will be able to be scanned, by taking bluetooth as an example, i.e., can send a broadcast before electronic equipment connection, include in the broadcast The network address of electronic equipment, then after all devices in the current network environment of electronic equipment get the broadcast, solution The broadcast is analysed, the network address of electronic equipment can be got, for example, terminal to be tested is after getting the network address, The mark of oneself and network address are sent to electronic equipment, then electronic equipment can get the mark of the terminal to be tested Know, after getting the connection request of electronic equipment and terminal to be tested, electronic equipment connect bluetooth company with terminal to be tested It connects, to just can determine the mark of connected equipment, and then can determine whether connected equipment is terminal to be tested.
Wherein, in the electronic equipment based on android operating system, Case-based Reasoning can be passed through The obtained return value of BluetoothClass.Device class determines the currently device type by bluetooth connection.If returning Value be AUDIO_VIDEO_CAMCORDER, then be characterized as image capture device;If the value returned is AUDIO_VIDEO_CAR_ AUDIO is then characterized as mobile unit;If the value returned is AUDIO_VIDEO_HIFI_AUDIO, it is characterized as audio broadcasting and sets Standby or video playback apparatus, for example, bluetooth headset;If the value returned is AUDIO_VIDEO_MICROPHONE, it is characterized For microphone.
In addition, electronic equipment can also be connect by data line with terminal to be tested, then electronic equipment can detecte data Whether the interface of line is in connection status, and specifically, when data line interface is in connection status, state value is the first number Value, and when data line interface is not in connection status, state value is second value, then just can determine according to the state value It is current whether to be in connection status.If being in connection status, determine that connected equipment is terminal to be tested, because, electricity Sub- equipment is under test environment, then when determining that data line interface is connected with equipment, defaulting the equipment is terminal to be tested.
Therefore, if in the case where determining that the electronic equipment is connected with terminal to be tested, S303 is executed.
S303: executing the test operation of the target software in the virtual machine pre-established to obtain test result, In, the virtual machine is corresponding with the operating system of the terminal to be tested.
Specifically, it is provided with virtual machine in electronic equipment, which can simulate the hardware of terminal to be tested and soft Part environment, can be installed in virtual machine can in terminal to be tested installation and operation software, and can also imitate The hardware environment of terminal to be tested runs the software, for example, phone APP, can be mounted on by the phone APP of terminal to be tested Virtual machine, and phone APP can be imitated and run the function of being in terminal to be tested.
In addition, the virtual machine it is corresponding be terminal to be tested operating system, for example, the operating system of terminal to be tested is Android system, then timely electronic equipment is computer, and operating system is Windows, then can still establish a virtual machine, The operating system of the virtual machine is Android operation system.
Then specifically, the software of required terminal to be tested to be tested is the system class application program of terminal to be tested, and The content of test includes controlling restarting, closing for the software, and operation etc. operates, and can be by the knot after operation Fruit generates test result.
In addition, user can also install required installation to be tested by user terminal controlling electronic devices in virtual machine Software specifically can be after electronic equipment gets test request, determine the corresponding target software of the test request, Determine whether the target software is installed in the virtual machine, if so, the software is then directly tested, if it is not, downloading is simultaneously The software is installed and then to the software test, to generate test result.
S304: the test result is sent to the user terminal.
The test result that electronic equipment generates after testing is sent to the user terminal, and specifically, be can be and is tied test Fruit is sent to the user terminal together with test abstract, and test abstract includes time point, the content of test etc. of this test.
It, can not be in testing location, and remotely to be measured to which, tester is when to terminal test to be tested Try terminal test.Also, it is not connected with terminal to be tested in electronic equipment, it can be in the virtual machine in electronic equipment to be tested Target software in terminal is tested.
As another embodiment, it when electronic equipment is connected with terminal to be tested, can directly operate to be measured Examination terminal is tested, and specifically, referring to Fig. 4, the embodiment of the present application provides a kind of test method, is applied to test system System, the test macro include electronic equipment and the user terminal that connect with the electronic equipment, specifically, the embodiment of the present application Using electronic equipment as executing subject, then method includes: S401 to S405.
S401: electronic equipment obtains the test request that the user terminal is sent, and the test request passes through institute for user State the request of the target software for testing terminal to be tested of user terminal input.
S402: judge whether to be connected with the terminal to be tested.
S403: executing the test operation of the target software in the virtual machine pre-established to obtain test result, In, the virtual machine is corresponding with the operating system of the terminal to be tested.
S404: the instruction terminal to be tested executes the test operation of the target software.
Specifically, indicate that the terminal to be tested executes the test operation of the target software and returns to test result, i.e., Terminal to be tested is by test result return value electronic equipment.
If being connected with terminal to be tested, test instruction will be sent by electronic equipment and the communication link for testing terminal To terminal to be tested, indicate that the terminal to be tested executes the test operation of the target software and returns to test result, specifically Ground, test instruction can specify terminal to be tested and execute specific operation, for example, close perhaps restart target software or The target software is run to go to execute some operations.
In addition, can control the terminal installation to be tested should if being not installed with the target software in terminal to be tested Target software specifically if being connected with the terminal to be tested, indicates that the terminal to be tested executes the target software Test operation and return to the specific embodiment of test result, may is that if being connected with the terminal to be tested, detect institute It states and whether the target software is installed in terminal to be tested;If it is not installed, sending the installation kit of the target software to institute State terminal to be tested, indicate the terminal to be tested the target software is installed and execute the test operation of the target software with And return to test result.
Then specifically, it if detecting that electronic equipment is connected with terminal to be tested, sends inquiry and instructs to terminal to be tested, It indicates whether terminal feedback to be tested is equipped with target software, specifically, in inquiry instruction includes the mark of target software, then Terminal to be tested can get the mark of the target software after parsing inquiry instruction, be installed in lookup all Whether the mark including target software returns mounted if including the mark of target software in the mark of application program Information is to electronic equipment, then electronic equipment is after getting mounted information, it will be able to determine installation in terminal to be tested Have target software, similarly, in searching the mark of all application programs installed whether include target software mark, if Do not include the mark of target software, then return to uninstalled information to electronic equipment, then electronic equipment get it is uninstalled After information, it will be able to determine non-installation targets software in terminal to be tested.
Determining in terminal to be tested after non-installation targets software in electronic equipment, is sending installation instruction to end to be tested End, the installation instruction include installation instruction information, and installation instruction information is used to indicate terminal downloads target software to be tested Installation kit, specifically, it is contemplated that terminal to be tested possibly can not connect internet, therefore, it is impossible to download target by server The installation kit of software can then download the installation kit of the target software in local area network, thus according to the installation kit to be tested The target software is installed in terminal.
Furthermore it is also possible to be that electronic equipment is determining in terminal to be tested after non-installation targets software, by target software Installation kit be sent in terminal to be tested, specifically, can be include in the installation instruction target software installation kit, then should Installation instruction is used to indicate terminal to be tested and installs the target software.Further, it still can change in test instruction and include Installation instruction, then terminal to be tested parses test instruction and gets installation instruction after getting test instruction, then solves The installation kit of target software can be got by analysing the installation instruction, and thereby, it is possible to indicate that the terminal to be tested installs the mesh Mark software simultaneously executes the test operation of the target software and returns to test result.
S405: the test result is sent to the user terminal.
It should be noted that the part being not described in detail in above-mentioned steps, can refer to previous embodiment, it is no longer superfluous herein It states.
In addition, since the test to terminal to be tested needs the data confidentiality to test, entire test process is one The process of a opposite secrecy, therefore, it may be desirable to avoid other people assume another's name to operate, specifically, referring to Fig. 5, the embodiment of the present application provides A kind of test method, is applied to test macro, and the test macro includes electronic equipment and connect with the electronic equipment User terminal, specifically, the embodiment of the present application is using electronic equipment as executing subject, then method includes: S501 to S507.
S501: electronic equipment obtains the test request that the user terminal is sent, and the test request passes through institute for user State the request of the target software for testing terminal to be tested of user terminal input.
S502: the location information of the user terminal is obtained.
Specifically, positioning device is installed in user terminal, by the positioning device, the position of the user terminal can be obtained Confidence breath.Furthermore, it is contemplated that the use of user terminal needs the process of an authentication, so as to avoid other people from falsely using use Family terminal, and get the test data of terminal to be tested.
The specific embodiment for then obtaining the location information of the user terminal may is that acquisition currently logs in the user The user name of terminal;Judge whether the user name meets preset condition;If satisfied, then obtaining the position letter of the user terminal Breath.
Wherein, if user name belongs to pre-set user name, determine that the user name meets preset condition.Furthermore it is also possible to It is to obtain the corresponding login password of the user name, if the login password is correct, it is determined that the user name meets preset condition.
Furthermore, it is contemplated that the type of the login password of user name has very much, for example, numerical ciphers, finger print information etc., and count Word password is easier to be stolen, and therefore, can correspond to different operations by the way that different passwords is arranged, and limits test operation Determine password type.
Specifically, user terminal be in advance each operation setting of each application program access right, access right Including with access to have no right using as an implementation, each operation of each application program is in the case where default All be with access to, user terminal only needs will to need some operation setting of application program shielded to have no right using can With, others do not make an amendment and keep the application program of default conditions operation be with access to.For example, user will shield user The test function for the test software installed in terminal, then user terminal is after getting the instruction of user, by test software Test operation be set as having no right using, specifically, have no right using operation indicate that user initiates the operation when, user terminal is not rung Using any operation at family, as an implementation, can be the corresponding functional mould of institute of the test operation of test software Block shields, that is to say, that the functional module is not responding to any operation, and specifically, which may include for the survey The test interface for test operation that tries the testing button of operation and can be called by other applications.Therefore, if The test operation of test software is had no right using then user clicks the testing button of the test software and called by other software The test interface of the test software, user terminal do not make any response, so that user can not be tested by the test software.
In addition, the access right obtains for the verifying password corresponding with user name previously according to input.Specifically, The use of the verifying corresponding Permission Levels of password and the corresponding application program of each Permission Levels is previously provided in mobile terminal Permission, user preset the multi-level Permission Levels that a variety of cipher modes are composed in the terminal, and by mobile terminal into Row authority classification divides, and lists the function in the controllable application of different rights grade and application.
Specifically, shown in following Tables 1 and 2.
Table 1
Pin mode Permission Levels
Graphical passwords Rank one
Numerical ciphers Rank one
Fingerprint recognition Rank two
Iris recognition Rank three
Recognition of face Rank three
In above-mentioned table 1, graphical passwords, numerical ciphers, fingerprint recognition, iris recognition, recognition of face are several input passwords Mode, the corresponding verifying password of every kind of pin mode refers to for example, the corresponding verifying password of recognition of face is facial image Line identifies that corresponding verifying password is fingerprint characteristic.
Table 2
In above-mentioned table 2, each rank is corresponding have no right using application program operation, for example, the operation 1 of APP1 is in rank Have no right in one using moreover, the rank of rank one, rank two to rank three successively improves, as shown in table 2, in rank In one, have no right using operation be the operation 1 of APP1, the operation 2 of APP1, the operation 1 of APP2, the operation 2 of APP2, and in rank In two, have no right using operation be APP1 operation 2, moreover, rank two it is corresponding have no right using operation less than rank one, and And have no right in rank one using the operation 1 of APP1, the operation 1 of APP2, the operation 2 of APP2 had the right to make in rank two With.
When user unlocks terminal to be tested using verifying password, the verifying password of user's input is obtained, determination is tested The pin mode of password is demonstrate,proved, specifically, acquisition can be compared according to the corresponding relationship of preset verifying password and pin mode. After pin mode has been determined, determine that the corresponding Permission Levels of the pin mode, the Permission Levels are corresponding with each answer With the access right of each operation of program.Specifically, according to above-mentioned table 1, the corresponding Permission Levels of pin mode, example are searched Such as, pin mode is numerical ciphers, then corresponding Permission Levels are rank one, then determines that rank one is corresponding each according to table 2 The access right of application program, that is, have no right using be APP1 the operation 2 of operation 1, APP1, the operation 1 of APP2, APP2 behaviour Make 2, other application programs and corresponding operation are with access to just can determine that verifying password is corresponding as a result, The access right of each operation of each application program.According to the Permission Levels, installation in the terminal to be tested is set The access right of each operation of each application program, specifically, can be by each application program, have no right using operation Corresponding functional module shielding, that is, it is not responding to the functional module.
It just can determine the verifying password of user's input after correct as a result, if it is qualified using test software, i.e., Whether qualified transmission test request is to electronic equipment, if so, then obtaining the location information of the user terminal.
S503: judge whether the location information matches with preset position information.
Wherein, preset position information can be test terminal often movable place, for example, obtain in preset time period, The location of user terminal information finds out the higher several places of the frequency of occurrences, for example, it may be to all location informations It sorts from high to low according to the frequency of occurrences, selects top n position as preset position information.Because general position information occurs The higher position of frequency is tester often movable place, e.g. office or residence, passes through the location information Judgement can be avoided other people and steal user terminal and used elsewhere.
S504: judge whether to be connected with the terminal to be tested.
S505: executing the test operation of the target software in the virtual machine pre-established to obtain test result, In, the virtual machine is corresponding with the operating system of the terminal to be tested.
S506: the instruction terminal to be tested executes the test operation of the target software.
After getting test result, then test result to be measured can be obtained and be sent to user's end by electronic equipment End is then tested if there is illegal user attempts to save test result screenshot, then needs to prevent the generation of the behavior, because surveying If examination personnel will get test result or back up test result, there is special channel, for example, by test result The server of specified access right is passed to, and needs to verify identity, without to screen shot.Specifically, it detects whether to obtain It is requested to screenshotss, if getting, judges whether the test result shows on the screen;If so, being not responding to described cut Screen request.
Specifically, electronic equipment can be requested by the monitoring to screenshotss case to determine whether getting screenshotss, for example, The operation of shown screenshotss button on the screen of electronic equipment, alternatively, the state of some physical buttons operated, if really The fixed screenshotss button is touched, it is determined that gets screenshotss request.
Then, judge whether test result shows on the screen, specifically, current display activity is monitored, such as Content shown by fruit is test result, then is not responding to screenshotss request, i.e., current screenshotss operation can not succeed.
In addition, electronic equipment includes shell, camera and screen, the screen and described image acquisition device are arranged in institute State the same side of shell.Then detecting whether to get screenshotss request;If getting, determine the test result in the screen After showing on curtain, the image of the camera acquisition is obtained;The facial image in the image is extracted, determines that the facial image is The no facial image for pre-set user, if it is, screenshotss request is responded, if it is not, then being not responding to screenshotss request.Then The user relatively high for some access authority, be can by way of screenshotss backup test result.
In addition, it is also possible to which other illegal users can steal test result by way of to screen shot, then electric Sub- equipment includes shell, camera and screen, and the same side of the shell is arranged in the screen and described image acquisition device It is also wrapped after the test operation for executing the target software in the virtual machine pre-established is to obtain test result in face It includes: obtaining the image of the camera acquisition.Judge in the image of the camera acquisition whether to include lens image, if packet It includes, then the screen is put out into screen.
To the image procossing of camera acquisition, so that all contour lines in image are extracted, all contour lines is whole The shape for synthesizing each different object, determine in the shape of each different object whether include camera lens shape, if Including, it is determined that including lens image, then screen is put out into screen at once, i.e., screen is closed, then user can not be adopted by camera The mode of collection screen picture steals test result, and if screen is lit, it can execute again and obtain the camera acquisition Image;Judge in the image of the camera acquisition whether to include lens image, until the image that current camera acquires It is interior there is no lens image.
In addition, two kinds of above-mentioned embodiments, can be used in mixed way, specifically, can be in the virtual machine pre-established After the interior test operation for executing the target software is to obtain test result, detect whether to get screenshotss request;If obtaining It arrives, judges whether the test result shows on the screen;If so, being not responding to the screenshotss request.It is taken the photograph described in acquisition The image acquired as head;Judge in the image of the camera acquisition whether to include lens image;If including by the screen Put out screen.
It is also possible that the test operation of the target software is executed in the virtual machine pre-established to obtain test result Later, the image of the camera acquisition is obtained;Judge in the image of the camera acquisition whether to include lens image;If packet It includes, then the screen is put out into screen.It detects whether to get screenshotss request;If getting, judge the test result whether in institute It states and is shown on screen;If so, being not responding to the screenshotss request.
S507: the test result is sent to the user terminal.
It should be noted that the part being not described in detail in above-mentioned steps, can refer to previous embodiment, it is no longer superfluous herein It states.
Referring to Fig. 6, it illustrates a kind of structural block diagram of test device 600 provided by the embodiments of the present application, the device It may include acquiring unit 601, judging unit 602, establish unit 603 and transmission unit 604.
Acquiring unit 601, the test request sent for obtaining the user terminal, the test request pass through for user The request of the target software for testing terminal to be tested of the user terminal input.
Judging unit 602 is connected with the terminal to be tested for judging whether.
Unit 603 is established, if having the terminal to be tested for not connected, is executed in the virtual machine pre-established The test operation of the target software is to obtain test result, wherein the operation system of the virtual machine and the terminal to be tested System corresponds to.
Transmission unit 604, for the test result to be sent to the user terminal.
Further, further include indicating unit, be used to indicate the test that the terminal to be tested executes the target software It operates and returns to test result.Specifically, it if being connected with the terminal to be tested, detects and whether pacifies in the terminal to be tested Equipped with the target software;If it is not installed, sending the installation kit of the target software to the terminal to be tested, described in instruction Terminal to be tested installs the target software and executes the test operation of the target software and return to test result.
It further include screenshotss unit, for detecting whether getting screenshotss request;If getting, judge that the test result is It is no to show on the screen;If so, being not responding to the screenshotss request.
Monitoring unit, for obtaining the image of the camera acquisition;Judge in the image of camera acquisition whether Including lens image;If including the screen is put out screen.
It is apparent to those skilled in the art that for convenience and simplicity of description, foregoing description device and The specific work process of module, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In several embodiments provided herein, the mutual coupling of module can be electrical property, mechanical or other The coupling of form.
It, can also be in addition, can integrate in a processing module in each functional module in each embodiment of the application It is that modules physically exist alone, can also be integrated in two or more modules in a module.Above-mentioned integrated mould Block both can take the form of hardware realization, can also be realized in the form of software function module.
Referring to FIG. 7, it illustrates the structural block diagrams of a kind of electronic equipment provided by the embodiments of the present application.The electronic equipment 100, which can be smart phone, tablet computer, e-book etc., can run the electronic equipment of application program.Electronics in the application Equipment 100 may include one or more such as lower component: processor 110, memory 120 and one or more application program, Wherein one or more application programs can be stored in memory 120 and be configured as by one or more processors 110 It executes, one or more programs are configured to carry out the method as described in preceding method embodiment.
Processor 110 may include one or more processing core.Processor 110 is whole using various interfaces and connection Various pieces in a electronic equipment 100, by run or execute the instruction being stored in memory 120, program, code set or Instruction set, and the data being stored in memory 120 are called, execute the various functions and processing data of electronic equipment 100.It can Selection of land, processor 110 can use Digital Signal Processing (Digital Signal Processing, DSP), field-programmable Gate array (Field-Programmable Gate Array, FPGA), programmable logic array (Programmable Logic Array, PLA) at least one of example, in hardware realize.Processor 110 can integrating central processor (Central Processing Unit, CPU), in image processor (Graphics Processing Unit, GPU) and modem etc. One or more of combinations.Wherein, the main processing operation system of CPU, user interface and application program etc.;GPU is for being responsible for Show the rendering and drafting of content;Modem is for handling wireless communication.It is understood that above-mentioned modem It can not be integrated into processor 110, be realized separately through one piece of communication chip.
Memory 120 may include random access memory (Random Access Memory, RAM), also may include read-only Memory (Read-Only Memory).Memory 120 can be used for store instruction, program, code, code set or instruction set.It deposits Reservoir 120 may include storing program area and storage data area, wherein the finger that storing program area can store for realizing operating system Enable, for realizing at least one function instruction (such as touch function, sound-playing function, image player function etc.), be used for Realize the instruction etc. of following each embodiments of the method.Storage data area can also store electronic equipment 100 and be created in use Data (such as phone directory, audio, video data, chat record data) etc..
Referring to FIG. 8, it illustrates a kind of structural block diagrams of computer readable storage medium provided by the embodiments of the present application. Program code is stored in the computer readable storage medium 800, said program code can be called by processor and execute above-mentioned side Method described in method embodiment.
Computer readable storage medium 800 can be such as flash memory, EEPROM (electrically erasable programmable read-only memory), The electronic memory of EPROM, hard disk or ROM etc.Optionally, computer readable storage medium 800 includes non-volatile meter Calculation machine readable medium (non-transitory computer-readable storage medium).Computer-readable storage Medium 800 has the memory space for the program code 810 for executing any method and step in the above method.These program codes can With from reading or be written in one or more computer program product in this one or more computer program product. Program code 810 can for example be compressed in a suitable form.
Finally, it should be noted that above embodiments are only to illustrate the technical solution of the application, rather than its limitations;Although The application is described in detail with reference to the foregoing embodiments, those skilled in the art are when understanding: it still can be with It modifies the technical solutions described in the foregoing embodiments or equivalent replacement of some of the technical features;And These are modified or replaceed, do not drive corresponding technical solution essence be detached from each embodiment technical solution of the application spirit and Range.

Claims (10)

1. a kind of test method, which is characterized in that be applied to test macro, the test macro include electronic equipment and with it is described The user terminal of electronic equipment connection, which comprises
The electronic equipment obtains the test request that the user terminal is sent, and the test request is that user passes through the user The request of the target software for testing terminal to be tested of terminal input;
Judge whether to be connected with the terminal to be tested;
Have terminal to be tested if not connected, executed in the virtual machine pre-established the test operation of the target software with Obtain test result, wherein the virtual machine is corresponding with the operating system of the terminal to be tested;
The test result is sent to the user terminal.
2. the method according to claim 1, wherein further include:
If being connected with the terminal to be tested, indicate that the terminal to be tested executes the test operation of the target software simultaneously Return to test result.
3. according to the method described in claim 2, it is characterized in that, if being connected with the terminal to be tested, described in instruction Terminal to be tested executes the test operation of the target software and returns to test result, comprising:
If being connected with the terminal to be tested, detect in the terminal to be tested whether the target software is installed;
If it is not installed, the installation kit for sending the target software indicates the terminal peace to be tested to the terminal to be tested It fills the target software and executes the test operation of the target software and return to test result.
4. being wrapped the method according to claim 1, wherein described judge whether to be connected with the terminal to be tested It includes:
Obtain the location information of the user terminal;
Judge whether the location information matches with preset position information;
If matching, judges whether to be connected with the terminal to be tested.
5. according to the method described in claim 4, it is characterized in that, the location information for obtaining the user terminal, comprising:
Obtain the user name for currently logging in the user terminal;
Judge whether the user name meets preset condition;
If satisfied, then obtaining the location information of the user terminal.
6. described to pre-establish the method according to claim 1, wherein the electronic equipment includes screen Virtual machine in execute the test operation of the target software to obtain test result after, further includes:
It detects whether to get screenshotss request;
If getting, judge whether the test result shows on the screen;
If so, being not responding to the screenshotss request.
7. the method according to claim 1, wherein the electronic equipment includes shell, camera and screen, institute It states screen and the same side of the shell is arranged in the camera, it is described that the mesh is executed in the virtual machine pre-established After the test operation of software is marked to obtain test result, further includes:
Obtain the image of the camera acquisition;
Judge in the image of the camera acquisition whether to include lens image;
If including the screen is put out screen.
8. a kind of test device, which is characterized in that applied to the electronic equipment of test macro, the test macro further includes and institute The user terminal of electronic equipment connection is stated, the test device includes:
Acquiring unit, the test request sent for obtaining the user terminal, the test request are that user passes through the use The request of the target software for testing terminal to be tested of family terminal input;
Judging unit is connected with the terminal to be tested for judging whether;
Unit is established, if having the terminal to be tested for not connected, the mesh is executed in the virtual machine pre-established The test operation of software is marked to obtain test result, wherein the virtual machine is corresponding with the operating system of the terminal to be tested;
Transmission unit, for the test result to be sent to the user terminal.
9. a kind of electronic equipment characterized by comprising
One or more processors;
Memory;
One or more application program, wherein one or more of application programs are stored in the memory and are configured To be executed by one or more of processors, one or more of programs are configured to carry out as claim 1-7 is any Method described in.
10. a kind of computer-readable storage medium, which is characterized in that be stored with journey in the computer-readable storage medium Sequence code, said program code can be called by processor and execute the method according to claim 1 to 7.
CN201811125927.2A 2018-09-26 2018-09-26 Test method, test device, electronic equipment and computer readable storage medium Active CN109388532B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811125927.2A CN109388532B (en) 2018-09-26 2018-09-26 Test method, test device, electronic equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811125927.2A CN109388532B (en) 2018-09-26 2018-09-26 Test method, test device, electronic equipment and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN109388532A true CN109388532A (en) 2019-02-26
CN109388532B CN109388532B (en) 2022-10-28

Family

ID=65418143

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811125927.2A Active CN109388532B (en) 2018-09-26 2018-09-26 Test method, test device, electronic equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN109388532B (en)

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110347597A (en) * 2019-07-04 2019-10-18 Oppo广东移动通信有限公司 Interface test method, device, storage medium and the mobile terminal of picture servers
CN110515834A (en) * 2019-07-26 2019-11-29 Oppo广东移动通信有限公司 Interface test method, device, mobile terminal and storage medium
CN110838953A (en) * 2019-11-01 2020-02-25 北京字节跳动网络技术有限公司 Test method, test system, electronic equipment and storage medium
CN111026644A (en) * 2019-11-20 2020-04-17 东软集团股份有限公司 Operation result labeling method and device, storage medium and electronic equipment
CN111352790A (en) * 2020-02-20 2020-06-30 Oppo(重庆)智能科技有限公司 Test method and device for reporting input event, mobile terminal and storage medium
CN111833044A (en) * 2020-06-19 2020-10-27 深圳市中创电测技术有限公司 Handheld terminal testing method, equipment, system and storage medium
CN112130870A (en) * 2020-09-22 2020-12-25 湖南快乐阳光互动娱乐传媒有限公司 Method, device and system for installing test packets
CN112256561A (en) * 2020-09-22 2021-01-22 北京达佳互联信息技术有限公司 Push information testing method, device, equipment and storage medium
CN113014452A (en) * 2021-03-01 2021-06-22 鹏城实验室 Network flow testing method, device, testing end and storage medium
CN113938943A (en) * 2021-10-20 2022-01-14 展讯半导体(成都)有限公司 Method, system, equipment and medium for testing coexistence performance of wireless communication
CN114692093A (en) * 2022-05-27 2022-07-01 荣耀终端有限公司 Application program installation method and electronic equipment

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1585441A (en) * 2003-08-18 2005-02-23 张丹 Long-range maintenance authority realizing method for electronic apparatus based on calling number set
CN102448061A (en) * 2011-11-18 2012-05-09 王黎明 Method and system for preventing phishing attack on basis of mobile terminal
CN103455737A (en) * 2012-05-28 2013-12-18 百度在线网络技术(北京)有限公司 User information protection method and device
US20140032638A1 (en) * 2012-07-25 2014-01-30 Lg Cns Co., Ltd. Automated testing environment
CN104519267A (en) * 2013-09-30 2015-04-15 北京三星通信技术研究有限公司 Shooting control method and terminal equipment
CN105573902A (en) * 2014-10-10 2016-05-11 阿里巴巴集团控股有限公司 Application testing method and system
CN205539525U (en) * 2015-12-30 2016-08-31 桂林航天光比特科技股份公司 Automatic seek system of camera
CN106998422A (en) * 2016-01-26 2017-08-01 陈征 A kind of automatic identification is taken on the sly the apparatus and method of camera lens
CN107992730A (en) * 2017-11-28 2018-05-04 宇龙计算机通信科技(深圳)有限公司 A kind of screen message guard method and device
CN108509533A (en) * 2018-03-15 2018-09-07 平安科技(深圳)有限公司 Control method, device, equipment and the computer storage media of screenshotss sharing files

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1585441A (en) * 2003-08-18 2005-02-23 张丹 Long-range maintenance authority realizing method for electronic apparatus based on calling number set
CN102448061A (en) * 2011-11-18 2012-05-09 王黎明 Method and system for preventing phishing attack on basis of mobile terminal
CN103455737A (en) * 2012-05-28 2013-12-18 百度在线网络技术(北京)有限公司 User information protection method and device
US20140032638A1 (en) * 2012-07-25 2014-01-30 Lg Cns Co., Ltd. Automated testing environment
CN104519267A (en) * 2013-09-30 2015-04-15 北京三星通信技术研究有限公司 Shooting control method and terminal equipment
CN105573902A (en) * 2014-10-10 2016-05-11 阿里巴巴集团控股有限公司 Application testing method and system
CN205539525U (en) * 2015-12-30 2016-08-31 桂林航天光比特科技股份公司 Automatic seek system of camera
CN106998422A (en) * 2016-01-26 2017-08-01 陈征 A kind of automatic identification is taken on the sly the apparatus and method of camera lens
CN107992730A (en) * 2017-11-28 2018-05-04 宇龙计算机通信科技(深圳)有限公司 A kind of screen message guard method and device
CN108509533A (en) * 2018-03-15 2018-09-07 平安科技(深圳)有限公司 Control method, device, equipment and the computer storage media of screenshotss sharing files

Cited By (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110347597A (en) * 2019-07-04 2019-10-18 Oppo广东移动通信有限公司 Interface test method, device, storage medium and the mobile terminal of picture servers
CN110347597B (en) * 2019-07-04 2023-09-26 Oppo广东移动通信有限公司 Interface testing method and device of picture server, storage medium and mobile terminal
CN110515834A (en) * 2019-07-26 2019-11-29 Oppo广东移动通信有限公司 Interface test method, device, mobile terminal and storage medium
CN110515834B (en) * 2019-07-26 2023-11-10 Oppo广东移动通信有限公司 Interface testing method and device, mobile terminal and storage medium
CN110838953A (en) * 2019-11-01 2020-02-25 北京字节跳动网络技术有限公司 Test method, test system, electronic equipment and storage medium
CN111026644B (en) * 2019-11-20 2023-09-26 东软集团股份有限公司 Operation result labeling method and device, storage medium and electronic equipment
CN111026644A (en) * 2019-11-20 2020-04-17 东软集团股份有限公司 Operation result labeling method and device, storage medium and electronic equipment
CN111352790A (en) * 2020-02-20 2020-06-30 Oppo(重庆)智能科技有限公司 Test method and device for reporting input event, mobile terminal and storage medium
CN111833044A (en) * 2020-06-19 2020-10-27 深圳市中创电测技术有限公司 Handheld terminal testing method, equipment, system and storage medium
CN112256561A (en) * 2020-09-22 2021-01-22 北京达佳互联信息技术有限公司 Push information testing method, device, equipment and storage medium
CN112130870A (en) * 2020-09-22 2020-12-25 湖南快乐阳光互动娱乐传媒有限公司 Method, device and system for installing test packets
CN113014452A (en) * 2021-03-01 2021-06-22 鹏城实验室 Network flow testing method, device, testing end and storage medium
CN113938943A (en) * 2021-10-20 2022-01-14 展讯半导体(成都)有限公司 Method, system, equipment and medium for testing coexistence performance of wireless communication
CN113938943B (en) * 2021-10-20 2024-04-12 展讯半导体(成都)有限公司 Method, system, equipment and medium for testing coexistence performance of wireless communication
CN114692093A (en) * 2022-05-27 2022-07-01 荣耀终端有限公司 Application program installation method and electronic equipment
CN114692093B (en) * 2022-05-27 2022-10-25 荣耀终端有限公司 Application program installation method and electronic equipment

Also Published As

Publication number Publication date
CN109388532B (en) 2022-10-28

Similar Documents

Publication Publication Date Title
CN109388532A (en) Test method, device, electronic equipment and computer-readable storage medium
CN106844217A (en) Control to applying bury method and device, readable storage medium storing program for executing a little
CN107229854B (en) Application program registration method and device, electronic equipment and storage medium
CN108429745A (en) The authentication method and Verification System of login, webpage login method and system
CN110119350A (en) Software Development Kit test method, device and equipment and computer storage medium
CN109753425A (en) Pop-up processing method and processing device
CN108769175A (en) Remote real machine access control method, device, storage medium and electronic equipment
CN108196762A (en) A kind of terminal control method, terminal and computer readable storage medium
CN113608812A (en) Remote control method, device, system and storage medium
CN113672441A (en) Method and device for testing intelligent equipment
CN107817987A (en) A kind of hardware configuration method, system, terminal and server
CN109145571A (en) A kind of account login method, terminal and server
CN108282542A (en) Remote operation method and device for test equipment
CN106385397A (en) Network access equipment access control and type configuration method and apparatus thereof
CN107608707A (en) Application detection method, terminal and readable storage medium storing program for executing with hot repair function
CN109688099A (en) Server end hits library recognition methods, device, equipment and readable storage medium storing program for executing
CN105373715A (en) Wearable device based data access method and apparatus
CN108205455B (en) Application function implementation method and device and terminal
CN107231338A (en) Method for connecting network, device and the device for network connection
CN110221736A (en) Icon processing method, device, mobile terminal and storage medium
CN113220195B (en) Screen interaction system capable of displaying virtual window
CN106330864B (en) The processing method of verification information, apparatus and system
CN109039873A (en) Chat record display methods, device and computer readable storage medium
US20220272113A1 (en) Security server for dynamic verification of web content, end users remote device, system comprising said end users remote device and server, and method implemented by said system
CN110856173B (en) Network access method and device and electronic equipment

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