CN110262960A - Test environment control method, device, computer readable storage medium and server - Google Patents

Test environment control method, device, computer readable storage medium and server Download PDF

Info

Publication number
CN110262960A
CN110262960A CN201910422947.4A CN201910422947A CN110262960A CN 110262960 A CN110262960 A CN 110262960A CN 201910422947 A CN201910422947 A CN 201910422947A CN 110262960 A CN110262960 A CN 110262960A
Authority
CN
China
Prior art keywords
wake
remote control
option
word
preset
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910422947.4A
Other languages
Chinese (zh)
Inventor
孙云雷
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
OneConnect Smart Technology Co Ltd
Original Assignee
OneConnect Smart Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by OneConnect Smart Technology Co Ltd filed Critical OneConnect Smart Technology Co Ltd
Priority to CN201910422947.4A priority Critical patent/CN110262960A/en
Publication of CN110262960A publication Critical patent/CN110262960A/en
Priority to PCT/CN2020/087178 priority patent/WO2020233356A1/en
Pending legal-status Critical Current

Links

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/3664Environments for testing or debugging software

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Telephonic Communication Services (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention belongs to field of computer technology more particularly to a kind of test environment control method, device, computer readable storage medium and servers.The method is when test environment is not at code update state, the remote control message that receiving terminal apparatus is sent, and carries out waking up word detection;If detecting any one wake-up word in preset wake-up set of words in the remote control message, the account information carried in the remote control message is then extracted, and is corresponded in preset account information and inquires identity corresponding with the account information in table;Long-range control authority set corresponding with the identity is inquired in preset long-range control authority library, and remote control commands option list is generated according to the long-range control authority set;The remote control commands option list is sent to the terminal device, and receives the target instruction target word option of the terminal device feedback;It controls the test environment and executes operation corresponding with the target instruction target word option.

Description

Test environment control method, device, computer readable storage medium and server
Technical field
The invention belongs to field of computer technology more particularly to a kind of test environment control methods, device, computer-readable Storage medium and server.
Background technique
In the prior art, being typically necessary scene when needing test environment to be carried out hair version, restarted etc. operation has work Personnel are artificially controlled, under some special screnes, as staff for some reason not at the scene when, then can not be grasped in time Make, influences working efficiency.In order to solve this problem, a few thing personnel by way of remotely controlling come to test environment into Row operation, although working efficiency can be improved in this way, there is numerous uncontrollable factors in remote control process, increase Incoherent personnel intentionally or are not intended to hinder and damage the chance of test environment, so that the safety of test environment is dropped significantly It is low.
Summary of the invention
In view of this, the embodiment of the invention provides a kind of test environment control methods, device, computer-readable storage medium Matter and server, to solve the problems, such as that the existing method security remotely controlled test environment is lower.
The first aspect of the embodiment of the present invention provides a kind of test environment control method, may include:
Detect whether preset test environment is in code update state;
If the test environment is not at code update state, the remote control message that receiving terminal apparatus is sent, and The remote control message is carried out to wake up word detection;
If detecting any one wake-up word in preset wake-up set of words in the remote control message, extract The account information carried in the remote control message, and inquiry and the account information in table are corresponded in preset account information Corresponding identity;
Long-range control authority set corresponding with the identity, and root are inquired in preset long-range control authority library Remote control commands option list is generated according to the long-range control authority set, includes one in the long-range control authority set Above long-range control authority;
The remote control commands option list is sent to the terminal device, and receives the mesh of the terminal device feedback Instruction options are marked, the target instruction target word option is an option in the remote control commands option list;
It controls the test environment and executes operation corresponding with the target instruction target word option.
The second aspect of the embodiment of the present invention provides a kind of test environment control unit, may include:
State detection module, for detecting whether preset test environment is in code update state;
Remote control message receiving module receives terminal if being not at code update state for the test environment The remote control message that equipment is sent, and the remote control message is carried out to wake up word detection;
Identity enquiry module, if for being detected in the remote control message in preset wake-up set of words Any one wakes up word, then extracts the account information carried in the remote control message, and corresponding in preset account information Identity corresponding with the account information is inquired in table;
Instruction options List Generating Module, for the inquiry in preset long-range control authority library and the identity pair The long-range control authority set answered, and remote control commands option list is generated according to the long-range control authority set, it is described It include more than one long-range control authority in long-range control authority set;
Instruction options interactive module for sending the remote control commands option list to the terminal device, and connects The target instruction target word option of the terminal device feedback is received, the target instruction target word option is in the remote control commands option list An option;
Operation executing module executes operation corresponding with the target instruction target word option for controlling the test environment.
The third aspect of the embodiment of the present invention provides a kind of computer readable storage medium, the computer-readable storage Media storage has computer-readable instruction, and the computer-readable instruction realizes following steps when being executed by processor:
Detect whether preset test environment is in code update state;
If the test environment is not at code update state, the remote control message that receiving terminal apparatus is sent, and The remote control message is carried out to wake up word detection;
If detecting any one wake-up word in preset wake-up set of words in the remote control message, extract The account information carried in the remote control message, and inquiry and the account information in table are corresponded in preset account information Corresponding identity;
Long-range control authority set corresponding with the identity, and root are inquired in preset long-range control authority library Remote control commands option list is generated according to the long-range control authority set, includes one in the long-range control authority set Above long-range control authority;
The remote control commands option list is sent to the terminal device, and receives the mesh of the terminal device feedback Instruction options are marked, the target instruction target word option is an option in the remote control commands option list;
It controls the test environment and executes operation corresponding with the target instruction target word option.
The fourth aspect of the embodiment of the present invention provides a kind of server, including memory, processor and is stored in institute The computer-readable instruction that can be run in memory and on the processor is stated, the processor executes described computer-readable Following steps are realized when instruction:
Detect whether preset test environment is in code update state;
If the test environment is not at code update state, the remote control message that receiving terminal apparatus is sent, and The remote control message is carried out to wake up word detection;
If detecting any one wake-up word in preset wake-up set of words in the remote control message, extract The account information carried in the remote control message, and inquiry and the account information in table are corresponded in preset account information Corresponding identity;
Long-range control authority set corresponding with the identity, and root are inquired in preset long-range control authority library Remote control commands option list is generated according to the long-range control authority set, includes one in the long-range control authority set Above long-range control authority;
The remote control commands option list is sent to the terminal device, and receives the mesh of the terminal device feedback Instruction options are marked, the target instruction target word option is an option in the remote control commands option list;
It controls the test environment and executes operation corresponding with the target instruction target word option.
Existing beneficial effect is the embodiment of the present invention compared with prior art: the embodiment of the present invention detects preset in advance Whether test environment is in code update state, if the test environment is not at code update state, sets receiving terminal After the standby remote control message to transmission, the remote control message is carried out waking up word detection first, if in the long-range control Any one wake-up word in preset wake-up set of words is detected in message processed, then extracts and carry in the remote control message Account information, and corresponded in preset account information and inquire corresponding with account information identity in table, then existed Long-range control authority set corresponding with the identity is inquired in preset long-range control authority library, and according to described long-range Control authority set generates remote control commands option list, then sends the remote control commands choosing to the terminal device Item list, and the target instruction target word option of the terminal device feedback is received, it finally controls the test environment and executes and the mesh Mark the corresponding operation of instruction options.Through the embodiment of the present invention, staff is to remotely control test environment, it is necessary to Verification by waking up word detection and to its identity, and instruction corresponding with the identity of oneself can only be issued, it avoids Incoherent personnel are intentional or are not intended to hinder and damage the chance of test environment, substantially increase the safety of test environment.
Detailed description of the invention
It to describe the technical solutions in the embodiments of the present invention more clearly, below will be to embodiment or description of the prior art Needed in attached drawing be briefly described, it should be apparent that, the accompanying drawings in the following description is only of the invention some Embodiment for those of ordinary skill in the art without any creative labor, can also be according to these Attached drawing obtains other attached drawings.
Fig. 1 is a kind of one embodiment flow chart for testing environment control method in the embodiment of the present invention;
Fig. 2 is the schematic flow diagram changed to wake-up set of words;
Fig. 3 is to terminal device transmission remote control commands option list, and the target instruction target word of receiving terminal apparatus feedback The schematic flow diagram of option;
Fig. 4 is a kind of one embodiment structure chart for testing environment control unit in the embodiment of the present invention;
Fig. 5 is a kind of schematic block diagram of server in the embodiment of the present invention.
Specific embodiment
In order to make the invention's purpose, features and advantages of the invention more obvious and easy to understand, below in conjunction with the present invention Attached drawing in embodiment, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that disclosed below Embodiment be only a part of the embodiment of the present invention, and not all embodiment.Based on the embodiments of the present invention, this field Those of ordinary skill's all other embodiment obtained without making creative work, belongs to protection of the present invention Range.
Referring to Fig. 1, in the embodiment of the present invention it is a kind of test environment control method one embodiment may include:
Step S101, detect whether preset test environment is in code update state.
Generally, when test environment is carrying out code update, namely is in code update state, in order to avoid occurring System crash and confusion can lock entire test environment, not allow staff to operate on it, to test within this period The instruction that environment is issued all is invalid.Therefore, test environment management server (subject of implementation of the present embodiment) can be preparatory The current state of test environment is detected, if test environment is not at code update state, executes subsequent step, if surveying Test ring border is in code update state, then is waited, until test environment completion code updates and then execute subsequent step Suddenly.
Step S102, the remote control message that receiving terminal apparatus is sent, and the remote control message is waken up Word detection.
In the present embodiment, the terminal devices such as mobile phone, tablet computer can be used by oneself common society in staff Messaging application or other specified application programs is handed over to send remote control message to test environment management server.Generally A main body account can be arranged in ground in the application program in advance, which is the account that server is monitored, Server can the uninterrupted content that the main body account is received monitor.Staff by its this apply journey The account of oneself sends information to the main body account in sequence, that is, information is sent to server, and server passes through the master Body account sends information to the account of staff, that is, sending information to the terminal device of the staff.
Waking up word can be configured according to the actual situation, for example, word setting can will be waken up are as follows: " function ", " long-range ", " operation " etc..For staff, when its needs remotely controlled when, first in the application opening and main body Then interactive interface between account is sent to it the message comprising waking up word namely the remote control message, for example, work " function " this message can be sent by making personnel, then server can therefrom identify wake-up word, then is responded thereto.
Staff during use, can modify according to the use habit of oneself to word is waken up.It needs to infuse Meaning wakes up word and selects to be uncommon word rarely needed in user's daily life, in order to avoid cause frequently to wake up Maloperation.
Password, wake-up of the incoherent personnel due to being not aware that current setting can be played the role of herein by waking up word What word is, thus at all can not wake servers respond thereto, so as to effectively avoid to test environment miss Operation or the behavior of malicious operation occur.
It is possible to further preset the wake-up set of words being made of multiple wake-up words, if disappearing in the long-range control Detected in breath it is described wake-up set of words in any one wake up word, then can determine that wakes up successfully, execution step S103 and its Subsequent step.
Further, can also be arranged in the present embodiment by process programming count staff as shown in Figure 2 Each false wake-up rate for waking up word, and the wake-up set of words is changed accordingly:
Step S1021, the wake-up record in preset statistical time range is obtained.
The statistical time range can be configured according to the actual situation, for example, one week, two weeks, one can be set to A month, two months or other values.
Step S1022, count corresponding with each wake-up word in the wake-up set of words respectively according to wake-up record The number of wake events and the number of false wake-up event.
The wake events are to wake up word to detect successful event, and the false wake-up event is after waking up word and detecting successfully The event for the termination wake up instruction that the terminal device issues is received in preset waiting time.The waiting time can root It is configured according to actual conditions, for example, 10 seconds, 20 seconds, 30 seconds, 1 minute or other values can be set to.If calling out The termination wake up instruction that user issues is received in the very short time after waking up, then it is false wake-up, user that explanation, which this time wakes up, It may be inadvertently to have input wake-up word, but there is no the demands remotely controlled in fact.
Step S1023, the average false wake-up rate for waking up set of words is calculated.
In the present embodiment, the average false wake-up rate for waking up set of words can be calculated according to the following formula:
Wherein, w is each serial number for waking up word, and 1≤w≤WN, WN are the wake-up word sum in the wake-up set of words, WakeNumwFor the number of wake events corresponding with w-th of wake-up word in the wake-up set of words, ErrNumwTo be called out with described The number of the corresponding false wake-up event of w-th of wake-up word in set of words of waking up, AvrErrRate is being averaged for the wake-up set of words False wake-up rate.
Step S1024, each false wake-up rate for waking up word in the wake-up set of words is calculated separately.
In the present embodiment, each false wake-up for waking up word in the wake-up set of words can be calculated separately according to the following formula Rate:
Wherein, ErrRatewFor the false wake-up rate of w-th of wake-up word in the wake-up set of words.
Step S1025, the wake-up word for meeting preset condition is deleted from the wake-up set of words.
The preset condition may is that
Wherein, ScaleCoef is preset proportionality coefficient, and ScaleCoef > 1, ThreshNum are preset number threshold Value, specific value can be configured according to the actual situation, for example, 10,20,50,100 or other can be set to Value.
The wake-up word for meeting the preset condition is the wake-up word for being easy to cause false wake-up, therefore in order to reduce false wake-up These can be easy to cause the wake-up word of false wake-up to delete from the wake-up set of words by rate.In the another kind of the present embodiment In the specific implementation, before being deleted solicited message can also be sent to the terminal device of staff, in the solicited message It is middle that the wake-up word for needing to delete is shown to staff, if receiving the confirmation message of the terminal device feedback of staff, These wake-up words are deleted from the wake-up set of words, if receiving the refusal information of the terminal device feedback of staff, Then still retain these and wakes up word.
Step S103, the account information carried in the remote control message is extracted, and corresponding in preset account information Identity corresponding with the account information is inquired in table.
In order to accurately determine the source of message, the account letter of sender can be carried in the remote control message Breath, server can therefrom extract account information after receiving the remote control message.Further, described Account information can also be stored in advance in server and correspond to table, have recorded each account and each identity in the correspondence table Between corresponding relationship, the identity include but is not limited to work number, ID card No., drivers license number, phone number or Other unique identifications.Staff can be in the binding with progress identity information on the interactive interface of main body account, it is established that The corresponding relationship between account in its identity and application program, the corresponding relationship will be added into the account information pair It answers in table.After server has extracted the account information carried in the remote control message, it can believe in the account Inquiry identity corresponding with the account information in corresponding table is ceased, so that it is determined that being described in who staff has sent Remote control message.
For example, the identity of staff Zhang San are as follows: 098790 (work number), user account in the application are Zhangsan1818, then it can bind the relationship between the two in systems, be when server receives account When the message that the user of zhangsan1818 is sent by the application program, then it can determine that sender is that identity is 098790 staff Zhang San.
In view of the terminal device of staff may be taken by other people, and long-range control is implemented accidentally.Therefore, Can collecting work personnel in advance biological information, including but not limited to face characteristic, fingerprint characteristic, vocal print feature etc. Deng, and the biological information of all staff on board is set up into a biological characteristic library.It after step s 103, can also be right It carries out biological characteristic validation, acquires its current biological characteristic, for example, can acquire face characteristic by camera, passes through Fingerprint capturer acquires fingerprint characteristic, acquires vocal print feature etc. by microphone, then obtains and is somebody's turn to do in biological characteristic library The corresponding benchmark biological characteristic of the identity of staff, and the two is compared, if comparison result is inconsistent, to It sends refuse information and continues to execute subsequent step if comparison result is consistent.
Step S104, long-range control authority corresponding with the identity is inquired in preset long-range control authority library Set, and remote control commands option list is generated according to the long-range control authority set.
It include more than one long-range control authority in the long-range control authority set.
In the present embodiment, it in order to avoid causing confusion, can be set in advance for different staff according to the actual situation Set corresponding long-range control authority.Long-range control authority can be divided into two ranks, and first level is total-control authority, i.e., Possess the long-range control authority of all operations, these long-range control authorities include but is not limited to: hair version restarts service, initiates certainly The long-range control authority of dynamicization etc. operation.Second level is partial control limit, i.e., only possesses the remote of one or more operations Process control permission.
The corresponding relationship between each staff and its long-range control authority is stored in advance down, forms long-range control authority Library, as shown in the table:
Staff's identity Long-range control authority
Identity 1 Long-range control authority set 1={ ALL }
Identity 2 Long-range control authority set 2={ control authority 1, control authority 2 }
Identity 3 Long-range control authority set 2={ control authority 2 }
…… ……
Wherein, ALL is the control authority for representing first level.The particular content in above-mentioned long-range control authority library can basis Actual conditions are adjusted, for example, triggering permission request can be removed in systems, by the work when certain staff leaves office Entry corresponding to the identity of personnel is deleted from the long-range control authority library, and when new staff's registration, meeting exists The newly-increased request of permission is triggered in system, is that it increases a record newly in the long-range control authority library, concrete power limit there can be it Supervisor is configured.In addition, the work as staff occurs in adjustment or other situations, it can also be to the long-range control Limit library, which is increased newly, deleted, modify etc., to be operated, to keep the long-range control authority library that can be applicable in newest operative scenario.
Server, can be according to described remote after inquiring long-range control authority set corresponding with the identity The symphysis of process control authority set is at remote control commands option list.
The present embodiment one kind in the specific implementation, can show the choosing of complete remote control commands to all staff on board Item list, display content are as follows:
" R. S. V. P. serial number:
1, version is sent out
2, the service of restarting
3, automation is initiated
……………
N、………”
Staff can select the remote control commands option carried out required for it according to the actual situation, for example, if work Make personnel and carry out hair version operation, then replys " 1 ".Server is replied and then according to above-mentioned long-range receiving it Control authority library judges whether it has the permission for carrying out the operation, if it does not have the permission, is sent to it refuse information, If it has the permission, the operation is executed automatically, and be sent to it prompting message, such as " receive your demand, hair version program is just Executing " etc..
The present embodiment another kind in the specific implementation, not showing complete remote control commands to all staff on board Option list, but according to everyone concrete power limit, only show option corresponding with owned long-range control authority Content, namely need to generate remote control commands option list according to the long-range control authority set.
For example, showing that content is as follows if the staff only sends out version and initiates to automate this two permissions:
" R. S. V. P. serial number:
1, version is sent out
2, automation is initiated "
In this case, it after receiving the reply of staff, no longer needs to inquire its permission, can directly execute the behaviour Make.
Step S105, Xiang Suoshu terminal device sends the remote control commands option list, and receives the terminal and set The target instruction target word option of standby feedback.
The target instruction target word option is an option in the remote control commands option list.
Preferably, the remote control commands option list can be shown to it in the interactive interface with staff, So that it is selected.
Further, it is contemplated that due to accidentally maloperation may also can occur for staff itself, in the present embodiment, also Can it is as shown in Figure 3 repeatedly confirm by way of this is evaded.
Step S1051, Xiang Suoshu terminal device i-th sends the remote control commands option list, and described in reception The target instruction target word option of terminal device i-th feedback.
Wherein, i is positive integer, and the initial value of i is 1.
Step S1052, whether the i target instruction target word option fed back be consistent before judging the terminal device.
If inconsistent, S1057 is thened follow the steps, if unanimously, thening follow the steps S1053.The target fed back for the 1st time refers to For enabling option, then without executing step S1052, directly execution step S1053.
Step S1053, judge whether i is less than preset repetition selection threshold value.
The selection threshold value that repeats is configured according to the actual situation, for example, 2,3,5 or other can be set to Value.
Preferably, long-range control record corresponding with the identity can also be obtained, and according to the long-range control Record counts the number of the total degree and maloperation that remotely control respectively, then calculates the repetition selection threshold according to the following formula Value:
Wherein, BaseNum is preset baseline threshold, and value can be configured according to the actual situation, for example, can be with It is set to 5,10,20 or other values, BaseRatio is preset base ratio, and 0 < BaseRatio < 1, is taken Value can be configured according to the actual situation, for example, 0.1,0.2,0.5 or other values, OprNum can be set to The total degree remotely controlled is counted to be described, FailNum is the number of the maloperation, and MAX is maximizing function, RptNum Selection threshold value is repeated to be described.There it can be seen that staff is more in the number of previous maloperation, then its progress is needed More confirmation process.
If i, which is less than the repetition, selects threshold value, S1054 and its subsequent step are thened follow the steps, if i is equal to the repetition and selects Threshold value is selected, S1056 is thened follow the steps.
Step S1054, the sequence of the respective option in the remote control commands option list is adjusted.
For example, when sending the remote control commands option list the 1st time, version this option will be sent out and come order 1 Position will send out version this option and come the position of order 2, when sending the remote control commands option list the 1st time When sending the remote control commands option list 3 times, the position ... ... of order 3 version this option will be sent out is come, with such It pushes away, in this way, it is possible to prevente effectively from staff habitually selects the issuable maloperation of the same option.
It should be noted that in this manner, server every time when sending the remote control commands option list, The actual order (hereinafter referred to as the first order) for being required to pre-establish each option is selected in the remote control commands The corresponding relationship between order (hereinafter referred to as the second order) in item list, in the target instruction target word for receiving terminal device feedback After option, the second order is converted into the first order again, operation error is caused to avoid confusion reigned.
Step S1055, i is increased into a digit.
Namely execute following procedure: i=i+1.Then S1051 and its step are returned to step, until i is equal to described heavy Until threshold value is selected in final election.
Step S1056, terminate the repetition selection course to the remote control commands option list.
Step S1057, Xiang Suoshu terminal device sends miscue message.
In this way, it is possible to prevente effectively from the maloperation that staff itself may also can occur due to accidentally.
Step S106, it controls the test environment and executes operation corresponding with the target instruction target word option.
In this way, without scene have staff to test environment artificially controlled, when staff because Therefore when not at the scene, then it can be operated in time by way of remotely controlling, greatly improve working efficiency.
Further, it is contemplated that field control is higher compared to long-range control stability, and can be with significantly more efficient to behaviour Some emergency situations during work are handled, therefore when staff is in scene nearby, still preferentially to test environment Carry out field control.It saves trouble in order to avoid staff seeks, is operated near the scene yet by the mode remotely controlled, After the remote control message that receiving terminal apparatus is sent, described in server can also be extracted from the remote control message The first location information that terminal device is currently located, then according to the first location information and preset second location information meter The distance between the terminal device and the test environment are calculated, the second location information is that the test environment is currently located Location information.If the distance between the terminal device and the test environment are greater than or equal to preset distance threshold, It executes and wakes up word detection and its subsequent step, if the distance between the terminal device and the test environment are less than the distance Threshold value then sends refuse information to the terminal device.The distance threshold can be configured according to the actual situation, for example, It can be set to 1 km, 2 kms, 5 kms or other values etc..
In conclusion the embodiment of the present invention detects whether preset test environment is in code update state in advance, if institute It states test environment and is not at code update state, then after receiving terminal apparatus to the remote control message sent, first to institute It states remote control message to carry out waking up word detection, if detecting in the remote control message in preset wake-up set of words Any one wakes up word, then extracts the account information carried in the remote control message, and corresponding in preset account information Identity corresponding with the account information is inquired in table, then inquiry and the body in preset long-range control authority library Part identifies corresponding long-range control authority set, and generates remote control commands option column according to the long-range control authority set Then table sends the remote control commands option list to the terminal device, and receive the mesh of the terminal device feedback Instruction options are marked, the test environment is finally controlled and executes operation corresponding with the target instruction target word option.It is real through the invention Example is applied, staff is to remotely control test environment, it is necessary to the verification by waking up word detection and to its identity, And instruction corresponding with the identity of oneself can only be issued, avoid incoherent personnel intentionally or is not intended to hinder and damage survey The chance in test ring border substantially increases the safety of test environment.
It should be understood that the size of the serial number of each step is not meant that the order of the execution order in above-described embodiment, each process Execution sequence should be determined by its function and internal logic, the implementation process without coping with the embodiment of the present invention constitutes any limit It is fixed.
Corresponding to a kind of test environment control method described in foregoing embodiments, Fig. 4 shows offer of the embodiment of the present invention A kind of test environment control unit one embodiment structure chart.
In the present embodiment, a kind of test environment control unit may include:
State detection module 401, for detecting whether preset test environment is in code update state;
Remote control message receiving module 402 receives end if being not at code update state for the test environment The remote control message that end equipment is sent, and the remote control message is carried out to wake up word detection;
Identity enquiry module 403, if for detecting preset wake-up set of words in the remote control message In any one wake up word, then extract the account information carried in the remote control message, and in preset account information Inquiry identity corresponding with the account information in corresponding table;
Instruction options List Generating Module 404, for the inquiry in preset long-range control authority library and the identity mark Know corresponding long-range control authority set, and remote control commands option list generated according to the long-range control authority set, It include more than one long-range control authority in the long-range control authority set;
Instruction options interactive module 405, for sending the remote control commands option list to the terminal device, and The target instruction target word option of the terminal device feedback is received, the target instruction target word option is the remote control commands option list In an option;
Operation executing module 406 executes operation corresponding with the target instruction target word option for controlling the test environment.
Further, described instruction option interactive module may include:
Instruction options interactive unit, for sending the remote control commands option list to the terminal device i-th, And receive the target instruction target word option of the terminal device i-th feedback, wherein i is positive integer, and the initial value of i is 1;
Consistency judging unit, it is whether consistent for the i target instruction target word option fed back before judging the terminal device;
Miscue message sending unit, for sending miscue message to the terminal device;
Threshold decision unit, for judging whether i is less than preset repetition selection threshold value;
Option sequence adjustment unit, for adjusting the sequence of the respective option in the remote control commands option list It is whole;
Counting unit, for i to be increased a digit;
Interaction end unit, for terminating the repetition selection course to the remote control commands option list.
Further, the test environment control unit can also include:
First statistical module, for obtaining long-range control record corresponding with the identity, and according to described long-range Control record counts the number of the total degree and maloperation that remotely control respectively;
Threshold calculation module, for calculating the repetition selection threshold value according to the following formula:
Wherein, BaseNum is preset baseline threshold, and BaseRatio is preset base ratio, and 0 < BaseRatio < 1, OprNum counts the total degree remotely controlled to be described, and FailNum is the number of the maloperation, and MAX is maximizing letter Number, RptNum are that the repetition selects threshold value.
Further, the test environment control unit can also include:
It wakes up record and obtains module, for obtaining the record of the wake-up in preset statistical time range;
Second statistical module, for being counted respectively and each wake-up word in the wake-up set of words according to wake-up record The number of corresponding wake events and the number of false wake-up event, the wake events are to wake up word to detect successful event, The false wake-up event is the end for receiving the terminal device in preset waiting time after waking up word and detecting successfully and issuing The only event of wake up instruction;
First computing module, for calculating the average false wake-up rate for waking up set of words according to the following formula:
Wherein, w is each serial number for waking up word, and 1≤w≤WN, WN are the wake-up word sum in the wake-up set of words, WakeNumwFor the number of wake events corresponding with w-th of wake-up word in the wake-up set of words, ErrNumwTo be called out with described The number of the corresponding false wake-up event of w-th of wake-up word in set of words of waking up, AvrErrRate is being averaged for the wake-up set of words False wake-up rate;
Second computing module, for calculating separately each false wake-up for waking up word in the wake-up set of words according to the following formula Rate:
Wherein, ErrRatewFor the false wake-up rate of w-th of wake-up word in the wake-up set of words;
Word removing module is waken up, for deleting the wake-up word for meeting following condition from the wake-up set of words:
Wherein, ScaleCoef is preset proportionality coefficient, and ScaleCoef > 1, ThreshNum are preset number threshold Value.
Further, the test environment control unit can also include:
Location information extraction module, be currently located for extracting the terminal device from the remote control message One location information;
Distance calculation module, for calculating the terminal according to the first location information and preset second location information The distance between equipment and the test environment, the second location information are the position letter that the test environment is currently located Breath;
Refuse information sending module, if being less than for the distance between the terminal device and the test environment preset Distance threshold then sends refuse information to the terminal device.
It is apparent to those skilled in the art that for convenience and simplicity of description, the device of foregoing description, The specific work process of module and unit, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, is not described in detail or remembers in some embodiment The part of load may refer to the associated description of other embodiments.
The schematic block diagram that Fig. 5 shows a kind of server provided in an embodiment of the present invention illustrates only for ease of description Part related to the embodiment of the present invention.
In the present embodiment, the server 5 may include: processor 50, memory 51 and be stored in the storage In device 51 and the computer-readable instruction 52 that can run on the processor 50, such as execute above-mentioned test environment controlling party The computer-readable instruction of method.The processor 50 realizes above-mentioned each test environment when executing the computer-readable instruction 52 Step in control method embodiment, such as step S101 to S106 shown in FIG. 1.Alternatively, the processor 50 execute it is described The function of each module/unit in above-mentioned each Installation practice, such as module 401 shown in Fig. 4 are realized when computer-readable instruction 52 To 406 function.
Illustratively, the computer-readable instruction 52 can be divided into one or more module/units, one Or multiple module/units are stored in the memory 51, and are executed by the processor 50, to complete the present invention.Institute Stating one or more module/units can be the series of computation machine readable instruction section that can complete specific function, the instruction segment For describing implementation procedure of the computer-readable instruction 52 in the server 5.
The processor 50 can be central processing unit (Central Processing Unit, CPU), can also be Other general processors, digital signal processor (Digital Signal Processor, DSP), specific integrated circuit (Application Specific Integrated Circuit, ASIC), field programmable gate array (Field- Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic, Discrete hardware components etc..General processor can be microprocessor or the processor is also possible to any conventional processor Deng.
The memory 51 can be the internal storage unit of the server 5, such as the hard disk or memory of server 5. The memory 51 is also possible to the External memory equipment of the server 5, such as the plug-in type being equipped on the server 5 is hard Disk, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card, flash card (Flash Card) etc..Further, the memory 51 can also both include the internal storage unit of the server 5 or wrap Include External memory equipment.The memory 51 is for storing needed for the computer-readable instruction and the server 5 it Its instruction and data.The memory 51 can be also used for temporarily storing the data that has exported or will export.
The functional units in various embodiments of the present invention may be integrated into one processing unit, is also possible to each Unit physically exists alone, and can also be integrated in one unit with two or more units.Above-mentioned integrated unit both may be used To use formal implementation of hardware, can also realize in the form of software functional units.
If the integrated unit is realized in the form of SFU software functional unit and sells or use as independent product When, it can store in a computer readable storage medium.Based on this understanding, technical solution of the present invention substantially or Person says that all or part of the part that contributes to existing technology or the technical solution can body in the form of software products Reveal and, which is stored in a storage medium, including several computer-readable instructions are used so that one Platform computer equipment (can be personal computer, server or the network equipment etc.) executes described in each embodiment of the present invention The all or part of the steps of method.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory (ROM, Read- Only Memory), random access memory (RAM, Random Access Memory), magnetic or disk etc. are various can be with Store the medium of computer-readable instruction.
Embodiment described above is merely illustrative of the technical solution of the present invention, rather than its limitations;Although referring to aforementioned reality Applying example, invention is explained in detail, those skilled in the art should understand that: it still can be to aforementioned each Technical solution documented by embodiment is modified or equivalent replacement of some of the technical features;And these are modified Or replacement, the spirit and scope for technical solution of various embodiments of the present invention that it does not separate the essence of the corresponding technical solution.

Claims (10)

1. a kind of test environment control method characterized by comprising
Detect whether preset test environment is in code update state;
If the test environment is not at code update state, the remote control message that receiving terminal apparatus is sent, and to institute Remote control message is stated to carry out waking up word detection;
If detecting any one wake-up word in preset wake-up set of words in the remote control message, described in extraction The account information carried in remote control message, and preset account information correspond in table inquire it is corresponding with the account information Identity;
Long-range control authority set corresponding with the identity is inquired in preset long-range control authority library, and according to institute It states long-range control authority set and generates remote control commands option list, include more than one in the long-range control authority set Long-range control authority;
The remote control commands option list is sent to the terminal device, and the target for receiving the terminal device feedback refers to Option is enabled, the target instruction target word option is an option in the remote control commands option list;
It controls the test environment and executes operation corresponding with the target instruction target word option.
2. test environment control method according to claim 1, which is characterized in that described to send institute to the terminal device Remote control commands option list is stated, and the target instruction target word option for receiving the terminal device feedback includes:
The remote control commands option list is sent to the terminal device i-th, and it is anti-to receive the terminal device i-th The target instruction target word option of feedback, wherein i is positive integer, and the initial value of i is 1;
Whether the i target instruction target word option fed back be consistent before judging the terminal device;
If inconsistent, miscue message is sent to the terminal device;
If consistent, judge whether i is less than preset repetition selection threshold value;
If i, which is less than the repetition, selects threshold value, the sequence of the respective option in the remote control commands option list is carried out Adjustment;
I is increased into a digit, and it is described to the terminal device i-th transmission remote control commands to return to execution Option list, and the step of receiving the target instruction target word option of the terminal device i-th feedback;
If i, which is equal to the repetition, selects threshold value, terminate the repetition selection course to the remote control commands option list.
3. test environment control method according to claim 2, which is characterized in that judging it is preset heavy whether i is less than Final election is selected before threshold value, further includes:
Long-range control record corresponding with the identity is obtained, and according to the long-range control record long-range control of statistics respectively The total degree of system and the number of maloperation;
The repetition selection threshold value is calculated according to the following formula:
Wherein, BaseNum is preset baseline threshold, and BaseRatio is preset base ratio, and 0 < BaseRatio < 1, OprNum is the total degree for counting and remotely controlling, and FailNum is the number of the maloperation, and MAX is maximizing function, RptNum is that the repetition selects threshold value.
4. test environment control method according to claim 1, which is characterized in that further include:
Obtain the wake-up record in preset statistical time range;
According to the number for waking up record and counting wake events corresponding with wake-up word each in the wake-up set of words respectively And the number of false wake-up event, the wake events are to wake up word to detect successful event, the false wake-up event is to call out The event for the termination wake up instruction that the terminal device issues is received after word of waking up detects successfully in preset waiting time;
The average false wake-up rate for waking up set of words is calculated according to the following formula:
Wherein, w is each serial number for waking up word, and 1≤w≤WN, WN are the wake-up word sum in the wake-up set of words, WakeNumwFor the number of wake events corresponding with w-th of wake-up word in the wake-up set of words, ErrNumwTo be called out with described The number of the corresponding false wake-up event of w-th of wake-up word in set of words of waking up, AvrErrRate is being averaged for the wake-up set of words False wake-up rate;
Each false wake-up rate for waking up word in the wake-up set of words is calculated separately according to the following formula:
Wherein, ErrRatewFor the false wake-up rate of w-th of wake-up word in the wake-up set of words;
The wake-up word for meeting following condition is deleted from the wake-up set of words:
Wherein, ScaleCoef is preset proportionality coefficient, and ScaleCoef > 1, ThreshNum are preset frequency threshold value.
5. test environment control method according to any one of claim 1 to 4, which is characterized in that set receiving terminal After the remote control message that preparation is sent, further includes:
The first location information that the terminal device is currently located is extracted from the remote control message;
According to the first location information and preset second location information calculate the terminal device and the test environment it Between distance, the second location information is the location information that is currently located of test environment;
If the distance between the terminal device and the test environment are less than preset distance threshold, to the terminal device Send refuse information.
6. a kind of test environment control unit characterized by comprising
State detection module, for detecting whether preset test environment is in code update state;
Remote control message receiving module, if being not at code update state, receiving terminal apparatus for the test environment The remote control message of transmission, and the remote control message is carried out to wake up word detection;
Identity enquiry module, if any in preset wake-up set of words for being detected in the remote control message One wake-up word then extracts the account information carried in the remote control message, and corresponds in table in preset account information Inquire identity corresponding with the account information;
Instruction options List Generating Module, it is corresponding with the identity for being inquired in preset long-range control authority library Long-range control authority set, and remote control commands option list is generated according to the long-range control authority set, it is described long-range It include more than one long-range control authority in control authority set;
Instruction options interactive module for sending the remote control commands option list to the terminal device, and receives institute The target instruction target word option of terminal device feedback is stated, the target instruction target word option is one in the remote control commands option list A option;
Operation executing module executes operation corresponding with the target instruction target word option for controlling the test environment.
7. test environment control unit according to claim 6, which is characterized in that described instruction option interactive module packet It includes:
Instruction options interactive unit for sending the remote control commands option list to the terminal device i-th, and connects Receive the target instruction target word option of the terminal device i-th feedback, wherein i is positive integer, and the initial value of i is 1;
Consistency judging unit, it is whether consistent for the i target instruction target word option fed back before judging the terminal device;
Miscue message sending unit, for sending miscue message to the terminal device;
Threshold decision unit, for judging whether i is less than preset repetition selection threshold value;
Option sequence adjustment unit, for the sequence of the respective option in the remote control commands option list to be adjusted;
Counting unit, for i to be increased a digit;
Interaction end unit, for terminating the repetition selection course to the remote control commands option list.
8. test environment control unit according to claim 7, which is characterized in that further include:
First statistical module, for obtaining long-range control record corresponding with the identity, and according to the long-range control Record counts the number of the total degree and maloperation that remotely control respectively;
Threshold calculation module, for calculating the repetition selection threshold value according to the following formula:
Wherein, BaseNum is preset baseline threshold, and BaseRatio is preset base ratio, and 0 < BaseRatio < 1, OprNum is the total degree for counting and remotely controlling, and FailNum is the number of the maloperation, and MAX is maximizing function, RptNum is that the repetition selects threshold value.
9. a kind of computer readable storage medium, the computer-readable recording medium storage has computer-readable instruction, special Sign is, the test wrapper as described in any one of claims 1 to 5 is realized when the computer-readable instruction is executed by processor The step of border control method.
10. a kind of server, including memory, processor and storage can transport in the memory and on the processor Capable computer-readable instruction, which is characterized in that realized when the processor executes the computer-readable instruction as right is wanted Described in asking any one of 1 to 5 the step of test environment control method.
CN201910422947.4A 2019-05-21 2019-05-21 Test environment control method, device, computer readable storage medium and server Pending CN110262960A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201910422947.4A CN110262960A (en) 2019-05-21 2019-05-21 Test environment control method, device, computer readable storage medium and server
PCT/CN2020/087178 WO2020233356A1 (en) 2019-05-21 2020-04-27 Test environment control method and apparatus, computer-readable storage medium and server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910422947.4A CN110262960A (en) 2019-05-21 2019-05-21 Test environment control method, device, computer readable storage medium and server

Publications (1)

Publication Number Publication Date
CN110262960A true CN110262960A (en) 2019-09-20

Family

ID=67914918

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910422947.4A Pending CN110262960A (en) 2019-05-21 2019-05-21 Test environment control method, device, computer readable storage medium and server

Country Status (2)

Country Link
CN (1) CN110262960A (en)
WO (1) WO2020233356A1 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111526192A (en) * 2020-04-15 2020-08-11 Oppo广东移动通信有限公司 Remote control method and device of terminal, terminal and computer readable storage medium
WO2020233356A1 (en) * 2019-05-21 2020-11-26 深圳壹账通智能科技有限公司 Test environment control method and apparatus, computer-readable storage medium and server
CN113094261A (en) * 2021-03-23 2021-07-09 杭州电魂网络科技股份有限公司 Method, system, electronic device and storage medium for automatically updating test environment
CN111427770B (en) * 2020-02-29 2024-04-09 中国平安人寿保险股份有限公司 Resource testing method and related equipment

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113704136B (en) * 2021-11-01 2022-01-28 深圳市明源云科技有限公司 Test environment generation method, device, equipment and computer readable storage medium
CN114838949B (en) * 2022-03-04 2024-02-20 湖北国际物流机场有限公司 Airport automatic driving guided vehicle remote control driving test method and system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10057227B1 (en) * 2015-03-27 2018-08-21 Amazon Technologies, Inc. Determination of authentication mechanism
CN108509333A (en) * 2017-02-28 2018-09-07 腾讯科技(深圳)有限公司 Adjustment method and device
CN109509470A (en) * 2018-12-11 2019-03-22 平安科技(深圳)有限公司 Voice interactive method, device, computer readable storage medium and terminal device
CN109686374A (en) * 2018-12-11 2019-04-26 上海交通大学 The remote speech control method and system of digital control system

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CA2717265A1 (en) * 2007-03-07 2008-09-12 Kannuu Pty Ltd Method system and apparatus for entering text on a computing device
US10041992B2 (en) * 2016-03-18 2018-08-07 Az, Llc Remote sensing and probing of high-speed electronic devices
CN107807878B (en) * 2016-09-09 2021-04-09 北京航空航天大学 Keyword-based universal test resource driving and execution management method
CN110262960A (en) * 2019-05-21 2019-09-20 深圳壹账通智能科技有限公司 Test environment control method, device, computer readable storage medium and server

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10057227B1 (en) * 2015-03-27 2018-08-21 Amazon Technologies, Inc. Determination of authentication mechanism
CN108509333A (en) * 2017-02-28 2018-09-07 腾讯科技(深圳)有限公司 Adjustment method and device
CN109509470A (en) * 2018-12-11 2019-03-22 平安科技(深圳)有限公司 Voice interactive method, device, computer readable storage medium and terminal device
CN109686374A (en) * 2018-12-11 2019-04-26 上海交通大学 The remote speech control method and system of digital control system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
任瑞芳;金慧;: "物联网设备远程控制技术研究与改进", 电脑知识与技术, no. 11 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020233356A1 (en) * 2019-05-21 2020-11-26 深圳壹账通智能科技有限公司 Test environment control method and apparatus, computer-readable storage medium and server
CN111427770B (en) * 2020-02-29 2024-04-09 中国平安人寿保险股份有限公司 Resource testing method and related equipment
CN111526192A (en) * 2020-04-15 2020-08-11 Oppo广东移动通信有限公司 Remote control method and device of terminal, terminal and computer readable storage medium
CN113094261A (en) * 2021-03-23 2021-07-09 杭州电魂网络科技股份有限公司 Method, system, electronic device and storage medium for automatically updating test environment

Also Published As

Publication number Publication date
WO2020233356A1 (en) 2020-11-26

Similar Documents

Publication Publication Date Title
CN110262960A (en) Test environment control method, device, computer readable storage medium and server
CN108062629B (en) Transaction event processing method, terminal device and medium
CN109450772B (en) Message sending method, server and computer readable storage medium
CN106548402B (en) Resource transfer monitoring method and device
CN109685483B (en) Key management system and key management method
CN109326058A (en) Identification check method, apparatus, terminal and readable medium based on wisdom automatic teller machine
CN105654300A (en) Payment abnormity processing method and apparatus thereof
CN108256721A (en) A kind of method for scheduling task, terminal device and medium
CN109118615A (en) A kind of intelligent building management method, server, medium and system
CN113468025A (en) Data warning method, system, device and storage medium
CN107705126B (en) Transaction instruction processing method and device
CN108833133A (en) Network configuration management method, apparatus and storage medium based on system for cloud computing
CN115578815A (en) Access control management method, authentication server, access control system and readable storage medium
CN113506100B (en) Alliance chain data processing method, device, computer equipment and storage medium
CN110795715A (en) Data entry method, device and system and storage medium
WO2014128064A1 (en) A time and attendance processing system
JP2006227694A (en) Slip input data totalization system, totalization device and totalization program
CN107767477B (en) Information processing method and related equipment
CN108989063B (en) Group account data processing method, device and equipment and readable storage medium
CN111158960A (en) Distributed abnormal data processing method and device based on memory
CN115661994A (en) UWB technology-based access control method and device and terminal equipment
CN114912880A (en) False duty processing method and device, computer equipment and storage medium
CN113469699A (en) Transfer processing method and device
CN110163606B (en) Refund method and device based on blockchain and electronic equipment
CN112069222A (en) Enterprise policy query system based on big data

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