[go: up one dir, main page]

CN107451059A - A kind of method for testing software and test device - Google Patents

A kind of method for testing software and test device Download PDF

Info

Publication number
CN107451059A
CN107451059A CN201710644441.9A CN201710644441A CN107451059A CN 107451059 A CN107451059 A CN 107451059A CN 201710644441 A CN201710644441 A CN 201710644441A CN 107451059 A CN107451059 A CN 107451059A
Authority
CN
China
Prior art keywords
tested
software
code
test
cloud server
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201710644441.9A
Other languages
Chinese (zh)
Inventor
左兰海
闫冬冬
� 刘
刘一
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhengzhou Yunhai Information Technology Co Ltd
Original Assignee
Zhengzhou Yunhai Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhengzhou Yunhai Information Technology Co Ltd filed Critical Zhengzhou Yunhai Information Technology Co Ltd
Priority to CN201710644441.9A priority Critical patent/CN107451059A/en
Publication of CN107451059A publication Critical patent/CN107451059A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Prevention of errors by analysis, debugging or testing of software
    • G06F11/3698Environments for analysis, debugging or testing of software
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Prevention of errors by analysis, debugging or testing of software
    • G06F11/3668Testing of software
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites

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

本发明实施例公开了一种软件测试方法及测试装置,包括云服务器接收来自终端的待测试软件的代码;在预先建立的测试环境中对获得的待测试软件的代码进行测试。从本发明提供的技术方案可见,由于终端将待测试软件的代码发送至云服务器,由云服务器在预先建立的测试环境中对待测试软件的代码进行测试,从而使得企业无需购置服务器就能够实现待测试软件的测试,有效降低了软件测试成本。

The embodiment of the present invention discloses a software testing method and testing device, comprising a cloud server receiving codes of the software to be tested from a terminal; and testing the obtained codes of the software to be tested in a pre-established testing environment. It can be seen from the technical solution provided by the present invention that since the terminal sends the code of the software to be tested to the cloud server, the cloud server will test the code of the software to be tested in the pre-established test environment, so that the enterprise can realize the code of the software to be tested without purchasing a server. Test software testing, effectively reducing the cost of software testing.

Description

一种软件测试方法及测试装置A software testing method and testing device

技术领域technical field

本发明涉及数据处理领域,尤其涉及一种软件测试方法及测试装置。The invention relates to the field of data processing, in particular to a software testing method and testing device.

背景技术Background technique

软件测试是一种用来促进鉴定软件的正确性、完整性、安全性和质量的过程,它是软件开发必不可少的一部分,通常情况下,软件编写完成后,需要对其代码进行大量的测试,直到符合预设标准才能发布软件产品。Software testing is a process used to promote the correctness, integrity, security and quality of software. It is an essential part of software development. Usually, after the software is written, a large number of codes need to be tested. Testing and not releasing a software product until it meets pre-set criteria.

相关技术中,企业往往需要自行建设机房、购置服务器、对服务器进行配置,以配置好的服务器对待测试软件的代码进行测试,直到待测试软件测试成功。In related technologies, enterprises often need to build computer rooms, purchase servers, and configure servers by themselves, and use the configured servers to test the code of the software to be tested until the software to be tested is successfully tested.

然而,这种软件测试方法需要企业部署服务器并对服务器进行维护,因此十分耗费资金成本和人员成本。However, this method of software testing requires enterprises to deploy and maintain servers, and thus consumes a lot of capital and personnel costs.

发明内容Contents of the invention

为了解决上述技术问题,本发明提供一种软件测试方法及装置,从而在企业自身无需购置服务器的前提下就能实现待测试软件的测试,有效降低了软件测试成本。In order to solve the above technical problems, the present invention provides a software testing method and device, so that the testing of the software to be tested can be realized on the premise that the enterprise itself does not need to purchase a server, and the cost of software testing is effectively reduced.

为了达到本发明目的,本发明提供了一种软件测试方法,包括:In order to achieve the object of the invention, the invention provides a software testing method, comprising:

云服务器接收来自终端的待测试软件的代码;The cloud server receives the code of the software to be tested from the terminal;

在预先建立的测试环境中对获得的待测试软件的代码进行测试。The obtained code of the software to be tested is tested in a pre-established test environment.

所述在预先建立的测试环境中对获得的待测试软件的代码进行测试之后,还包括:After said testing the code of the software to be tested obtained in the pre-established test environment, it also includes:

根据预设标准判断测试过程是否有异常情况发生;Judging whether there is any abnormality in the test process according to the preset standard;

若所述测试过程没有异常情况发生,确定所述待测试软件通过测试;If no abnormal situation occurs in the testing process, it is determined that the software to be tested has passed the test;

若所述测试过程有异常情况发生,向所述终端发送测试异常通知信息;其中,所述测试异常通知信息中包含导致测试异常的原因;If an abnormal situation occurs in the test process, send a test abnormality notification information to the terminal; wherein, the test abnormality notification information includes the cause of the test abnormality;

接收来自所述终端的待测试软件修改后的代码;其中,所述待测试软件修改后的代码是所述终端根据所述导致测试异常的原因对所述待测试软件的代码修改得到的;receiving the modified code of the software to be tested from the terminal; wherein, the modified code of the software to be tested is obtained by modifying the code of the software to be tested by the terminal according to the cause of the abnormal test;

在预先建立的测试环境中对获得的待测试软件修改后的代码进行测试,直到所述测试过程没有异常情况发生,确定所述待测试软件通过测试。The obtained modified code of the software to be tested is tested in a pre-established test environment until no abnormality occurs in the testing process, and it is determined that the software to be tested passes the test.

所述云服务器接收来自终端的待测试软件的代码之前,还包括:Before the cloud server receives the code of the software to be tested from the terminal, it also includes:

接收来自终端的测试环境信息;Receive test environment information from the terminal;

根据所述测试环境信息建立测试环境。A test environment is established according to the test environment information.

所述根据测试环境信息建立测试环境之后,还包括:After the test environment is established according to the test environment information, it also includes:

接收来自终端的优化配置信息;receiving optimized configuration information from the terminal;

利用预置的软件开发工具包根据所述优化配置信息对建立的所述测试环境进行优化配置;Optimally configure the established test environment according to the optimized configuration information by using a preset software development kit;

相应的,所述在预先建立的测试环境中对获得的待测试软件的代码进行测试,包括:Correspondingly, said testing the obtained code of the software to be tested in the pre-established test environment includes:

在预先建立并且经过优化配置后的测试环境中对获得的所述待测试软件的代码进行测试;Testing the obtained code of the software to be tested in a pre-established and optimized configured test environment;

所述根据在预先建立的测试环境中对获得的待测试软件修改后的代码进行测试,包括:According to testing the modified code of the obtained software to be tested according to the pre-established test environment, including:

在预先建立并且经过优化配置后的测试环境中对获得的所述待测试软件修改后的代码进行测试。The obtained modified code of the software to be tested is tested in a pre-established and optimized configured test environment.

本发明还提供了一种软件测试方法,包括:The present invention also provides a software testing method, comprising:

终端向云服务器发送待测试软件的代码,以使所述云服务在预先建立的测试环境中对获得的待测试软件的代码进行测试。The terminal sends the code of the software to be tested to the cloud server, so that the cloud service can test the obtained code of the software to be tested in the pre-established test environment.

所述终端向云服务器发送待测试软件的代码之后,还包括:After the terminal sends the code of the software to be tested to the cloud server, it also includes:

接收所述云服务器发送的测试异常通知信息;其中,所述测试异常通知信息中包含导致测试异常的原因;receiving the test abnormality notification information sent by the cloud server; wherein, the test abnormality notification information includes the cause of the test abnormality;

根据所述导致测试异常的原因修改所述待测试软件的代码,得到待测试软件修改后的代码;Modifying the code of the software to be tested according to the cause of the abnormal test to obtain the modified code of the software to be tested;

向所述云服务器发送所述待测试软件修改后的代码。Send the modified code of the software to be tested to the cloud server.

所述向云服务器发送待测试软件的代码之前,还包括:Before sending the code of the software to be tested to the cloud server, it also includes:

根据所需要的测试环境生成测试环境信息;Generate test environment information according to the required test environment;

向所述云服务器发送所述测试环境信息。Send the test environment information to the cloud server.

所述向云服务器发送测试环境信息之后,还包括:After sending the test environment information to the cloud server, it also includes:

向所述云服务器发送优化配置信息。Send optimization configuration information to the cloud server.

本发明还提供了一种云服务器,包括:The present invention also provides a cloud server, comprising:

第一接收模块,用于接收来自终端的待测试软件的代码;The first receiving module is used to receive the code of the software to be tested from the terminal;

测试模块,用于在预先建立的测试环境中对获得的待测试软件的代码进行测试。The test module is used to test the obtained code of the software to be tested in a pre-established test environment.

本发明还提供了一种终端,包括:The present invention also provides a terminal, including:

第一发送模块,用于向云服务器发送待测试软件的代码,以使所述云服务在预先建立的测试环境中对获得的待测试软件的代码进行测试。The first sending module is configured to send the code of the software to be tested to the cloud server, so that the cloud service can test the obtained code of the software to be tested in a pre-established test environment.

与现有技术相比,本发明至少包括云服务器接收来自终端的待测试软件的代码;在预先建立的测试环境中对获得的待测试软件的代码进行测试。从本发明提供的技术方案可见,由于终端将待测试软件的代码发送至云服务器,由云服务器在预先建立的测试环境中对待测试软件的代码进行测试,从而使得企业无需购置服务器就能够实现待测试软件的测试,有效降低了软件测试成本。Compared with the prior art, the present invention at least comprises that the cloud server receives the code of the software to be tested from the terminal; and tests the obtained code of the software to be tested in the pre-established test environment. It can be seen from the technical solution provided by the present invention that since the terminal sends the code of the software to be tested to the cloud server, the cloud server will test the code of the software to be tested in the pre-established test environment, so that the enterprise can realize the code of the software to be tested without purchasing a server. Test software testing, effectively reducing the cost of software testing.

本发明的其它特征和优点将在随后的说明书中阐述,并且,部分地从说明书中变得显而易见,或者通过实施本发明而了解。本发明的目的和其他优点可通过在说明书、权利要求书以及附图中所特别指出的结构来实现和获得。Additional features and advantages of the invention will be set forth in the description which follows, and in part will be apparent from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention may be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.

附图说明Description of drawings

附图用来提供对本发明技术方案的进一步理解,并且构成说明书的一部分,与本申请的实施例一起用于解释本发明的技术方案,并不构成对本发明技术方案的限制。The accompanying drawings are used to provide a further understanding of the technical solution of the present invention, and constitute a part of the description, and are used together with the embodiments of the application to explain the technical solution of the present invention, and do not constitute a limitation to the technical solution of the present invention.

图1为本发明实施例提供的一种软件测试方法的流程示意图;Fig. 1 is a schematic flow chart of a software testing method provided by an embodiment of the present invention;

图2为本发明实施例提供的另一种软件测试方法的流程示意图;Fig. 2 is a schematic flow chart of another software testing method provided by an embodiment of the present invention;

图3为本发明实施例提供的又一种软件测试方法的流程示意图;FIG. 3 is a schematic flowchart of another software testing method provided by an embodiment of the present invention;

图4为本发明实施例提供的又一种软件测试方法的流程示意图;FIG. 4 is a schematic flow diagram of another software testing method provided by an embodiment of the present invention;

图5为本发明实施例提供的一种云服务器的结构示意图;FIG. 5 is a schematic structural diagram of a cloud server provided by an embodiment of the present invention;

图6为本发明实施例提供的另一种云服务器的结构示意图;FIG. 6 is a schematic structural diagram of another cloud server provided by an embodiment of the present invention;

图7为本发明实施例提供的一种终端的结构示意图;FIG. 7 is a schematic structural diagram of a terminal provided by an embodiment of the present invention;

图8为本发明实施例提供的另一种终端的结构示意图。FIG. 8 is a schematic structural diagram of another terminal provided by an embodiment of the present invention.

具体实施方式detailed description

为使本发明的目的、技术方案和优点更加清楚明白,下文中将结合附图对本发明的实施例进行详细说明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互任意组合。In order to make the purpose, technical solution and advantages of the present invention more clear, the embodiments of the present invention will be described in detail below in conjunction with the accompanying drawings. It should be noted that, in the case of no conflict, the embodiments in the present application and the features in the embodiments can be combined arbitrarily with each other.

本发明实施例提供一种软件测试方法,如图1所示,该方法包括:The embodiment of the present invention provides a software testing method, as shown in Figure 1, the method includes:

步骤101、云服务器接收来自终端的待测试软件的代码。Step 101, the cloud server receives the code of the software to be tested from the terminal.

步骤102、在预先建立的测试环境中对获得的待测试软件的代码进行测试。Step 102: Test the obtained code of the software to be tested in a pre-established test environment.

本发明实施例所提供的软件测试方法,云服务器接收来自终端的待测试软件的代码;在预先建立的测试环境中对获得的待测试软件的代码进行测试。从本发明提供的技术方案可见,由于终端将待测试软件的代码发送至云服务器,由云服务器在预先建立的测试环境中对待测试软件的代码进行测试,从而使得企业无需购置服务器就能够实现待测试软件的测试,有效降低了软件测试成本。In the software testing method provided by the embodiment of the present invention, the cloud server receives the code of the software to be tested from the terminal; and tests the obtained code of the software to be tested in a pre-established testing environment. It can be seen from the technical solution provided by the present invention that since the terminal sends the code of the software to be tested to the cloud server, the cloud server will test the code of the software to be tested in the pre-established test environment, so that the enterprise can realize the code of the software to be tested without purchasing a server. Test software testing, effectively reducing the cost of software testing.

本发明实施例提供另一种软件测试方法,如图2所示,该方法包括:The embodiment of the present invention provides another software testing method, as shown in Figure 2, the method includes:

步骤201、终端向云服务器发送待测试软件的代码,以使云服务在预先建立的测试环境中对获得的待测试软件的代码进行测试。Step 201, the terminal sends the code of the software to be tested to the cloud server, so that the cloud service can test the obtained code of the software to be tested in the pre-established test environment.

本发明实施例所提供的软件测试方法,终端向云服务器发送待测试软件的代码。从本发明提供的技术方案可见,由于终端将待测试软件的代码发送至云服务器,由云服务器在预先建立的测试环境中对待测试软件的代码进行测试,从而使得企业无需购置服务器就能够实现待测试软件的测试,有效降低了软件测试成本。In the software testing method provided by the embodiment of the present invention, the terminal sends the code of the software to be tested to the cloud server. It can be seen from the technical solution provided by the present invention that since the terminal sends the code of the software to be tested to the cloud server, the cloud server will test the code of the software to be tested in the pre-established test environment, so that the enterprise can realize the code of the software to be tested without purchasing a server. Test software testing, effectively reducing the cost of software testing.

本发明实施例提供又一种软件测试方法,如图3所示,该方法包括:The embodiment of the present invention provides yet another software testing method, as shown in Figure 3, the method includes:

步骤301、终端根据所需要的测试环境生成测试环境信息。Step 301, the terminal generates test environment information according to the required test environment.

需要说明的是,由于不同的软件的测试环境不同,因此终端需要根据所测试的软件确定所需要的测试环境,然后根据所需要的测试环境生成环境信息。It should be noted that since different software has different test environments, the terminal needs to determine the required test environment according to the tested software, and then generate environment information according to the required test environment.

具体的,在该步骤前,企业需要根据自身需要、云提供商的收费标准、云提供商所提供的服务确定可用的云提供商,这样终端才能根据所需要的测试环境向确定的云提供商的云服务器发送测试环境信息。Specifically, before this step, the enterprise needs to determine the available cloud provider according to its own needs, the charging standards of the cloud provider, and the services provided by the cloud provider, so that the terminal can submit data to the determined cloud provider according to the required test environment. The cloud server sends test environment information.

步骤302、终端向云服务器发送测试环境信息。Step 302, the terminal sends test environment information to the cloud server.

步骤303、云服务器接收来自终端的测试环境信息。Step 303, the cloud server receives the test environment information from the terminal.

步骤304、云服务器根据测试环境信息建立测试环境。Step 304, the cloud server establishes a test environment according to the test environment information.

具体的,云服务器根据终端发送的测试环境信息获取一系列与所要建立的测试环境相关的功能即服务(Function as a Sevice,FaaS),例如Java虚拟机(Java VirtualMachine,JVM)、消息中间件等,和其他服务,如应用程序编程接口(ApplicationProgramming Interface,API)网关、内容分发网络等,然后进行组合以建立出符合要求的测试环境。Specifically, the cloud server obtains a series of functions as a service (Function as a Service, FaaS) related to the test environment to be established according to the test environment information sent by the terminal, such as Java Virtual Machine (Java Virtual Machine, JVM), message middleware, etc. , and other services, such as application programming interface (Application Programming Interface, API) gateway, content distribution network, etc., and then combine to establish a test environment that meets the requirements.

步骤305、终端向云服务器发送待测试软件的代码。Step 305, the terminal sends the code of the software to be tested to the cloud server.

步骤306、云服务器接收来自终端的待测试软件的代码。Step 306, the cloud server receives the code of the software to be tested from the terminal.

步骤307、云服务器在预先建立的测试环境中对获得的待测试软件的代码进行测试。Step 307, the cloud server tests the obtained code of the software to be tested in the pre-established test environment.

步骤308、云服务器根据预设标准判断测试过程是否有异常情况发生。Step 308, the cloud server judges whether there is any abnormality in the test process according to the preset standard.

具体的,预设标准是用于判断测试过程是否发生异常情况的标准,预设标准可以包括请求时间标准、请求次数标准、占用内存标准等,若预设标准是占用内存标准,那么超过设定的占用内存,说明测试过程有异常情况发生。Specifically, the preset standard is a standard for judging whether an abnormal situation occurs during the test process. The preset standard can include the request time standard, the request frequency standard, and the occupied memory standard. If the preset standard is the memory occupied standard, then the set Occupied memory, indicating that an abnormal situation occurred during the test.

步骤309、若测试过程没有异常情况发生,云服务器确定待测试软件通过测试。Step 309. If no abnormality occurs during the test, the cloud server determines that the software to be tested passes the test.

需要说明的是,若测试过程没有异常情况发生,云服务器确定待测试软件通过测试,则无需再进行其他步骤。It should be noted that if no abnormality occurs during the testing process and the cloud server determines that the software to be tested passes the test, no other steps are required.

步骤310、若测试过程有异常情况发生,云服务器向终端发送测试异常通知信息。Step 310, if an abnormality occurs during the test, the cloud server sends a test abnormality notification message to the terminal.

其中,测试异常通知信息中包含导致测试异常的原因;Among them, the test exception notification information includes the cause of the test exception;

步骤311、终端接收云服务器发送的测试异常通知信息。Step 311, the terminal receives the test abnormality notification information sent by the cloud server.

步骤312、终端根据导致测试异常的原因修改待测试软件的代码,得到待测试软件修改后的代码。Step 312, the terminal modifies the code of the software to be tested according to the cause of the test exception, and obtains the modified code of the software to be tested.

步骤313、终端向云服务器发送待测试软件修改后的代码。Step 313, the terminal sends the modified code of the software to be tested to the cloud server.

步骤314、云服务器接收来自终端的待测试软件修改后的代码。Step 314, the cloud server receives the modified code of the software to be tested from the terminal.

步骤315、云服务器在预先建立的测试环境中对获得的待测试软件修改后的代码进行测试,直到测试过程没有异常情况发生,确定待测试软件通过测试。Step 315 , the cloud server tests the obtained modified code of the software to be tested in the pre-established test environment until no abnormality occurs during the test, and it is determined that the software to be tested passes the test.

具体的,云服务器根据预先建立的测试环境对待测试软件修改后的代码进行测试,若检测过程中仍然有异常情况发生,再向终端发送测试异常通知信息,直到检测过程中没有异常情况发生,确定待测试软件通过测试。Specifically, the cloud server tests the modified code of the software to be tested according to the pre-established test environment. If there is still an abnormal situation during the detection process, it will send a test abnormality notification message to the terminal until no abnormal situation occurs during the detection process. The software to be tested passes the test.

需要说明的是,步骤310~315是测试过程有异常情况的处理方法,若测试过程没有发生异常情况,则无需进行步骤310~315。本实施例提供的软件测试方法实际应用的是无服务器架构,在无服务器架构中整个计算堆栈,包括主机实例、运行业务代码的操作系统进程等都由云提供商进行管理,与传统的信息技术(Information Technology,IT)架构模型相比,大大简化了运算基础架构的管理,并结合了按使用进行收费的计费模式,提供了非常灵活且经济的运算选型。It should be noted that steps 310-315 are methods for handling abnormalities in the testing process, and if no abnormalities occur in the testing process, steps 310-315 do not need to be performed. The actual application of the software testing method provided in this embodiment is the serverless architecture. In the serverless architecture, the entire computing stack, including the host instance and the operating system process running the business code, etc. are all managed by the cloud provider, which is different from the traditional information technology Compared with the IT (Information Technology, IT) architecture model, it greatly simplifies the management of computing infrastructure, and combines the billing mode of charging according to usage, providing very flexible and economical computing options.

还需要说明的是,本实施例中与其它实施例中相同步骤或者概念的解释,可以参照其它实施例中的描述。It should also be noted that for an explanation of the same steps or concepts in this embodiment and other embodiments, reference may be made to the descriptions in other embodiments.

本发明实施例所提供的软件测试方法,终端向云服务器发送待测试软件的代码;云服务器接收来自终端的待测试软件的代码;云服务器根据预先建立的测试环境对获得的待测试软件的代码进行测试。从本发明提供的技术方案可见,由于终端将待测试软件的代码发送至云服务器,由云服务器根据预先建立的测试环境对待测试软件的代码进行测试,从而使得企业无需购置服务器就能够实现待测试软件的测试,有效降低了软件测试成本。从本发明提供的技术方案可见,由于终端将待测试软件的代码发送至云服务器,由云服务器根据预先建立的测试环境对待测试软件的代码进行测试,从而使得企业无需购置服务器就能够实现待测试软件的测试,有效降低了软件测试成本。In the software testing method provided by the embodiment of the present invention, the terminal sends the code of the software to be tested to the cloud server; the cloud server receives the code of the software to be tested from the terminal; carry out testing. It can be seen from the technical solution provided by the present invention that since the terminal sends the code of the software to be tested to the cloud server, the cloud server tests the code of the software to be tested according to the pre-established test environment, so that the enterprise can realize the code of the software to be tested without purchasing a server. Software testing effectively reduces the cost of software testing. It can be seen from the technical solution provided by the present invention that since the terminal sends the code of the software to be tested to the cloud server, the cloud server tests the code of the software to be tested according to the pre-established test environment, so that the enterprise can realize the code of the software to be tested without purchasing a server. Software testing effectively reduces the cost of software testing.

本发明实施例提供又一种软件测试方法,如图4所示,该方法包括:The embodiment of the present invention provides yet another software testing method, as shown in Figure 4, the method includes:

步骤401、终端根据所需要的测试环境生成测试环境信息。Step 401, the terminal generates test environment information according to the required test environment.

步骤402、终端向云服务器发送测试环境信息。Step 402, the terminal sends test environment information to the cloud server.

步骤403、云服务器接收来自终端的测试环境信息。Step 403, the cloud server receives the test environment information from the terminal.

步骤404、云服务器根据测试环境信息建立测试环境。Step 404, the cloud server establishes a test environment according to the test environment information.

步骤405、终端向云服务器发送优化配置信息。Step 405, the terminal sends optimization configuration information to the cloud server.

步骤406、云服务器接收来自终端的优化配置信息。Step 406, the cloud server receives the optimized configuration information from the terminal.

步骤407、云服务器利用预置的软件开发工具包根据优化配置信息对建立的测试环境进行优化配置。Step 407, the cloud server optimizes the established test environment by using the preset software development kit according to the optimized configuration information.

需要说明的是,软件开发工具包(Software Development Kit,SDK)是辅助开发某一类软件的相关文档、范例和工具的集合。根据SDK能够对测试环境进行细微的调整和个性化的定制。It should be noted that a software development kit (Software Development Kit, SDK) is a collection of relevant documents, examples and tools that assist in the development of a certain type of software. According to the SDK, the test environment can be slightly adjusted and customized.

需要说明的是,根据SDK对测试环境进行配置能够使得测试环境更加符合测试要求。It should be noted that configuring the test environment according to the SDK can make the test environment more in line with the test requirements.

步骤408、终端向云服务器发送待测试软件的代码。Step 408, the terminal sends the code of the software to be tested to the cloud server.

步骤409、云服务器接收来自终端的待测试软件的代码。Step 409, the cloud server receives the code of the software to be tested from the terminal.

步骤410、云服务器在预先建立并且经过优化配置后的测试环境中对获得的待测试软件的代码进行测试。Step 410, the cloud server tests the obtained code of the software to be tested in the pre-established and optimized configured test environment.

步骤411、云服务器根据预设标准判断测试过程是否有异常情况发生。Step 411, the cloud server judges whether there is any abnormality in the test process according to the preset standard.

步骤412、若测试过程没有异常情况发生,云服务器确定待测试软件通过测试。Step 412: If no abnormality occurs during the test, the cloud server determines that the software to be tested passes the test.

需要说明的是,若测试过程没有异常情况发生,云服务器确定待测试软件通过测试,则无需再进行其他步骤。It should be noted that if no abnormality occurs during the testing process and the cloud server determines that the software to be tested passes the test, no other steps are required.

步骤413、若测试过程有异常情况发生,云服务器向终端发送测试异常通知信息。Step 413, if an abnormality occurs during the test, the cloud server sends a test abnormality notification message to the terminal.

其中,测试异常通知信息中包含导致测试异常的原因;Among them, the test exception notification information includes the cause of the test exception;

步骤414、终端接收云服务器发送的测试异常通知信息。Step 414, the terminal receives the test abnormality notification information sent by the cloud server.

步骤415、终端根据导致测试异常的原因修改待测试软件的代码,得到待测试软件修改后的代码。Step 415, the terminal modifies the code of the software to be tested according to the cause of the test exception, and obtains the modified code of the software to be tested.

步骤416、终端向云服务器发送待测试软件修改后的代码。Step 416, the terminal sends the modified code of the software to be tested to the cloud server.

步骤417、云服务器接收来自终端的待测试软件修改后的代码。Step 417, the cloud server receives the modified code of the software to be tested from the terminal.

步骤418、云服务器在预先建立并且经过优化配置后的测试环境中对获得的待测试软件修改后的代码进行测试,直到测试过程没有异常情况发生,确定待测试软件通过测试。Step 418, the cloud server tests the obtained modified code of the software to be tested in the pre-established and optimized configuration test environment until no abnormality occurs during the test, and it is determined that the software to be tested passes the test.

具体的,云服务器根据预先建立的测试环境对待测试软件修改后的代码进行测试,若检测过程中仍然有异常情况发生,再向终端发送测试异常通知信息,直到检测过程中没有异常情况发生,确定待测试软件通过测试。Specifically, the cloud server tests the modified code of the software to be tested according to the pre-established test environment. If there is still an abnormal situation during the detection process, it will send a test abnormality notification message to the terminal until no abnormal situation occurs during the detection process. The software to be tested passes the test.

需要说明的是,步骤413~418是测试过程有异常情况的处理方法,若测试过程没有发生异常情况,则无需进行步骤413~418。It should be noted that steps 413-418 are methods for handling abnormalities in the testing process, and if no abnormalities occur in the testing process, steps 413-418 do not need to be performed.

还需要说明的是,本实施例中与其它实施例中相同步骤或者概念的解释,可以参照其它实施例中的描述。It should also be noted that for an explanation of the same steps or concepts in this embodiment and other embodiments, reference may be made to the descriptions in other embodiments.

本发明实施例所提供的软件测试方法,终端向云服务器发送待测试软件的代码;云服务器接收来自终端的待测试软件的代码;云服务器根据预先建立的测试环境对获得的待测试软件的代码进行测试。从本发明提供的技术方案可见,由于终端将待测试软件的代码发送至云服务器,由云服务器根据预先建立的测试环境对待测试软件的代码进行测试,从而使得企业无需购置服务器就能够实现待测试软件的测试,有效降低了软件测试成本。从本发明提供的技术方案可见,由于终端将待测试软件的代码发送至云服务器,由云服务器根据预先建立的测试环境对待测试软件的代码进行测试,从而使得企业无需购置服务器就能够实现待测试软件的测试,有效降低了软件测试成本。In the software testing method provided by the embodiment of the present invention, the terminal sends the code of the software to be tested to the cloud server; the cloud server receives the code of the software to be tested from the terminal; carry out testing. It can be seen from the technical solution provided by the present invention that since the terminal sends the code of the software to be tested to the cloud server, the cloud server tests the code of the software to be tested according to the pre-established test environment, so that the enterprise can realize the code of the software to be tested without purchasing a server. Software testing effectively reduces the cost of software testing. It can be seen from the technical solution provided by the present invention that since the terminal sends the code of the software to be tested to the cloud server, the cloud server tests the code of the software to be tested according to the pre-established test environment, so that the enterprise can realize the code of the software to be tested without purchasing a server. Software testing effectively reduces the cost of software testing.

本发明实施例提供一种云服务器,如图5所示,该云服务器5包括:The embodiment of the present invention provides a kind of cloud server, as shown in Figure 5, this cloud server 5 comprises:

第一接收模块51,用于接收来自终端的待测试软件的代码。The first receiving module 51 is configured to receive the code of the software to be tested from the terminal.

测试模块52,用于在预先建立的测试环境中对获得的待测试软件的代码进行测试。The testing module 52 is used for testing the obtained code of the software to be tested in a pre-established testing environment.

进一步,在图5对应的实施例的基础上,本发明实施例提供了另一种云服务器,如图6所示,该云服务器5还包括:Further, on the basis of the embodiment corresponding to FIG. 5, the embodiment of the present invention provides another cloud server. As shown in FIG. 6, the cloud server 5 also includes:

判断模块53,用于根据预设标准判断测试过程是否有异常情况发生。The judging module 53 is used for judging whether there is any abnormality in the testing process according to the preset standard.

确定模块54,用于若测试过程没有异常情况发生,确定待测试软件通过测试。The determining module 54 is configured to determine that the software to be tested passes the test if no abnormality occurs during the testing process.

第二发送模块55,用于若测试过程有异常情况发生,向终端发送测试异常通知信息;其中,测试异常通知信息中包含导致测试异常的原因。The second sending module 55 is configured to send test abnormality notification information to the terminal if abnormality occurs in the test process; wherein, the test abnormality notification information includes the cause of the test abnormality.

第一接收模块51,还用于接收来自终端的待测试软件修改后的代码;其中,待测试软件修改后的代码是终端根据导致测试异常的原因对待测试软件的代码修改得到的。The first receiving module 51 is also used to receive the modified code of the software to be tested from the terminal; wherein, the modified code of the software to be tested is obtained by the terminal according to the reason of the test abnormality.

测试模块52,还用于在预先建立的测试环境中对获得的待测试软件修改后的代码进行测试,直到测试过程没有异常情况发生,确定待测试软件通过测试。The testing module 52 is also used to test the obtained modified code of the software to be tested in the pre-established testing environment until no abnormality occurs in the testing process, and it is determined that the software to be tested passes the test.

第一接收模块51,还用于接收来自终端的测试环境信息。The first receiving module 51 is also used for receiving test environment information from the terminal.

建立模块56,用于根据测试环境信息建立测试环境。The establishment module 56 is used to establish a test environment according to the test environment information.

第一接收模块51,还用于接收来自终端的优化配置信息。The first receiving module 51 is also configured to receive optimization configuration information from the terminal.

配置模块57,用于利用预置的软件开发工具包根据优化配置信息对建立的测试环境进行优化配置The configuration module 57 is used to optimize the configuration of the established test environment according to the optimized configuration information using a preset software development kit

测试模块52,具体用于在预先建立并且经过优化配置后的测试环境对待测试软件的代码进行测试;在预先建立并且经过优化配置后的测试环境对待测试软件修改后的代码进行测试。The testing module 52 is specifically used to test the code of the software to be tested in the pre-established and optimized configuration test environment; to test the modified code of the software to be tested in the pre-established and optimized configuration test environment.

本发明实施例所提供的云服务器,接收来自终端的待测试软件的代码;在预先建立的测试环境中对获得的待测试软件的代码进行测试。从本发明提供的技术方案可见,由于终端将待测试软件的代码发送至云服务器,由云服务器根据预先建立的测试环境对待测试软件的代码进行测试,从而使得企业无需购置服务器就能够实现待测试软件的测试,有效降低了软件测试成本。The cloud server provided by the embodiment of the present invention receives the code of the software to be tested from the terminal; and tests the obtained code of the software to be tested in a pre-established test environment. It can be seen from the technical solution provided by the present invention that since the terminal sends the code of the software to be tested to the cloud server, the cloud server tests the code of the software to be tested according to the pre-established test environment, so that the enterprise can realize the code of the software to be tested without purchasing a server. Software testing effectively reduces the cost of software testing.

在实际应用中,所述第一接收模块51、测试模块52、判断模块53、确定模块54、第二发送模块55、建立模块56和配置模块57均可由位于云服务器中的中央处理器(CentralProcessing Unit,CPU)、微处理器(Micro Processor Unit,MPU)、数字信号处理器(Digital Signal Processor,DSP)或现场可编程门阵列(Field Programmable GateArray,FPGA)等实现。In practical applications, the first receiving module 51, the testing module 52, the judging module 53, the determining module 54, the second sending module 55, the establishing module 56 and the configuration module 57 can all be controlled by a central processing unit (Central Processing) located in the cloud server. Unit, CPU), microprocessor (Micro Processor Unit, MPU), digital signal processor (Digital Signal Processor, DSP) or field programmable gate array (Field Programmable GateArray, FPGA) and other implementations.

本发明实施例提供一种终端,如图7所示,该终端6包括:An embodiment of the present invention provides a terminal. As shown in FIG. 7, the terminal 6 includes:

第一发送模块61,用于向云服务器发送待测试软件的代码,以使云服务在预先建立的测试环境中对获得的待测试软件的代码进行测试。The first sending module 61 is configured to send the code of the software to be tested to the cloud server, so that the cloud service can test the obtained code of the software to be tested in a pre-established test environment.

进一步,在图7对应的实施例的基础上,本发明实施例提供了另一种终端,如图8所示,该终端6还包括:Further, on the basis of the embodiment corresponding to FIG. 7 , this embodiment of the present invention provides another terminal. As shown in FIG. 8 , the terminal 6 further includes:

第二接收模块62,用于接收云服务器发送的测试异常通知信息;其中,测试异常通知信息中包含导致测试异常的原因。The second receiving module 62 is configured to receive the test abnormality notification information sent by the cloud server; wherein, the test abnormality notification information includes the cause of the test abnormality.

处理模块63,用于根据导致测试异常的原因修改待测试软件的代码,得到待测试软件修改后的代码。The processing module 63 is configured to modify the code of the software to be tested according to the cause of the test exception, and obtain the modified code of the software to be tested.

第一发送模块51,还用于向云服务器发送待测试软件修改后的代码。The first sending module 51 is also used to send the modified code of the software to be tested to the cloud server.

生成模块64,用于根据所需要的测试环境生成测试环境信息。A generating module 64, configured to generate test environment information according to the required test environment.

第一发送模块61,还用于向云服务器发送测试环境信息。The first sending module 61 is also configured to send the test environment information to the cloud server.

进一步,第一发送模块61,还用于向云服务器发送优化配置信息。Further, the first sending module 61 is also configured to send optimized configuration information to the cloud server.

本发明实施例所提供的终端,向云服务器发送待测试软件的代码。从本发明提供的技术方案可见,由于终端将待测试软件的代码发送至云服务器,由云服务器在预先建立的测试环境中对待测试软件的代码进行测试,从而使得企业无需购置服务器就能够实现待测试软件的测试,有效降低了软件测试成本。The terminal provided by the embodiment of the present invention sends the code of the software to be tested to the cloud server. It can be seen from the technical solution provided by the present invention that since the terminal sends the code of the software to be tested to the cloud server, the cloud server will test the code of the software to be tested in the pre-established test environment, so that the enterprise can realize the code of the software to be tested without purchasing a server. The test of test software effectively reduces the cost of software test.

在实际应用中,所述第一发送模块61、第二接收模块62、处理模块63和生成模块64均可由位于终端中的CPU、MPU、DSP或FPGA等实现。In practical application, the first sending module 61 , the second receiving module 62 , the processing module 63 and the generating module 64 can all be realized by CPU, MPU, DSP or FPGA etc. located in the terminal.

虽然本发明所揭露的实施方式如上,但所述的内容仅为便于理解本发明而采用的实施方式,并非用以限定本发明。任何本发明所属领域内的技术人员,在不脱离本发明所揭露的精神和范围的前提下,可以在实施的形式及细节上进行任何的修改与变化,但本发明的专利保护范围,仍须以所附的权利要求书所界定的范围为准。Although the embodiments disclosed in the present invention are as above, the described content is only an embodiment adopted for understanding the present invention, and is not intended to limit the present invention. Anyone skilled in the field of the present invention can make any modifications and changes in the form and details of the implementation without departing from the spirit and scope disclosed by the present invention, but the scope of patent protection of the present invention must still be The scope defined by the appended claims shall prevail.

Claims (10)

  1. A kind of 1. method for testing software, it is characterised in that including:
    Cloud server carrys out the code of the software to be tested of self terminal;
    The code of the software to be tested of acquisition is tested in the test environment pre-established.
  2. 2. method of testing according to claim 1, it is characterised in that it is described in the test environment pre-established to obtain Software to be tested code tested after, in addition to:
    Judge whether test process there are abnormal conditions according to preset standard;
    If the test process does not have abnormal conditions, determine that the software to be tested passes through test;
    If the test process there are abnormal conditions, sent to the terminal and test abnormal announcement information;Wherein, the test Being included in abnormal announcement information causes to test the reason for abnormal;
    Receive the code after the software modification to be tested from the terminal;Wherein, the code after the software modification to be tested It is that code revision of the reason for terminal causes to test exception according to the software to be tested obtains;
    The code after the software modification to be tested of acquisition is tested in the test environment pre-established, until the test Process does not have abnormal conditions, determines that the software to be tested passes through test.
  3. 3. method of testing according to claim 2, it is characterised in that the cloud server carrys out the to be tested of self terminal Before the code of software, in addition to:
    Receive the test environment information for carrying out self terminal;
    Test environment is established according to the test environment information.
  4. 4. method of testing according to claim 3, it is characterised in that described that test environment is established according to test environment information Afterwards, in addition to:
    Receive and carry out self terminal and distribute information rationally;
    Information is distributed rationally according to using preset SDK to optimize the test environment of foundation Configuration;
    Accordingly, it is described that the code of the software to be tested of acquisition is tested in the test environment pre-established, including:
    Pre-establishing and the code of the software to be tested of acquisition is being carried out in test environment after distributing rationally Test;
    The basis is tested the code after the software modification to be tested of acquisition in the test environment pre-established, bag Include:
    Pre-establishing and in test environment after distributing rationally to the generation after the software modification to be tested of acquisition Code is tested.
  5. A kind of 5. method for testing software, it is characterised in that including:
    Terminal sends the code of software to be tested to Cloud Server, so that the cloud service is right in the test environment pre-established The code of the software to be tested obtained is tested.
  6. 6. according to the method for testing described in right 5, it is characterised in that the terminal sends the generation of software to be tested to Cloud Server After code, in addition to:
    Receive the test exception announcement information that the Cloud Server is sent;Wherein, include and lead in the abnormal announcement information of test The reason for causing test abnormal;
    The code of the software to be tested is changed according to described the reason for causing to test exception, after obtaining software modification to be tested Code;
    Code after sending from the software modification to be tested to the Cloud Server.
  7. 7. method of testing according to claim 5, it is characterised in that the generation that software to be tested is sent to Cloud Server Before code, in addition to:
    Test environment information is generated according to required test environment;
    The test environment information is sent to the Cloud Server.
  8. 8. method of testing according to claim 7, it is characterised in that it is described to Cloud Server send test environment information it Afterwards, in addition to:
    Sent to the Cloud Server and distribute information rationally.
  9. A kind of 9. Cloud Server, it is characterised in that including:
    First receiving module, for receiving the code for the software to be tested for carrying out self terminal;
    Test module, for being tested in the test environment pre-established the code of the software to be tested of acquisition.
  10. A kind of 10. terminal, it is characterised in that including:
    First sending module, for sending the code of software to be tested to Cloud Server, so that the cloud service is pre-establishing Test environment in the code of the software to be tested of acquisition is tested.
CN201710644441.9A 2017-07-31 2017-07-31 A kind of method for testing software and test device Pending CN107451059A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710644441.9A CN107451059A (en) 2017-07-31 2017-07-31 A kind of method for testing software and test device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710644441.9A CN107451059A (en) 2017-07-31 2017-07-31 A kind of method for testing software and test device

Publications (1)

Publication Number Publication Date
CN107451059A true CN107451059A (en) 2017-12-08

Family

ID=60490121

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710644441.9A Pending CN107451059A (en) 2017-07-31 2017-07-31 A kind of method for testing software and test device

Country Status (1)

Country Link
CN (1) CN107451059A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110083443A (en) * 2019-03-18 2019-08-02 平安普惠企业管理有限公司 A kind of system testing exception notification method and system
CN112231215A (en) * 2020-10-19 2021-01-15 上海品埃信息科技有限公司 Technical scheme for testing application software of mobile terminal as cloud service
CN112650666A (en) * 2019-10-12 2021-04-13 北京达佳互联信息技术有限公司 Software testing system, method, device, control equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110010691A1 (en) * 2009-07-08 2011-01-13 Vmware, Inc. Distributed Software Testing Using Cloud Computing Resources
CN103605610A (en) * 2013-12-10 2014-02-26 浪潮电子信息产业股份有限公司 System and method for software testing based on Hadoop
CN106933729A (en) * 2015-12-29 2017-07-07 苏宁云商集团股份有限公司 A kind of method of testing and system based on cloud platform

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110010691A1 (en) * 2009-07-08 2011-01-13 Vmware, Inc. Distributed Software Testing Using Cloud Computing Resources
CN103605610A (en) * 2013-12-10 2014-02-26 浪潮电子信息产业股份有限公司 System and method for software testing based on Hadoop
CN106933729A (en) * 2015-12-29 2017-07-07 苏宁云商集团股份有限公司 A kind of method of testing and system based on cloud platform

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110083443A (en) * 2019-03-18 2019-08-02 平安普惠企业管理有限公司 A kind of system testing exception notification method and system
CN112650666A (en) * 2019-10-12 2021-04-13 北京达佳互联信息技术有限公司 Software testing system, method, device, control equipment and storage medium
CN112650666B (en) * 2019-10-12 2024-04-09 北京达佳互联信息技术有限公司 Software testing system, method, device, control equipment and storage medium
CN112231215A (en) * 2020-10-19 2021-01-15 上海品埃信息科技有限公司 Technical scheme for testing application software of mobile terminal as cloud service

Similar Documents

Publication Publication Date Title
WO2021244211A1 (en) Blockchain message processing method and apparatus, computer and readable storage medium
CN109949111B (en) Electronic bill identification distribution method, electronic bill generation method, device and system
CN112887120B (en) Information processing method and device
US20220337493A1 (en) Report generation from testing a test application in a network-as-a-service
JP6332774B2 (en) Network function virtualized NFV failure management apparatus, device, and method
WO2022127504A1 (en) Network element management method and apparatus, and storage medium
CN106911648B (en) A kind of environment isolation method and equipment
US10944655B2 (en) Data verification based upgrades in time series system
WO2013104217A1 (en) Cloud infrastructure based management system and method for performing maintenance and deployment for application system
CN104378342A (en) Multi-account verification method, device and system
CN113505520A (en) Method, device and system for supporting heterogeneous federated learning
CN108566408A (en) Service processing method, device and storage medium
CN105184501A (en) Efficient asynchronous order processing method
CN110851471A (en) Distributed log data processing method, device and system
CN107451059A (en) A kind of method for testing software and test device
CN104125281A (en) Method and device for recording examination and approval state of resource application in cloud data centre
JP7405955B2 (en) Communication methods and devices for multiple management areas
WO2013037234A1 (en) Parameter receiving method and system
US20230071504A1 (en) Multi-client orchestrated automated testing platform
CN114513552A (en) Data processing method, device, equipment and storage medium
US20230267430A1 (en) Data processing method and device, and computer-readable storage medium
CN114598680B (en) Domain name management method, device and storage medium
CN116258461A (en) A business process orchestration method, execution method and device
CN114650214B (en) Disaster recovery switching method and device, computer equipment and storage medium
CN113947434B (en) A business processing method and device for a multi-business component combination scenario

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20171208

RJ01 Rejection of invention patent application after publication