CN105224464A - A kind of parallel automated testing method - Google Patents

A kind of parallel automated testing method Download PDF

Info

Publication number
CN105224464A
CN105224464A CN201510760943.9A CN201510760943A CN105224464A CN 105224464 A CN105224464 A CN 105224464A CN 201510760943 A CN201510760943 A CN 201510760943A CN 105224464 A CN105224464 A CN 105224464A
Authority
CN
China
Prior art keywords
test
resource
test resource
target detection
case
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
CN201510760943.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.)
Inspur Beijing Electronic Information Industry Co Ltd
Original Assignee
Inspur Beijing Electronic Information Industry 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 Inspur Beijing Electronic Information Industry Co Ltd filed Critical Inspur Beijing Electronic Information Industry Co Ltd
Priority to CN201510760943.9A priority Critical patent/CN105224464A/en
Publication of CN105224464A publication Critical patent/CN105224464A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a kind of parallel automated testing method, comprising: client sends test resource request to service end, and wherein, client works under the RobotFramework environment built in advance, and service end works under the staf environment built in advance; Service end judges whether to exist the idle test resource of the test resource met needed for test resource request, if, then determine that test resource corresponding with test resource request in this idle test resource is target detection resource, determine that the test case corresponding with test resource request obtained in advance in client is target detection use-case, and utilize target detection resource to test target detection use-case.Above-mentioned technical characteristic disclosed in the present application, avoid the situation of losing time mentioned in background technology, that is, a kind of parallel automated testing method that the application provides can avoid the waste of test resource and test duration, and then efficiently completes test assignment fast.

Description

A kind of parallel automated testing method
Technical field
The present invention relates to technical field of automation, more particularly, relate to a kind of parallel automated testing method.
Background technology
Along with the change of development mode, how fast continuous print delivered product all becomes a very large challenge for development& testing team.For tester, how at limited test resource with ensure within the test duration that product quality becomes a vital problem.
In order to shorten the test duration, often adopt parallel automated testing method, even multiple testsuite (protos test suite PROTOS) tests simultaneously.But traditional parallel automatic test, the length of total runtime depends on the testsuite needing maximum duration, namely, when multiple testsuite tests simultaneously, only have whole testsuite to run rear just can completing and this time test, this can cause the regular hour to waste.And, the test resource distributed for each testsuite depends on the testsuite needing full test resource, namely when multiple testsuite tests simultaneously, the test resource distributed for each testsuite is identical, in order to ensure that whole testsuite all can normally run, therefore, need to distribute to each testsuite test resource identical with the test resource needed needed for the testsuite of full test resource, this can cause the waste of certain test resource.
In sum, there is the problem of losing time and wasting test resource to a certain extent in parallel automated testing method of the prior art.
Summary of the invention
The object of this invention is to provide a kind of parallel automated testing method, to solve losing time to a certain extent of existing in prior art and to waste the problem of test resource.
To achieve these goals, the invention provides following technical scheme:
A kind of parallel automated testing method, comprising:
Client sends test resource request to service end, and wherein, described client works under the RobotFramework environment built in advance, and described service end works under the staf environment built in advance;
Described service end judges whether to exist the idle test resource of the test resource met needed for described test resource request, if, then determine that test resource corresponding with described test resource request in this idle test resource is target detection resource, determine that the test case corresponding with described test resource request obtained in advance in described client is target detection use-case, and utilize described target detection resource to test described target detection use-case.
Preferably, also comprise:
If described service end judges not exist the idle test resource of the test resource met needed for described test resource request, then return wait instruction to described client.
Preferably, also comprise:
In preset time period after described service end judges not exist the moment of the idle test resource of the test resource met needed for described test resource request, if there is the idle test resource of the test resource met needed for described test resource request, then determine that this idle test resource is target detection resource.
Preferably, also comprise:
Described service end utilizes after described target detection resource completes test to described target detection use-case, described target detection resource is discharged, and determines that described target detection resource is idle test resource.
Preferably, also comprise:
When described service end receives the test resource request of multiple client transmission simultaneously, the priority according to the described multiple client pre-set processes the test resource request that described multiple client sends.
Preferably, also comprise:
Described service end utilizes after described target detection resource completes test to described target detection use-case, generates test report according to the reporting format pre-set.
Preferably, the acquisition process in advance of the test case of described client comprises:
The test case that described client acquisition user utilizes the ride instrument under RobotFramework environment to write also stores.
Preferably, also comprise:
Described service end obtains described target detection use-case, and described target detection use-case is sent to other clients.
One provided by the invention walks abreast automated testing method, comprising: client sends test resource request to service end, and wherein, client works under the RobotFramework environment built in advance, and service end works under the staf environment built in advance; Service end judges whether to exist the idle test resource of the test resource met needed for test resource request, if, then determine that test resource corresponding with test resource request in this idle test resource is target detection resource, determine that the test case corresponding with test resource request obtained in advance in client is target detection use-case, and utilize target detection resource to test target detection use-case.Compared with prior art, in above-mentioned technical characteristic disclosed in the present application, parallel automatic test is completed based on roborframework environment and staf environment, the language integration ability stronger due to roborframework and staf spontaneous preferably, rapidly and efficiently can complete the test to test case.Simultaneously, without the need to distributing identical test resource to multiple test case, but utilize test resource corresponding with test case in idle test resource to test it, avoid the waste of test resource, and, do not need to complete when realizing the test of multiple test case thus simultaneously, thus avoid the situation of losing time mentioned in background technology, namely, a kind of parallel automated testing method that the application provides can avoid the waste of test resource and test duration, and then efficiently completes test assignment fast.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is only embodiments of the invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to the accompanying drawing provided.
The process flow diagram of a kind of parallel automated testing method that Fig. 1 provides for the embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
Refer to Fig. 1, it illustrates the process flow diagram of a kind of parallel automated testing method that the embodiment of the present invention provides, can comprise the following steps:
S11: client sends test resource request to service end, and wherein, client works under the RobotFramework environment built in advance, and service end works under the staf environment built in advance.
It should be noted that, staf (SoftwareTestAutomationFramework, software test automation framework) be increase income, cross-platform, support automated test frame that is multilingual and that build based on reusable assembly, it encapsulates the complicacy communicated between different platform with different language, provide the reusable services such as message, mutual exclusion, synchronous, daily record, it has good spontaneity simultaneously, be applicable to automatic test, user can be made to build automatic test solution quickly and easily on this basis.And RobotFramework (robot frame) is a Function Test Automation framework, possesses good extensibility, support key word drives, it also has stronger language integration ability, polytype client or interface can be tested simultaneously, carry out distributed testing execution.Client completes the work relevant to parallel automatic test under RobotFramework environment, and service end completes the work relevant to parallel automatic test under staf environment.
S12: service end judges whether to exist the idle test resource of the test resource met needed for test resource request, if so, then performs step S13, if not, then performs step S14.
It should be noted that, meet the idle test resource of the test resource needed for test resource request, namely idle test resource is greater than the test resource needed for test resource request.And the size requirement of test resource needed for test resource request can be carried in test resource request.
S13: determine that test resource corresponding with test resource request in this idle test resource is target detection resource, determine that the test case corresponding with test resource request obtained in advance in client is target detection use-case, and utilize target detection resource to test target detection use-case.
Wherein, in idle test resource, the test resource corresponding with test resource request is the test resource used needed for the test case corresponding with test resource request idle test resource of the same size, if idle test resource is not enough to the test for test case, the process to test resource request directly can be suspended.
Specifically, utilizing target detection resource to carry out testing actual to target detection use-case is the test to target detection end, includes the content measurement to target detection end, in target detection use-case in the process of performance objective test case, can conduct interviews to target detection end, to complete test.And before testing, target detection end whether ready (namely it treats whether examining system installs) can also be judged, if so, then test, otherwise, then wait for that target detection end is tested after ready again.
S14: suspend the process to test resource request.
Owing to there is not the idle test resource of the test resource met needed for test resource request, suspend the process to test resource request, wait for next step process.
In above-mentioned technical characteristic disclosed in the present application, parallel automatic test is completed based on roborframework environment and staf environment, the language integration ability stronger due to roborframework and staf spontaneous preferably, rapidly and efficiently can complete the test to test case.Simultaneously, without the need to distributing identical test resource to multiple test case, but utilize test resource corresponding with test case in idle test resource to test it, avoid the waste of test resource, and, do not need to complete when realizing the test of multiple test case thus simultaneously, thus avoid the situation of losing time mentioned in background technology, namely, a kind of parallel automated testing method that the application provides can avoid the waste of test resource and test duration, and then efficiently completes test assignment fast.
It should be noted that, the one provided to realize the embodiment of the present invention walks abreast automated testing method, needs to build staf environment and roborframework environment in advance.Specifically:
Client can be windows platform, as monitoring client and the control end of test environment, after the windows stage+module robotframework environment of client, python2.7 need be relied on, import the storehouses such as the self-defined storehouse of Selenium2Library, OperatingSystem, SSHLibrary, String, keywork.txt, to complete writing of test case by above-mentioned storehouse.Specifically, the acquisition process in advance of the test case of client can comprise: the test case that client acquisition user utilizes the ride instrument under RobotFramework environment to write also stores.Namely, after the roborframework creating environments of client completes, user uses ride instrument to write test case, and test case can comprise: ltpcom, ltpfs, ltpmm, ltpfs_bind, ltpipc, ltpsched, ltpfsx, ltpsys, ltpfs_reaonly, ltpdio, ltpio, ltpio_cd, ltpnetwork.Its function is achieve the automatic test of ltp (LinuxTestProject, Linux test event) test in file system, management of process, memory management, IO function, network function respectively.
And service end is used for the request of management testing resource and release, building of its staf environment mainly can comprise: service end installs compiling ltp20150422 version, and encapsulates installation procedure; Read the xml configuration file of staf, served by resource pool, the Thread Count of thread pool is made configurable, and then service end can be made to control the Thread Count of parallel automatic test flexibly according to the quantity of test resource, namely make service end realize management and the release of test resource.
The one that above-described embodiment provides walks abreast in automated testing method, can also comprise:
If service end judges not exist the idle test resource of the test resource met needed for test resource request, to notify that client does not temporarily exist the idling-resource can tested target detection use-case, client is facilitated to know the process progress of service end for test resource request.
Simultaneously, test resource request temporarily stores in the buffer by service end, in preset time period after service end judges not exist the moment of the idle test resource of the test resource met needed for test resource request, if there is the idle test resource of the test resource met needed for test resource request, then determine that this idle test resource is target detection resource.If in preset time period, there is not the idle test resource meeting the test resource needed for test resource request, then stop the process to this test resource request, to avoid impacting the performance of other test resource requests and service end, and process failure is sent to client, carry out other process to facilitate client test case corresponding to the test resource request that process is failed in time.Wherein, preset time period can set according to actual needs.
By above-mentioned steps, not only ensure that client can know the treatment state of service end for test resource request in time, can also process test resource request under the prerequisite of performance not affecting service end, ensure that the realization of parallel automatic test.
In addition, service end utilizes after target detection resource completes test to target detection use-case, can also generate test report according to the reporting format pre-set.
Specifically, test report can be web test report.Reporting format can pre-set according to actual needs, can be specifically to be realized by the script for limiting reporting format.Thus, with the traditional test reporting format disunity of Linux in prior art, the unfriendly difference in interface, in the application, test report is the test report of the friendly interface using unified reporting format, thus improve the readability of test report, make that test result is clear is clear, be convenient to test and research staff better locates, deals with problems.And the form of test report can be html form, after the test of test case all completes, the test report that each test case is corresponding can also be collected, form unified total test report, for test and research staff's inquiry.
The one that above-described embodiment provides walks abreast in automated testing method, can also comprise:
Service end utilizes after target detection resource completes test to target detection use-case, target detection resource is discharged, and determines that target detection resource is idle test resource.
After completing the test to target detection use-case, target detection resource is discharged, the enough process of idle test resource wait to other test cases can be ensured, avoid also occupying target detection resource after target detection use-case completes test, and then the situation causing the speed of parallel automatic test to reduce due to the shortage of idle test resource occurs.
The one that above-described embodiment provides walks abreast in automated testing method, can also comprise:
When service end receives the test resource request of multiple client transmission simultaneously, the priority according to the multiple clients pre-set processes the test resource request that multiple client sends.
Specifically, the test resource request that the client that priority processing priority is higher sends, certainly, if when idle test resource abundance, also can process multiple test resource request simultaneously, thus while ensureing that the test resource request of the client transmission that priority is high is preferentially processed, further increase the speed of parallel automatic test.
In addition, target detection use-case can also be sent to other client after obtaining target detection use-case by service end.
Other clients, after receiving target detection use-case, when needing to test for the project that target detection use-case is corresponding, only needing to modify to the individual parameters in target detection use-case or attribute, can obtain required test case.Thus, decrease the workload of test and research staff, reduce cost of labor.
Can as the statement of the relevant configuration to client when being below concrete enforcement:
Configuration correlation parameter:
Test case correlative:
The integration statement of test process correlative and test report:
To the above-mentioned explanation of the disclosed embodiments, those skilled in the art are realized or uses the present invention.To be apparent for a person skilled in the art to the multiple amendment of these embodiments, General Principle as defined herein can without departing from the spirit or scope of the present invention, realize in other embodiments.Therefore, the present invention can not be restricted to these embodiments shown in this article, but will meet the widest scope consistent with principle disclosed herein and features of novelty.

Claims (8)

1. a parallel automated testing method, is characterized in that, comprising:
Client sends test resource request to service end, and wherein, described client works under the RobotFramework environment built in advance, and described service end works under the staf environment built in advance;
Described service end judges whether to exist the idle test resource of the test resource met needed for described test resource request, if, then determine that test resource corresponding with described test resource request in this idle test resource is target detection resource, determine that the test case corresponding with described test resource request obtained in advance in described client is target detection use-case, and utilize described target detection resource to test described target detection use-case.
2. method according to claim 1, is characterized in that, also comprises:
If described service end judges not exist the idle test resource of the test resource met needed for described test resource request, then return wait instruction to described client.
3. method according to claim 2, is characterized in that, also comprises:
In preset time period after described service end judges not exist the moment of the idle test resource of the test resource met needed for described test resource request, if there is the idle test resource of the test resource met needed for described test resource request, then determine that this idle test resource is target detection resource.
4. method according to claim 1, is characterized in that, also comprises:
Described service end utilizes after described target detection resource completes test to described target detection use-case, described target detection resource is discharged, and determines that described target detection resource is idle test resource.
5. method according to claim 1, is characterized in that, also comprises:
When described service end receives the test resource request of multiple client transmission simultaneously, the priority according to the described multiple client pre-set processes the test resource request that described multiple client sends.
6. method according to claim 1, is characterized in that, also comprises:
Described service end utilizes after described target detection resource completes test to described target detection use-case, generates test report according to the reporting format pre-set.
7. method according to claim 6, is characterized in that, the acquisition process in advance of the test case of described client comprises:
The test case that described client acquisition user utilizes the ride instrument under RobotFramework environment to write also stores.
8. the method according to any one of claim 1 to 7, is characterized in that, also comprises:
Described service end obtains described target detection use-case, and described target detection use-case is sent to other clients.
CN201510760943.9A 2015-11-10 2015-11-10 A kind of parallel automated testing method Pending CN105224464A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510760943.9A CN105224464A (en) 2015-11-10 2015-11-10 A kind of parallel automated testing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510760943.9A CN105224464A (en) 2015-11-10 2015-11-10 A kind of parallel automated testing method

Publications (1)

Publication Number Publication Date
CN105224464A true CN105224464A (en) 2016-01-06

Family

ID=54993449

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510760943.9A Pending CN105224464A (en) 2015-11-10 2015-11-10 A kind of parallel automated testing method

Country Status (1)

Country Link
CN (1) CN105224464A (en)

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106598841A (en) * 2016-11-07 2017-04-26 上海斐讯数据通信技术有限公司 Self-installing method and system for automatic test frame
CN106713484A (en) * 2017-01-10 2017-05-24 微梦创科网络科技(中国)有限公司 Performance pressure measurement implementation method, system and server
CN107179985A (en) * 2016-03-09 2017-09-19 阿里巴巴集团控股有限公司 Execution method and apparatus for automating use-case
CN107396392A (en) * 2017-07-26 2017-11-24 深圳市共进电子股份有限公司 Radio-frequency indicator testing method, device, equipment and the storage medium of WAP
CN108667539A (en) * 2017-03-28 2018-10-16 北京小米移动软件有限公司 For the frequency range test method and device of screened room, electronic equipment
CN109660427A (en) * 2018-12-14 2019-04-19 福建星网智慧科技股份有限公司 A kind of virtual terminal automated testing method of video conferencing system
CN109669871A (en) * 2018-12-24 2019-04-23 枫国宏利信息科技服务(成都)有限公司 A method of realizing Oracle Form automatic test
CN111984512A (en) * 2020-08-12 2020-11-24 苏州浪潮智能科技有限公司 Storage system resource competition simulation test method, system, terminal and storage medium
CN112634887A (en) * 2020-12-08 2021-04-09 北京梧桐车联科技有限责任公司 Voice mode control method, device and system
CN114647593A (en) * 2022-04-30 2022-06-21 苏州浪潮智能科技有限公司 Automatic storage testing method and device capable of dynamically adjusting resources
CN117421234A (en) * 2023-11-03 2024-01-19 天讯瑞达通信技术有限公司 Multi-platform multi-concurrency automatic threading testing system
CN114647593B (en) * 2022-04-30 2024-10-22 苏州浪潮智能科技有限公司 Storage automation test method and device capable of dynamically adjusting resources

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020131430A1 (en) * 1999-07-14 2002-09-19 Jan Lindquist Combining narrowband applications with broadband transport
CN104702664A (en) * 2014-12-29 2015-06-10 惠州Tcl移动通信有限公司 Method and system for controlling task server
CN104915288A (en) * 2014-03-13 2015-09-16 阿里巴巴集团控股有限公司 Testing method and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020131430A1 (en) * 1999-07-14 2002-09-19 Jan Lindquist Combining narrowband applications with broadband transport
CN104915288A (en) * 2014-03-13 2015-09-16 阿里巴巴集团控股有限公司 Testing method and device
CN104702664A (en) * 2014-12-29 2015-06-10 惠州Tcl移动通信有限公司 Method and system for controlling task server

Cited By (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107179985A (en) * 2016-03-09 2017-09-19 阿里巴巴集团控股有限公司 Execution method and apparatus for automating use-case
CN106598841A (en) * 2016-11-07 2017-04-26 上海斐讯数据通信技术有限公司 Self-installing method and system for automatic test frame
CN106713484A (en) * 2017-01-10 2017-05-24 微梦创科网络科技(中国)有限公司 Performance pressure measurement implementation method, system and server
CN108667539A (en) * 2017-03-28 2018-10-16 北京小米移动软件有限公司 For the frequency range test method and device of screened room, electronic equipment
CN108667539B (en) * 2017-03-28 2021-07-23 北京小米移动软件有限公司 Frequency band testing method and device for shielding room and electronic equipment
CN107396392A (en) * 2017-07-26 2017-11-24 深圳市共进电子股份有限公司 Radio-frequency indicator testing method, device, equipment and the storage medium of WAP
CN107396392B (en) * 2017-07-26 2020-09-08 深圳市共进电子股份有限公司 Radio frequency index testing method, device, equipment and storage medium of wireless access point
CN109660427A (en) * 2018-12-14 2019-04-19 福建星网智慧科技股份有限公司 A kind of virtual terminal automated testing method of video conferencing system
CN109669871B (en) * 2018-12-24 2021-05-18 枫国宏利信息科技服务(成都)有限公司 Method for realizing Oracle Form automatic test
CN109669871A (en) * 2018-12-24 2019-04-23 枫国宏利信息科技服务(成都)有限公司 A method of realizing Oracle Form automatic test
CN111984512A (en) * 2020-08-12 2020-11-24 苏州浪潮智能科技有限公司 Storage system resource competition simulation test method, system, terminal and storage medium
CN111984512B (en) * 2020-08-12 2023-01-10 苏州浪潮智能科技有限公司 Storage system resource competition simulation test method, system, terminal and storage medium
CN112634887A (en) * 2020-12-08 2021-04-09 北京梧桐车联科技有限责任公司 Voice mode control method, device and system
CN112634887B (en) * 2020-12-08 2024-01-23 北京梧桐车联科技有限责任公司 Voice mode control method, device and system
CN114647593A (en) * 2022-04-30 2022-06-21 苏州浪潮智能科技有限公司 Automatic storage testing method and device capable of dynamically adjusting resources
CN114647593B (en) * 2022-04-30 2024-10-22 苏州浪潮智能科技有限公司 Storage automation test method and device capable of dynamically adjusting resources
CN117421234A (en) * 2023-11-03 2024-01-19 天讯瑞达通信技术有限公司 Multi-platform multi-concurrency automatic threading testing system

Similar Documents

Publication Publication Date Title
CN105224464A (en) A kind of parallel automated testing method
Xu et al. T-storm: Traffic-aware online scheduling in storm
US7730183B2 (en) System and method for generating virtual networks
CN109857613B (en) Automatic operation and maintenance system based on collection cluster
US11474874B2 (en) Systems and methods for auto-scaling a big data system
US9934135B2 (en) Generic test automation for application programming interface applications
JP5778815B1 (en) Infrastructure operation management system and infrastructure operation management method
US9645809B2 (en) Updating software components through online stores
JP2017529628A5 (en)
US20080155350A1 (en) Enabling tracing operations in clusters of servers
US20100223446A1 (en) Contextual tracing
CN103369054B (en) A kind of acquisition tasks management method and system
US20140096129A1 (en) Systems and methods for installing, managing, and provisioning applications
Huang AppACTS: Mobile app automated compatibility testing service
CN110895488B (en) Task scheduling method and device
US20180359184A1 (en) Out-of-band telemetry data collection
WO2010039428A3 (en) Data-tier application component fabric management
US20210092073A1 (en) Resource trees by management controller
CN107919987B (en) Method for realizing micro-service cloud deployment
CN104391705A (en) Distributed automatic test framework applied to high-availability cluster software
CN105045601A (en) Product publishing and deploying system based on cloud platform
CN103077034A (en) JAVA application migration method and system for hybrid virtualization platform
US20140359635A1 (en) Processing data by using simultaneous multithreading
CN108399095B (en) Method, system, device and storage medium for supporting dynamic management of timed tasks
CN109597764A (en) A kind of test method and relevant apparatus of catalogue quota

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20160106

RJ01 Rejection of invention patent application after publication