CN107992405A - application software testing method and device - Google Patents
application software testing method and device Download PDFInfo
- Publication number
- CN107992405A CN107992405A CN201610954519.2A CN201610954519A CN107992405A CN 107992405 A CN107992405 A CN 107992405A CN 201610954519 A CN201610954519 A CN 201610954519A CN 107992405 A CN107992405 A CN 107992405A
- Authority
- CN
- China
- Prior art keywords
- application software
- test
- software system
- testing
- reasonable
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 56
- 238000013522 software testing Methods 0.000 title claims abstract description 33
- 238000012360 testing method Methods 0.000 claims abstract description 313
- 230000002159 abnormal effect Effects 0.000 claims abstract description 33
- 230000005856 abnormality Effects 0.000 claims description 22
- 230000008569 process Effects 0.000 claims description 20
- 238000005259 measurement Methods 0.000 abstract 1
- 238000010586 diagram Methods 0.000 description 4
- 238000007726 management method Methods 0.000 description 4
- 238000013024 troubleshooting Methods 0.000 description 4
- 238000005070 sampling Methods 0.000 description 3
- 230000009286 beneficial effect Effects 0.000 description 2
- 230000007488 abnormal function Effects 0.000 description 1
- 230000007613 environmental effect Effects 0.000 description 1
- 230000009916 joint effect Effects 0.000 description 1
- 230000007257 malfunction Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Prevention of errors by analysis, debugging or testing of software
- G06F11/3668—Testing of software
- G06F11/3672—Test management
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)
Abstract
Description
技术领域technical field
本发明涉及测试技术领域,尤其涉及应用软件测试方法及装置。The invention relates to the technical field of testing, in particular to an application software testing method and device.
背景技术Background technique
当使用一种应用软件对另一种应用软件进行跟踪管理时,涉及的两种应用软件一种称为跟踪系统,另一种称为被跟踪系统。被跟踪系统由很多模块(如微服务)组成。也就是说,跟踪系统用于对被跟踪系统进行跟踪,以管理被跟踪系统各个模块的功能。When one application software is used to track and manage another application software, one of the two application software involved is called the tracking system, and the other is called the tracked system. The tracked system consists of many modules (such as microservices). That is to say, the tracking system is used to track the tracked system to manage the functions of each module of the tracked system.
在针对由所述跟踪系统和被跟踪系统组成的应用软件系统进行测试时,由于被跟踪系统的内部模块源代码及相互调用关系是未知的,遇到的问题是在对被跟踪系统的某一个模块进行测试,如测试某一个模块某一个时间段内的被调用次数时,除了用户本身发起的调用导致该模块的调用次数增加外,若被跟踪系统内部某一个或某几个功能模块也在调用该模块,则也会导致调用次数增加。得到的调用次数是两种类型调用次数的和。即在测试时输入一个扰动,得到的结果不是由这一个单独扰动引起的,而是多个扰动的结果的叠加,单独一个扰动引起的结果是获取不到的。When testing the application software system composed of the tracking system and the tracked system, since the source code of the internal modules of the tracked system and the mutual calling relationship are unknown, the problem encountered is that one of the tracked systems Module testing, such as testing the number of times a certain module is called within a certain period of time, in addition to the calls initiated by the user itself leading to an increase in the number of calls to the module, if one or several functional modules in the tracked system are also Calling this module will also increase the number of calls. The resulting call count is the sum of the two types of call counts. That is, when a disturbance is input during the test, the result obtained is not caused by this single disturbance, but the superposition of the results of multiple disturbances, and the result caused by a single disturbance cannot be obtained.
例如,假定测试应用软件系统中被跟踪系统的X服务,用户输入一个值A0,期望获得返回输出值R0。但是由于该应用软件正常工作时,还有其他的服务,如Y服务、Z服务等,也在调用这个待测试X服务,其中Y服务的输入为Y0,Z服务的输入为Z0,导致获取的测试输出值R是输入值A0、Y0、Z0共同作用的结果,不能直接得到R0。由于不同时刻,应用软件中同时调用X服务的服务数量和频率都是不可知的,导致每次获取的输出值R也不是固定值。For example, assume that the X service of the tracked system in the test application software system, the user inputs a value A 0 , and expects to get the returned output value R 0 . However, when the application software is working normally, there are other services, such as Y service and Z service, which are also calling the X service to be tested, wherein the input of the Y service is Y 0 , and the input of the Z service is Z 0 , resulting in The obtained test output value R is the result of the joint action of the input values A 0 , Y 0 , and Z 0 , and R 0 cannot be obtained directly. Since the number and frequency of services simultaneously calling X service in the application software are unknown at different times, the output value R obtained each time is not a fixed value.
因此,现有的对应用软件系统进行测试的方式因为无法获取到单独扰动引起的测试结果,不能快速地判断测试结果是否正常,更不能在测试结果异常时快速找到异常原因。Therefore, the existing methods for testing application software systems cannot quickly determine whether the test results are normal because they cannot obtain the test results caused by individual disturbances, let alone quickly find the cause of the abnormalities when the test results are abnormal.
发明内容Contents of the invention
有鉴于此,本发明的目的在于提供一种应用软件测试方法及装置,以解决至少一个上述技术问题。In view of this, the object of the present invention is to provide an application software testing method and device to solve at least one of the above technical problems.
为实现上述目的,本发明提供一种应用软件测试方法,该方法包括步骤:获取被测应用软件系统的测试输出值的合理区间,所述合理区间根据多次对被测应用软件系统进行自动化测试的测试输出值分析得到;使用所获取的合理区间对被测应用软件系统进行测试;根据测试结果判断所述被测应用软件系统是否发生异常。In order to achieve the above object, the present invention provides a method for testing application software. The method includes the steps of: obtaining a reasonable interval of the test output value of the application software system under test, and the reasonable interval is based on multiple times of performing automated testing on the application software system under test. The test output value is analyzed and obtained; using the obtained reasonable interval to test the tested application software system; and judging whether the tested application software system is abnormal according to the test result.
可选地,所述根据多次对被测应用软件系统进行自动化测试的测试输出值分析得到所述合理区间的过程具体包括:设置自动化测试的时间间隔和次数;每隔所设置时间间隔,对所述被测应用软件系统进行自动化测试并获得测试输出值,直到达到所设置的次数;根据所述测试输出值获得所述合理区间。Optionally, the process of obtaining the reasonable interval based on the analysis of the test output values of the tested application software system for multiple times of automated testing specifically includes: setting the time interval and times of automated testing; The application software system under test performs automated testing and obtains test output values until the set number of times is reached; the reasonable interval is obtained according to the test output values.
可选地,所述根据所述测试输出值获得合理区间的步骤具体包括:统计所述自动化测试得到的多个测试输出值的取值范围;从所述取值范围中去除离散点;将去除离散点后的取值范围确定为所述合理区间。Optionally, the step of obtaining a reasonable interval according to the test output value specifically includes: counting the value range of multiple test output values obtained by the automated test; removing discrete points from the value range; removing The value range after the discrete point is determined as the reasonable interval.
可选地,所述使用所获取的合理区间对被测应用软件系统进行测试的步骤具体包括:对所述被测应用软件系统进行测试,得到该次测试的测试输出值;判断所述测试输出值是否落在所述合理区间的范围内;当所述测试输出值落在所述合理区间的范围内时,确定该次对所述被测应用软件系统的测试结果为通过;当所述测试输出值不在合理区间的范围内时,确定该次对所述被测应用软件系统的测试结果为不通过。Optionally, the step of testing the tested application software system using the obtained reasonable interval specifically includes: testing the tested application software system to obtain a test output value of the test; judging the test output value Whether the value falls within the scope of the reasonable interval; when the test output value falls within the scope of the reasonable interval, it is determined that the test result of the tested application software system is passed; when the test When the output value is not within the reasonable range, it is determined that the test result of the tested application software system is failed.
可选地,该方法还包括步骤:当判断出所述被测应用软件系统发生异常时,结合所述被测应用软件系统中的应用软件是否发生版本更新判断异常原因。Optionally, the method further includes the step of: when it is determined that the tested application software system is abnormal, determining the cause of the abnormality in combination with whether the application software in the tested application software system has a version update.
为实现上述目的,本发明还提出一种应用软件测试装置,该装置包括:获取单元,用于获取被测应用软件系统的测试输出值的合理区间,所述合理区间根据多次对被测应用软件系统进行自动化测试的测试输出值分析得到;测试单元,用于使用所获取的合理区间对被测应用软件系统进行测试;及判断单元,用于根据测试结果判断所述被测应用软件系统是否发生异常。In order to achieve the above object, the present invention also proposes an application software testing device, which includes: an acquisition unit for obtaining a reasonable range of the test output value of the tested application software system, and the reasonable range is based on multiple tests of the tested application The software system is obtained by analyzing the test output value of the automated test; the test unit is used to use the obtained reasonable interval to test the tested application software system; and the judging unit is used to judge whether the tested application software system according to the test results An exception occurs.
可选地,该装置还包括:设置单元,用于设置自动化测试的时间间隔和次数;所述测试单元还用于每隔所设置时间间隔,对所述被测应用软件系统进行自动化测试并获得测试输出值,直到达到所设置的次数;分析单元,用于根据所述测试输出值获得所述合理区间。Optionally, the device further includes: a setting unit, used to set the time interval and times of automated testing; the testing unit is also used to perform automated testing on the tested application software system at every set time interval and obtain The output value is tested until the set number of times is reached; the analysis unit is configured to obtain the reasonable interval according to the output value of the test.
可选地,所述分析单元根据所述测试输出值获得合理区间的过程具体包括:统计所述自动化测试得到的多个测试输出值的取值范围;从所述取值范围中去除离散点;将去除离散点后的取值范围确定为所述合理区间。Optionally, the process of the analysis unit obtaining a reasonable interval according to the test output value specifically includes: counting the value ranges of multiple test output values obtained by the automated test; removing discrete points from the value ranges; The value range after removing the discrete points is determined as the reasonable interval.
可选地,所述测试单元使用所获取的合理区间对被测应用软件系统进行测试的过程具体包括:对所述被测应用软件系统进行测试,得到该次测试的测试输出值;判断所述测试输出值是否落在所述合理区间的范围内;当所述测试输出值落在所述合理区间的范围内时,确定该次对所述被测应用软件系统的测试结果为通过;当所述测试输出值不在合理区间的范围内时,确定该次对所述被测应用软件系统的测试结果为不通过。Optionally, the process of the testing unit testing the tested application software system using the obtained reasonable interval specifically includes: testing the tested application software system to obtain a test output value of the test; judging the Whether the test output value falls within the range of the reasonable interval; when the test output value falls within the range of the reasonable interval, it is determined that the test result of the tested application software system is passed; when the When the test output value is not within the reasonable interval, it is determined that the test result of the tested application software system is failed.
可选地,所述判断单元还用于当判断出所述被测应用软件系统发生异常时,结合所述被测应用软件系统中的应用软件是否发生版本更新判断异常原因。Optionally, the judging unit is further configured to, when it is judged that an abnormality occurs in the tested application software system, determine the cause of the abnormality in conjunction with whether a version update of the application software in the tested application software system occurs.
本发明提出的应用软件测试方法及装置,通过多次测试获取测试输出值的合理区间,然后根据该合理区间来判断后续对被测应用软件系统的测试是否通过,进而判断被测应用软件系统是否发生异常以及异常原因。The application software testing method and device proposed by the present invention obtain a reasonable interval of the test output value through multiple tests, and then judge whether the subsequent test of the tested application software system is passed according to the reasonable interval, and then judge whether the tested application software system is The exception occurred and the reason for the exception.
其有益效果主要体现在以下两个方面:对跟踪系统本身来讲,可以作为回归测试的一种方式,当跟踪系统本身发生版本更新后,通过测试输出值是否落在合理区间范围内可以验证该版本更新是否出现异常;若应用软件(跟踪系统)用来管理另一款应用软件(被跟踪系统),对被跟踪系统来说,当跟踪系统不更新时,若是测试输出值没有落在合理区间范围内,则可以判断是被跟踪系统发生了更新异常或出现了故障。另外,还可以结合跟踪系统中的其他跟踪功能,查找到被跟踪系统中具体的异常位置,进而为排除故障或优化系统提供数据支持。Its beneficial effects are mainly reflected in the following two aspects: For the tracking system itself, it can be used as a way of regression testing. When the version of the tracking system itself is updated, it can be verified by testing whether the output value falls within a reasonable range. Whether the version update is abnormal; if the application software (tracking system) is used to manage another application software (tracked system), for the tracked system, when the tracking system is not updated, if the test output value does not fall within a reasonable range If it is within the range, it can be judged that the tracked system has an update exception or a failure. In addition, it can also be combined with other tracking functions in the tracking system to find specific abnormal locations in the tracked system, and then provide data support for troubleshooting or optimizing the system.
附图说明Description of drawings
图1为实现本发明各个实施例的一种应用软件测试装置的环境架构图。FIG. 1 is an environmental architecture diagram of an application software testing device for implementing various embodiments of the present invention.
图2为本发明中的一种微服务间调用关系的示意图。FIG. 2 is a schematic diagram of a calling relationship between microservices in the present invention.
图3为本发明第一实施例提出的一种应用软件测试装置的模块示意图。FIG. 3 is a block diagram of an application software testing device proposed in the first embodiment of the present invention.
图4为本发明第二实施例提出的一种应用软件测试方法的流程图。FIG. 4 is a flowchart of an application software testing method proposed by the second embodiment of the present invention.
图5为本发明第三实施例提出的一种应用软件测试方法的流程图。FIG. 5 is a flow chart of an application software testing method proposed by the third embodiment of the present invention.
图6为本发明第四实施例提出的一种应用软件测试方法的流程图。FIG. 6 is a flow chart of an application software testing method proposed by the fourth embodiment of the present invention.
图7为图6中的步骤S602的具体细化流程图。FIG. 7 is a detailed flowchart of step S602 in FIG. 6 .
图8为图6中的步骤S604的具体细化流程图。FIG. 8 is a detailed flowchart of step S604 in FIG. 6 .
图9为图6中的步骤S608和S610的具体细化流程图。FIG. 9 is a detailed flowchart of steps S608 and S610 in FIG. 6 .
本发明目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。The realization of the purpose of the present invention, functional characteristics and advantages will be further described in conjunction with the embodiments and with reference to the accompanying drawings.
具体实施方式Detailed ways
为了使本发明所要解决的技术问题、技术方案及有益效果更加清楚、明白,以下结合附图和实施例,对本发明进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。In order to make the technical problems, technical solutions and beneficial effects to be solved by the present invention clearer and clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.
如图1所示,为实现本发明各个实施例的一种应用软件测试装置100的环境架构图。所述应用软件测试装置100部署在服务器或其他适合的硬件架构中。As shown in FIG. 1 , it is an environment architecture diagram of an application software testing device 100 implementing various embodiments of the present invention. The application software testing device 100 is deployed in a server or other suitable hardware architecture.
所述应用软件测试装置100用于对被测应用软件系统120进行测试。被测应用软件系统120可以是一个应用软件,也可以是多个应用软件组成的公共系统。在本实施例中,所述被测应用软件系统120包括跟踪系统122和被跟踪系统124,所述被跟踪系统124包括多个微服务126。The application software testing device 100 is used to test the application software system 120 under test. The tested application software system 120 may be one application software, or a public system composed of multiple application software. In this embodiment, the tested application software system 120 includes a tracking system 122 and a tracked system 124 , and the tracked system 124 includes a plurality of microservices 126 .
在应用软件测试装置100对被测应用软件系统120进行测试的过程中,被跟踪系统124内部的所述多个微服务126之间也可能存在相互调用。During the process of testing the application software system 120 under test by the application software testing device 100 , there may also be mutual calls between the multiple microservices 126 inside the tracked system 124 .
以图2所示的微服务126间调用关系为例,在被跟踪系统124中,微服务A除了可以被客户端调用执行外,还可以被微服务B和微服务C调用,微服务A也可以调用数据库,客户端、微服务B和微服务C不能直接调用数据库,而需要通过微服务A调用数据库并返回结果。Taking the invocation relationship between microservices 126 shown in Figure 2 as an example, in the tracked system 124, microservice A can not only be invoked and executed by the client, but also be invoked by microservice B and microservice C, and microservice A can also be invoked by the client. The database can be called. The client, microservice B and microservice C cannot directly call the database, but need to call the database through microservice A and return the result.
第一实施例first embodiment
如图3所示,本发明第一实施例提出一种应用软件测试装置100。As shown in FIG. 3 , the first embodiment of the present invention proposes an application software testing device 100 .
在本实施例中,所述应用软件测试装置100包括设置单元102、测试单元104、分析单元106、获取单元108及判断单元110。In this embodiment, the application software testing device 100 includes a setting unit 102 , a testing unit 104 , an analyzing unit 106 , an acquiring unit 108 and a judging unit 110 .
所述设置单元102用于设置对被测应用软件系统120进行自动化测试的时间间隔和次数。The setting unit 102 is used to set the time interval and the number of times for automatic testing of the application software system 120 under test.
例如,所述自动化测试的时间间隔设置为15分钟,次数设置为一万次。For example, the time interval of the automated test is set to 15 minutes, and the number of times is set to 10,000 times.
所述测试单元104用于每隔所设置时间间隔,对所述被测应用软件系统120进行自动化测试并获得测试输出值,直到达到所设置的次数。The testing unit 104 is used for performing an automatic test on the tested application software system 120 and obtaining a test output value every set time interval until the set number of times is reached.
所述分析单元106用于根据所述测试输出值获得所述合理区间。The analysis unit 106 is configured to obtain the reasonable interval according to the test output value.
具体地,测试单元104每次对被测应用软件系统120进行自动化测试,都能得到一个测试输出值,分析单元106从多次自动化测试中获取大量测试输出值数据,然后对输出值数据进行分析,获得测试输出值数据的合理区间。Specifically, each time the test unit 104 performs an automated test on the application software system 120 under test, a test output value can be obtained, and the analysis unit 106 obtains a large amount of test output value data from multiple automated tests, and then analyzes the output value data , to obtain a reasonable interval for the test output value data.
分析单元106获得所述合理区间的具体过程包括:统计所述自动化测试得到的多个测试输出值的取值范围;从所述取值范围中去除离散点;将去除离散点后的取值范围确定为所述合理区间。所述离散点即为所述取值范围中明显异于大部分测试输出值的异常数据。The specific process for the analysis unit 106 to obtain the reasonable interval includes: counting the value ranges of multiple test output values obtained by the automated test; removing discrete points from the value range; determined as the reasonable interval. The discrete points are abnormal data in the value range that are obviously different from most of the test output values.
例如,通过对被测应用软件系统120进行了20000次自动化测试,得到20000个测试输出值。对该20000个测试输出值统计取值范围,发现其中有19998个在[4,7]范围内,还有2个测试输出值分别为14和16。上述2个测试输出值14和16即为离散点,需要从所述取值范围中去除。当去除离散点14和16之后,得到的取值范围[4,7]即为该被测应用软件系统120的测试输出值对应的合理区间。For example, 20,000 test output values are obtained by performing 20,000 automated tests on the tested application software system 120 . The range of the 20,000 test output values is counted, and it is found that 19,998 of them are in the range of [4, 7], and 2 test output values are 14 and 16 respectively. The above two test output values 14 and 16 are discrete points, which need to be removed from the value range. After the discrete points 14 and 16 are removed, the obtained value range [4, 7] is the reasonable interval corresponding to the test output value of the tested application software system 120 .
所述获取单元108用于获取被测应用软件系统120的测试输出值的合理区间。The obtaining unit 108 is used to obtain a reasonable interval of the test output value of the tested application software system 120 .
具体地,分析单元106获得的所述合理区间可以保存到数据库等存储区域,当后续需要对被测应用软件系统120进行测试时,获取单元108从该数据库中获取该被测应用软件系统120对应的合理区间。Specifically, the reasonable interval obtained by the analysis unit 106 can be saved in a storage area such as a database, and when the application software system under test 120 needs to be tested later, the acquisition unit 108 obtains the corresponding interval of the application software system under test 120 from the database. reasonable range.
所述测试单元104还用于使用所获取的合理区间对被测应用软件系统120进行测试。The testing unit 104 is also used to test the tested application software system 120 using the acquired reasonable interval.
具体地,测试单元104对所述被测应用软件系统120进行测试,得到该次测试的测试输出值。然后判断所述测试输出值是否落在所述合理区间的范围内。当所述测试输出值落在所述合理区间的范围内时,测试单元104确定该次对所述被测应用软件系统120的测试结果为通过。当所述测试输出值不在合理区间的范围内时,测试单元104确定该次对所述被测应用软件系统120的测试结果为不通过。Specifically, the testing unit 104 tests the tested application software system 120 to obtain a test output value of the test. Then it is judged whether the test output value falls within the range of the reasonable interval. When the test output value falls within the reasonable range, the testing unit 104 determines that the test result of the tested application software system 120 is passed. When the test output value is not within the reasonable interval, the testing unit 104 determines that the test result of the tested application software system 120 is failed.
所述判断单元110用于根据测试结果判断所述被测应用软件系统120是否发生异常。The judging unit 110 is used for judging whether the tested application software system 120 is abnormal according to the test result.
具体地,当该次测试的结果为通过时,判断单元110判断所述被测应用软件系统未发生异常。当该次测试的结果为不通过时,判断单元110判断所述被测应用软件系统发生异常。Specifically, when the result of the test is passed, the judging unit 110 judges that no abnormality occurs in the tested application software system. When the result of the test is not passed, the judging unit 110 judges that the tested application software system is abnormal.
进一步地,所述判断单元110还用于当判断出所述被测应用软件系统120发生异常时,结合所述被测应用软件系统120中的应用软件是否发生版本更新判断异常原因。Further, the judging unit 110 is also used for judging the cause of the abnormality in conjunction with whether the application software in the tested application software system 120 has a version update when it is judged that the tested application software system 120 is abnormal.
具体地,所述应用软件是否发生版本更新可以包括跟踪系统122是否发生版本更新、被跟踪系统124是否发生版本更新。当跟踪系统122发生版本更新时,所述异常原因可能是跟踪系统122版本更新异常或发生故障。当跟踪系统122未发生版本更新而被跟踪系统124发生版本更新时,所述异常原因可能是被跟踪系统124版本更新异常或发生故障。另外,还可以结合跟踪系统122中的其他跟踪功能,查找到被跟踪系统124中具体的异常位置,进而为排除故障或优化系统提供数据支持。Specifically, whether the version update of the application software may include whether the tracking system 122 has a version update, and whether the tracked system 124 has a version update. When the version update of the tracking system 122 occurs, the cause of the abnormality may be that the version update of the tracking system 122 is abnormal or malfunctions. When the version update of the tracking system 122 does not occur but the version update of the tracked system 124 occurs, the cause of the abnormality may be that the version update of the tracked system 124 is abnormal or a fault occurs. In addition, other tracking functions in the tracking system 122 can also be combined to find specific abnormal locations in the tracked system 124, thereby providing data support for troubleshooting or optimizing the system.
第二实施例second embodiment
如图4所示,本发明第二实施例提出一种应用软件测试方法。该方法包括步骤:As shown in FIG. 4 , the second embodiment of the present invention proposes an application software testing method. The method includes the steps of:
S400,获取被测应用软件系统的测试输出值的合理区间。S400. Obtain a reasonable interval of the test output value of the tested application software system.
具体地,所述合理区间根据多次对被测应用软件系统进行自动化测试的测试输出值分析得到。即从多次自动化测试中获取大量测试输出值数据,然后对输出值数据进行分析,获得测试输出值数据的合理区间。所述合理区间的确定需要做大量的自动化测试来获得,本实施例的执行次数至少在1万次以上。当采样次数(自动化测试次数)足够多时,所述合理区间也越逼近真实值。例如,对被测应用软件系统进行了20000次自动化测试,得到的测试输出值中有19998个在[4,7]范围内,则表示[4,7]为该被测应用软件系统的测试输出值对应的合理区间。Specifically, the reasonable interval is obtained by analyzing the test output values of the automated tests performed on the tested application software system for multiple times. That is to obtain a large amount of test output value data from multiple automated tests, and then analyze the output value data to obtain a reasonable range of test output value data. Determination of the reasonable interval requires a large number of automated tests to obtain, and the number of executions in this embodiment is at least 10,000 times. When the sampling times (automated testing times) are sufficient, the reasonable interval is closer to the real value. For example, if 20,000 automated tests are performed on the application software system under test, and 19998 of the obtained test output values are in the range of [4, 7], it means that [4, 7] is the test output of the application software system under test A reasonable interval corresponding to the value.
S402,使用所获取的合理区间对被测应用软件系统进行测试。S402. Use the acquired reasonable interval to test the application software system under test.
具体地,当获取到所述合理区间后,可以对被测应用软件系统进行相应测试,得到该次测试的测试输出值,然后判断所述测试输出值是否落在所述合理区间的范围内。当所述测试输出值落在所述合理区间的范围内时,确定该次对所述被测应用软件系统的测试结果为通过。当所述测试输出值不在合理区间的范围内时,确定该次对所述被测应用软件系统的测试结果为不通过。Specifically, after obtaining the reasonable interval, a corresponding test may be performed on the tested application software system to obtain a test output value of the test, and then determine whether the test output value falls within the range of the reasonable interval. When the test output value falls within the range of the reasonable interval, it is determined that the test result of the tested application software system is passed. When the test output value is not within the reasonable range, it is determined that the test result of the tested application software system is failed.
S404,根据测试结果判断所述被测应用软件系统是否发生异常。S404. Determine whether the tested application software system is abnormal according to the test result.
具体地,当该次测试的结果为通过时,判断所述被测应用软件系统未发生异常。当该次测试的结果为不通过时,判断所述被测应用软件系统发生异常。Specifically, when the result of the test is passed, it is determined that no abnormality occurs in the tested application software system. When the result of the test fails, it is determined that the tested application software system is abnormal.
第三实施例third embodiment
如图5所示,本发明第三实施例提出一种应用软件测试方法。该方法通过多次对被测应用软件系统进行自动化测试,得到测试输出值的合理区间,然后根据该合理区间来对后续被测应用软件系统进行测试。As shown in FIG. 5 , the third embodiment of the present invention proposes an application software testing method. In the method, a reasonable range of test output values is obtained by automatically testing the tested application software system for many times, and then the subsequent tested application software system is tested according to the reasonable range.
S500,通过多次自动化测试获得测试输出值的合理区间。S500, through multiple automated tests to obtain a reasonable range of test output values.
具体地,可以设置自动化测试的时间间隔和次数,根据所设置的时间间隔对被测应用软件系统进行自动化测试,直到达到所设置的次数。从多次自动化测试中获取大量测试输出值数据,然后对输出值数据进行分析,获得测试输出值数据的合理区间。所述合理区间的确定需要做大量的自动化测试来获得,本实施例的执行次数至少在1万次以上。当采样次数(自动化测试次数)足够多时,所述合理区间也越逼近真实值。Specifically, the time interval and the number of times of the automated test can be set, and the automated test is performed on the application software system under test according to the set time interval until the set number of times is reached. Obtain a large amount of test output value data from multiple automated tests, and then analyze the output value data to obtain a reasonable range of test output value data. Determination of the reasonable interval requires a large number of automated tests to obtain, and the number of executions in this embodiment is at least 10,000 times. When the sampling times (automated testing times) are sufficient, the reasonable interval is closer to the real value.
在本实施例中,所述测试输出值为被测应用软件系统中的某一个被测微服务在预定时间段内的被调用次数。值得注意的是,在其他实施例中,所述测试输出值还可以是其他测试项目的输出结果。In this embodiment, the test output value is the number of times a certain microservice under test in the application software system under test is invoked within a predetermined period of time. It should be noted that, in other embodiments, the test output value may also be the output result of other test items.
S502,对被测应用软件系统进行测试,根据所述合理区间判断该次测试是否通过。S502. Test the application software system under test, and judge whether the test passes according to the reasonable interval.
具体地,在第一时间点第一次获取被测微服务的调用次数,然后发起一次对该被测微服务的调用,在第二时间点第二次获取该被测微服务的调用次数,将两次获取到的调用次数均写入结果文件。计算所述第二次获取的调用次数与第一次获取的调用次数的差值,所述差值即为该次测试的测试输出值。当所述差值落在所述合理区间的范围内时,判断该次对该被测微服务的测试结果为通过。当所述差值不在所述合理区间的范围内时,判断该次对该被测微服务的测试结果为不通过。Specifically, at the first time point, the number of invocations of the microservice under test is acquired for the first time, and then a call to the microservice under test is initiated, and at the second time point, the number of invocations of the microservice under test is acquired for the second time, Write the call times obtained twice into the result file. Calculate the difference between the number of calls obtained for the second time and the number of calls obtained for the first time, and the difference is the test output value of this test. When the difference falls within the reasonable range, it is judged that the test result of the microservice under test is passed. When the difference is not within the reasonable range, it is judged that the test result of the microservice under test is failed.
S504,根据该次测试是否通过,判断所述被测应用软件系统是否发生异常。S504. Determine whether the tested application software system is abnormal according to whether the test is passed.
具体地,当该次测试的结果为通过时,判断所述被测应用软件系统未发生异常。当该次测试的结果为不通过时,判断所述被测应用软件系统发生异常。Specifically, when the result of the test is passed, it is determined that no abnormality occurs in the tested application software system. When the result of the test fails, it is determined that the tested application software system is abnormal.
进一步地,该方法还包括步骤:Further, the method also includes the steps of:
S506,当判断出发生异常时,结合被测应用软件系统中的应用软件是否发生版本更新判断异常原因。S506. When it is determined that an abnormality occurs, determine the cause of the abnormality in combination with whether a version update of the application software in the tested application software system occurs.
在本实施例中,所述被测应用软件系统中的应用软件包括跟踪系统和被跟踪系统。因此,所述应用软件是否发生版本更新可以包括跟踪系统是否发生版本更新、被跟踪系统是否发生版本更新。当跟踪系统发生版本更新时,所述异常原因可能是跟踪系统版本更新异常或发生故障。当跟踪系统未发生版本更新而被跟踪系统发生版本更新时,所述异常原因可能是被跟踪系统版本更新异常或发生故障。另外,还可以结合跟踪系统中的其他跟踪功能,查找到被跟踪系统中具体的异常位置,进而为排除故障或优化系统提供数据支持。In this embodiment, the application software in the tested application software system includes a tracking system and a tracked system. Therefore, whether the version update of the application software may include whether a version update occurs in the tracking system and whether a version update occurs in the tracked system. When the version update of the tracking system occurs, the cause of the abnormality may be that the version update of the tracking system is abnormal or a fault occurs. When the version update of the tracking system does not occur but the version update of the tracked system occurs, the cause of the abnormality may be that the version update of the tracked system is abnormal or a fault occurs. In addition, it can also be combined with other tracking functions in the tracking system to find specific abnormal locations in the tracked system, and then provide data support for troubleshooting or optimizing the system.
第四实施例Fourth embodiment
如图6所示,本发明第四实施例提出一种应用软件测试方法,包括获得合理区间的过程和利用该合理区间进行测试的过程。As shown in FIG. 6 , the fourth embodiment of the present invention proposes an application software testing method, including the process of obtaining a reasonable range and the process of testing using the reasonable range.
该方法包括如下步骤:The method comprises the steps of:
S600,设置自动化测试的时间间隔和次数。S600, setting the time interval and times of automated testing.
例如,所述自动化测试的时间间隔设置为15分钟,次数设置为一万次。For example, the time interval of the automated test is set to 15 minutes, and the number of times is set to 10,000 times.
S602,每隔所设置时间间隔,对被测应用软件系统进行自动化测试,直到达到所设置的次数。S602. Perform automated testing on the application software system under test at every set time interval until the set number of times is reached.
例如,参阅图7所示,为所述步骤S602的具体细化流程图。该流程包括步骤:For example, refer to FIG. 7 , which is a detailed flow chart of step S602. The process includes steps:
S700,设置自动化测试的时间间隔和次数。S700, setting the time interval and times of automated testing.
S702,判断当前是否到达所设置的时间间隔。若是,则执行步骤S704。若否,则继续等待。S702, judging whether the set time interval has been reached. If yes, execute step S704. If not, continue to wait.
S704,对被测应用软件系统进行一次自动化测试,获得测试输出值。S704. Perform an automated test on the tested application software system to obtain a test output value.
S706,判断自动化测试的次数是否达到所设置的次数。若是,则流程结束。若否,则返回所述步骤S702,等待所设置的时间间隔后执行下一次自动化测试。S706, judging whether the number of automated tests reaches the set number of times. If so, the process ends. If not, return to step S702, and execute the next automated test after waiting for the set time interval.
回到图6,步骤S604,根据所设置次数的自动化测试的测试输出值获得合理区间。Returning to FIG. 6 , in step S604 , a reasonable interval is obtained according to the test output values of the set number of automated tests.
具体地,每次对被测应用软件系统进行自动化测试,都能得到一个测试输出值,从多次自动化测试中获取大量测试输出值数据,然后对输出值数据进行分析,获得测试输出值数据的合理区间。Specifically, each time an automated test is performed on the application software system under test, a test output value can be obtained, a large amount of test output value data is obtained from multiple automated tests, and then the output value data is analyzed to obtain the test output value data. Reasonable range.
以所述测试输出值为被测应用软件系统中的某一个被测微服务在预定时间段内的被调用次数为例。通过对大量测试输出值数据的分析,可以得到在几乎相同的时间段Δt内,调用次数的合理区间[a,b]。其中,a为输出值的合理取值下限,b为输出值的合理取值上限,例如[4,7]。由于网络延迟等原因,只能保证每次间隔的时间段Δt是几乎一样的。根据测试结果,Δt的差异非常微小,这个微小的差异不会导致大量的调用次数产生,因此不会影响测试数据准确性。所述合理区间的确定需要做大量的自动化测试来获得,本实施例的执行次数至少在1万次以上。当采样次数(自动化测试次数)足够多时,所述合理区间也越逼近真实值。Take the test output value as an example of the number of calls of a certain microservice under test within a predetermined period of time in the application software system under test. Through the analysis of a large number of test output value data, a reasonable interval [a, b] of the number of calls can be obtained in almost the same time period Δt. Among them, a is the reasonable lower limit of the output value, and b is the reasonable upper limit of the output value, such as [4, 7]. Due to reasons such as network delay, it can only be guaranteed that the time period Δt of each interval is almost the same. According to the test results, the difference in Δt is very small, and this small difference will not cause a large number of calls, so it will not affect the accuracy of the test data. Determination of the reasonable interval requires a large number of automated tests to obtain, and the number of executions in this embodiment is at least 10,000 times. When the sampling times (automated testing times) are sufficient, the reasonable interval is closer to the real value.
参阅图8所示,为所述步骤S604的具体细化流程图。该流程包括步骤:Referring to FIG. 8 , it is a detailed flow chart of step S604. The process includes steps:
S800,统计所述自动化测试得到的多个测试输出值的取值范围。S800. Count the value ranges of the multiple test output values obtained by the automated test.
例如,通过对被测应用软件系统进行了20000次自动化测试,得到20000个测试输出值。对该20000个测试输出值统计取值范围,发现其中有19998个在[4,7]范围内,还有2个测试输出值分别为14和16。For example, by performing 20,000 automated tests on the application software system under test, 20,000 test output values are obtained. The range of the 20,000 test output values is counted, and it is found that 19,998 of them are in the range of [4, 7], and 2 test output values are 14 and 16 respectively.
S802,从所述取值范围中去除离散点。S802. Remove discrete points from the value range.
具体地,所述离散点即为所述取值范围中明显异于大部分测试输出值的异常数据。例如,上述2个测试输出值14和16即为离散点,需要从所述取值范围中去除。Specifically, the discrete points are abnormal data in the value range that are obviously different from most test output values. For example, the above two test output values 14 and 16 are discrete points, which need to be removed from the value range.
S804,将去除离散点后的取值范围确定为所述合理区间。S804. Determine the value range after removing the discrete points as the reasonable interval.
具体地,从所述自动化测试得到的多个测试输出值的取值范围中去除离散点之后,剩下的即为该被测应用软件系统的测试输出值对应的合理区间。例如,上述取值范围去除离散点14和16之后,得到的取值范围[4,7]即为该被测应用软件系统的测试输出值对应的合理区间。Specifically, after the discrete points are removed from the value ranges of the multiple test output values obtained by the automated test, what remains is a reasonable interval corresponding to the test output values of the tested application software system. For example, after the discrete points 14 and 16 are removed from the above value range, the obtained value range [4, 7] is a reasonable interval corresponding to the test output value of the tested application software system.
上述步骤S600-S604为获得合理区间的过程,利用所述合理区间,可以在后续进行应用软件测试时根据测试输出值是否落在所述合理区间的范围内,判断测试是否通过。即,进一步地,所述应用软件测试方法还包括利用该合理区间进行测试的过程,该过程具体包括步骤:The above steps S600-S604 are the process of obtaining a reasonable interval. Using the reasonable interval, it is possible to judge whether the test is passed or not according to whether the test output value falls within the range of the reasonable interval during subsequent application software testing. That is, further, the application software testing method also includes a process of using the reasonable interval for testing, and the process specifically includes the steps of:
S608,对被测应用软件系统执行测试。S608. Execute a test on the application software system under test.
在本实施例中,所述测试输出值为被测应用软件系统中的某一个被测微服务在预定时间段内的被调用次数。值得注意的是,在其他实施例中,所述测试输出值还可以是其他测试项目的输出结果。In this embodiment, the test output value is the number of times a certain microservice under test in the application software system under test is invoked within a predetermined period of time. It should be noted that, in other embodiments, the test output value may also be the output result of other test items.
具体地,在第一时间点第一次获取被测微服务的调用次数,然后发起一次对该被测微服务的调用,在第二时间点第二次获取该被测微服务的调用次数,将两次获取到的调用次数均写入结果文件。例如,针对图2中的微服务A,在时间为t1时第一次获取微服务A的被调用次数统计为calls_before,然后发起一次对微服务A的调用。当时间为t2(t2>t1)时,第二次获取微服务A的被调用次数统计为calls_after,将calls_before和calls_after数据均写入结果文件。Specifically, at the first time point, the number of invocations of the microservice under test is acquired for the first time, and then a call to the microservice under test is initiated, and at the second time point, the number of invocations of the microservice under test is acquired for the second time, Write the call times obtained twice into the result file. For example, for microservice A in Figure 2, at time t1 , the statistics of the number of calls of microservice A is obtained for the first time as calls_before, and then a call to microservice A is initiated. When the time is t 2 (t 2 >t 1 ), the number of calls to microservice A is obtained for the second time as calls_after, and both the calls_before and calls_after data are written to the result file.
S610,根据所述合理区间判断该次测试是否通过。S610, judging whether the test is passed according to the reasonable interval.
具体地,计算所述第二次获取的调用次数与第一次获取的调用次数的差值,即为该次测试的测试输出值。当所述差值落在所述合理区间的范围内时,判断该次对该被测微服务的测试结果为通过。当所述差值不在所述合理区间的范围内时,判断该次对该被测微服务的测试结果为不通过。例如,假设对微服务A进行自动化测试得到的测试输出值的合理区间为[Δcallsmin,Δcallsmax],当Δcalls=calls_after-calls_before的值落在该合理区间的范围内时,该次测试通过,当Δcalls的值不在该合理区间的范围内时,该次测试不通过。Specifically, the difference between the number of calls obtained for the second time and the number of calls obtained for the first time is calculated, which is the test output value of this test. When the difference falls within the reasonable range, it is judged that the test result of the microservice under test is passed. When the difference is not within the reasonable range, it is judged that the test result of the microservice under test is failed. For example, assuming that the reasonable interval of the test output value obtained from the automated test of microservice A is [Δcalls min , Δcalls max ], when the value of Δcalls=calls_after-calls_before falls within the range of the reasonable interval, the test passes, When the value of Δcalls is not within the reasonable range, the test fails.
参阅图9所述,为所述步骤S608和S610的具体细化流程图。该流程包括步骤:Referring to FIG. 9 , it is a detailed flow chart of steps S608 and S610. The process includes steps:
S900,在第一时间点第一次获取被测微服务的调用次数。S900. Obtain the number of invocations of the microservice under test for the first time at the first time point.
S902,发起一次对该被测微服务的调用。S902. Initiate a call to the microservice under test.
S904,在第二时间点第二次获取该被测微服务的调用次数。S904. Obtain the number of invocations of the microservice under test for the second time at a second time point.
S906,将两次获取到的调用次数均写入结果文件。S906. Write the obtained invoking times twice into the result file.
S908,计算第二次获取的调用次数与第一次获取的调用次数的差值。S908. Calculate the difference between the number of calls obtained for the second time and the number of calls obtained for the first time.
S910,判断所述差值是否落在合理区间的范围内。若是,则执行步骤S912。若否,则执行步骤S914。S910, judging whether the difference falls within a reasonable interval. If yes, execute step S912. If not, execute step S914.
S912,确定该次对该被测微服务的测试结果为通过。S912. Determine that the test result of the tested microservice is passed.
S914,确定该次对该被测微服务的测试结果为不通过。S914. Determine that the test result of the tested microservice is failed.
回到图6,步骤S612,根据该次测试是否通过,判断所述被测应用软件系统是否发生异常。Returning to FIG. 6 , in step S612 , it is judged whether the tested application software system is abnormal according to whether the test is passed or not.
具体地,当该次测试的结果为通过时,判断所述被测应用软件系统未发生异常。当该次测试的结果为不通过时,判断所述被测应用软件系统发生异常。Specifically, when the result of the test is passed, it is determined that no abnormality occurs in the tested application software system. When the result of the test fails, it is determined that the tested application software system is abnormal.
S614,当判断出发生异常时,结合被测应用软件系统中的应用软件是否发生版本更新判断异常原因。S614. When it is determined that an abnormality occurs, determine the cause of the abnormality in combination with whether a version update of the application software in the tested application software system occurs.
在本实施例中,所述被测应用软件系统中的应用软件包括跟踪系统和被跟踪系统。因此,所述应用软件是否发生版本更新可以包括跟踪系统是否发生版本更新、被跟踪系统是否发生版本更新。当跟踪系统发生版本更新时,所述异常原因可能是跟踪系统版本更新异常或发生故障。当跟踪系统未发生版本更新而被跟踪系统发生版本更新时,所述异常原因可能是被跟踪系统版本更新异常或发生故障。In this embodiment, the application software in the tested application software system includes a tracking system and a tracked system. Therefore, whether the version update of the application software may include whether a version update occurs in the tracking system and whether a version update occurs in the tracked system. When the version update of the tracking system occurs, the cause of the abnormality may be that the version update of the tracking system is abnormal or a fault occurs. When the version update of the tracking system does not occur but the version update of the tracked system occurs, the cause of the abnormality may be that the version update of the tracked system is abnormal or a fault occurs.
例如,跟踪系统是APM(Application Performance Management,应用性能管理)系统,被跟踪系统是EMS(Element Management System,网元管理系统)系统,通过多次测试得到的合理区间为[4,7]。For example, the tracking system is an APM (Application Performance Management, application performance management) system, and the tracked system is an EMS (Element Management System, network element management system) system. The reasonable interval obtained through multiple tests is [4, 7].
在异常调用场景一,被跟踪系统正常使用,不更新版本,假设开发人员修改跟踪系统的代码,合入的新代码有问题,除了被测试的微服务A,其他的微服务都跟踪不到,则客户端对微服务A的调用次数是每次增加1。测试客户端对微服务A调用两次的输出值数据,得到的输出值是2,不在合理区间[4,7]范围内,而是落在合理区间的左边。由此可以得出结论,对跟踪系统本身来讲,本发明提出的应用软件测试方法可以作为回归测试方法的一种,当跟踪系统本身迭代更新后,可以验证更新版本功能。In the exception call scenario 1, the tracked system is in normal use and the version is not updated. Assuming that the developer modifies the code of the tracking system, the merged new code has problems. Except for the tested microservice A, other microservices cannot be tracked. Then the number of times the client calls microservice A increases by 1 each time. The test client calls the output value data of microservice A twice, and the output value obtained is 2, which is not within the reasonable range [4, 7], but falls on the left side of the reasonable range. It can be concluded that, for the tracking system itself, the application software testing method proposed by the present invention can be used as a regression testing method, and when the tracking system itself is iteratively updated, the function of the updated version can be verified.
在异常调用场景二,其他模块死循环不间断调用微服务A。测试客户端调用微服务A的输出值数据,得到的输出值是64和69,没有落在合理区间[4,7]范围内,而是落在所述合理区间的右边。由此可以得到结论,当跟踪系统本身没有改动时,若是测试输出值没有落在合理区间的范围内,则可以判断是被跟踪系统发生了变更。In the second abnormal call scenario, other modules call microservice A continuously in an infinite loop. The test client calls the output value data of microservice A, and the obtained output values are 64 and 69, which do not fall within the reasonable interval [4, 7], but fall on the right side of the reasonable interval. From this, it can be concluded that when the tracking system itself has not changed, if the test output value does not fall within the reasonable range, it can be judged that the tracked system has changed.
又如,跟踪系统是APM系统,以告警微服务系统作为被跟踪系统,正常情况下,查询历史告警一次,则用户对微服务fm-history的调用次数加1。也就是说,测试输出值的合理区间为固定值,即[1,1]。For another example, the tracking system is an APM system, and the alarm micro-service system is used as the tracked system. Under normal circumstances, once the historical alarm is queried, the number of times the user calls the micro-service fm-history is increased by 1. That is to say, the reasonable interval of the test output value is a fixed value, namely [1, 1].
在异常调用场景下,假设告警微服务系统的版本更新引入了问题,如内部有模块(或服务)不间断地调用查询历史告警微服务。测试客户端调用查询历史告警微服务的输出值数据,得到的输出值是12和14,没有落在合理区间[1,1]范围内,而是落在所述合理区间的右边。In the abnormal call scenario, suppose that the version update of the alarm microservice system introduces problems, such as internal modules (or services) that continuously call the query history alarm microservice. The test client calls to query the output value data of the historical alarm microservice, and the obtained output values are 12 and 14, which do not fall within the reasonable interval [1, 1], but fall on the right side of the reasonable interval.
因此,该方法的主要价值体现在以下两个方面:对跟踪系统本身来讲,可以作为回归测试的一种方式,当跟踪系统本身发生版本更新后,通过测试输出值是否落在合理区间范围内可以验证该版本更新是否出现异常;若应用软件(跟踪系统)用来管理另一款应用软件(被跟踪系统),对被跟踪系统来说,当跟踪系统不更新时,若是测试输出值没有落在合理区间范围内,则可以判断是被跟踪系统发生了更新异常或出现了故障。结合被跟踪系统的其他跟踪功能,如调用栈的跟踪记录模块,可以查找到被跟踪系统的具体的异常位置(出故障模块),进而为排除故障或优化系统提供数据支持。Therefore, the main value of this method is reflected in the following two aspects: For the tracking system itself, it can be used as a way of regression testing. When the version of the tracking system itself is updated, the output value of the test is within a reasonable range. It can be verified whether the version update is abnormal; if the application software (tracking system) is used to manage another application software (tracked system), for the tracked system, when the tracking system is not updated, if the test output value does not fall Within a reasonable range, it can be judged that the tracked system has an update abnormality or a failure. Combined with other tracking functions of the tracked system, such as the trace recording module of the call stack, the specific abnormal location (faulty module) of the tracked system can be found, and then provide data support for troubleshooting or optimizing the system.
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。It should be noted that, in this document, the term "comprising", "comprising" or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article or apparatus comprising a set of elements includes not only those elements, It also includes other elements not expressly listed, or elements inherent in the process, method, article, or device. Without further limitations, an element defined by the phrase "comprising a ..." does not preclude the presence of additional identical elements in the process, method, article, or apparatus comprising that element.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件来实现,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本发明各个实施例所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the methods in the above embodiments can be implemented by means of software plus a necessary general-purpose hardware platform, and of course can also be implemented by hardware, but in many cases the former is better implementation. Based on such an understanding, the essence of the technical solution of the present invention or the part that contributes to the prior art can be embodied in the form of software products, and the computer software products are stored in a storage medium (such as ROM/RAM, disk, CD) contains several instructions to make a terminal device (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) execute the methods described in various embodiments of the present invention.
以上参照附图说明了本发明的优选实施例,并非因此局限本发明的权利范围。上述本发明实施例序号仅仅为了描述,不代表实施例的优劣。另外,虽然在流程图中示出了逻辑顺序,但是在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤。The preferred embodiments of the present invention have been described above with reference to the accompanying drawings, and the scope of rights of the present invention is not limited thereto. The serial numbers of the above embodiments of the present invention are for description only, and do not represent the advantages and disadvantages of the embodiments. In addition, although a logical order is shown in the flowcharts, in some cases the steps shown or described may be performed in an order different from that shown or described herein.
本领域技术人员不脱离本发明的范围和实质,可以有多种变型方案实现本发明,比如作为一个实施例的特征可用于另一实施例而得到又一实施例。凡在运用本发明的技术构思之内所作的任何修改、等同替换和改进,均应在本发明的权利范围之内。Those skilled in the art can realize the present invention with many variants without departing from the scope and spirit of the present invention, for example, the features of one embodiment can be used in another embodiment to obtain another embodiment. All modifications, equivalent replacements and improvements made within the technical conception of the application of the present invention shall fall within the scope of rights of the present invention.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610954519.2A CN107992405A (en) | 2016-10-27 | 2016-10-27 | application software testing method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610954519.2A CN107992405A (en) | 2016-10-27 | 2016-10-27 | application software testing method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107992405A true CN107992405A (en) | 2018-05-04 |
Family
ID=62028559
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610954519.2A Pending CN107992405A (en) | 2016-10-27 | 2016-10-27 | application software testing method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107992405A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20220391305A1 (en) * | 2020-09-22 | 2022-12-08 | Sap Se | Vendor assisted customer individualized testing |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040143819A1 (en) * | 2003-01-10 | 2004-07-22 | National Cheng Kung University | Generic software testing system and mechanism |
CN1983209A (en) * | 2005-12-14 | 2007-06-20 | 中兴通讯股份有限公司 | System and method for automatically testing software unit |
CN101699410A (en) * | 2009-11-11 | 2010-04-28 | 中兴通讯股份有限公司 | Single plate hardware fault detection method and device |
CN101742087A (en) * | 2008-11-05 | 2010-06-16 | 索尼株式会社 | Data processing method and apparatus |
CN102004688A (en) * | 2009-08-28 | 2011-04-06 | 上海杉达学院 | Boundary value testing method of Web application software |
CN102662828A (en) * | 2012-03-14 | 2012-09-12 | 浪潮(北京)电子信息产业有限公司 | A method and device for achieving software automatic testing |
CN103077114A (en) * | 2012-12-27 | 2013-05-01 | 武汉烽火富华电气有限责任公司 | Automatic testing method based on communication protocol of temperature measuring device |
US20130283099A1 (en) * | 2012-04-23 | 2013-10-24 | Hon Hai Precision Industry Co., Ltd. | System and method for tesing stability of server |
JP2015011378A (en) * | 2013-06-26 | 2015-01-19 | 株式会社デンソー | Test result display device and test result display program |
-
2016
- 2016-10-27 CN CN201610954519.2A patent/CN107992405A/en active Pending
Patent Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040143819A1 (en) * | 2003-01-10 | 2004-07-22 | National Cheng Kung University | Generic software testing system and mechanism |
CN1983209A (en) * | 2005-12-14 | 2007-06-20 | 中兴通讯股份有限公司 | System and method for automatically testing software unit |
CN101742087A (en) * | 2008-11-05 | 2010-06-16 | 索尼株式会社 | Data processing method and apparatus |
CN102004688A (en) * | 2009-08-28 | 2011-04-06 | 上海杉达学院 | Boundary value testing method of Web application software |
CN101699410A (en) * | 2009-11-11 | 2010-04-28 | 中兴通讯股份有限公司 | Single plate hardware fault detection method and device |
CN102662828A (en) * | 2012-03-14 | 2012-09-12 | 浪潮(北京)电子信息产业有限公司 | A method and device for achieving software automatic testing |
US20130283099A1 (en) * | 2012-04-23 | 2013-10-24 | Hon Hai Precision Industry Co., Ltd. | System and method for tesing stability of server |
CN103377115A (en) * | 2012-04-23 | 2013-10-30 | 鸿富锦精密工业(深圳)有限公司 | System event log management system and system event log management method |
CN103077114A (en) * | 2012-12-27 | 2013-05-01 | 武汉烽火富华电气有限责任公司 | Automatic testing method based on communication protocol of temperature measuring device |
JP2015011378A (en) * | 2013-06-26 | 2015-01-19 | 株式会社デンソー | Test result display device and test result display program |
Non-Patent Citations (1)
Title |
---|
段海军: ""航空电子设备自动测试系统的软件架构设计"", 《计算机测量与控制》 * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20220391305A1 (en) * | 2020-09-22 | 2022-12-08 | Sap Se | Vendor assisted customer individualized testing |
US11734160B2 (en) * | 2020-09-22 | 2023-08-22 | Sap Se | Vendor assisted customer individualized testing |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110457175B (en) | Service data processing method and device, electronic equipment and medium | |
CN108038039B (en) | Method for recording log and micro-service system | |
CN109714201B (en) | Network system reliability assessment method, device, computer equipment and storage medium | |
CN111078447B (en) | An exception locating method, device, equipment and medium in a microservice architecture | |
CN108009085B (en) | Channel package testing method | |
CN115904860A (en) | Micro-service detection method, device, equipment and storage medium | |
CN111258901A (en) | Fault positioning method and system for micro-service combination program | |
CN109739527A (en) | A kind of method, apparatus, server and the storage medium of the publication of client gray scale | |
CN110875853B (en) | Automatic quality monitoring method and terminal based on metadata | |
CN112395202B (en) | Interface automation test method and device, computer equipment and storage medium | |
CN107203464B (en) | Method and device for positioning service problem | |
CN107992405A (en) | application software testing method and device | |
CN114285756B (en) | Service call dependency analysis method and related device | |
CN106484601B (en) | User data analysis method and system for client | |
CN119201669A (en) | Business service status detection method and device, electronic device, and storage medium | |
CN111078558A (en) | Log storage method and device for automated testing, and computer-readable storage medium | |
CN114500249B (en) | Root cause positioning method and device | |
CN118057771A (en) | Test analysis method and device | |
CN110618943B (en) | Security service test method and device, electronic equipment and readable storage medium | |
US10296967B1 (en) | System, method, and computer program for aggregating fallouts in an ordering system | |
CN113778800A (en) | Error reporting information processing method, device, system, equipment and storage medium | |
CN113300912A (en) | Equipment testing method and device and electronic equipment | |
CN113094258A (en) | Precise test method and device, computer equipment and medium | |
CN112416781A (en) | Cross-system interface determination method, apparatus, computer device and storage medium | |
CN116155688A (en) | Link fault detection method, device, equipment and medium |
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 | ||
TA01 | Transfer of patent application right |
Effective date of registration: 20200617 Address after: 518057 Zhongxing building, A3-01, A3-02, Nanshan District hi tech Industrial Park, Shenzhen, Guangdong Applicant after: Shenzhen ZTE Technical Service Co.,Ltd. Address before: 518000 Zhongxing building, science and technology south road, Nanshan District hi tech Industrial Park, Guangdong, Shenzhen Applicant before: ZTE Corp. |
|
TA01 | Transfer of patent application right | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20180504 |
|
WD01 | Invention patent application deemed withdrawn after publication |