CN111294254B - Equipment site-oriented method, case site-oriented execution method and automatic test platform - Google Patents
Equipment site-oriented method, case site-oriented execution method and automatic test platform Download PDFInfo
- Publication number
- CN111294254B CN111294254B CN202010060578.1A CN202010060578A CN111294254B CN 111294254 B CN111294254 B CN 111294254B CN 202010060578 A CN202010060578 A CN 202010060578A CN 111294254 B CN111294254 B CN 111294254B
- Authority
- CN
- China
- Prior art keywords
- site
- test
- case
- type
- platform
- 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.)
- Active
Links
- 238000012360 testing method Methods 0.000 title claims abstract description 196
- 238000000034 method Methods 0.000 title claims abstract description 62
- 238000013507 mapping Methods 0.000 claims description 13
- 238000004891 communication Methods 0.000 abstract description 7
- 230000009286 beneficial effect Effects 0.000 description 4
- 238000010586 diagram Methods 0.000 description 4
- 230000004807 localization Effects 0.000 description 3
- 238000006467 substitution reaction Methods 0.000 description 3
- 230000002349 favourable effect Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000013461 design Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/50—Testing arrangements
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3672—Test management
- G06F11/3684—Test management for test design, e.g. generating new test cases
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3672—Test management
- G06F11/3688—Test management for test execution, e.g. scheduling of test suites
Abstract
The invention provides an equipment site-oriented method, a case site-oriented execution method and an automatic test platform, wherein the case site-oriented execution method and the automatic test platform are directly or indirectly based on the equipment site-oriented method. The equipment site method comprises the following steps: defining a corresponding number of sites; defining equipment information of each test equipment; and constructing corresponding network sites for the test equipment belonging to the same site according to the logical address. The invention is used for reducing the communication cost and improving the testing efficiency.
Description
Technical Field
The invention relates to the field of server testing, in particular to an equipment site-oriented method, a case site-oriented execution method and an automatic testing platform.
Background
In the field of server testing, after an automatic testing platform is built, how to efficiently use equipment is a considerable problem.
For current automated test platforms: a test environment of a corresponding type is often deployed in each test device, and correspondingly, each test device often corresponds to a test scenario; in addition, most test equipment in the platform logically exists in an independent individual. For automatic testers, the equipment which exists independently has clear environment and fixed scene, and if the test needs to cover other test scenes, the equipment can be coordinated with other personnel in the project group to continue the test of other test scenes. This greatly increases the communication cost during testing and also reduces the testing rate.
Therefore, the invention provides an equipment site-based method, a case site-based execution method and an automatic test platform, which are used for solving the problems.
Disclosure of Invention
In view of the above disadvantages of the prior art, the present invention provides an equipment site-oriented method, a case site-oriented execution method and an automated testing platform, which are used to reduce communication cost and improve testing efficiency.
In a first aspect, the present invention provides an equipment site-based method, where the equipment site-based method is used for test equipment site-based of an automated test platform, and each test equipment in the automated test platform is deployed with a test environment of a corresponding type; the equipment site method comprises the following steps:
define a corresponding number of sites: defining a site type and a logical address of each site, wherein each site type corresponds to one type of test environment, and each type of test environment corresponds to one site type;
defining device information of each test device: defining a site to which each test device belongs;
and constructing corresponding network sites for the test equipment belonging to the same site according to the logical address.
Further, the device information defining each test device further includes at least one of information defining a host type, an ip address, a subnet mask, and a gateway of each test device.
Further, the defining of the corresponding number of sites further includes defining a site name of each site.
In a second aspect, the present invention provides an automated testing platform, which includes a corresponding number of testing devices, each testing device is deployed with a testing environment of a corresponding type, and each testing device performs site localization by using the methods described in the above aspects.
Furthermore, a corresponding number of test cases are integrated in the automatic test platform, and the case type of each test case corresponds to one site type.
Furthermore, the case type of each test case is the same as the site type corresponding to the test case.
In a third aspect, the present invention provides a case site-based execution method, which is used for an automated testing platform, wherein the automated testing platform adopts the automated testing platform described in the above aspects; at least one automatic test case is integrated in the automatic test platform, and the case type of each automatic test case corresponds to a network station; the use case site-oriented execution method comprises the following steps:
p1, acquiring an automatic test case;
p2, inquiring whether a site corresponding to the case type is idle or not based on the case type of the currently acquired automatic test case test;
if yes, performing shackle on the inquired site, and executing a step P3;
p3, host addresses of all test devices under the site loading the flail;
p4, loading the obtained automatic test case;
p5, establishing the mapping relation between the loaded use case steps and the loaded host addresses;
p6, executing all use case steps for establishing the mapping relation in the step P5 until all use case steps for establishing the mapping relation in the step P5 are executed; the execution address of the case step is the host address mapped by the execution address;
p7, unlocking the site of the shackle, and finishing the execution of the automatic test case obtained in P1.
Further, the method further comprises the following steps after the step P7:
p8, determining whether the automatic test case executed in the step P7 is the last automatic test case:
if so, ending the case site execution process;
if not, the next automation test case is obtained, and the process proceeds to step P2.
In a fourth aspect, the present invention provides an automated test platform, where the automated test platform performs a test on an automated test case in the platform based on the case site-based execution method described above.
The beneficial effect of the invention is that,
(1) the equipment site method provided by the invention constructs the corresponding network sites of the test equipment belonging to the same site according to the logical address, is favorable for integrating all equipment resources of the automatic test platform, forms a set of network relation diagram about the sites, is favorable for carrying out automatic tests under different types of test environments under the condition of not coordinating the test equipment with other testers, can reduce the communication cost and can accelerate the test efficiency.
(2) The case site-based execution method provided by the invention queries whether the corresponding site is idle or not based on the acquired case type of the automatic test case test, loads the host addresses of all test equipment under the corresponding site when the query site is idle, loads the case steps of the acquired automatic test case, establishes the mapping relation between the loaded case steps and the loaded host addresses, and then executes the case steps for establishing the mapping relation, thereby being beneficial to the automatic test to autonomously select equipment test execution conforming to the related test environment aiming at different test environments (case scenes), reducing the communication cost and accelerating the test efficiency.
(3) The automated testing platform provided by the invention has all advantages of related methods based on the equipment site-based method or the case site-based execution method, and is not described herein again.
In addition, the invention has reliable design principle, simple structure and very wide application prospect.
Drawings
In order to more clearly illustrate the embodiments or technical solutions in the prior art of the present invention, the drawings used in the description of the embodiments or prior art will be briefly described below, and it is obvious for those skilled in the art that other drawings can be obtained based on these drawings without creative efforts.
FIG. 1 is a schematic method flow diagram of an appliance site method of one embodiment of the present invention.
FIG. 2 is a schematic method flow diagram of a use case site-based execution method according to an embodiment of the invention.
Detailed Description
In order to make those skilled in the art better understand the technical solution of the present invention, the technical solution in the embodiment of the present invention will be clearly and completely described below with reference to the drawings in the embodiment of the present invention, and it is obvious that the described embodiment is only a part of the embodiment of the present invention, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Example 1:
fig. 1 shows an embodiment of the site-based method of the device according to the present invention. The equipment site-based method is used for an automatic test platform and is used for site-based test of test equipment of the automatic test platform. Each testing device in the automatic testing platform is deployed with a testing environment of a corresponding type.
As shown in fig. 1, the method 100 includes the steps of:
and 103, constructing corresponding network sites for the test equipment belonging to the same site according to the logical addresses.
In step 102, device information of each test device is defined, which further includes defining a host type, an ip address, a subnet mask, and a gateway of each test device. In the specific implementation, a person skilled in the art may also define other device information of each test device in step 102, such as an access password of the test device, according to the actual situation.
In step 101, the defining of the corresponding number of sites further includes defining a site name of each site. In the specific implementation, those skilled in the art may also define other information of each site, such as remark information and the like, according to the actual situation.
When the method 100 is used, the sites may be defined first, then the device information of each test device is defined, and then the test devices belonging to the same site are constructed according to the logical addresses to obtain the corresponding number of network sites. Each network station obtained based on the site localization of the method 100 corresponds to one type of test environment. And the same test environment is deployed in each test device under the same network site. The automated testing platform applying the method 100 deploys all testing devices of the same type of testing environment, and all the testing devices are located under the same network site. According to the method 100, the corresponding network sites can be constructed by the test equipment belonging to the same site according to the logical addresses, which is beneficial to integrating all equipment resources of the automatic test platform and forming a set of network relation diagram about the sites, so that the automatic test under different types of test environments can be carried out under the condition of not communicating with other testers, the communication cost is reduced, and the test efficiency is accelerated.
Example 2:
the embodiment is an embodiment of the automated test platform according to the invention. The automatic test platform comprises a corresponding number of test devices, each test device is provided with a corresponding type of test environment, and each test device of the platform is subjected to site operation by adopting the method described in embodiment 1. It can be seen that the automated test platform has a corresponding number of web sites.
The automatic test platform is integrated with a corresponding number of test cases, and the case type of each test case corresponds to one site type. In this embodiment, for convenience of implementation, the case type of each test case is the same as the respective site type.
Since the automated testing platform performs site localization on the testing device by using the method 100 described in embodiment 1, the automated testing platform has all the advantages of the method 100 described in embodiment 1, and details are not described here.
Example 3:
fig. 2 is an embodiment of a method for site-based execution of a use case according to the present invention. The case site-based execution method is used for an automatic test platform. The automated testing platform adopts the automated testing platform described in embodiment 2, and at least one automated testing case is integrated in the platform, and the case type of each testing case corresponds to one website.
The method 200 for site-oriented execution of the use case includes the following steps:
if yes, performing shackle on the inquired site, and executing the step 203;
204, loading the obtained automatic test case;
and step 207, unlocking the site of the shackle in the step 202, wherein the execution of the automatic test case obtained in the step 201 is finished.
Optionally, after step 207, the method further comprises the steps of:
if so, ending the case site execution process;
if not, the next automation test case is obtained, and the step 202 is continued.
In summary, the case site-based execution method 200 provided by the present invention queries whether the corresponding site is idle based on the type of the obtained case for the automated test case test, loads the host addresses of all test devices under the corresponding site when the query site is idle, loads the case steps of the obtained automated test case, establishes the mapping relationship between the loaded case steps and the loaded host addresses, and then executes the case steps for establishing the mapping relationship, which is beneficial to the automated test to autonomously select the device test execution conforming to the relevant test environment for different test environments (case scenarios), thereby reducing the communication cost and accelerating the test efficiency.
It should be noted that, in step 201, one automatic test case to be executed is acquired at a time.
Example 4:
the present embodiment provides an automated testing platform, in which at least one automated testing case is integrated, and a case type of each automated testing case corresponds to a website.
The automated test platform in this embodiment executes each automated test case therein based on the case site-based execution method described in embodiment 3.
The same and similar parts in the various embodiments in this specification may be referred to each other.
Although the present invention has been described in detail by referring to the drawings in connection with the preferred embodiments, the present invention is not limited thereto. Various equivalent modifications or substitutions can be made on the embodiments of the present invention by those skilled in the art without departing from the spirit and scope of the present invention, and these modifications or substitutions are within the scope of the present invention/any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.
Claims (9)
1. The equipment site-based method is characterized by being used for testing equipment site-based of an automatic testing platform, wherein each piece of testing equipment in the automatic testing platform is provided with a testing environment of a corresponding type; the equipment site method comprises the following steps:
define a corresponding number of sites: defining a site type and a logical address of each site, wherein each site type corresponds to one type of test environment, and each type of test environment corresponds to one site type;
defining device information of each test device: defining a site to which each test device belongs;
and constructing corresponding network sites for the test equipment belonging to the same site according to the logical address.
2. The device site method according to claim 1, wherein the device information defining each test device further comprises at least one of a host type, an ip address, a subnet mask, and a gateway defining each test device.
3. The device sitation method according to claim 1 or 2, wherein the defining a corresponding number of sites further comprises defining a site name for each site.
4. An automated test platform comprising a corresponding number of test devices, each test device having a corresponding type of test environment deployed therein, wherein each test device is site-ized using the method of any of claims 1-3.
5. The automated test platform of claim 4, wherein a corresponding number of test cases are integrated into the automated test platform, and a case type of each test case corresponds to a site type.
6. The automated test platform of claim 5, wherein each test case has a case type that is the same as the site type corresponding to the case type.
7. A use case site-based execution method is used for an automatic test platform, and the automatic test platform adopts the automatic test platform of any one of claims 4 to 6; at least one automatic test case is integrated in the automatic test platform, and the case type of each automatic test case corresponds to a network station; the use case site-oriented execution method comprises the following steps:
p1, acquiring an automatic test case;
p2, inquiring whether a site corresponding to the case type is idle or not based on the case type of the currently acquired automatic test case test;
if yes, performing shackle on the inquired site, and executing a step P3;
p3, host addresses of all test devices under the site loading the flail;
p4, loading the obtained automatic test case;
p5, establishing the mapping relation between the loaded use case steps and the loaded host addresses;
p6, executing all use case steps for establishing the mapping relation in the step P5 until all use case steps for establishing the mapping relation in the step P5 are executed; the execution address of the case step is the host address mapped by the execution address;
p7, unlocking the site of the shackle, and finishing the execution of the automatic test case obtained in P1.
8. The use case site-based execution method according to claim 7, further comprising, after the step P7, the steps of:
p8, determining whether the automatic test case executed in the step P7 is the last automatic test case:
if so, ending the case site execution process;
if not, the next automation test case is obtained, and the process proceeds to step P2.
9. An automated test platform for executing automated test cases thereof based on the case site-based execution method of claim 7 or 8.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010060578.1A CN111294254B (en) | 2020-01-19 | 2020-01-19 | Equipment site-oriented method, case site-oriented execution method and automatic test platform |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010060578.1A CN111294254B (en) | 2020-01-19 | 2020-01-19 | Equipment site-oriented method, case site-oriented execution method and automatic test platform |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111294254A CN111294254A (en) | 2020-06-16 |
CN111294254B true CN111294254B (en) | 2021-11-05 |
Family
ID=71028355
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010060578.1A Active CN111294254B (en) | 2020-01-19 | 2020-01-19 | Equipment site-oriented method, case site-oriented execution method and automatic test platform |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111294254B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113176997A (en) * | 2021-04-30 | 2021-07-27 | 深圳市共进电子股份有限公司 | Test case loading method and device, computer equipment and readable storage medium |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN100377109C (en) * | 2005-11-07 | 2008-03-26 | 华为技术有限公司 | Method for completing product automation test utilizing test kit |
US8761683B2 (en) * | 2009-08-28 | 2014-06-24 | Apple Inc. | Electronic device instructions provided using radio signals |
CN102195719B (en) * | 2010-03-01 | 2014-03-19 | 联芯科技有限公司 | Anti-interference terminal radio frequency test system |
US9712406B2 (en) * | 2013-03-15 | 2017-07-18 | Netgear, Inc. | Method and apparatus for analyzing and verifying functionality of multiple network devices |
CN104954530B (en) * | 2015-07-07 | 2016-04-20 | 慧锐通智能科技股份有限公司 | A kind of Auto-Test System of building speakerphone and method |
CN106657515A (en) * | 2016-11-30 | 2017-05-10 | 上海与德信息技术有限公司 | Intelligent test system and method and test station |
-
2020
- 2020-01-19 CN CN202010060578.1A patent/CN111294254B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN111294254A (en) | 2020-06-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110677383B (en) | Firewall wall opening method and device, storage medium and computer equipment | |
CN107689982A (en) | Multi-data source method of data synchronization, application server and computer-readable recording medium | |
CN107145784A (en) | A kind of method of vulnerability scanning, device and computer-readable medium | |
CN109412955B (en) | Method and device for determining link relation between IPRAN network devices | |
CN111294254B (en) | Equipment site-oriented method, case site-oriented execution method and automatic test platform | |
CN110134612A (en) | UI test data generating method, device, equipment and readable storage medium storing program for executing | |
CN114285852A (en) | Service calling method and device based on multi-stage service platform | |
CN109992295B (en) | Version management method and server | |
CN111949553B (en) | Rule engine-based scene case testing method and device | |
CN108089968A (en) | A kind of method of host's machine monitoring virtual-machine data storehouse state | |
WO2005059744A1 (en) | A method of automatically generating test scripts from a system specification model | |
CN114138654A (en) | Interface test case generation method and device, computer equipment and storage medium | |
CN113836212A (en) | Method for automatically generating Json data by database data, readable medium and electronic equipment | |
CN107608887A (en) | A kind of method for creating virtual opetrating system test server | |
CN106934290A (en) | leak detection method and device | |
CN106470132A (en) | Horizontal authority method of testing and device | |
CN112486819B (en) | Method and system for batch testing of communication equipment | |
CN115037664B (en) | Network connection testing method and device, repeater and storage medium | |
CN106156627A (en) | The treating method and apparatus of automatic information system leak risk | |
CN113656322B (en) | Data processing method, device, electronic equipment and computer storage medium | |
CN112019385B (en) | Cloud platform component deleting method, device, equipment and storage medium | |
CN114710542B (en) | Generalized routing mock method and device based on rpc | |
CN117171055B (en) | Software radio compliance testing method based on depth priority | |
CN113326159B (en) | Method, apparatus, system and computer readable storage medium for fault injection | |
CN113055211B (en) | Method for instantiating network service and network function virtualization orchestrator |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |