WO2020233064A1 - 基于功能测试的因素影响程度确定方法、装置及终端设备 - Google Patents
基于功能测试的因素影响程度确定方法、装置及终端设备 Download PDFInfo
- Publication number
- WO2020233064A1 WO2020233064A1 PCT/CN2019/121679 CN2019121679W WO2020233064A1 WO 2020233064 A1 WO2020233064 A1 WO 2020233064A1 CN 2019121679 W CN2019121679 W CN 2019121679W WO 2020233064 A1 WO2020233064 A1 WO 2020233064A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- tested
- function
- environment
- duration
- program corresponding
- Prior art date
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3664—Environments for testing or debugging software
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3672—Test management
- G06F11/3688—Test management for test execution, e.g. scheduling of test suites
Definitions
- This application belongs to the field of data processing technology, and in particular relates to a method, a device, a terminal device, and a computer non-volatile readable storage medium for determining the degree of influence of a factor based on a function test.
- the signal environment is usually replaced by manual movement.
- a tester holds a terminal device for functional testing in places with weak signals, such as elevators, underground parking garages, or subways.
- weak signals such as elevators, underground parking garages, or subways.
- the network factors that cause weak signals are unclear and the specific values are uncertain, so the degree of influence of each network factor cannot be determined based on the implementation.
- the prior art cannot determine the degree of influence of different network factors on the program corresponding to the function to be tested.
- the embodiments of the present application provide a method, a device, a terminal device, and a computer non-volatile readable storage medium for determining the degree of influence of a factor based on a functional test, to solve the problem that the degree of influence of various network factors cannot be determined in the prior art.
- the first aspect of the embodiments of the present application provides a method for determining the degree of influence of factors based on functional testing, including:
- Acquire at least two sets of environmental parameters to be tested select any one of the at least two groups as the target group, and configure the network environment as the target group corresponding to the environmental parameters to be tested according to the environmental parameters to be tested in the target group Test environment, and execute the program corresponding to the function to be tested in the environment to be tested, and determine the duration of execution of the program corresponding to the function to be tested as the test duration of the target group, until the test duration of each group is obtained.
- the duration of the test corresponding to the environmental parameter to be tested wherein each group of environmental parameters to be tested corresponds to at least one network factor, and the network factor is a weak signal factor;
- the second aspect of the embodiments of the present application provides a device for determining the degree of influence of a factor based on a function test, including:
- the first execution unit is configured to configure the network environment as a standard environment according to preset standard environmental parameters, and execute the program corresponding to the function to be tested in the standard environment, and execute the program used to complete the program corresponding to the function to be tested
- the duration is determined as the standard duration
- the second execution unit is configured to obtain at least two sets of environmental parameters to be tested, select any one of the at least two sets as the target group, and configure the network environment as the target group according to the environmental parameters to be tested in the target group
- the environment to be tested corresponding to the environmental parameter to be tested, and the program corresponding to the function to be tested is executed in the environment to be tested, and the time taken to execute the program corresponding to the function to be tested is determined as the test of the target group Duration, until the test duration corresponding to each group of the environmental parameters to be tested is obtained, wherein each group of the environmental parameters to be tested corresponds to at least one network factor, and the network factor is a weak signal factor;
- An alarm value determination unit configured to determine a ratio between the test duration and the standard duration as an alert value, and establish a mapping relationship between the alert value and all the network factors corresponding to the test duration;
- a sorting unit configured to perform an average operation on all the alarm values corresponding to each of the network factors to obtain a measurement value, sort all the network factors according to the measurement value, and output all the network factors after sorting .
- a third aspect of the embodiments of the present application provides a terminal device.
- the terminal device includes a memory, a processor, and computer-readable instructions that are stored in the memory and run on the processor.
- the processor The following steps are implemented when the computer-readable instruction is executed:
- Acquire at least two sets of environmental parameters to be tested select any one of the at least two groups as the target group, and configure the network environment as the target group corresponding to the environmental parameters to be tested according to the environmental parameters to be tested in the target group Test environment, and execute the program corresponding to the function to be tested in the environment to be tested, and determine the duration of execution of the program corresponding to the function to be tested as the test duration of the target group, until the test duration of each group is obtained.
- the duration of the test corresponding to the environmental parameter to be tested wherein each group of environmental parameters to be tested corresponds to at least one network factor, and the network factor is a weak signal factor;
- the fourth aspect of the embodiments of the present application provides a computer non-volatile readable storage medium, the computer non-volatile readable storage medium stores computer readable instructions, and the computer readable instructions are executed by a processor When implementing the following steps:
- Acquire at least two sets of environmental parameters to be tested select any one of the at least two groups as the target group, and configure the network environment as the target group corresponding to the environmental parameters to be tested according to the environmental parameters to be tested in the target group Test environment, and execute the program corresponding to the function to be tested in the environment to be tested, and determine the duration of execution of the program corresponding to the function to be tested as the test duration of the target group, until the test duration of each group is obtained.
- the duration of the test corresponding to the environmental parameter to be tested wherein each group of environmental parameters to be tested corresponds to at least one network factor, and the network factor is a weak signal factor;
- the embodiment of the application configures the environment to be tested according to different network factors, obtains the test duration in the environment to be tested, and calculates the measurement value corresponding to each network factor according to the test duration. The factors are sorted, and all the network factors after sorting are finally output.
- the embodiment of the application configures the environment to be tested related to the determined network factor, and analyzes the execution of the program corresponding to the function to be tested in the environment to be tested, and quantifies each The degree of influence of network factors realizes the accurate measurement of the degree of influence, which is convenient for testers to optimize the program corresponding to the function to be tested according to the degree of influence of different network factors.
- FIG. 1 is an implementation flowchart of a method for determining the degree of influence of a factor based on a function test provided in Embodiment 1 of the present application;
- FIG. 2 is an implementation flowchart of the method for determining the degree of influence of a factor based on a function test provided in Embodiment 2 of the present application;
- FIG. 3 is an implementation flowchart of a method for determining the degree of influence of a factor based on a function test provided in Embodiment 3 of the present application;
- FIG. 4 is a structural block diagram of a device for determining the degree of influence of a factor based on a function test according to a fourth embodiment of the present application;
- FIG. 5 is a schematic diagram of a terminal device provided in Embodiment 5 of the present application.
- Figure 1 shows the implementation process of the method for determining the degree of influence of factors based on functional testing provided by an embodiment of the present application, which is described in detail as follows:
- the network environment is configured as a standard environment according to preset standard environmental parameters, and the program corresponding to the function to be tested is executed in the standard environment, and the time taken to execute the program corresponding to the function to be tested is determined as Standard duration.
- the execution of the program corresponding to the function to be tested in the standard environment is first analyzed, specifically, according to the forecast Set the standard environment parameters to configure the network environment of the terminal device as a standard environment, and execute the program corresponding to the function to be tested in the standard environment, and obtain the time taken to execute the program corresponding to the function to be tested.
- this step The obtained duration is named the standard duration.
- the specific types of functions to be tested are not limited in the embodiments of this application.
- the functions to be tested can be functions such as data statistics, step count monitoring, or online shopping.
- the network factors in the embodiments of this application It specifically refers to the factors that cause weak signals, such as low bandwidth, high delay, or high packet loss rate.
- Testers can predefine the types of network factors.
- the above standard environmental parameters can be customized by the tester in advance, or after obtaining the expected network environment of the program corresponding to the function to be tested (such as 4G or Wi-Fi, etc.), the standard environmental parameters can be set to match the expected network environment.
- the environmental parameters are the same.
- the environmental parameters in the embodiments of this application include uplink bandwidth, downlink bandwidth, uplink packet loss rate, downlink packet loss rate, uplink delay, and downlink delay.
- environmental parameters may also include More content related to the web.
- the standard environment parameter in order to prevent the obtained standard duration from being affected by any network factor, can be set to be incompatible with all network factors.
- the uplink bandwidth in the standard environment parameter can be set as 33000 kilobits per second (kbps)
- downlink bandwidth is 40000kbps
- uplink packet loss rate and downlink packet loss rate are both 0
- uplink delay and downlink delay are both 1 millisecond
- the standard environment configured according to this standard environment is similar
- the operation of configuring the standard environment can be implemented based on open source network simulation tools. Through the above method, the accuracy of subsequent analysis based on the standard duration is improved.
- At least two sets of environmental parameters to be tested are acquired, any one of the at least two sets is selected as a target group, and the network environment is configured as the environment to be tested according to the environmental parameters to be tested of the target group
- the environment to be tested corresponding to the parameter, and the program corresponding to the function to be tested is executed in the environment to be tested, and the time taken to complete the program corresponding to the function to be tested is determined as the test duration of the target group until Until the test duration corresponding to each group of the environmental parameters to be tested is obtained, wherein each group of the environmental parameters to be tested corresponds to at least one network factor, and the network factor is a weak signal factor.
- At least two sets of environmental parameters to be tested are preset in the embodiment of this application.
- each set of environmental parameters to be tested corresponds to at least one network factor
- all groups of environmental parameters to be tested cover all types of defined network factors.
- the defined network factors include low bandwidth, high packet loss rate, and high latency
- you can set a set of environmental parameters to be tested, ParameterA to correspond to the network factors of low bandwidth, and specifically set the uplink bandwidth in ParameterA to
- the downlink bandwidth is set to 32kbps, and the rest of the content in ParameterA is set to be consistent with the standard environmental parameters (when the standard environmental parameters are the example in step S101, set the uplink packet loss rate and the downlink packet loss rate in ParameterA to both 0, both the upstream and downstream delays are 1 millisecond); set the network factor corresponding to another set of environmental parameters ParameterB to be high packet loss rate, specifically set both the upstream packet loss rate and the downstream packet loss rate in ParameterB 90%, set the rest of the content in ParameterB to be consistent with the standard environmental parameters; set the network factor corresponding to another set of environmental parameters to be tested ParameterC to be high latency, specifically set both the uplink and downlink delays in ParameterC For 350 milliseconds, set the rest of ParameterC to
- network factors can be set to correspond to more different values (for example, the value corresponding to low bandwidth is set to 33kbps), and more can be defined.
- Multiple network factors, such as subdividing upstream and downstream, are defined as network factors with low upstream bandwidth and network factors with low downstream bandwidth.
- the environment parameters of the target group to be tested configure the network environment of the terminal device as the environment to be tested, execute the program corresponding to the function to be tested in the environment to be tested, and determine the duration of execution of the program corresponding to the function to be tested as the test duration operation , Until the test duration corresponding to each group of environmental parameters to be tested is obtained.
- the test duration corresponding to the environment to be tested is set to the preset The timeout period of. Since the environment to be tested is a weak signal environment, the program corresponding to the function to be tested may not be able to be executed. For this situation, the embodiment of this application presets a timeout period and sets the function to be tested in the environment to be tested After the corresponding program, if the program corresponding to the function to be tested has not been completed after the preset timeout period, the test duration corresponding to the environment to be tested is set to the preset timeout duration to facilitate subsequent calculations.
- the ratio between the test duration and the standard duration is determined as an alarm value, and a mapping relationship between the alarm value and all the network factors corresponding to the test duration is established.
- the ratio between the test duration and the standard duration is calculated, and the obtained ratio is named the alarm value.
- the alarm value is mapped to all network factors corresponding to the test duration. relationship. For example, if the standard duration is 10 seconds, and a certain test duration is 20 seconds, the alarm value corresponding to the test duration is calculated to be 2.
- S104 perform an average operation on all the alarm values corresponding to each of the network factors to obtain a measurement value, sort all the network factors according to the measurement value, and output all the network factors after sorting.
- the network factor corresponding to the tested environmental parameter ParameterD is FactorD
- the network factor corresponding to the tested environmental parameter ParameterE is FactorE and FactorF
- the network factor corresponding to the tested environmental parameter ParameterF is FactorF.
- the obtained measurement value indicates the degree of influence of the corresponding network factor on the program corresponding to the function to be tested, and the higher the measurement value, the greater the degree of influence of the corresponding network factor. Therefore, all network factors are sorted based on the measurement value.
- the sorting can be performed based on the order of the measurement value from large to small or from small to large.
- the embodiment of the present application does not limit it, and finally outputs all the network factors after sorting.
- Testers can optimize the code and function of the program corresponding to the function to be tested according to the sorted network factors to overcome the influence of the network factors with a greater degree of influence on the program corresponding to the function to be tested, and try to avoid the weak signal of the program corresponding to the function to be tested Unstable operation in the environment.
- the network factors are sorted according to the order of the measured value, and all the network factors after sorting are located
- the forefront network factor is the high downlink latency, and the tester can optimize the underlying code of the program corresponding to the function to be tested according to the network factor, which can specifically reduce the prompt content of the voting prompt or simplify the interactive authentication with the server Process etc.
- the embodiment of the application deploys different environments to be tested and calculates the measurement values to quantify the degree of influence of different network factors on the program corresponding to the function to be tested, and realize the degree of influence Accurate determination.
- Figure 2 shows a method for determining the degree of influence of a factor based on a function test after expansion on the basis of Embodiment 1 of the present application.
- the embodiment of the present application provides an implementation flow chart of the method for determining the degree of influence of a factor based on functional testing. As shown in FIG. 2, the method for determining the degree of influence of the factor may include the following steps:
- the function to be tested may be of different types.
- the function to be tested may be a function that can be executed repeatedly, such as a voting function or a refresh function.
- the standard environment and different functions to be tested can be directly configured Environment, and get the standard duration in the standard environment, and get the test duration in the environment to be tested.
- the function to be tested may also be a function that cannot be executed again after execution.
- the function to be tested is a function that jumps to page B by clicking a button on page A, because after executing the program corresponding to the function to be tested, the terminal The current page of the device is page B, and it is naturally impossible to click the button on page A in the terminal device.
- the state of the terminal device before the execution of the program corresponding to the function to be tested is saved as an initial state.
- the initial state may be a page state or a data state, etc., which is determined according to actual application scenarios.
- the function to be tested is a page jump function
- the initial state includes an initial page
- the page return function is triggered to switch the current page to the initial page.
- the saved initial state includes at least one initial page, and after detecting that the page jump function is executed, the page return function on the terminal device (which can be used for Page return control), switch the current page of the terminal device to the initial page.
- the function to be tested is a data operation function
- a first operation sentence corresponding to the data operation function is obtained, and a second operation sentence corresponding to the first operation sentence is created, wherein the execution result of the first operation sentence is the same as The execution result of the second operation statement is reversed; if it is detected that the data operation function is executed, the second operation statement is executed.
- the function to be tested is a data operation function (its role is to operate on the front end of the terminal device or the data on the server, such as adding data or deleting data, etc.)
- First obtain the first operation statement corresponding to the data operation function, which is used to be executed to realize the data operation function, and create a second operation statement corresponding to the first operation statement, where the execution of the first operation statement The result is the opposite of the execution result of the second operation statement.
- the first operation statement is to delete data A in the server
- the second operation statement is to add data A to the server.
- the first operation statement and the second operation statement can be structured Query language (Structured Query Language (SQL) statements may also be other types of statements, which are not limited in the embodiment of the present application.
- SQL Structured Query Language
- the state of the application program before the execution of the program corresponding to the function to be tested is saved as the initial state, if it is detected that the program corresponding to the function to be tested is executed, the The current state of the application is rolled back to the initial state.
- the embodiment of the present application uses a rollback operation to ensure that the subsequent execution of the program corresponding to the function to be tested is not affected by the previous execution result, which improves the application of determining the degree of influence of network factors Sex.
- the process of executing the program corresponding to the function to be tested in a standard environment and determining the time taken to complete the program corresponding to the function to be tested as the standard time length is refined
- a method for determining the degree of influence of factors based on functional testing is obtained later.
- the embodiment of the present application provides an implementation flow chart of the method for determining the degree of influence of a factor based on functional testing. As shown in FIG. 3, the method for determining the degree of influence of the factor may include the following steps:
- a preset function request and function response corresponding to the program corresponding to the function to be tested are acquired, and the program corresponding to the function to be tested is triggered in the standard environment, wherein the function request is The identifier for starting execution of the program corresponding to the function to be tested, and the function response is the identifier for completing execution of the program corresponding to the function to be tested.
- the function request and function response corresponding to the program corresponding to the function to be tested can be preset, where the function request is the identification of the start of execution of the program corresponding to the function to be tested ,
- the function response is the identification of the completion of the program execution corresponding to the function to be tested.
- the program corresponding to the function to be tested is a function to access a certain website, and the program corresponding to the function to be tested is based on the HyperText Transfer Protocol (HyperText Transfer Protocol, HTTP) to achieve access
- set the function response as an HTTP response message that contains a status code of 200 (status code 200 represents the success of this visit) Text.
- the trigger operation of the program corresponding to the function to be tested can be specified in advance, such as triggering a preset control or executing a preset script file.
- the function request and function response are captured from the data initiated and received by the terminal device.
- the log of the terminal device can be obtained, and the function request and function response can be used as search conditions in the log.
- crawling it can also be achieved based on a third-party data packet capturing tool such as Fidder. If the function request and function response corresponding to the program corresponding to the function to be tested are captured, the sending time of the function request and the receiving time of the function response are obtained, and the absolute value of the difference between the sending time and the receiving time is used as the standard duration , To output.
- the test duration in the environment to be tested can also be determined by similar steps S301 to S302, that is, the program corresponding to the function to be tested is triggered in the environment to be tested. After the function request and the function response are obtained, the sending time of the function request and the receiving time of the function response are obtained, and the absolute value of the difference between the sending time and the receiving time is determined as the test duration.
- the program corresponding to the function to be tested is triggered in the standard environment. If the function request and function response corresponding to the program corresponding to the function to be tested are captured, the function is acquired The sending time of the request and the receiving time of the function response, the absolute value of the difference between the sending time and the receiving time is determined as the standard duration. The embodiment of this application calculates the standard duration by capturing the function request and the function response, which improves The accuracy of the obtained standard duration.
- FIG. 4 shows a structural block diagram of the device for determining the degree of influence of a factor based on a function test provided by an embodiment of the present application.
- the device for determining the degree of influence of a factor includes:
- the first execution unit 41 is configured to configure the network environment as a standard environment according to preset standard environmental parameters, and execute the program corresponding to the function to be tested in the standard environment, and execute the program corresponding to the function to be tested
- the duration of is determined as the standard duration
- the second execution unit 42 is configured to obtain at least two groups of environmental parameters to be tested, select any one of the at least two groups as a target group, and configure the network environment as the target group according to the environmental parameters to be tested in the target group.
- the environment to be tested corresponding to the environmental parameter to be tested, and the program corresponding to the function to be tested is executed in the environment to be tested, and the time taken to execute the program corresponding to the function to be tested is determined as the target group
- the test duration until the test duration corresponding to each group of the environmental parameters to be tested is obtained, wherein each group of the environmental parameters to be tested corresponds to at least one network factor, and the network factor is a weak signal factor;
- the alarm value determining unit 43 is configured to determine the ratio between the test duration and the standard duration as an alert value, and establish a mapping relationship between the alert value and all the network factors corresponding to the test duration;
- the sorting unit 44 is configured to perform an average operation on all the alarm values corresponding to each of the network factors to obtain a measurement value, sort all the network factors according to the measurement value, and output all the networks after sorting factor.
- the device for determining the degree of influence of the factor further includes:
- the saving unit is configured to save the state that the program corresponding to the function to be tested was in before execution as the initial state
- the rollback unit is configured to roll back the current state to the initial state if it is detected that the program corresponding to the function to be tested has been executed in the standard environment or in the environment to be tested.
- the rollback unit includes:
- the switching unit is used to trigger the page return function to switch the current page to the initial page.
- the rollback unit includes:
- the creation unit is configured to obtain a first operation sentence corresponding to the data operation function, and create a second operation sentence corresponding to the first operation sentence, wherein the execution result of the first operation sentence corresponds to the first operation sentence The execution results of the two operation statements are reversed;
- the statement execution unit is used to execute the second operation statement.
- the first execution unit 41 includes:
- the trigger unit is used to obtain preset function requests and function responses corresponding to the program corresponding to the function to be tested, and trigger the program corresponding to the function to be tested in the standard environment, wherein the function request is The identification of the start of execution of the program corresponding to the function to be tested, and the function response is the identification of the completion of execution of the program corresponding to the function to be tested;
- the grabbing unit is configured to obtain the sending time of the function request and the receiving time of the function response if the function request and the function response are grabbed, and compare the sending time with the receiving time The absolute value of the difference between is determined as the standard duration.
- the second execution unit 42 further includes:
- the setting unit is configured to set the test duration corresponding to the environment to be tested to a preset timeout duration if the program corresponding to the function to be tested has not been completed after a preset timeout period.
- the device for determining the degree of influence of a factor determines the degree of influence of the program corresponding to the function to be tested by the network factor in a quantitative manner, so that the tester can optimize the program corresponding to the function to be tested according to the degree of influence of different network factors.
- Fig. 5 is a schematic diagram of a terminal device provided by an embodiment of the present application.
- the terminal device 5 of this embodiment includes: a processor 50, a memory 51, and computer-readable instructions 52 stored in the memory 51 and running on the processor 50, such as a function test program .
- the processor 50 executes the computer-readable instructions 52, the steps in the above-mentioned method embodiments for determining the degree of influence of factors based on functional tests are implemented, such as steps S101 to S104 shown in FIG. 1.
- the processor 50 executes the computer-readable instruction 52
- the function of each unit in the above-mentioned device embodiment for determining the degree of influence of the factor based on the function test is implemented, for example, the functions of the units 41 to 44 shown in FIG. 4.
- the computer-readable instruction 52 may be divided into one or more units, and the one or more units are stored in the memory 51 and executed by the processor 50 to complete the application .
- the one or more units may be an instruction segment of a series of computer-readable instructions capable of completing specific functions, and the instruction segment is used to describe the execution process of the computer-readable instruction 52 in the terminal device 5.
- the computer-readable instruction 52 may be divided into a first execution unit, a second execution unit, an alarm value determination unit, and a sorting unit. The specific functions of each unit are as follows:
- the first execution unit is configured to configure the network environment as a standard environment according to preset standard environmental parameters, and execute the program corresponding to the function to be tested in the standard environment, and execute the program used to complete the program corresponding to the function to be tested
- the duration is determined as the standard duration
- the second execution unit is configured to obtain at least two sets of environmental parameters to be tested, select any one of the at least two sets as the target group, and configure the network environment as the target group according to the environmental parameters to be tested in the target group
- the environment to be tested corresponding to the environmental parameter to be tested, and the program corresponding to the function to be tested is executed in the environment to be tested, and the time taken to execute the program corresponding to the function to be tested is determined as the test of the target group Duration, until the test duration corresponding to each group of the environmental parameters to be tested is obtained, wherein each group of the environmental parameters to be tested corresponds to at least one network factor, and the network factor is a weak signal factor;
- An alarm value determination unit configured to determine a ratio between the test duration and the standard duration as an alert value, and establish a mapping relationship between the alert value and all the network factors corresponding to the test duration;
- a sorting unit configured to perform an average operation on all the alarm values corresponding to each of the network factors to obtain a measurement value, sort all the network factors according to the measurement value, and output all the network factors after sorting .
- the terminal device 5 may be a computing device such as a desktop computer, a notebook, a palmtop computer, and a cloud server.
- the terminal device may include, but is not limited to, a processor 50 and a memory 51.
- FIG. 5 is only an example of the terminal device 5, and does not constitute a limitation on the terminal device 5. It may include more or less components than shown in the figure, or a combination of certain components, or different components.
- the terminal device may also include input and output devices, network access devices, buses, etc.
- the so-called processor 50 may be a central processing unit (Central Processing Unit, CPU), it can also be other general-purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc.
- the general-purpose processor may be a microprocessor or the processor may also be any conventional processor or the like.
- the memory 51 may be an internal storage unit of the terminal device 5, such as a hard disk or a memory of the terminal device 5.
- the memory 51 may also be an external storage device of the terminal device 6, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), and a secure digital (Secure Digital, SD) equipped on the terminal device 5.
- Smart Media Card, SMC Smart Media Card
- SD Secure Digital
- the memory 51 may also include both an internal storage unit of the terminal device 5 and an external storage device.
- the memory 51 is used to store the computer readable instructions and other programs and data required by the terminal device.
- the memory 51 can also be used to temporarily store data that has been output or will be output.
- Non-volatile memory may include Read-Only Memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory.
- ROM Read-Only Memory
- PROM Programmable ROM
- EPROM Electrically Programmable ROM
- EEPROM Electrically Erasable Programmable ROM
- Volatile memory may include random access memory (Random Access Memory, RAM) or external cache memory.
- RAM Random Access Memory
- RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous chain Channel (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.
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)
- Debugging And Monitoring (AREA)
- Telephonic Communication Services (AREA)
Abstract
Description
Claims (20)
- 一种基于功能测试的因素影响程度确定方法,其特征在于,包括:根据预设的标准环境参数将网络环境配置为标准环境,并在所述标准环境下执行待测功能对应的程序,将执行完成所述待测功能对应的程序所用的时长确定为标准时长;获取至少两组待测环境参数,选取至少两组中的任一组作为目标组,根据所述目标组的所述待测环境参数将所述网络环境配置为所述待测环境参数对应的待测环境,并在所述待测环境下执行所述待测功能对应的程序,将执行完成所述待测功能对应的程序所用的时长确定为所述目标组的测试时长,直到得到每组所述待测环境参数对应的所述测试时长为止,其中,每组所述待测环境参数对应至少一个网络因素,所述网络因素为弱信号因素;将所述测试时长与所述标准时长之间的比值确定为告警值,并将所述告警值与所述测试时长对应的所有所述网络因素建立映射关系;对每个所述网络因素对应的所有所述告警值进行均值运算得到衡量值,按照所述衡量值对所有所述网络因素进行排序,并输出排序后的所有所述网络因素。
- 如权利要求1所述的因素影响程度确定方法,其特征在于,还包括:将在所述待测功能对应的程序执行之前处于的状态保存为初始状态;若检测到在所述标准环境下或在所述待测环境下执行完毕所述待测功能对应的程序,则将当前状态回滚为所述初始状态。
- 如权利要求2所述的因素影响程度确定方法,其特征在于,若所述待测功能为页面跳转功能,且所述初始状态包括一个初始页面,则所述将当前状态回滚为所述初始状态,包括:触发页面返回功能,将当前页面切换为所述初始页面。
- 如权利要求2所述的因素影响程度确定方法,其特征在于,若所述待测功能为数据操作功能,则所述将当前状态回滚为所述初始状态,包括:获取与所述数据操作功能对应的第一操作语句,并创建与所述第一操作语句对应的第二操作语句,其中,所述第一操作语句的执行结果与所述第二操作语句的执行结果相逆;执行所述第二操作语句。
- 如权利要求1所述的因素影响程度确定方法,其特征在于,所述在所述标准环境下执行待测功能对应的程序,将执行完成所述待测功能对应的程序所用的时长确定为标准时长,包括:获取预设的与所述待测功能对应的程序对应的功能请求与功能应答,并在所述标准环境下触发所述待测功能对应的程序,其中,所述功能请求为所述待测功能对应的程序开始执行的标识,所述功能应答为所述待测功能对应的程序执行完成的标识;若抓取到所述功能请求和所述功能应答,则获取所述功能请求的发送时间,并获取所述功能应答的接收时间,将所述发送时间与所述接收时间之间的差值的绝对值确定为所述标准时长。
- 如权利要求1所述的因素影响程度确定方法,其特征在于,所述在所述待测环境下执行所述待测功能对应的程序之后,还包括:若经过预设的超时时间段所述待测功能对应的程序仍未执行完成,则将所述待测环境对应的所述测试时长设置为预设的超时时长。
- 一种基于功能测试的因素影响程度确定装置,其特征在于,包括:第一执行单元,用于根据预设的标准环境参数将网络环境配置为标准环境,并在所述标准环境下执行待测功能对应的程序,将执行完成所述待测功能对应的程序所用的时长确定为标准时长;第二执行单元,用于获取至少两组待测环境参数,选取至少两组中的任一组作为目标组,根据所述目标组的所述待测环境参数将所述网络环境配置为所述待测环境参数对应的待测环境,并在所述待测环境下执行所述待测功能对应的程序,将执行完成所述待测功能对应的程序所用的时长确定为所述目标组的测试时长,直到得到每组所述待测环境参数对应的所述测试时长为止,其中,每组所述待测环境参数对应至少一个网络因素,所述网络因素为弱信号因素;告警值确定单元,用于将所述测试时长与所述标准时长之间的比值确定为告警值,并将所述告警值与所述测试时长对应的所有所述网络因素建立映射关系;排序单元,用于对每个所述网络因素对应的所有所述告警值进行均值运算得到衡量值,按照所述衡量值对所有所述网络因素进行排序,并输出排序后的所有所述网络因素。
- 根据权利要求7所述的因素影响程度确定装置,其特征在于,所述因素影响程度确定装置还包括:保存单元,用于将所述待测功能对应的程序执行之前处于的状态保存为初始状态;回滚单元,用于若检测到在所述标准环境下或在所述待测环境下执行完毕所述待测功能对应的程序,则将当前状态回滚为所述初始状态。
- 一种终端设备,其特征在于,包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机可读指令,所述处理器执行所述计算机可读指令时实现如下步骤:根据预设的标准环境参数将网络环境配置为标准环境,并在所述标准环境下执行待测功能对应的程序,将执行完成所述待测功能对应的程序所用的时长确定为标准时长;获取至少两组待测环境参数,选取至少两组中的任一组作为目标组,根据所述目标组的所述待测环境参数将所述网络环境配置为所述待测环境参数对应的待测环境,并在所述待测环境下执行所述待测功能对应的程序,将执行完成所述待测功能对应的程序所用的时长确定为所述目标组的测试时长,直到得到每组所述待测环境参数对应的所述测试时长为止,其中,每组所述待测环境参数对应至少一个网络因素,所述网络因素为弱信号因素;将所述测试时长与所述标准时长之间的比值确定为告警值,并将所述告警值与所述测试时长对应的所有所述网络因素建立映射关系;对每个所述网络因素对应的所有所述告警值进行均值运算得到衡量值,按照所述衡量值对所有所述网络因素进行排序,并输出排序后的所有所述网络因素。
- 如权利要求9所述的终端设备,其特征在于,所述处理器执行所述计算机可读指令时还实现如下步骤:将在所述待测功能对应的程序执行之前处于的状态保存为初始状态;若检测到在所述标准环境下或在所述待测环境下执行完毕所述待测功能对应的程序,则将当前状态回滚为所述初始状态。
- 如权利要求10所述的终端设备,其特征在于,若所述待测功能为页面跳转功能,且所述初始状态包括一个初始页面,则所述将当前状态回滚为所述初始状态,包括:触发页面返回功能,将当前页面切换为所述初始页面。
- 如权利要求10所述的终端设备,其特征在于,若所述待测功能为数据操作功能,则所述将当前状态回滚为所述初始状态,包括:获取与所述数据操作功能对应的第一操作语句,并创建与所述第一操作语句对应的第二操作语句,其中,所述第一操作语句的执行结果与所述第二操作语句的执行结果相逆;执行所述第二操作语句。
- 根据权利要求9所述的终端设备,其特征在于,所述在所述标准环境下执行待测功能对应的程序,将执行完成所述待测功能对应的程序所用的时长确定为标准时长,包括:获取预设的与所述待测功能对应的程序对应的功能请求与功能应答,并在所述标准环境下触发所述待测功能对应的程序,其中,所述功能请求为所述待测功能对应的程序开始执行的标识,所述功能应答为所述待测功能对应的程序执行完成的标识;若抓取到所述功能请求和所述功能应答,则获取所述功能请求的发送时间,并获取所述功能应答的接收时间,将所述发送时间与所述接收时间之间的差值的绝对值确定为所述标准时长。
- 根据权利要求9所述的终端设备,其特征在于,所述在所述待测环境下执行所述待测功能对应的程序之后,所述处理器执行所述计算机可读指令时还实现如下步骤:若经过预设的超时时间段所述待测功能对应的程序仍未执行完成,则将所述待测环境对应的所述测试时长设置为预设的超时时长。
- 一种计算机非易失性可读存储介质,所述计算机非易失性可读存储介质存储有计算机可读指令,其特征在于,所述计算机可读指令被处理器执行时实现如下步骤:根据预设的标准环境参数将网络环境配置为标准环境,并在所述标准环境下执行待测功能对应的程序,将执行完成所述待测功能对应的程序所用的时长确定为标准时长;获取至少两组待测环境参数,选取至少两组中的任一组作为目标组,根据所述目标组的所述待测环境参数将所述网络环境配置为所述待测环境参数对应的待测环境,并在所述待测环境下执行所述待测功能对应的程序,将执行完成所述待测功能对应的程序所用的时长确定为所述目标组的测试时长,直到得到每组所述待测环境参数对应的所述测试时长为止,其中,每组所述待测环境参数对应至少一个网络因素,所述网络因素为弱信号因素;将所述测试时长与所述标准时长之间的比值确定为告警值,并将所述告警值与所述测试时长对应的所有所述网络因素建立映射关系;对每个所述网络因素对应的所有所述告警值进行均值运算得到衡量值,按照所述衡量值对所有所述网络因素进行排序,并输出排序后的所有所述网络因素。
- 根据权利要求15所述的计算机非易失性可读存储介质,其特征在于,所述将监控到的所述触摸事件添加至目标事件集,包括:确定所述目标事件集内的交互事件,其中,所述交互事件用于在被执行时触发与服务器之间的交互;所述在所述目标事件集的执行过程中将所述源网络环境切换至所述待测环境集内的所述目的网络环境,包括:若检测到正在执行所述交互事件,则将所述源网络环境切换至所述待测环境集内的所述目的网络环境。
- 根据权利要求16所述的计算机非易失性可读存储介质,其特征在于,若所述待测功能为页面跳转功能,且所述初始状态包括一个初始页面,则所述将当前状态回滚为所述初始状态,包括:触发页面返回功能,将当前页面切换为所述初始页面。
- 根据权利要求16所述的计算机非易失性可读存储介质,其特征在于,若所述待测功能为数据操作功能,则所述将当前状态回滚为所述初始状态,包括:获取与所述数据操作功能对应的第一操作语句,并创建与所述第一操作语句对应的第二操作语句,其中,所述第一操作语句的执行结果与所述第二操作语句的执行结果相逆;执行所述第二操作语句。
- 根据权利要求15所述的计算机非易失性可读存储介质,其特征在于,所述在所述标准环境下执行待测功能对应的程序,将执行完成所述待测功能对应的程序所用的时长确定为标准时长,包括:获取预设的与所述待测功能对应的程序对应的功能请求与功能应答,并在所述标准环境下触发所述待测功能对应的程序,其中,所述功能请求为所述待测功能对应的程序开始执行的标识,所述功能应答为所述待测功能对应的程序执行完成的标识;若抓取到所述功能请求和所述功能应答,则获取所述功能请求的发送时间,并获取所述功能应答的接收时间,将所述发送时间与所述接收时间之间的差值的绝对值确定为所述标准时长。
- 根据权利要求15所述的计算机非易失性可读存储介质,其特征在于,所述在所述待测环境下执行所述待测功能对应的程序之后,所述计算机可读指令被处理器执行时还实现如下步骤:若经过预设的超时时间段所述待测功能对应的程序仍未执行完成,则将所述待测环境对应的所述测试时长设置为预设的超时时长。
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910424156.5 | 2019-05-21 | ||
CN201910424156.5A CN110245076A (zh) | 2019-05-21 | 2019-05-21 | 基于功能测试的因素影响程度确定方法、装置及终端设备 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2020233064A1 true WO2020233064A1 (zh) | 2020-11-26 |
Family
ID=67884707
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2019/121679 WO2020233064A1 (zh) | 2019-05-21 | 2019-11-28 | 基于功能测试的因素影响程度确定方法、装置及终端设备 |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN110245076A (zh) |
WO (1) | WO2020233064A1 (zh) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113778768A (zh) * | 2021-08-24 | 2021-12-10 | 深圳市联影高端医疗装备创新研究院 | 重建服务器测试方法、装置、计算机设备和存储介质 |
CN113806151A (zh) * | 2021-09-07 | 2021-12-17 | 深圳宝新创科技股份有限公司 | 一种时序参数确定方法、装置、电子设备和*** |
CN115686984A (zh) * | 2022-12-29 | 2023-02-03 | 江西萤火虫微电子科技有限公司 | 板卡功能测试方法、装置、计算机及可读存储介质 |
CN117395175A (zh) * | 2023-10-08 | 2024-01-12 | 宁畅信息产业(北京)有限公司 | 网络应用软件测试方法、装置、设备、介质和程序产品 |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110245076A (zh) * | 2019-05-21 | 2019-09-17 | 深圳壹账通智能科技有限公司 | 基于功能测试的因素影响程度确定方法、装置及终端设备 |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20170132111A1 (en) * | 2013-06-20 | 2017-05-11 | Microsoft Technology Licensing, Llc | Monitoring mobile application performance |
CN108733568A (zh) * | 2018-05-25 | 2018-11-02 | 平安科技(深圳)有限公司 | 应用测试方法、装置、设备及可读存储介质 |
CN110232022A (zh) * | 2019-05-21 | 2019-09-13 | 深圳壹账通智能科技有限公司 | 网络环境测试方法、装置及终端设备 |
CN110245076A (zh) * | 2019-05-21 | 2019-09-17 | 深圳壹账通智能科技有限公司 | 基于功能测试的因素影响程度确定方法、装置及终端设备 |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8601439B2 (en) * | 2010-12-09 | 2013-12-03 | Microsoft Corporation | Networked program dependency compatibility analysis |
CN106102143B (zh) * | 2016-05-31 | 2020-01-14 | Oppo广东移动通信有限公司 | 一种应用处理方法和装置 |
CN109086211B (zh) * | 2018-08-22 | 2023-04-07 | 平安科技(深圳)有限公司 | 模拟网络异常处理方法、装置、计算机设备及存储介质 |
CN109240924B (zh) * | 2018-09-03 | 2024-03-08 | 中国平安人寿保险股份有限公司 | 一种应用程序的测试方法及设备 |
-
2019
- 2019-05-21 CN CN201910424156.5A patent/CN110245076A/zh active Pending
- 2019-11-28 WO PCT/CN2019/121679 patent/WO2020233064A1/zh active Application Filing
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20170132111A1 (en) * | 2013-06-20 | 2017-05-11 | Microsoft Technology Licensing, Llc | Monitoring mobile application performance |
CN108733568A (zh) * | 2018-05-25 | 2018-11-02 | 平安科技(深圳)有限公司 | 应用测试方法、装置、设备及可读存储介质 |
CN110232022A (zh) * | 2019-05-21 | 2019-09-13 | 深圳壹账通智能科技有限公司 | 网络环境测试方法、装置及终端设备 |
CN110245076A (zh) * | 2019-05-21 | 2019-09-17 | 深圳壹账通智能科技有限公司 | 基于功能测试的因素影响程度确定方法、装置及终端设备 |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113778768A (zh) * | 2021-08-24 | 2021-12-10 | 深圳市联影高端医疗装备创新研究院 | 重建服务器测试方法、装置、计算机设备和存储介质 |
CN113806151A (zh) * | 2021-09-07 | 2021-12-17 | 深圳宝新创科技股份有限公司 | 一种时序参数确定方法、装置、电子设备和*** |
CN113806151B (zh) * | 2021-09-07 | 2024-01-02 | 深圳宝新创信息技术有限公司 | 一种时序参数确定方法、装置、电子设备和*** |
CN115686984A (zh) * | 2022-12-29 | 2023-02-03 | 江西萤火虫微电子科技有限公司 | 板卡功能测试方法、装置、计算机及可读存储介质 |
CN115686984B (zh) * | 2022-12-29 | 2023-04-07 | 江西萤火虫微电子科技有限公司 | 板卡功能测试方法、装置、计算机及可读存储介质 |
CN117395175A (zh) * | 2023-10-08 | 2024-01-12 | 宁畅信息产业(北京)有限公司 | 网络应用软件测试方法、装置、设备、介质和程序产品 |
Also Published As
Publication number | Publication date |
---|---|
CN110245076A (zh) | 2019-09-17 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2020233064A1 (zh) | 基于功能测试的因素影响程度确定方法、装置及终端设备 | |
WO2016192488A1 (zh) | 灰度发布的评估方法、装置和*** | |
WO2020233065A1 (zh) | 网络环境测试方法、装置及终端设备 | |
JP6564532B2 (ja) | クライアント−サーバトランザクションをアノテーションするためのシステム及び方法 | |
US20140129620A1 (en) | Indicating coverage of web application testing | |
US10374934B2 (en) | Method and program product for a private performance network with geographical load simulation | |
CN111106976B (zh) | 一种cdn网络的探测方法、装置、电子设备及可读存储介质 | |
CN111124702A (zh) | 性能数据采集方法、装置和计算机可读存储介质 | |
CN111078478A (zh) | 服务器压力测试方法、装置和计算机可读存储介质 | |
CN103268448A (zh) | 动态检测移动应用的安全性的方法和*** | |
CN115314255B (zh) | 攻击结果的检测方法、装置、计算机设备和存储介质 | |
CN102880698B (zh) | 一种抓取网站确定方法及装置 | |
CN110633412A (zh) | 页面停留意愿分析方法、装置、计算机设备及存储介质 | |
US20220166702A1 (en) | Fuzzing preprocessing apparatus and method for automating smart network fuzzing | |
CN115221033A (zh) | 接口协议测试方法、装置、计算机可读介质及电子设备 | |
CN110874475A (zh) | 漏洞挖掘方法、漏洞挖掘平台及计算机可读存储介质 | |
CN112433872A (zh) | 一种接口请求超时提醒方法、***及存储介质 | |
CN110825603A (zh) | 页面首次加载时间确定方法、装置、电子设备及存储介质 | |
CN111475388A (zh) | 数据推送的测试方法、装置、计算机设备及存储介质 | |
US20230065492A1 (en) | Method for obtaining browser running data, electronic device, and storage medium | |
CN110580211A (zh) | 监控方法、装置、键盘和存储介质 | |
CN107317723B (zh) | 一种数据处理方法及服务器 | |
CN116319416A (zh) | 一种适用于多节点区块链***的性能测试方法及装置 | |
CN107967363B (zh) | 一种数据处理方法、装置及电子设备 | |
US20160041892A1 (en) | System for discovering bugs using interval algebra query language |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 19929302 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 19929302 Country of ref document: EP Kind code of ref document: A1 |
|
32PN | Ep: public notification in the ep bulletin as address of the adressee cannot be established |
Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205 DATED 05/04/2022) |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 19929302 Country of ref document: EP Kind code of ref document: A1 |